:root {
    --main-color: #000;
    --accent-color: #ffffff;
    --bg-light: #f5f5f5;
    --bg-dark: #111;
    --text-light: #fff;
    --text-dark: #111;
    --font: 'Helvetica Neue', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    padding-top: 55px;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    background: white;
    border-bottom: 1px solid #eee;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 15px 0;
    font-weight: bold;
}

.navbar a {
    text-decoration: none;
    color: var(--main-color);
    transition: color 0.3s;
}

.navbar a:hover {
    color: gray;
}



section {
    padding: 80px 20px;
}

h1,
h2 {
    text-align: center;
    margin-bottom: 40px;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2rem;
}

.hero {
    background: url('img/fond.png') center/cover no-repeat;
    color: var(--text-light);
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero h1,
.hero .cta-button {
    position: relative;
    z-index: 2;
}

.cta-button {
    background-color: var(--accent-color);
    color: var(--main-color);
    padding: 15px 30px;
    font-size: 1rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 30px;
}

.cta-button:hover {
    background-color: #eee;
}

.grid {
    display: grid;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 5px solid var(--main-color);
}

.card:nth-child(1) {
    background: linear-gradient(to right, #eef2f3, #fff);
}

.card:nth-child(2) {
    background: linear-gradient(to right, #f3f4f6, #fff);
}

.card:nth-child(3) {
    background: linear-gradient(to right, #e6f0fa, #fff);
}

.card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.card h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.card p {
    font-size: 0.95rem;
    color: #444;
}

.card .icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.card.before {
    background: #fff5f5;
    border-left: 5px solid #e74c3c;
}

.card.transition {
    background: #fffef5;
    border-left: 5px solid #f1c40f;
}

.card.after {
    background: #f5fff7;
    border-left: 5px solid #2ecc71;
}

.offre-card {
    background: #f9f9f9;
    border-left: 5px solid #007acc;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.offre-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.offre-card .icon {
    font-size: 2.3rem;
    margin-bottom: 10px;
}

.offre-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.offre-card p {
    font-size: 0.95rem;
    color: #444;
}

/* Modal */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.modal {
    background: white;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.modal h3 {
    margin-bottom: 15px;
}

.modal button {
    margin-top: 20px;
    padding: 10px 20px;
    background: #111;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}


form {
    max-width: 500px;
    margin: 0 auto;
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

input,
button {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
}

button {
    background-color: var(--main-color);
    color: white;
    border: none;
    font-weight: bold;
    cursor: pointer;
}

button:hover {
    background-color: #333;
}

.dark-section {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.centered {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.site-footer {
    background-color: #111;
    color: #fff;
    text-align: center;
    padding: 40px 20px;
    font-size: 0.9rem;
}

#about img {
    display: block;
    margin: 0 auto 30px auto;
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.scroll-fade {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-fade.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .grid.grid-3 {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
    }
}


.testimonial-card {
    background: #fff;
    border-left: 5px solid #3498db;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px;
    position: relative;
}

.testimonial-card .quote {
    font-style: italic;
    color: #333;
    margin-bottom: 20px;
}

.testimonial-card .author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-card .author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.testimonial-card strong {
    font-size: 1rem;
    color: #000;
}

.hidden {
    display: none;
}

#messageDemo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    font-size: 2.5rem;
    padding: 3em;
}

#contact {
    background-color: #f5f8fa;
}

#contact h2 {
    margin-bottom: 10px;
}

#contact p.centered {
    margin-bottom: 40px;
    font-size: 1rem;
    color: #444;
}

#contact form {
    max-width: 600px;
    margin: 0 auto;
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

#contact textarea {
    width: 100%;
    resize: vertical;
    font-family: inherit;
    padding: 15px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    line-height: 1.5;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#contact textarea:focus {
    border-color: #007acc;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 122, 204, 0.2);
}

#contact button {
    background-color: var(--main-color);
    color: white;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

#contact button:hover {
    background-color: #333;
}

#messageElContact {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    font-size: 1.2rem;
    padding: 3em;
}

.site-footer a {
    color: #ffffff;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.site-footer a:hover {
    border-bottom: 1px solid #ffffff;
}