/* ===================================================================
   POPPINS — Auto-hébergée (indépendante des bloqueurs de pub)
   Sous-ensemble latin uniquement (couvre tous les caractères français)
   =================================================================== */
@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("fonts/poppins-400.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("fonts/poppins-500.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("fonts/poppins-600.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("fonts/poppins-700.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url("fonts/poppins-800.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --primary:      #4fc3f7;
    --primary-dark: #0288d1;
    --primary-deep: #0369a1;
    --accent:       #81d4fa;
    --dark:         #0d1b2a;
    --text:         #22303b;
    --text-muted:   #5a7184;
    --bg:           #ffffff;
    --bg-alt:       #f5fbff;
    --radius:       12px;
    --radius-lg:    20px;
    --shadow-sm:    0 2px 8px rgba(2, 40, 70, 0.06);
    --shadow:       0 6px 24px rgba(2, 40, 70, 0.08);
    --shadow-lg:    0 16px 48px rgba(2, 40, 70, 0.12);
    font-family: "Poppins", "Segoe UI", Roboto, sans-serif;
}
/* CACHER LE MENU MOBILE EN VERSION DESKTOP */
.side-menu {
    display: none;
}
#menu-overlay {
    display: none;
}
/* Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* === HEADER === */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 14px rgba(2, 40, 70, 0.06);
    transition:
        background 0.3s ease,
        box-shadow 0.3s ease;
    animation: fadeDown 0.6s ease forwards;
    opacity: 0;
    transform: translateY(-15px);
    height: auto;
    border-bottom: 1px solid rgba(79, 195, 247, 0.12);
}

/* Fluidité sur le scroll (header glass plus dense après défilement) */
.scrolled .site-header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(14px);
    box-shadow: 0 4px 14px rgba(2, 40, 70, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.logo img {
    height: 160px;
    width: auto;
    display: block;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.main-nav a {
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 14px;
    border-radius: 8px;
    transition:
        color 0.2s ease,
        background 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    background: rgba(79, 195, 247, 0.12);
    color: var(--primary-deep);
}

/* Centrage visuel du logo */
.logo img {
    height: 120px;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.03);
}

/* Lien du menu avec espacement fluide et effet de soulignement animé */
.main-nav a {
    position: relative;
    text-decoration: none;
    padding: 8px 14px;
    font-weight: 600;
    transition: color 0.25s ease;
}

.main-nav a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 60%;
}

@keyframes fadeDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === HERO === */
.hero {
    position: relative;
    /* Fallback pour les navigateurs qui ne supportent pas image-set() */
    background:
        linear-gradient(160deg, rgba(2, 28, 54, 0.78) 0%, rgba(2, 40, 70, 0.45) 100%),
        url("images/hero-banner.png") center/cover no-repeat;
    /* WebP moderne (−92 % de poids) avec fallback PNG automatique */
    background:
        linear-gradient(160deg, rgba(2, 28, 54, 0.78) 0%, rgba(2, 40, 70, 0.45) 100%),
        image-set(
            url("images/hero-banner.webp") type("image/webp"),
            url("images/hero-banner.png") type("image/png")
        ) center/cover no-repeat;
    padding: 9rem 1rem 7rem;
    color: #fff;
    text-align: center;
    overflow: hidden;
    border-bottom-left-radius: 32px;
    border-bottom-right-radius: 32px;
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}
/* Retour à la ligne du H1 seulement en desktop — reste fluide sur mobile */
.hero-h1-break {
    display: none;
}
@media (min-width: 600px) {
    .hero-h1-break {
        display: inline;
    }
}
/* Sous-titre accrocheur sous le H1 */
.hero-subtitle {
    font-size: clamp(17px, 2.2vw, 21px);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1.5rem !important;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.hero p {
    font-size: clamp(16px, 2vw, 19px);
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* =======================================================
   HERO — Trust signals (badges de confiance)
   ======================================================= */
.hero-trust {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    padding: 0;
    margin: 0 auto 2.25rem;
    max-width: 700px;
}
.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.95rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    white-space: nowrap;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.trust-badge:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.38);
    transform: translateY(-2px);
}
.trust-badge svg {
    flex-shrink: 0;
    stroke: var(--primary);
    opacity: 0.95;
}
/* Responsive mobile */
@media (max-width: 520px) {
    .hero-trust {
        gap: 0.45rem;
        margin-bottom: 1.75rem;
    }
    .trust-badge {
        font-size: 0.78rem;
        padding: 0.4rem 0.75rem;
    }
    .trust-badge svg {
        width: 15px;
        height: 15px;
    }
}

