/* ========================================
           DESIGN TOKENS — Cohérents avec l'app
           ======================================== */
        :root {
            /* Parchemin & Papier */
            --parchment-light: #f5e6c8;
            --parchment-base: #e8d4a8;
            --parchment-dark: #d4bc82;
            --parchment-burnt: #c4a86c;

            /* Encres (Texte) */
            --ink-black: #1a120b;
            --ink-brown: #3d2914;
            --ink-sepia: #5c3d1e;
            --ink-light: #6e5210; /* 5,9:1 sur parchemin (était #8b6914, 4,1:1) */

            /* Accents Précieux */
            --gold-light: #e8c547;
            --gold-base: #c9a227;
            --gold-dark: #6e5210; /* texte : 5,9:1 sur parchemin, 4,5:1 sur les dégradés (était #a07d1c, 3,1:1) */

            /* Couleurs de domaines */
            --crimson: #8b1538;
            --crimson-dark: #5c0f25;
            --emerald: #1e5c45;
            --emerald-light: #2d7a5f;
            --royal-blue: #1a3a5c;

            /* Ombres */
            --shadow-soft: rgba(61, 41, 20, 0.15);
            --shadow-medium: rgba(61, 41, 20, 0.25);
            --shadow-strong: rgba(26, 18, 11, 0.4);

            /* Misc */
            --max-width: 1200px;
            --nav-height: 72px;
        }

        /* ========================================
           RESET & BASE
           ======================================== */
        *, *::before, *::after {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        /* Les attributs width/height du HTML (posés contre le CLS) sont des
           indices de présentation : sans cette règle, une image dont le CSS ne
           fixe QUE la largeur hérite de la hauteur intrinsèque et s'étire.
           Spécificité volontairement minimale — toute règle qui pose une
           hauteur (.nav-logo img, .blog-image img…) gagne. */
        img {
            height: auto;
        }

        html {
            scroll-behavior: smooth;
            -webkit-text-size-adjust: 100%;
            text-size-adjust: 100%;
        }

        body {
            font-family: 'Literata', Georgia, serif;
            font-size: 18px;
            line-height: 1.65;
            color: var(--ink-black);
            background-color: var(--parchment-light);
            overflow-x: hidden;
        }

        /* Filet anti-débordement horizontal sur mobile : les titres à mots longs
           ("Confidentialité", "d'Utilisation") et les <code> insécables
           ("utm_source/utm_medium/...") ne forcent plus Chrome mobile à dézoomer.
           overflow-wrap: anywhere casse un mot trop long SANS tiret (pas de césure
           "Fran-çais" disgracieuse) et réduit la largeur min-content. */
        h1, h2, h3, h4 {
            overflow-wrap: anywhere;
        }
        code {
            overflow-wrap: anywhere;
            word-break: break-word;
        }
        /* Longues URL (liens dans les pages légales) ne débordent pas */
        a { overflow-wrap: break-word; }

        /* Un lien au milieu d'un texte se voit autrement que par sa couleur
           (RGAA 10.6, WCAG 1.4.1) : le pourpre sur sépia ne s'en distingue qu'à 1,05:1. */
        /* Les :not() portent la spécificité à 0,3,3 : elle doit battre les feuilles
           chargées après (teachers.css : `.teachers-section a:not(.btn)`, 0,2,1). */
        main p a:not([class*="btn"]):not([class*="button"]):not([role="button"]),
        main li a:not([class]):not([role]):not([href="#"]),
        main td a:not([class]):not([role]):not([href="#"]),
        main dd a:not([class]):not([role]):not([href="#"]),
        main .teachers-breadcrumb a:not(.btn):not([role]) {
            text-decoration: underline;
            text-decoration-thickness: 1px;
            text-underline-offset: .18em;
        }

        /* Texture parchemin subtile via pseudo-element sur body */
        body::before {
            content: '';
            position: fixed;
            inset: 0;
            background-image:
                url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
            pointer-events: none;
            z-index: 0;
        }

        /* ========================================
           NAVIGATION
           ======================================== */
        nav {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            height: var(--nav-height);
            max-width: 100vw;
            overflow-x: clip;
            background: rgba(232, 212, 168, 0.96);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border-bottom: 2px solid var(--parchment-burnt);
            display: flex;
            justify-content: space-between;
            align-items: center;
            column-gap: 1.25rem;
            padding: 0 2.5rem;
            z-index: 1000;
            box-shadow: 0 4px 20px var(--shadow-soft);
        }

        .nav-logo {
            display: flex;
            align-items: center;
            gap: 0.6rem;
            text-decoration: none;
        }

        .nav-logo img {
            width: 42px;
            height: 42px;
            object-fit: contain;
        }

        .nav-logo-text {
            font-family: 'Cinzel Decorative', serif;
            font-size: 1.3rem;
            font-weight: 700;
            color: var(--royal-blue);
            letter-spacing: 0.01em;
        }

        .nav-logo-text span {
            color: var(--crimson);
        }

        .nav-links {
            display: flex;
            list-style: none;
            gap: 2.5rem;
            align-items: center;
            /* Override style.css intermediate-breakpoint rules that leak at 901-1024px */
            position: static;
            background: transparent;
            flex-direction: row;
            box-shadow: none;
            padding: 0;
            top: auto;
            left: auto;
            right: auto;
            width: auto;
            transform: none;
            opacity: 1;
            visibility: visible;
        }

        .nav-links li {
            width: auto;
            text-align: left;
        }

        /* Copies des boutons de la barre du haut, ajoutées au menu par js/main.js :
           elles ne servent que dans le menu du burger (mobile). */
        .nav-links .nav-links-cta { display: none; }

        .nav-links a {
            font-family: 'Cinzel', serif;
            font-size: 0.85rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: var(--ink-brown);
            text-decoration: none;
            transition: color 0.2s ease;
            position: relative;
            display: inline;
            padding: 0;
            white-space: nowrap;
        }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: -4px;
            left: 0;
            width: 0;
            height: 1.5px;
            background: var(--gold-base);
            transition: width 0.3s ease;
        }

        .nav-links a:hover {
            color: var(--gold-dark);
        }

        .nav-links a:hover::after {
            width: 100%;
        }

        /* Menu déroulant « Ressources » */
        .nav-drop {
            position: relative;
        }

        .nav-drop-toggle {
            font-family: 'Cinzel', serif;
            font-size: 0.85rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: var(--ink-brown);
            background: none;
            border: none;
            cursor: pointer;
            padding: 0;
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
            transition: color 0.2s ease;
        }

        .nav-drop-toggle:hover {
            color: var(--gold-dark);
        }

        .nav-drop-caret {
            font-size: 0.7em;
            transition: transform 0.2s ease;
        }

        .nav-drop.open .nav-drop-caret {
            transform: rotate(180deg);
        }

        .nav-drop-menu {
            position: absolute;
            top: calc(100% + 0.9rem);
            left: 50%;
            transform: translateX(-50%) translateY(-6px);
            min-width: 180px;
            list-style: none;
            margin: 0;
            padding: 0.6rem 0;
            /* Opaque : dans la barre, qui a déjà son flou, le flou du menu ne s'applique pas, et le
               texte d'un en-tête sombre (boutique) transparaissait. */
            background: var(--parchment-base);
            border: 1px solid var(--parchment-burnt);
            border-radius: 8px;
            box-shadow: 0 8px 24px var(--shadow-medium);
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
            z-index: 1002;
        }

        /* Ouvert par le bouton seulement (aria-expanded dit vrai) : plus par :focus-within,
           qui l'ouvrait au focus en le déclarant fermé (RGAA 7.1). */
        .nav-drop.open .nav-drop-menu {
            opacity: 1;
            visibility: visible;
            transform: translateX(-50%) translateY(0);
        }

        /* Plus d'ouverture au survol (RGAA 10.13) : le menu masquait des titres, ne se
           fermait pas à Échap, et en mouvement réduit on le perdait dans l'espace entre le
           bouton et la liste. Il s'ouvre au clic, comme son aria-expanded le dit. */

        .nav-drop-menu li {
            width: 100%;
            text-align: left;
        }

        .nav-drop-menu a {
            display: block;
            padding: 0.45rem 1.25rem;
        }

        .nav-drop-menu a::after {
            display: none;
        }

        .nav-drop-menu a:hover {
            background: rgba(160, 125, 28, 0.14);
        }

        /* « Matières ▾ » : une ligne par matière (emblème, nom), ses disciplines en petit dessous. */
        .nav-drop-matieres .nav-drop-menu {
            min-width: 380px;
        }

        .nav-matiere > a {
            display: flex;
            align-items: center;
            gap: 0.6rem;
            font-weight: 700;
        }

        .nav-matiere > a img {
            width: 28px;
            height: 28px;
            flex: none;
        }

        .nav-matiere-disciplines {
            display: block;
            padding: 0 1.25rem 0.4rem calc(1.25rem + 28px + 0.6rem);
            font-size: 0.85em;
            line-height: 1.5;
        }

        /* Les disciplines en casse normale : en capitales Cinzel, trois noms passaient sur trois lignes. */
        .nav-drop-menu .nav-matiere-disciplines a {
            display: inline;
            padding: 0;
            font-family: inherit;
            font-size: 0.85rem;
            font-weight: 400;
            text-transform: none;
            letter-spacing: normal;
        }

        .nav-matiere-etape {
            font-size: 0.8rem;
            font-weight: 700;
            opacity: 0.75;
        }

        .nav-matiere-etape::after {
            content: " :";
        }

        .nav-drop-menu .nav-matiere-disciplines a:hover {
            background: none;
            text-decoration: underline;
        }

        .nav-cta {
            display: flex;
            gap: 0.75rem;
            align-items: center;
        }

        .nav-cta .nav-link-secondary {
            font-family: 'Literata', Georgia, serif;
            font-size: 0.95rem;
            color: var(--ink-brown);
            text-decoration: none;
            padding: 0.35rem 0;
            border-bottom: 1px solid transparent;
            transition: color 0.2s ease, border-color 0.2s ease;
            white-space: nowrap;
        }

        .nav-cta .btn {
            white-space: nowrap;
        }

        /* Nav resserrée avant le passage au burger (900px) */
        @media (max-width: 1280px) {
            nav { padding: 0 1.5rem; }
            .nav-links { gap: 1rem; }
            .nav-links a, .nav-drop-toggle { font-size: 0.78rem; letter-spacing: 0.05em; }
            .nav-logo-text { font-size: 1.1rem; }
            .nav-cta { gap: 0.5rem; }
            .nav-cta .btn { padding: 0.65rem 1.1rem; font-size: 0.78rem; }
            .nav-cta .nav-link-secondary { font-size: 0.85rem; }
        }

        @media (max-width: 1000px) and (min-width: 901px) {
            nav { padding: 0 1rem; }
            .nav-logo-text { display: none; }
            .nav-links { gap: 0.7rem; }
        }

        .nav-cta .nav-link-secondary:hover {
            color: var(--gold-dark);
            border-bottom-color: var(--gold-base);
        }

        /* Burger menu mobile */
        .nav-burger {
            display: none;
            flex-direction: column;
            gap: 5px;
            background: none;
            border: none;
            cursor: pointer;
            padding: 0.5rem;
            z-index: 1001;
        }

        .nav-burger span {
            display: block;
            width: 24px;
            height: 2px;
            background: var(--ink-brown);
            transition: all 0.3s ease;
            border-radius: 2px;
        }

        .nav-burger.active span:nth-child(1) {
            transform: rotate(45deg) translate(6px, 6px);
        }

        .nav-burger.active span:nth-child(2) {
            opacity: 0;
        }

        .nav-burger.active span:nth-child(3) {
            transform: rotate(-45deg) translate(6px, -6px);
        }

        /* ========================================
           BOUTONS
           ======================================== */
        .btn {
            display: inline-block;
            padding: 0.75rem 1.75rem;
            border-radius: 6px;
            font-family: 'Cinzel', serif;
            font-size: 0.85rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            cursor: pointer;
            text-decoration: none;
            border: none;
            transition: all 0.25s ease;
        }

        .btn-primary {
            background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-base) 100%);
            color: var(--ink-black);
            box-shadow: 0 4px 16px rgba(201, 162, 39, 0.4), inset 0 1px 0 rgba(255,255,255,0.3);
        }

        .btn-primary:hover {
            background: linear-gradient(135deg, var(--gold-base) 0%, #a07d1c 100%);
            transform: translateY(-2px);
            box-shadow: 0 8px 24px rgba(201, 162, 39, 0.5);
        }

        .btn-secondary {
            background: transparent;
            color: var(--ink-brown);
            border: 2px solid var(--parchment-burnt);
        }

        .btn-secondary:hover {
            border-color: var(--gold-base);
            color: var(--ink-sepia); /* l'or tombait à 3,6:1 sur les cartes */
            background: rgba(201, 162, 39, 0.06);
        }

        .btn-crimson {
            background: linear-gradient(135deg, var(--crimson) 0%, var(--crimson-dark) 100%);
            color: var(--parchment-light);
            box-shadow: 0 4px 16px rgba(139, 21, 56, 0.35);
        }

        .btn-crimson:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 24px rgba(139, 21, 56, 0.5);
        }

        .btn-lg {
            padding: 1rem 2.5rem;
            font-size: 1rem;
            border-radius: 8px;
        }

        /* ========================================
           HERO SECTION
           ======================================== */
        .hero {
            min-height: 100vh;
            display: flex;
            align-items: center;
            position: relative;
            overflow: hidden;
            padding-top: var(--nav-height);
            background:
                radial-gradient(ellipse at 65% 50%, rgba(139, 21, 56, 0.07) 0%, transparent 55%),
                radial-gradient(ellipse at 20% 60%, rgba(26, 58, 92, 0.08) 0%, transparent 50%),
                linear-gradient(160deg, #f0ddb8 0%, #e8d4a8 40%, #dcc89a 100%);
        }

        .hero-bg-ornament {
            position: absolute;
            inset: 0;
            overflow: hidden;
            pointer-events: none;
        }

        /* Étoiles/scintillements de fond */
        .hero-sparkle {
            position: absolute;
            width: 4px;
            height: 4px;
            border-radius: 50%;
            background: var(--gold-light);
            /* Un seul passage (RGAA 13.8 : pas de mouvement de plus de 5 s sans moyen de l'arrêter). */
            animation: sparkle 3s ease-in-out 1;
            opacity: 0;
        }
        .hero-sparkle:nth-child(1) { top: 15%; left: 12%; animation-delay: 0s; }
        .hero-sparkle:nth-child(2) { top: 45%; left: 5%; animation-delay: 0.8s; }
        .hero-sparkle:nth-child(3) { top: 70%; left: 18%; animation-delay: 1.6s; }
        .hero-sparkle:nth-child(4) { top: 25%; right: 15%; animation-delay: 0.4s; }
        .hero-sparkle:nth-child(5) { top: 60%; right: 8%; animation-delay: 1.2s; }

        @keyframes sparkle {
            0%, 100% { opacity: 0; transform: scale(0.5); }
            50% { opacity: 0.8; transform: scale(1.5); }
        }

        .hero-inner {
            position: relative;
            z-index: 1;
            max-width: var(--max-width);
            margin: 0 auto;
            padding: 4rem 2.5rem;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4rem;
            align-items: center;
        }

        .hero-content {
            display: flex;
            flex-direction: column;
            gap: 1.75rem;
        }

        .hero-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.4rem 1rem;
            background: rgba(139, 21, 56, 0.1);
            border: 1px solid rgba(139, 21, 56, 0.4);
            border-radius: 100px;
            font-family: 'Cinzel', serif;
            font-size: 0.75rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: var(--crimson);
            width: fit-content;
        }

        .hero-badge::before {
            content: '';
            display: inline-block;
            width: 0.95em;
            height: 0.95em;
            margin-right: 0.35em;
            vertical-align: -0.13em;
            background: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjOGIxNTM4IiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCI+PHBvbHlsaW5lIHBvaW50cz0iMTQuNSAxNy41IDMgNiAzIDMgNiAzIDE3LjUgMTQuNSIgLz4gPGxpbmUgeDE9IjEzIiB4Mj0iMTkiIHkxPSIxOSIgeTI9IjEzIiAvPiA8bGluZSB4MT0iMTYiIHgyPSIyMCIgeTE9IjE2IiB5Mj0iMjAiIC8+IDxsaW5lIHgxPSIxOSIgeDI9IjIxIiB5MT0iMjEiIHkyPSIxOSIgLz4gPHBvbHlsaW5lIHBvaW50cz0iMTQuNSA2LjUgMTggMyAyMSAzIDIxIDYgMTcuNSA5LjUiIC8+IDxsaW5lIHgxPSI1IiB4Mj0iOSIgeTE9IjE0IiB5Mj0iMTgiIC8+IDxsaW5lIHgxPSI3IiB4Mj0iNCIgeTE9IjE3IiB5Mj0iMjAiIC8+IDxsaW5lIHgxPSIzIiB4Mj0iNSIgeTE9IjE5IiB5Mj0iMjEiIC8+PC9zdmc+") no-repeat center / contain;
        }

        .hero-title {
            font-family: 'Cinzel Decorative', serif;
            font-size: clamp(1.9rem, 3.5vw, 2.8rem);
            font-weight: 700;
            color: var(--royal-blue);
            line-height: 1.2;
            letter-spacing: 0.01em;
            /* Mots courts → on laisse le wrap naturel par mot (pas de césure dans
               le gros titre), break-word seulement en filet de sécurité absolu */
            overflow-wrap: break-word;
        }

        .hero-title span {
            color: var(--crimson);
            position: relative;
            display: inline-block;
        }

        .hero-title span::after {
            content: '';
            position: absolute;
            bottom: 2px;
            left: 0;
            width: 100%;
            height: 3px;
            background: linear-gradient(90deg, var(--crimson), var(--gold-base));
            border-radius: 2px;
        }

        .hero-subtitle {
            font-size: 1.2rem;
            color: var(--ink-sepia);
            line-height: 1.7;
        }

        .hero-stats {
            display: flex;
            gap: 2rem;
            padding: 1.25rem 1.75rem;
            background: rgba(255, 255, 255, 0.4);
            border: 1px solid var(--parchment-dark);
            border-radius: 12px;
            backdrop-filter: blur(8px);
        }

        .hero-stat {
            text-align: center;
        }

        .hero-stat-value {
            font-family: 'Cinzel Decorative', serif;
            font-size: 1.6rem;
            font-weight: 700;
            color: var(--crimson);
            display: block;
            white-space: nowrap;
        }

        .hero-stat-label {
            font-size: 0.85rem;
            color: var(--ink-sepia);
        }

        .hero-stat + .hero-stat {
            padding-left: 2rem;
            border-left: 1px solid var(--parchment-dark);
        }

        /* La réserve qui accompagne un chiffre du bandeau (« premières données… »). */
        .hero-stats-note {
            margin: 0.6rem 0 0;
            max-width: 34rem;
            font-size: 0.8rem;
            line-height: 1.4;
            color: var(--ink-light);
        }

        .hero-ctas {
            display: flex;
            gap: 1rem;
            flex-wrap: wrap;
        }

        .hero-image-col {
            position: relative;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .hero-image-frame {
            position: relative;
            width: 78%;
        }

        .hero-image-frame::before {
            content: '';
            position: absolute;
            inset: -12px;
            border: 2px solid var(--gold-base);
            border-radius: 24px;
            opacity: 0.4;
        }

        .hero-image-frame::after {
            content: '';
            position: absolute;
            inset: -6px;
            border: 1px solid var(--parchment-burnt);
            border-radius: 20px;
        }

        .hero-image-frame img {
            width: 100%;
            border-radius: 16px;
            box-shadow: 0 24px 64px var(--shadow-medium);
        }

        /* Badge flottant */
        .hero-float-badge {
            position: absolute;
            bottom: -20px;
            left: -30px;
            background: var(--royal-blue);
            color: var(--parchment-light);
            padding: 0.75rem 1.25rem;
            border-radius: 12px;
            font-family: 'Cinzel', serif;
            font-size: 0.8rem;
            font-weight: 600;
            box-shadow: 0 8px 24px rgba(26, 58, 92, 0.4);
            z-index: 2;
            animation: float 3s ease-in-out 1;
        }

        .hero-float-badge strong {
            display: block;
            font-family: 'Cinzel Decorative', serif;
            font-size: 1.1rem;
            color: var(--gold-light);
            margin-bottom: 0.1rem;
        }

        .hero-familiar-float {
            position: absolute;
            top: -30px;
            right: -20px;
            width: 100px;
            animation: float 3.5s ease-in-out 0.5s 1;
            z-index: 2;
            filter: drop-shadow(0 6px 12px rgba(26, 18, 11, 0.2));
        }

        @keyframes float {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-8px); }
        }

        /* ========================================
           SECTION WRAPPER
           ======================================== */
        .section {
            padding: 5rem 2.5rem;
            position: relative;
        }

        .section-alt {
            background: linear-gradient(180deg, rgba(212, 188, 130, 0.3) 0%, rgba(232, 212, 168, 0.2) 100%);
        }

        .container {
            max-width: var(--max-width);
            margin: 0 auto;
        }

        /* Séparateur décoratif */
        .ornament-divider {
            text-align: center;
            margin: 0 0 3rem;
            user-select: none;
        }

        .ornament-divider::before {
            content: '— ✦ —';
            font-family: 'Cinzel', serif;
            font-size: 1rem;
            color: var(--gold-base);
            letter-spacing: 0.5em;
        }

        .section-header {
            text-align: center;
            margin-bottom: 3.5rem;
        }

        .section-eyebrow {
            display: block;
            font-family: 'Cinzel', serif;
            font-size: 0.8rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.15em;
            color: var(--gold-dark);
            margin-bottom: 0.75rem;
        }

        .section-title {
            font-family: 'Cinzel Decorative', serif;
            font-size: clamp(1.6rem, 3vw, 2.4rem);
            font-weight: 700;
            color: var(--ink-black);
            line-height: 1.2;
            margin-bottom: 1rem;
            /* Empêche un mot long ("L'orthographe,") de déborder sur petit écran
               et de forcer Chrome mobile à dézoomer, sans césure à tiret. */
            overflow-wrap: anywhere;
        }

        .section-subtitle {
            font-size: 1.1rem;
            color: var(--ink-sepia);
            max-width: 640px;
            margin: 0 auto;
            font-style: normal; /* pas d'italique sur un passage long : il se lit moins bien */
        }

        /* ========================================
           SECTION "POURQUOI DICTOQUEST" — Old vs New
           ======================================== */
        .comparison-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 2rem;
        }

        .comparison-card {
            border-radius: 12px;
            padding: 2rem;
            position: relative;
        }

        .comparison-card.old {
            background: rgba(107, 114, 128, 0.08);
            border: 2px solid rgba(107, 114, 128, 0.25);
        }

        .comparison-card.new {
            background: rgba(139, 21, 56, 0.05);
            border: 2px solid var(--crimson);
        }

        .comparison-card.new::before {
            content: 'Avec DictoQuest';
            position: absolute;
            top: -14px;
            left: 50%;
            transform: translateX(-50%);
            background: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjZjVlNmM4IiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCI+PHBvbHlsaW5lIHBvaW50cz0iMTQuNSAxNy41IDMgNiAzIDMgNiAzIDE3LjUgMTQuNSIgLz4gPGxpbmUgeDE9IjEzIiB4Mj0iMTkiIHkxPSIxOSIgeTI9IjEzIiAvPiA8bGluZSB4MT0iMTYiIHgyPSIyMCIgeTE9IjE2IiB5Mj0iMjAiIC8+IDxsaW5lIHgxPSIxOSIgeDI9IjIxIiB5MT0iMjEiIHkyPSIxOSIgLz4gPHBvbHlsaW5lIHBvaW50cz0iMTQuNSA2LjUgMTggMyAyMSAzIDIxIDYgMTcuNSA5LjUiIC8+IDxsaW5lIHgxPSI1IiB4Mj0iOSIgeTE9IjE0IiB5Mj0iMTgiIC8+IDxsaW5lIHgxPSI3IiB4Mj0iNCIgeTE9IjE3IiB5Mj0iMjAiIC8+IDxsaW5lIHgxPSIzIiB4Mj0iNSIgeTE9IjE5IiB5Mj0iMjEiIC8+PC9zdmc+") no-repeat 0.75rem center / 0.8rem, var(--crimson);
            color: var(--parchment-light);
            font-family: 'Cinzel', serif;
            font-size: 0.75rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            padding: 0.25rem 1rem 0.25rem 1.9rem;
            border-radius: 20px;
            white-space: nowrap;
        }

        .comparison-card h3 {
            font-family: 'Cinzel', serif;
            font-size: 1.1rem;
            font-weight: 700;
            margin-bottom: 1.5rem;
            text-align: center;
        }

        .comparison-card.old h3 { color: #4b5563; } /* 5:1 (était 3,2:1) */
        .comparison-card.new h3 { color: var(--crimson); }

        /* Icône SVG inline dans un texte (titre, bouton) — suit currentColor */
        .inline-icon {
            width: 1.05em;
            height: 1.05em;
            vertical-align: -0.14em;
            flex-shrink: 0;
        }

        .comparison-card h3 .inline-icon { margin-right: 0.45em; }
        .btn .inline-icon { margin-left: 0.5em; }
        .pricing-section-label .inline-icon {
            width: 1.15em;
            height: 1.15em;
            vertical-align: -0.18em;
            margin-right: 0.3em;
        }

        /* Favicon (blason) en icône de bouton — fond transparent */
        .btn .btn-icon {
            width: 1.3em;
            height: 1.3em;
            margin-left: 0.5em;
            vertical-align: -0.28em;
            object-fit: contain;
        }

        .comparison-list {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
        }

        .comparison-list li {
            display: flex;
            align-items: flex-start;
            gap: 0.75rem;
            font-size: 1rem;
            color: var(--ink-sepia);
        }

        .comparison-list li .icon {
            flex-shrink: 0;
            font-size: 1.1rem;
            margin-top: 0.1rem;
        }

        /* Puces illustrées en SVG (icônes Lucide, colorées via currentColor) */
        .comparison-list li svg.icon {
            width: 20px;
            height: 20px;
            margin-top: 0.15rem;
        }

        .comparison-card.old svg.icon { color: #6b7280; }
        .comparison-card.new svg.icon { color: var(--crimson); }

        /* ========================================
           FEATURES GRID
           ======================================== */
        .features-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1.75rem;
        }

        .feature-card {
            background: rgba(255, 255, 255, 0.5);
            border: 1px solid var(--parchment-dark);
            border-radius: 12px;
            padding: 2rem 1.75rem;
            position: relative;
            overflow: hidden;
            transition: all 0.3s ease;
        }

        .feature-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, var(--gold-light), var(--gold-base));
        }

        .feature-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 16px 40px var(--shadow-soft);
            border-color: var(--gold-base);
        }

        .feature-icon {
            font-size: 2.5rem;
            margin-bottom: 1rem;
            display: block;
        }

        /* Icône illustrée (image) — remplace l'emoji sur les cartes piliers */
        img.feature-icon {
            width: 72px;
            height: 72px;
            object-fit: contain;
            object-position: center bottom;
            filter: drop-shadow(0 6px 10px var(--shadow-soft));
            transition: transform 0.3s ease;
        }

        .feature-card:hover img.feature-icon {
            transform: translateY(-3px) scale(1.05);
        }

        /* Icône SVG en trait (section IA souveraine) — ton institutionnel */
        svg.feature-icon {
            width: 56px;
            height: 56px;
            color: var(--royal-blue);
            margin-bottom: 1rem;
            display: block;
            transition: transform 0.3s ease;
        }

        svg.feature-icon.flag {
            width: 56px;
            height: auto;
            filter: drop-shadow(0 3px 6px var(--shadow-soft));
        }

        .feature-card:hover svg.feature-icon {
            transform: translateY(-3px) scale(1.05);
        }

        .feature-card h3 {
            font-family: 'Cinzel', serif;
            font-size: 1rem;
            font-weight: 700;
            color: var(--royal-blue);
            margin-bottom: 0.75rem;
        }

        .feature-card p {
            font-size: 0.95rem;
            color: var(--ink-sepia);
            line-height: 1.6;
        }

        /* Domain badge */
        .domain-badge {
            display: inline-block;
            margin-top: 1rem;
            padding: 0.2rem 0.75rem;
            border-radius: 20px;
            font-family: 'Cinzel', serif;
            font-size: 0.7rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.08em;
        }

        .domain-badge.orthographe { background: rgba(139, 21, 56, 0.1); color: var(--crimson); border: 1px solid rgba(139, 21, 56, 0.3); }
        .domain-badge.grammaire   { background: rgba(26, 58, 92, 0.1);  color: var(--royal-blue); border: 1px solid rgba(26, 58, 92, 0.3); }
        .domain-badge.conjugaison { background: rgba(30, 92, 69, 0.1);  color: var(--emerald); border: 1px solid rgba(30, 92, 69, 0.3); }
        .domain-badge.vocabulaire { background: rgba(160, 125, 28, 0.1); color: var(--gold-dark); border: 1px solid rgba(160, 125, 28, 0.3); }

        /* ========================================
           PRICING
           ======================================== */
        .pricing-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1.75rem;
            align-items: start;
        }

        .pricing-card {
            background: rgba(255, 255, 255, 0.5);
            border: 1px solid var(--parchment-dark);
            border-radius: 12px;
            padding: 2rem;
            position: relative;
            transition: all 0.3s ease;
            overflow: visible;
        }

        .pricing-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 16px 40px var(--shadow-soft);
        }

        .pricing-card.featured {
            background: linear-gradient(160deg, var(--royal-blue) 0%, #243f68 100%);
            border-color: var(--gold-base);
            box-shadow: 0 8px 32px rgba(26, 58, 92, 0.4);
            transform: scale(1.03);
            padding-top: 2.5rem;
            overflow: visible;
        }

        .pricing-card.featured:hover {
            transform: scale(1.03) translateY(-4px);
        }

        .pricing-badge {
            position: absolute;
            top: -12px;
            left: 50%;
            transform: translateX(-50%);
            background: var(--gold-base);
            color: var(--ink-black);
            font-family: 'Cinzel', serif;
            font-size: 0.7rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            padding: 0.35rem 1.25rem;
            border-radius: 20px;
            white-space: nowrap;
            z-index: 10;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        }

        .pricing-name {
            font-family: 'Cinzel Decorative', serif;
            font-size: 1.3rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
            color: var(--ink-brown);
        }

        /* h3 depuis l'audit RGAA (9.1) : style.css donne 1rem sous « .pricing-card h3 ». */
        .pricing-card h3.pricing-name { margin: 0 0 0.5rem; }

        .pricing-card.featured .pricing-name {
            color: var(--parchment-light);
        }

        .pricing-tagline {
            font-size: 0.9rem;
            color: var(--ink-light);
            font-style: italic;
            margin-bottom: 0.5rem;
        }
        .pricing-card.featured .pricing-tagline {
            color: rgba(245, 230, 200, 0.8); /* 0,6 : 4,4:1 sur la carte bleue */
        }

        .pricing-price {
            font-family: 'Cinzel Decorative', serif;
            font-size: 2.2rem;
            font-weight: 700;
            color: var(--crimson);
            margin: 0.75rem 0 0;
        }

        .pricing-card.featured .pricing-price {
            color: var(--gold-light);
        }

        .pricing-annual {
            font-size: 0.9rem;
            color: var(--emerald);
            font-weight: 600;
            margin-bottom: 0;
        }

        .pricing-card.featured .pricing-annual {
            color: #7fddbb;
        }

        .pricing-period {
            font-size: 0.85rem;
            color: var(--ink-light);
            margin-bottom: 1.5rem;
            font-style: italic;
        }

        .pricing-card.featured .pricing-period {
            color: rgba(245, 230, 200, 0.8); /* 0,6 : 4,4:1 sur la carte bleue */
        }

        .pricing-features {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 0.6rem;
            margin-bottom: 1.75rem;
        }

        .pricing-features li {
            display: flex;
            align-items: flex-start;
            gap: 0.6rem;
            font-size: 0.95rem;
            color: var(--ink-sepia);
        }

        .pricing-card.featured .pricing-features li {
            color: rgba(245, 230, 200, 0.85);
        }

        .pricing-features li::before {
            content: '✦';
            content: '✦' / ''; /* décoratif : les lecteurs d'écran ne le lisent pas */
            color: var(--gold-base);
            font-size: 0.65rem;
            flex-shrink: 0;
            margin-top: 0.35rem;
        }

        /* Non inclus : un tiret, une encre plus pâle mais lisible (l'opacité 0,45 donnait
           2,3:1), et « Non inclus » dit aux lecteurs d'écran et sans CSS (RGAA 10.2). */
        .pricing-features li.muted {
            color: var(--ink-light);
        }

        .pricing-features li.muted::before {
            content: '—';
            content: '—' / '';
            color: var(--ink-light);
        }

        .pricing-divider {
            width: 100%;
            height: 1px;
            background: var(--parchment-dark);
            margin: 1.25rem 0;
        }

        .pricing-card.featured .pricing-divider {
            background: rgba(245, 230, 200, 0.15);
        }

        .pricing-section-label {
            font-family: 'Cinzel', serif;
            font-size: 0.72rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: var(--gold-dark);
            margin: 1rem 0 0.5rem;
        }

        .pricing-card.featured .pricing-section-label {
            color: var(--gold-light);
        }

        /* Le détail d'une formule, replié : cinq lignes visibles, le reste au déroulant. */
        .pricing-more {
            margin: -0.75rem 0 1.5rem;
        }

        .pricing-more > summary {
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            min-height: 44px;
            font-family: 'Cinzel', serif;
            font-size: 0.8rem;
            font-weight: 700;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            color: var(--gold-dark);
            list-style: none;
        }

        .pricing-more > summary::-webkit-details-marker { display: none; }

        .pricing-more > summary::after {
            content: '▾';
            content: '▾' / '';
            transition: transform 0.2s ease;
        }

        .pricing-more[open] > summary::after { transform: rotate(180deg); }

        .pricing-more > summary:hover { text-decoration: underline; }

        .pricing-more > summary:focus-visible {
            outline: 2px solid var(--gold-base);
            outline-offset: 2px;
        }

        .pricing-card.featured .pricing-more > summary { color: var(--gold-light); }

        .pricing-more .pricing-features {
            margin: 0.5rem 0 0;
        }

        .pricing-cta {
            display: block;
            width: 100%;
            text-align: center;
        }

        .pricing-note {
            text-align: center;
            margin: 1.75rem auto 0;
            color: var(--ink-light);
        }

        @media (prefers-reduced-motion: reduce) {
            .pricing-more > summary::after { transition: none; }
        }

        /* ========================================
           CONVICTION CARDS (Features alternées)
           ======================================== */
        .conviction-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4rem;
            align-items: center;
            margin-bottom: 5rem;
        }

        .conviction-row:last-child { margin-bottom: 0; }

        .conviction-row.reversed .conviction-visual {
            order: -1;
        }

        .conviction-label {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            font-family: 'Cinzel', serif;
            font-size: 0.75rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.12em;
            color: var(--gold-dark);
            margin-bottom: 1rem;
        }

        .conviction-title {
            font-family: 'Cinzel', serif;
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--ink-black);
            line-height: 1.3;
            margin-bottom: 1rem;
        }

        .conviction-text {
            font-size: 1.05rem;
            color: var(--ink-sepia);
            line-height: 1.75;
            margin-bottom: 1.25rem;
        }

        .conviction-visual {
            position: relative;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .conviction-visual img.screenshot {
            width: 68%;
            display: block;
            border-radius: 16px;
            box-shadow: 0 20px 60px rgba(26, 18, 11, 0.2);
        }

        /* Familier sprites decoration */
        .familiar-decor {
            position: absolute;
            pointer-events: none;
        }

        .familiar-decor img {
            width: 90px;
            filter: drop-shadow(0 4px 12px rgba(26,18,11,0.15));
        }

        .familiar-decor.right {
            right: 5%;
            bottom: -20px;
        }

        .familiar-decor.left {
            left: 2%;
            bottom: -10px;
        }

        /* ========================================
           TESTIMONIAL
           ======================================== */
        .testimonial {
            background: rgba(255, 255, 255, 0.4);
            border: 1px solid var(--parchment-dark);
            border-left: 4px solid var(--gold-base);
            border-radius: 0 12px 12px 0;
            padding: 2rem 2.25rem;
            max-width: 780px;
            margin: 3rem auto 0;
        }

        .testimonial blockquote {
            font-size: 1.15rem;
            font-style: normal; /* pas d'italique sur un passage long : il se lit moins bien */
            color: var(--ink-sepia);
            margin-bottom: 1rem;
            line-height: 1.8;
        }

        .testimonial blockquote::before {
            content: '"';
            font-family: 'Cinzel Decorative', serif;
            font-size: 3rem;
            color: var(--gold-light);
            line-height: 0;
            vertical-align: -0.8rem;
            margin-right: 0.25rem;
        }

        .testimonial-author {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .testimonial-avatar {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            border: 2px solid var(--gold-base);
            background: var(--royal-blue);
            display: flex;
            align-items: center;
            justify-content: center;
            font-family: 'Cinzel Decorative', serif;
            font-size: 1rem;
            color: var(--gold-light);
        }

        .testimonial-author strong {
            font-family: 'Cinzel', serif;
            font-size: 0.9rem;
            color: var(--ink-brown);
        }

        .testimonial-author span {
            font-size: 0.85rem;
            color: var(--ink-light);
            font-style: italic;
        }

        /* ========================================
           CONTACT SECTION
           ======================================== */
        .contact-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4rem;
            align-items: start;
        }

        .contact-intro h3 {
            font-family: 'Cinzel', serif;
            font-size: 1.3rem;
            color: var(--ink-brown);
            margin-bottom: 1rem;
        }

        .contact-intro p {
            color: var(--ink-sepia);
            font-size: 1.05rem;
            line-height: 1.75;
            margin-bottom: 1.5rem;
        }

        .contact-info-item {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            margin-bottom: 0.75rem;
            color: var(--ink-sepia);
        }

        .contact-info-item span:first-child {
            font-size: 1.2rem;
        }







        .contact-form {
            background: rgba(255, 255, 255, 0.5);
            border: 1px solid var(--parchment-dark);
            border-radius: 12px;
            padding: 2rem;
        }

        .form-group {
            margin-bottom: 1.25rem;
        }

        .form-group label {
            display: block;
            font-family: 'Cinzel', serif;
            font-size: 0.8rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: var(--ink-brown);
            margin-bottom: 0.5rem;
        }

        .form-group input,
        .form-group select,
        .form-group textarea {
            width: 100%;
            padding: 0.75rem 1rem;
            border: 1.5px solid var(--parchment-dark);
            border-radius: 8px;
            font-family: 'Literata', Georgia, serif;
            font-size: 1rem;
            color: var(--ink-black);
            background: rgba(245, 230, 200, 0.3);
            transition: border-color 0.2s ease, box-shadow 0.2s ease;
            border-color: #8a6d3b; /* 3,4:1 contre le fond (RGAA 3.3) ; était 1,6:1 */
        }

        .form-group input::placeholder,
        .form-group textarea::placeholder {
            color: var(--ink-light); /* le gris par défaut donnait 3,9:1 */
        }

        .form-group input:focus-visible,
        .form-group select:focus-visible,
        .form-group textarea:focus-visible {
            outline: 3px solid var(--crimson);
            outline-offset: 2px;
        }

        .form-group input:focus,
        .form-group select:focus,
        .form-group textarea:focus {
            border-color: var(--gold-base);
            box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15);
        }

        .form-group textarea {
            min-height: 130px;
            resize: vertical;
        }

        /* ========================================
           FOOTER
           ======================================== */
        footer {
            background: var(--ink-black);
            color: var(--parchment-light);
            padding: 3.5rem 2.5rem 2rem;
        }

        .footer-inner {
            max-width: var(--max-width);
            margin: 0 auto;
        }

        .footer-top {
            display: grid;
            grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
            gap: 3rem;
            padding-bottom: 2.5rem;
            border-bottom: 1px solid rgba(232, 212, 168, 0.15);
        }

        .footer-brand {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .footer-logo {
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

        .footer-logo-text {
            font-family: 'Cinzel Decorative', serif;
            font-size: 1.2rem;
            color: var(--parchment-light);
        }

        .footer-logo-text span {
            color: #e46a8c; /* le pourpre --crimson tombe à 2:1 sur l'encre noire */
        }

        .footer-tagline {
            font-size: 0.95rem;
            color: rgba(232, 212, 168, 0.6);
            font-style: italic;
            line-height: 1.6;
        }

        /* h2 : les colonnes du pied suivent des h2 de page (RGAA 9.1), jamais un saut vers h4. */
        .footer-col h2 {
            font-family: 'Cinzel', serif;
            font-size: 0.8rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: var(--gold-base);
            margin-bottom: 1.25rem;
        }

        .footer-col ul {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 0.6rem;
        }

        .footer-col a {
            color: rgba(232, 212, 168, 0.6);
            text-decoration: none;
            font-size: 0.95rem;
            transition: color 0.2s;
        }

        .footer-col a:hover {
            color: var(--gold-light);
        }

        .footer-bottom {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-top: 2rem;
            font-size: 0.85rem;
            color: rgba(232, 212, 168, 0.7); /* 0,4 donnait 3:1, sous le seuil de 4,5:1 */
        }

        .footer-bottom a {
            color: rgba(232, 212, 168, 0.7);
            text-decoration: none;
        }

        .footer-bottom a:hover {
            color: var(--gold-light);
        }

        /* Boutons stores */
        .footer-stores {
            margin-top: 1.5rem;
            display: flex;
            gap: 0.75rem;
            flex-wrap: wrap;
            align-items: center;
        }

        .footer-install {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.55rem 0.9rem;
            border: 1px solid rgba(232, 197, 71, 0.45);
            border-radius: 8px;
            color: var(--gold-light);
            text-decoration: none;
            transition: border-color 0.2s ease, background 0.2s ease;
        }

        .footer-install:hover {
            border-color: var(--gold-light);
            background: rgba(232, 197, 71, 0.08);
        }

        .footer-install-note {
            width: 100%;
            margin: 0;
            font-size: 0.8rem;
            opacity: 0.75;
        }

        .hero-install {
            margin-top: 1.25rem;
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 0.25rem 0.75rem;
        }

        .hero-install .btn {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
        }

        /* Pages de classe : les badges sous le bouton du héros, centrés comme lui. */
        .landing-hero .hero-install {
            justify-content: center;
        }

        .hero-install-note {
            width: 100%;
            margin-top: 0.4rem;
            font-size: 0.9rem;
            color: var(--ink-light);
        }

        /* Badge officiel « Disponible sur Google Play » : l'image fournie par
           Google, jamais redessinée ni recolorée (charte des badges). Le PNG
           porte déjà sa marge de dégagement. */
        .store-badge {
            display: inline-block;
            line-height: 0;
        }

        .store-badge img {
            height: 64px;
            width: auto;
        }

        .footer-stores .store-badge img {
            height: 52px;
        }

        /* Badge officiel Apple (SVG du kit, sans marge) : sa hauteur égale le
           tracé visible du badge Google, soit 192/250 de la hauteur du PNG. */
        .store-badge-apple img {
            height: 49px;
        }

        .footer-stores .store-badge-apple img {
            height: 40px;
        }

        /* ========================================
           RESPONSIVE
           ======================================== */
        @media (max-width: 900px) {
            :root {
                --nav-height: 124px;
            }

            /* Renard décoratif positionné avec right: calc(50% - 660px) → débordement
               négatif de ~470px sur mobile, ce qui force Chrome à zoomer comme desktop */
            .decor-fox { display: none; }

            /* Mobile : le nav défile avec la page (position: relative plus bas).
               Quand il est sorti de l'écran, js/main.js pose `entete-hors-ecran` sur
               <body> et le burger devient un bouton flottant en haut à droite, qui
               ouvre le même menu, calé en haut de l'écran.
               Le backdrop-filter du nav est retiré : il faisait du nav le bloc
               conteneur de ses descendants `position: fixed` (burger, menu), qui
               partaient alors avec lui au défilement. Le fond est déjà opaque. */
            nav {
                backdrop-filter: none;
                -webkit-backdrop-filter: none;
            }
            body.entete-hors-ecran .nav-burger {
                position: fixed;
                top: 8px;
                right: 10px;
                width: 44px;
                height: 44px;
                min-height: 0;
                align-items: center;
                justify-content: center;
                padding: 0;
                border-radius: 50%;
                background: var(--parchment-light);
                border: 1px solid var(--parchment-burnt);
                box-shadow: 0 4px 14px var(--shadow-medium);
                z-index: 1002;
            }
            .nav-links .nav-links-cta { display: block; }
            .nav-links .nav-links-cta-premier {
                margin-top: 0.25rem;
                padding-top: 1.25rem;
                border-top: 1px solid rgba(160, 125, 28, 0.28);
            }
            .nav-links .nav-links-cta a.btn { display: inline-block; padding: 0.6rem 1.4rem; }
            body.entete-hors-ecran .nav-links {
                top: 0;
                padding-top: 4rem;
                background: var(--parchment-base);
            }

            /* Le nav passe en position: relative ci-dessous : il occupe déjà sa
               hauteur dans le flux. On retire donc le padding-top du hero (calé sur
               --nav-height pour le nav fixed du desktop), sinon ~250px de vide entre
               le header et le hero sur mobile. */
            .hero {
                padding-top: 1.5rem;
                min-height: auto;
            }

            .hero-inner {
                /* minmax(0, 1fr) : empêche la piste de grille de se dilater au
                   min-content de ses enfants (badges stores, stats) → plus de débordement */
                grid-template-columns: minmax(0, 1fr);
                text-align: center;
                padding: 2.5rem 1.25rem;
            }
            .hero-content { min-width: 0; }
            .hero-image-col { display: none; }
            .hero-stats { justify-content: center; }
            .hero-stats-note { margin-left: auto; margin-right: auto; text-align: center; }
            .hero-ctas { justify-content: center; }
            .hero-install { justify-content: center; }
            .hero-badge { margin: 0 auto; }

            .comparison-grid,
            .conviction-row,
            .contact-grid { grid-template-columns: 1fr; }
            .conviction-row.reversed .conviction-visual { order: 0; }

            .features-grid { grid-template-columns: 1fr 1fr; }
            .pricing-grid { grid-template-columns: 1fr; }
            .pricing-card.featured { transform: none; }

            .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }

            nav {
                position: relative;
                min-height: var(--nav-height);
                height: auto;
                padding: 0.65rem 1rem;
                align-items: flex-start;
                flex-wrap: wrap;
                row-gap: 0.55rem;
            }

            .nav-links {
                position: absolute;
                top: 100%;
                left: 0;
                right: 0;
            }
            .nav-logo {
                min-height: 40px;
            }

            .nav-burger {
                display: flex;
                position: absolute;
                top: 0.6rem;
                right: 0.75rem;
                min-height: 40px;
                align-self: center;
            }

            .nav-cta {
                width: 100%;
                order: 3;
                justify-content: center;
                flex-wrap: wrap;
                gap: 0.45rem 0.7rem;
                padding-top: 0.45rem;
                border-top: 1px solid rgba(160, 125, 28, 0.28);
            }

            .nav-cta .nav-link-secondary,
            .nav-cta .btn {
                white-space: nowrap;
            }

            .nav-links li {
                width: 100%;
                text-align: center;
            }

            .nav-links a {
                display: block;
                padding: 0.35rem 0;
            }

            .nav-links {
                position: fixed;
                top: var(--nav-height);
                left: 0;
                right: 0;
                background: rgba(232, 212, 168, 0.98);
                backdrop-filter: blur(12px);
                flex-direction: column;
                padding: 2rem;
                gap: 1.5rem;
                border-bottom: 2px solid var(--parchment-burnt);
                box-shadow: 0 8px 24px var(--shadow-medium);
                transform: translateY(-100%);
                opacity: 0;
                visibility: hidden;
                transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
            }
            .nav-links.active {
                transform: translateY(0);
                opacity: 1;
                visibility: visible;
            }
            .nav-cta .btn { padding: 0.6rem 1.25rem; font-size: 0.75rem; }

            /* Dropdown « Ressources » : rendu à plat dans le menu mobile */
            .nav-drop {
                width: 100%;
                text-align: center;
            }

            .nav-drop-toggle {
                width: 100%;
                justify-content: center;
                padding: 0.35rem 0;
            }

            .nav-drop-menu {
                position: static;
                transform: none;
                min-width: 0;
                background: transparent;
                backdrop-filter: none;
                -webkit-backdrop-filter: none;
                border: none;
                box-shadow: none;
                padding: 0.25rem 0 0;
                display: none;
                opacity: 1;
                visibility: visible;
            }

            .nav-drop-matieres .nav-drop-menu {
                min-width: 0;
            }

            .nav-drop.open .nav-drop-menu {
                display: block;
                transform: none;
            }

            .nav-drop-menu li {
                text-align: center;
            }

            .nav-drop-menu a {
                font-size: 0.8rem;
                opacity: 0.85;
                padding: 0.4rem 0;
            }

            .nav-drop-menu a:hover {
                background: transparent;
            }

            /* Plus précis que `.nav-links a { display: block }` du menu mobile : l'emblème reste sur la ligne du nom. */
            .nav-links .nav-matiere > a {
                display: flex;
                justify-content: center;
            }

            .nav-matiere-disciplines {
                padding: 0 0 0.35rem;
            }
        }

        @media (max-width: 600px) {
            :root {
                --nav-height: 136px;
            }

            .features-grid { grid-template-columns: 1fr; }
            .footer-top { grid-template-columns: 1fr; }
            .section { padding: 3.5rem 1.25rem; }

            /* Titres : police réduite sur petits écrans pour tenir en mots entiers */
            .section-title { font-size: clamp(1.3rem, 5.5vw, 2.4rem); }
            .hero-title { font-size: clamp(1.45rem, 6vw, 2.8rem); }
            .hero-subtitle { font-size: 1.05rem; }
            .section-subtitle { font-size: 1rem; }

            /* Stats : autoriser le retour à la ligne pour ne pas déborder */
            .hero-stats { flex-wrap: wrap; gap: 1rem 1.5rem; padding: 1rem 1.25rem; }
            .hero-stat + .hero-stat { padding-left: 0; border-left: none; }
            .hero-stat { flex: 1 1 100%; text-align: center; }
            .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }

            .nav-logo-text {
                font-size: 1.12rem;
            }

            .nav-cta {
                justify-content: center;
            }

            .nav-cta .nav-link-secondary {
                font-size: 0.85rem;
            }
        }

        /* ========================================
           ANNOTATIONS MAQUETTE
           ======================================== */
        .mockup-note {
            position: fixed;
            bottom: 1.5rem;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(26, 18, 11, 0.9);
            color: var(--gold-light);
            padding: 0.6rem 1.5rem;
            border-radius: 100px;
            font-family: 'Cinzel', serif;
            font-size: 0.75rem;
            letter-spacing: 0.05em;
            z-index: 9999;
            white-space: nowrap;
            backdrop-filter: blur(8px);
            border: 1px solid rgba(201, 162, 39, 0.3);
        }

        /* ========================================
           FAMILIAR SHOWCASE (section familiers)
           ======================================== */
        .familiar-showcase {
            display: flex;
            justify-content: center;
            align-items: flex-end;
            gap: 0;
            margin: 2rem 0 0;
            padding: 1rem 0;
            overflow: hidden;
        }

        .familiar-showcase img {
            width: 140px;
            transition: transform 0.3s ease;
            filter: drop-shadow(0 4px 12px rgba(26,18,11,0.12));
        }

        .familiar-showcase img:hover {
            transform: translateY(-8px) scale(1.05);
        }

