:root {
    --primary: #333;
    --primary-dark: #222;
    --accent: #00b894;
    --bg-light: #f5f7fb;
    --text: #222;
    --card-border: #efefef;
}

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

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: #fff;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* HEADER / NAV */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}

ul { 
    margin-left:30px;
}
.logo {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--text);
    letter-spacing: 0.06em;
    margin-top: -10px;
}

.logo-sub {
    font-weight: 400;
    font-size: 0.8rem;
    color: #666;
    margin-top: -10px;
}

.nav-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
}

.btn-main {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-main:hover { background: var(--text); }

.btn-secondary {
    display: inline-block;
    background: #fff;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-secondary:hover {
    background: var(--primary);
    color: #fff;
}

/* HERO */
.hero {
    background: radial-gradient(circle at top left, #e3f2fd 0, #fff 45%);
    padding: 40px 0 30px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.6fr);
    gap: 32px;
    align-items: center;
}

.hero h1 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    margin-bottom: 12px;
    color: var(--text);
    line-height: 2.5rem
}

.hero p.lead {
    font-size: 1rem;
    color: #444;
    margin-bottom: 18px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(0,105,180,0.06);
    font-size: 0.8rem;
    margin-bottom: 10px;
    color: #333;
}

.hero-tag-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--accent);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}

.hero-note {
    font-size: 0.85rem;
    color: #666;
    margin-top: 12px;
}

.hero-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    padding: 18px 18px 20px;
    border: 1px solid #e6ecf5;
}

.hero-card h2 {
    font-size: 1rem;
    margin-bottom: 10px;
}

.hero-kpi {
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.hero-kpi strong {
    color: var(--primary-dark);
}

.badge {
    display: inline-block;
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 999px;
    background: #e3f2fd;
    color: #1a4c82;
    margin-top: 8px;
}

/* Hero "fake image" bloc */
.hero-visual {
    border-radius: 22px;
    background: linear-gradient(145deg, #e3f2fd, #fdfbff);
    padding: 18px;
    border: 1px solid #d0ddf0;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
}

.hero-visual-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.hero-visual-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
}

.hero-visual-pill {
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(0, 105, 180, 0.1);
    color: #0f172a;
}

.hero-visual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

.hero-visual-item {
    background: #fff;
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 0.8rem;
    border: 1px solid rgba(148,163,184,0.4);
}

.hero-visual-item strong {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 2px;
}

.hero-visual-footer {
    font-size: 0.75rem;
    color: #475569;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero-visual-dots {
    display: flex;
    gap: 3px;
}

.hero-visual-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(15,23,42,0.25);
}