/* Groupe de CTAs du hero (principal + secondaire téléphone) */
.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.85rem;
}
/* CTA secondaire : transparent avec bordure (moins visuellement lourd) */
.cta--secondary {
    background: transparent !important;
    color: #fff !important;
    border: 2px solid rgba(255, 255, 255, 0.55) !important;
    box-shadow: none !important;
}
.cta--secondary:hover,
.cta--secondary:focus {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: #fff !important;
    color: #fff !important;
    transform: translateY(-3px);
}

.cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #fff;
    color: var(--primary-deep);
    font-weight: 700;
    font-size: 1rem;
    padding: 0.9rem 2rem;
    border-radius: 999px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
    text-decoration: none;
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        background 0.22s ease,
        color 0.22s ease;
}

.cta:hover,
.cta:focus {
    text-decoration: none;
    transform: translateY(-3px);
    background: var(--primary-dark);
    color: #fff;
    box-shadow: 0 10px 32px rgba(2, 40, 70, 0.3);
}
/* Icône dans le bouton principal */
.cta .icon-mail {
    stroke: currentColor;
    transition: transform 0.25s ease;
}

.cta:hover .icon-mail {
    transform: translateY(-2px);
}
/* Ajout d'un effet léger d'ondulation dans le fond */
.hero::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 120px;
    background: radial-gradient(
        circle at 50% -20%,
        rgba(255, 255, 255, 0.25),
        transparent 70%
    );
}

/* Sections */
.section {
    padding: 5rem 0;
}
.section.alt {
    background: var(--bg-alt);
}
.section h2 {
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--dark);
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 700;
    letter-spacing: -0.3px;
}
.section h2::after {
    content: "";
    display: block;
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    margin: 0.75rem auto 1.75rem;
    border-radius: 3px;
}

/* Features */
.features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.5rem;
    list-style: none;
    padding: 0;
}

.features li {
    position: relative;
    background: #fff;
    border: 1.5px solid rgba(2, 136, 209, 0.15);
    padding: 0.65rem 1.2rem 0.65rem 2.4rem;
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text);
    transition: all 0.2s ease;
}

.features li:hover {
    border-color: rgba(2, 136, 209, 0.4);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

/* Coche bleue */
.features li::before {
    content: "✓";
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-dark);
}

/* Grid cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
/* Services : forcer 3 colonnes dès 700px pour éviter la carte seule */
#services .grid {
    grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 700px) {
    #services .grid {
        grid-template-columns: 1fr;
    }
}
.card {
    background: #fff;
    padding: 1.75rem 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border-top: 3px solid var(--primary);
    transition:
        transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
        box-shadow 0.3s ease,
        border-color 0.3s ease,
        border-top-width 0.3s ease;
    position: relative;
}
.card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 24px 56px rgba(2, 40, 70, 0.16),
        0 0 0 1px rgba(79, 195, 247, 0.15);
    border-top-width: 5px;
    border-color: var(--primary-dark);
}
.card .icon {
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
                box-shadow 0.35s ease;
}
.card:hover .icon {
    transform: scale(1.1) rotate(-4deg);
    box-shadow: 0 10px 22px rgba(2, 136, 209, 0.4);
}
.card h3 {
    transition: color 0.25s ease;
}
.card:hover h3 {
    color: var(--primary-deep);
}
.icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-deep));
    color: #fff;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(2, 136, 209, 0.25);
}
.card h3 {
    margin: 0 0 0.75rem;
    color: var(--dark);
    font-size: 1.05rem;
    font-weight: 700;
}
.card ul {
    padding-left: 1.1rem;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.8;
}