/* Lien d'évitement (RGAA 12.7) : invisible jusqu'au premier Tab, il mène au contenu principal. */
.lien-evitement {
    position: absolute; left: 1rem; top: -200px; z-index: 100000;
    padding: .75rem 1.25rem; border-radius: 8px;
    background: #1a120b; color: #f5e6c8; font-weight: 600; text-decoration: underline;
}
.lien-evitement:focus { top: 1rem; outline: 3px solid #e8c547; outline-offset: 2px; }
main:focus { outline: none; }

/* Mouvement réduit (WCAG 2.3.3) : une règle pour tout le site. Les animations
   s'arrêtent sur leur état final ; les éléments « apparaissent » sans bouger. */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto !important; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        animation-delay: 0s !important;
        transition-duration: .01ms !important;
        transition-delay: 0s !important;
    }
}
[tabindex="-1"]:focus:not(:focus-visible) { outline: none; }
/* Lu par les lecteurs d'écran, invisible à l'é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; }
/* Champs obligatoires du formulaire de contact (RGAA 11.10) : l'astérisque est expliqué
   en tête ; un lecteur d'écran s'appuie sur « required », il n'entend pas le signe. */
.form-obligatoire { font-size: .9rem; color: var(--ink-sepia); margin-bottom: 1rem; }
.requis { color: var(--crimson); font-weight: 700; }
/* Grilles de cartes balisées en listes (RGAA 9.3) : le lecteur d'écran annonce le nombre
   d'éléments. :where() garde une spécificité nulle — chaque grille garde ses marges et sa
   grille ; role="list" rend la sémantique que Safari retire à une liste sans puces. */
:where(ul.liste-cartes) { list-style: none; padding: 0; margin: 0; }
ul.liste-cartes > li { display: flex; min-width: 0; }
ul.liste-cartes > li > a { flex: 1 1 auto; min-width: 0; }

/* Pages légales, plan du site, déclaration : leur style propre compte la hauteur du menu
   fixe (calc(var(--nav-height) + 2rem)). Sous 900 px le menu est dans le flux : cette
   marge laissait 168 px de vide. main .legal-content l'emporte sur le .legal-content local. */
@media (max-width: 900px) {
    main .legal-content { margin-top: 2rem; }
}


/* Sur mobile, sous le bouton principal qui mène au store (main.js, lienSelonAppareil) : la sortie vers
   la webapp pour qui ne peut pas installer. Couleur héritée : le hero est clair sur l'accueil, sombre
   sur les pages de classe. `main p.` passe devant `.landing-hero p`. */
main p.lien-navigateur {
    margin: 0.75rem 0 0;
    font-size: 0.95rem;
    max-width: none;
}
main p.lien-navigateur a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 0.2em;
    display: inline-block;
    min-height: 44px;
    line-height: 44px;
}