/* SECTIONS GENERIQUES */
        section {
            padding: 40px 0 30px;
        }

        section:nth-of-type(odd) {
            background: #fff;
        }

        section:nth-of-type(even) {
            background: var(--bg-light);
        }

        section h2 {
            font-size: 1.4rem;
            margin-bottom: 10px;
            color: var(--primary-dark);
        }

        section p {
            font-size: 0.95rem;
            margin-bottom: 8px;
        }

        .section-intro {
            margin-bottom: 30px;
        }

        /* DEMARCHE */
        .steps {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 18px;
            margin-top: 10px;
        }

        .step {
            background: #fff;
            border-radius: 12px;
            padding: 14px 14px 16px;
            border: 1px solid var(--card-border);
        }

        .step-number {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 26px;
            height: 26px;
            border-radius: 999px;
            background: var(--primary);
            color: #fff;
            font-size: 0.8rem;
            margin-bottom: 6px;
        }

        .step-icon-circle {
            border-radius: 999px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 3rem;
            margin-bottom: 12px;
            color: #C41C14;
        }

        .step h3 {
            font-size: 0.95rem;
            margin-bottom: 4px;
        }

        .step p {
            font-size: 0.9rem;
            color: #555;
        }

        /* INFOS IMPORTANTES */
        .info-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
            gap: 16px;
            margin-top: 10px;
        }

        .info-block {
            background: #fff;
            border-radius: 12px;
            padding: 14px 14px 16px;
            border: 1px solid var(--card-border);
        }

        .info-block-header {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 4px;
        }

        .info-badge {
            width: 32px;
            height: 30px;
            border-radius: 6px;
            background: rgba(37,99,235,0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1rem;
            color: #C41C14;
        }

        .info-block h3 {
            font-size: 0.95rem;
        }

        .info-block p,
        .info-block li {
            font-size: 0.9rem;
        }

        .info-block ul {
            margin-left: 18px;
            margin-top: 4px;
        }

        /* FORMULAIRES */
        .form-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
            gap: 24px;
            margin-top: 14px;
        }

        form {
            background: #fff;
            border-radius: 12px;
            padding: 16px 16px 18px;
            border: 1px solid #e0e5f0;
        }

        form h3 {
            font-size: 1rem;
            margin-bottom: 6px;
            color: var(--primary-dark);
        }

        label {
            display: block;
            font-size: 0.85rem;
            margin-top: 10px;
            margin-bottom: 3px;
        }

        label span.req {
            color: #e53935;
        }

        input[type="text"],
        input[type="email"],
        input[type="tel"],
        input[type="number"],
        select,
        textarea {
            width: 100%;
            padding: 7px 8px;
            border-radius: 6px;
            border: 1px solid #cfd4e5;
            font-size: 0.9rem;
        }

        textarea {
            min-height: 70px;
            resize: vertical;
        }

        .form-footnote {
            font-size: 0.8rem;
            color: #666;
            margin-top: 8px;
        }

        .form-actions {
            margin-top: 12px;
            text-align: right;
        }

        .btn-submit {
            background: var(--primary);
            color: #fff;
            border: none;
            padding: 9px 16px;
            border-radius: 999px;
            font-size: 0.9rem;
            font-weight: 600;
            cursor: pointer;
        }

        .btn-submit:hover { background: var(--primary-dark); }

        /* FAQ */
        .faq-item {
            margin-bottom: 12px;
        }

        .faq-item h3 {
            font-size: 0.95rem;
            margin-bottom: 3px;
        }

        .faq-item p {
            font-size: 0.9rem;
            color: #444;
        }

        /* CONTACT */
        .contact-box {
            background: #fff;
            border-radius: 12px;
            padding: 16px 16px 18px;
            border: 1px solid #e1e5f0;
            margin-top: 10px;
        }

        .contact-pill {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 4px 9px;
            background: rgba(34,197,94,0.09);
            border-radius: 999px;
            font-size: 0.8rem;
            color: #166534;
            margin-bottom: 6px;
        }

        .contact-dot {
            width: 7px;
            height: 7px;
            border-radius: 999px;
            background: #22c55e;
        }

        footer {
            background: #222;
            color: #e5e7eb;
            padding: 18px 0;
            font-size: 0.8rem;
        }