/* Tarifs */
#tarifs .container > p:first-of-type {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}
#tarifs ul {
    list-style: none;
    padding: 0;
    margin: 0 auto 1.5rem;
    max-width: 800px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.25rem;
    justify-content: center;
}
#tarifs li {
    flex: 1;
    min-width: 220px;
    background: #fff;
    padding: 1.75rem 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
    border-top: 3px solid rgba(2, 136, 209, 0.2);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}
#tarifs li:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
#tarifs li:first-child {
    border-top: 3px solid var(--primary-dark);
    background: linear-gradient(160deg, #f0f9ff 0%, #ffffff 100%);
    position: relative;
}
#tarifs li:first-child::before {
    content: "⭐ Formule principale";
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--primary-deep);
    background: rgba(2, 136, 209, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    margin: -0.5rem auto 1rem;
    width: fit-content;
}
#tarifs li strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-deep);
    margin-top: 0.4rem;
}
#tarifs .container > p:last-of-type {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-style: italic;
    margin-top: 0.5rem;
}

/* Contact */
.new-contact {
    background: linear-gradient(160deg, #eef7ff 0%, #f8fcff 100%);
    padding: 5rem 0;
}

.new-contact h2 {
    text-align: center;
    color: var(--dark);
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.3px;
}

.new-contact .contact-intro {
    text-align: center;
    color: var(--text); /* Contraste WCAG AA : ratio > 7:1 sur fond blanc */
    max-width: 700px;
    margin: 0 auto 2rem;
    font-size: 1.05rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: stretch;
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .side-menu {
        display: flex; /* rend visible sur mobile */
    }

    #menu-overlay {
        display: block;
    }
}

.contact-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 2.25rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1.5px solid rgba(2, 136, 209, 0.08);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.info-card {
    justify-content: flex-start;
    gap: 0;
}

.info-card-header {
    margin-bottom: 1.5rem;
}
.info-card-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.35rem;
}
.info-card-header p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.form-card {
    display: flex;
    flex-direction: column;
}

.form-card form {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.info-card .info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
    color: var(--dark);
}

.info-card .info-item svg {
    flex-shrink: 0;
    color: var(--primary-dark);
    margin-top: 2px;
    min-width: 22px;
    overflow: visible;
}

.info-card a {
    color: var(--primary-dark);
    text-decoration: none;
}

.info-card a:hover {
    text-decoration: underline;
}

/* Le bouton reste bien en dessous du dernier champ */
.form-card {
    position: relative;
    display: flex;
    flex-direction: column;
}

.form-card .btn-mail {
    margin-top: 1rem;
    align-self: flex-start;
}

.form-card .form-group {
    margin-bottom: 1.2rem;
}

.form-card label {
    font-weight: 600;
    color: var(--dark);
    display: block;
    margin-bottom: 0.4rem;
}

.form-card input,
.form-card textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #dfeaf3;
    border-radius: 8px;
    font-size: 1rem;
    background: #fff;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

/* Exception : la case à cocher ne doit pas hériter du style pleine largeur */
.form-card input[type="checkbox"] {
    width: auto;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    flex-shrink: 0;
    margin-top: 3px;
    cursor: pointer;
    accent-color: var(--primary-dark);
    width: 1rem;
    height: 1rem;
}

.form-card input:focus,
.form-card textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 195, 247, 0.25);
}

/* État invalide (accessibilité : feedback visuel pour les SR et utilisateurs) */
.form-card input[aria-invalid="true"],
.form-card textarea[aria-invalid="true"] {
    border-color: #d93a3a;
    box-shadow: 0 0 0 3px rgba(217, 58, 58, 0.15);
}
.form-card input[aria-invalid="true"]:focus,
.form-card textarea[aria-invalid="true"]:focus {
    box-shadow: 0 0 0 3px rgba(217, 58, 58, 0.3);
}

/* Pas de box-shadow sur la case à cocher au focus (géré par focus-visible) */
.form-card input[type="checkbox"]:focus {
    outline: none;
    box-shadow: none;
}

.form-card .btn {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 0.9rem 1.6rem;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: var(--shadow);
    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.form-card .btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

#form-status {
    margin-top: 1rem;
    font-weight: 600;
    color: var(--dark);
}
/* --- Bouton Envoyer centré et corrigé --- */
.btn-mail {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    position: relative;
    overflow: hidden;
    align-self: flex-start; /* bouton aligné proprement */
    margin-top: 0.5rem;
}