footer a { color: #C41C14; }
footer a:hover { color: #fff; }
        footer .footer-links {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }

        /* Responsive */
        @media (max-width: 768px) {
            .hero-grid {
                grid-template-columns: 1fr;
            }
            .nav-links {
                justify-content: flex-end;
            }
        }

        html {
            scroll-behavior: smooth;
        }
        /* MODAL LÉGALE */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.modal-dialog {
    background: #fff;
    border-radius: 10px;
    max-width: 900px;
    width: 90%;
    padding: 18px 20px 20px;
    box-shadow: 0 20px 60px rgba(15,23,42,0.35);
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
    font-size: 0.9rem;
}

.modal-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.modal-body {
    font-size: 0.9rem;
    color: #374151;
    line-height: 1.5;
}

.modal-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
    color: #6b7280;
}
.modal-close:hover {
    color: #111827;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    padding: 14px 20px;
    z-index: 9999;
}

.cookie-inner {
    max-width: 1100px;
    margin: auto;
    font-size: 0.9rem;
    color: #333;
}

.cookie-buttons {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Reuse modal styling */
#cookieSettings .modal-dialog {
    max-width: 550px;
}



/* =========================
   TABLETTES (<= 992px)
   ========================= */
@media (max-width: 992px) {
    .container {
        padding: 0 12px;
    }

    .nav {
        flex-wrap: wrap;
        gap: 8px;
    }

    .logo-main {
        font-size: 1.3rem;
    }

    .nav-links {
        gap: 10px;
    }

    .hero {
        padding: 30px 0 24px;
    }

    .hero-grid {
        gap: 20px;
    }

    .hero-visual {
        padding: 14px;
    }

    section {
        padding: 30px 0 24px;
    }
}

/* =========================
   MOBILE (<= 768px)
   ========================= */
@media (max-width: 768px) {

    header {
        position: static; /* évite les effets chelous avec le sticky sur petit écran */
    }

    .nav {
        /*
        flex-direction: column;
        align-items: flex-start;
        */
    }

    .logo {
        margin-bottom: 6px;
    }

    .nav-links {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 8px;
    }

    .nav-links a {
        font-size: 0.85rem;
    }

    .hero {
        padding: 24px 0 20px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        order: 2;
    }

    .hero h1 {
        font-size: 1.6rem;
        line-height: 2.1rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn-main,
    .hero-actions .btn-secondary {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .steps,
    .info-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    form {
        padding: 14px;
    }

    .contact-box {
        padding: 14px;
    }

    footer .container {
        flex-direction: column;
        gap: 8px;
    }

    footer .footer-links {
        flex-wrap: wrap;
    }

    .cookie-banner {
        padding: 10px 14px;
    }

    .cookie-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-buttons .btn-main,
    .cookie-buttons .btn-secondary {
        width: 100%;
        text-align: center;
    }

    .modal-dialog {
        width: 94%;
        max-height: 90vh;
        padding: 14px 14px 16px;
    }
}

/* =========================
   TOUT PETITS ÉCRANS (<= 480px)
   ========================= */
@media (max-width: 480px) {

    .logo-main {
        font-size: 1.2rem;
    }

    .logo-sub {
        font-size: 0.75rem;
    }

    section h2 {
        font-size: 1.2rem;
    }

    .hero-visual-grid {
        grid-template-columns: 1fr;
    }

    .hero-visual-item {
        font-size: 0.8rem;
    }

    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    textarea {
        font-size: 0.85rem;
    }
}

/* --- NAV DESKTOP (inchangé) --- */
.nav {
    /*
    display: flex;
    align-items: center;
    justify-content: space-between;
    */
    padding: 8px 0;
}

/* nav-links = ligne de liens à droite en desktop */
.nav-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
}

/* bouton burger : caché en desktop */
.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: #000;
    border-radius: 999px;
    transition: transform 0.2s ease, opacity 0.2s ease, width 0.2s ease;
}

/* Empêche le scroll quand le menu est ouvert */
body.no-scroll {
    overflow: hidden;
}

/* Overlay derrière le menu mobile */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 900;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ================== MENU MOBILE ================== */
@media (max-width: 900px) {

    /* Ligne du header : logo à gauche, burger à droite */
    .nav {
        /*
        display: flex;
        align-items: center;
        justify-content: space-between;
        */
        padding: 8px 16px;
    }

    .logo {
        display: flex;
        align-items: center;
    }

    .logo table {
        border-collapse: collapse;
    }

    /* Bouton burger */
    .nav-toggle {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 4px;
        width: 32px;
        height: 28px;
        padding: 0;
        margin-left: auto;
        border: none;
        background: transparent;
        cursor: pointer;
    }

    .nav-toggle span {
        display: block;
        width: 100%;
        height: 3px;
        background: #000;
        border-radius: 999px;
    }

    /* Menu masqué par défaut en mobile */
    .nav-links {
        position: fixed;
        inset: 0;
        background: #ffffff;
        display: none;
        flex-direction: column;
        justify-content: left;
        align-items: flex-start;
        gap: 18px;
        font-size: 1.1rem;
        z-index: 998;
        padding: 20px;
    }

    .nav-links a {
        font-size: 1.1rem;
    }

    .nav-links .btn-main {
        font-size: 0.95rem;
    }

    /* Quand le body a la classe .nav-open → on affiche le menu */
    body.nav-open .nav-links {
        display: flex;
    }
}