.btn-mail .icon-mail {
    transition:
        transform 0.3s ease,
        color 0.3s ease;
    color: #fff;
    min-width: 30px;
    overflow: visible;
}

.btn-mail:hover .icon-mail {
    transform: translateY(-4px) rotate(-10deg);
    color: #e0f7ff;
}

.btn-mail:active .icon-mail {
    transform: translateY(1px);
}

/* --- Correction du halo doux sur le bouton --- */
.btn-mail:hover {
    box-shadow: 0 0 10px rgba(79, 195, 247, 0.4);
    background: linear-gradient(90deg, #4fc3f7, #03a9f4);
}
/* Footer */
.site-footer {
    background: linear-gradient(135deg, var(--dark) 0%, #0d2d4a 100%);
    color: rgba(255,255,255,0.85);
    padding: 2.5rem 0 1.75rem;
    text-align: center;
}
.site-footer p {
    margin: 0;
    font-size: 0.9rem;
}
.footer-tagline {
    font-size: 0.95rem !important;
    font-weight: 500;
    color: rgba(255,255,255,0.9) !important;
    margin-bottom: 0.6rem !important;
}
.footer-contact-line {
    font-size: 1rem !important;
    margin-bottom: 1.25rem !important;
    color: rgba(255,255,255,0.85) !important;
}
.footer-sep {
    margin: 0 0.6rem;
    color: rgba(255,255,255,0.3);
}
.footer-copy {
    font-size: 0.82rem !important;
    color: rgba(255,255,255,0.45) !important;
    margin-bottom: 0.4rem !important;
}
.site-footer .footer-nav {
    margin-top: 0.3rem;
    font-size: 0.82rem;
}
.site-footer .footer-link {
    color: rgba(255,255,255,0.55);
    transition: color 0.2s ease;
    text-decoration: none;
}
.site-footer .footer-link:hover {
    color: #fff;
    text-decoration: underline;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(10px);
    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}
.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
    .main-nav {
        display: none;
    }
    #nav-toggle {
        display: block;
    }
}
@media (max-width: 600px) {
    .hero {
        padding: 7rem 1rem 5rem;
        border-bottom-left-radius: 20px;
        border-bottom-right-radius: 20px;
    }
    #tarifs ul {
        flex-direction: column;
        align-items: center;
    }
    #tarifs li {
        max-width: 100%;
    }
}
/* ===================================================================
   ACCESSIBILITÉ
   =================================================================== */

/* Lien d'évitement (skip navigation) */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: var(--dark);
    color: #fff;
    padding: 0.5rem 1.2rem;
    border-radius: 0 0 8px 8px;
    font-weight: 700;
    font-size: 0.95rem;
    z-index: 9999;
    text-decoration: none;
    transition: top 0.2s ease;
}
.skip-link:focus {
    top: 0;
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Classe utilitaire : masquer visuellement mais garder accessible aux lecteurs d'écran */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus visible pour navigation au clavier */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
details:focus-visible,
summary:focus-visible {
    outline: 2px solid var(--primary-dark);
    outline-offset: 3px;
    border-radius: 4px;
}

.main-nav a:focus-visible {
    outline: 2px solid var(--primary-dark);
    outline-offset: 3px;
    background: rgba(79, 195, 247, 0.15);
}

.side-menu a:focus-visible {
    outline: 2px solid var(--primary-dark);
    outline-offset: 3px;
}

.cta:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

/* Réduction des animations pour les utilisateurs sensibles */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .fade-in {
        opacity: 1 !important;
        transform: none !important;
    }
    .site-header {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* ===================================================================
   FORMULAIRE DE CONSENTEMENT
   =================================================================== */
.consent-group {
    font-size: 0.9em;
    color: #555;
}
.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
}
.consent-checkbox {
    margin-top: 4px;
    flex-shrink: 0;
}
.consent-link {
    color: #0a4a7a;
    text-decoration: underline;
}
.consent-link:hover {
    color: var(--primary-dark);
}

/* ===================================================================
   FOOTER NAVIGATION
   =================================================================== */
.footer-nav {
    margin-top: 10px;
    font-size: 0.9em;
}
.footer-link {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease;
}
.footer-link:hover {
    opacity: 0.75;
    text-decoration: underline;
}
.footer-link--mr {
    margin-right: 15px;
}

/* ===================================================================
   PAGES LÉGALES
   =================================================================== */
.legal-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    line-height: 1.8;
}
.legal-content h1 {
    color: #022846;
    margin-bottom: 30px;
}
.legal-content h2 {
    color: #022846;
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.5em;
}
.legal-content h3 {
    color: #0a4a7a;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.2em;
}
.legal-content p {
    margin-bottom: 15px;
}
.legal-content ul,
.legal-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}
.legal-content li {
    margin-bottom: 10px;
}
.legal-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
.legal-content th,
.legal-content td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}
.legal-content th {
    background-color: #f4f4f4;
    font-weight: bold;
}
.legal-back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #0a4a7a;
    text-decoration: none;
    font-weight: 600;
}
.legal-back-link:hover {
    text-decoration: underline;
}
.legal-back-link:focus-visible {
    outline: 2px solid #0a4a7a;
    outline-offset: 3px;
    border-radius: 4px;
}
.legal-info-box {
    background-color: #f8f9fa;
    border-left: 4px solid #0a4a7a;
    padding: 15px 20px;
    margin: 20px 0;
}
.legal-highlight {
    background-color: #fff3cd;
    padding: 15px;
    border-left: 4px solid #ffc107;
    margin: 20px 0;
}
.legal-footer {
    text-align: center;
    color: #666;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* Champ honeypot totalement masqué (aucun impact sur le layout) */
.hp {
    position: absolute !important;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}
/* === SECTION TARIFICATION === */
#tarifs {
    background: linear-gradient(160deg, #f0f8ff 0%, #ffffff 100%);
    padding: 5rem 0 4rem;
    text-align: center;
}

#tarifs h2 {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    color: var(--dark);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

#tarifs > .container > p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 0.5rem;
    font-size: 1rem;
}

#tarifs ul {
    list-style: none;
    padding: 0;
    margin-top: 2rem;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: stretch;
    justify-content: center;
}

#tarifs li {
    background: #fff;
    padding: 2rem 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    max-width: 300px;
    width: 100%;
    text-align: center;
    font-weight: 500;
    color: var(--text);
    transition: all 0.25s ease;
    border: 1.5px solid rgba(2, 136, 209, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

/* Carte mise en avant */
#tarifs li:first-child {
    border-color: var(--primary-dark);
    background: linear-gradient(160deg, #e8f4fd, #fff);
    box-shadow: var(--shadow-lg);
    position: relative;
}

#tarifs li:first-child::before {
    content: "⭐ Formule principale";
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-dark);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 14px;
    border-radius: 999px;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

#tarifs li:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

#tarifs li strong {
    color: var(--primary-deep);
    font-size: 1.6rem;
    font-weight: 800;
    display: block;
    line-height: 1.1;
}

#tarifs li span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* === SECTION FAQ === */
.faq {
    background: transparent;
    padding: 0;
}

.faq h2 {
    text-align: center;
    color: var(--dark);
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.3px;
}

.faq h2::after {
    content: "";
    display: block;
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    margin: 0.75rem auto 1.5rem;
    border-radius: 3px;
}

.faq details {
    background: #fff;
    padding: 0;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 0.75rem;
    border: 1.5px solid transparent;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
    overflow: hidden;
}

.faq details:hover {
    border-color: rgba(2, 136, 209, 0.2);
    box-shadow: var(--shadow);
}

.faq details[open] {
    border-color: rgba(2, 136, 209, 0.25);
    box-shadow: var(--shadow);
}

.faq summary {
    font-weight: 600;
    font-size: 0.98rem;
    color: var(--dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.4rem;
    transition: color 0.2s ease, background 0.2s ease;
    list-style: none;
    user-select: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq details[open] summary {
    color: var(--primary-deep);
    background: rgba(79, 195, 247, 0.05);
}

.faq summary::after {
    content: "";
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230288d1' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
    transition: transform 0.25s ease;
    margin-left: 1rem;
}

.faq details[open] summary::after {
    transform: rotate(180deg);
}

.faq details p {
    margin: 0;
    padding: 0 1.4rem 1.2rem;
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.93rem;
}
/* Animation d'apparition progressive du contenu de la FAQ */
.faq details[open] p {
    animation: faqSlideDown 0.32s ease-out both;
}
@keyframes faqSlideDown {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* === MENU MOBILE MODERNE AVEC FONDU + OMBRE DE FOND === */
#nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--dark);
    z-index: 1002;
}

/* Zone d’ombre derrière le menu */
.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 1000;
}

.menu-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

/* ================================================
   MENU MOBILE SLIDE-IN (STYLE APP)
   ================================================ */

@media (max-width: 900px) {
    /* Cache la navigation desktop */
    .main-nav {
        display: none;
    }

    /* Hamburger */
    #nav-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        width: 40px;
        height: 40px;
        justify-content: center;
        align-items: center;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 3001;
        position: relative;
    }

    #nav-toggle span {
        width: 26px;
        height: 3px;
        background: var(--dark);
        border-radius: 3px;
        transition: all 0.3s ease;
    }

    /* Animation hamburger -> croix */
    #nav-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    #nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    #nav-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Overlay foncé */
    #menu-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.35);
        opacity: 0;
        visibility: hidden;
        z-index: 3000;
        transition:
            opacity 0.35s ease,
            visibility 0.35s ease;
    }

    /* Panneau latéral */
    .side-menu {
        position: fixed;
        top: 0;
        right: -280px; /* caché */
        width: 260px;
        height: 100vh;
        background: #fff;
        box-shadow: -4px 0 25px rgba(0, 0, 0, 0.15);
        padding: 4rem 1.8rem;
        display: flex;
        flex-direction: column;
        gap: 1.4rem;
        z-index: 3002;
        transition: right 0.35s ease;
    }

    /* Liens */
    .side-menu a {
        font-size: 1.25rem;
        font-weight: 600;
        color: var(--dark);
        text-decoration: none;
        transition:
            color 0.25s ease,
            transform 0.25s ease;
    }

    .side-menu a:hover {
        color: var(--primary-dark);
        transform: translateX(4px);
    }

    /* État ouvert */
    body.menu-open #menu-overlay {
        opacity: 1;
        visibility: visible;
    }

    body.menu-open .side-menu {
        right: 0;
    }

    /* Bloque le scroll */
    body.menu-open {
        overflow: hidden;
    }
}

/* === Animation d’apparition progressive des liens === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
    .main-nav.open a {
        opacity: 0;
        animation: fadeInUp 0.4s forwards;
    }
    .main-nav.open a:nth-child(1) {
        animation-delay: 0.1s;
    }
    .main-nav.open a:nth-child(2) {
        animation-delay: 0.2s;
    }
    .main-nav.open a:nth-child(3) {
        animation-delay: 0.3s;
    }
    .main-nav.open a:nth-child(4) {
        animation-delay: 0.4s;
    }
    .main-nav.open a:nth-child(5) {
        animation-delay: 0.5s;
    }
    .main-nav.open a:nth-child(6) {
        animation-delay: 0.6s;
    }
}

/* ===================================================================
   ACCESSIBILITÉ : respect de prefers-reduced-motion
   Désactive / réduit les animations pour les utilisateurs qui
   l'ont paramétré au niveau système (vestibulaire, migraine, etc.)
   =================================================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    /* Les éléments fade-in doivent rester visibles immédiatement */
    .fade-in,
    .section,
    .card {
        opacity: 1 !important;
        transform: none !important;
    }
    /* Neutraliser l'animation de descente du header */
    .site-header {
        animation: none !important;
        opacity: 1 !important;
    }
}

/* ===================================================================
   ACCESSIBILITÉ : focus visible homogène pour la navigation clavier
   =================================================================== */
:focus-visible {
    outline: 3px solid var(--primary-dark);
    outline-offset: 2px;
    border-radius: 4px;
}
/* Désactiver le focus par défaut quand l'utilisateur navigue à la souris */
:focus:not(:focus-visible) {
    outline: none;
}
