/* ══════════════════════════════════════════════════════════════════════════
   Landing v3, "l'instrument de mesure éditorial".
   Design system complet, isolation totale: classes prefixees v3-, aucun
   selecteur nu global (hors scope .v3-landing ou body:has).
   Tokens clairs :root, colonne sombre body.dark-mode (spec section 2).
   ══════════════════════════════════════════════════════════════════════════ */

:root {
    /* Papier chaud, encre graphite, accent violet de marque enrichi. */
    --v3-bg: #F3F1EA;
    --v3-bg-alt: #ECE9DE;
    --v3-surface: #FFFFFF;
    --v3-ink: #191821;
    --v3-ink-2: #4C4B56;
    --v3-ink-3: #6E6D78;
    --v3-line: #E4E0D3;
    --v3-line-strong: #D2CEBE;
    --v3-accent: #6A34E8;
    --v3-accent-deep: #5420CE;
    --v3-on-accent: #FFFFFF;
    --v3-ok: #0B7A55;
    --v3-warn: #B45309;
    --v3-bad: #C2410C;
    --v3-code-bg: #16161D;
    --v3-code-ink: #EDEDF0;
    --v3-ink-panel: #191821;
    --v3-on-panel: #F4F2EC;
    --v3-on-panel-2: #B9B7C4;
    --v3-shadow-pop: 0 1px 2px rgba(26, 20, 8, .06), 0 16px 40px rgba(26, 20, 8, .10);
    --v3-font-display: 'Instrument Sans', var(--font-body, 'Inter', sans-serif);
    --v3-font-body: var(--font-body, 'Inter', sans-serif);
    --v3-font-mono: ui-monospace, 'SFMono-Regular', 'SF Mono', Menlo, Consolas, monospace;
}

body.dark-mode {
    /* Noir chaud, surfaces lavées de violet, accent éclairci. */
    --v3-bg: #0E0D13;
    --v3-bg-alt: #14131A;
    --v3-surface: #1A1922;
    --v3-ink: #EFEEE9;
    --v3-ink-2: #B4B2BC;
    --v3-ink-3: #8E8C98;
    --v3-line: #292833;
    --v3-line-strong: #3A3846;
    --v3-accent: #A78BFA;
    --v3-accent-deep: #7C3AED;
    --v3-on-accent: #FFFFFF;
    --v3-ok: #34D399;
    --v3-warn: #FBBF24;
    --v3-bad: #F87171;
    --v3-code-bg: #101018;
    --v3-code-ink: #EDEDF0;
    --v3-ink-panel: #17161F;
    --v3-on-panel: #EFEEE9;
    --v3-on-panel-2: #A5A3B0;
    --v3-shadow-pop: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 40px rgba(0, 0, 0, .35);
}

/* Bouton primaire en sombre : accent-deep (#7C3AED) garde AA 5.7 avec le
   blanc, l'accent clair #A78BFA ne passe que pour les liens sur fond sombre. */
body.dark-mode .v3-btn-primary { background: var(--v3-accent-deep); }
body.dark-mode .v3-btn-primary:hover { background: #6D28D9; }

/* Fond de page v3 (le footer existe en dehors de main.v3-landing). */
body:has(.v3-landing) { background: var(--v3-bg); }

/* ─── Reset local, scope strict ─────────────────────────────────────────── */

.v3-landing,
.v3-landing *,
.v3-landing *::before,
.v3-landing *::after { box-sizing: border-box; }

.v3-landing h1, .v3-landing h2, .v3-landing h3, .v3-landing p,
.v3-landing ul, .v3-landing ol, .v3-landing figure, .v3-landing blockquote,
.v3-landing table, .v3-landing dl, .v3-landing dd { margin: 0; padding: 0; }

.v3-landing ul, .v3-landing ol { list-style: none; }
.v3-landing img { max-width: 100%; height: auto; display: block; }

/* landing.css impose overflow:hidden sur les sections, on le leve pour ne
   pas rogner les ombres et grilles de la v3 (scroll-margin conserve). */
.v3-landing section { overflow: visible; }

.v3-landing {
    background: var(--v3-bg);
    color: var(--v3-ink);
    font-family: var(--v3-font-body);
    font-size: 17px; line-height: 27px;
    -webkit-font-smoothing: antialiased;
}

.v3-landing ::selection { background: rgba(106, 52, 232, .18); }

.v3-landing a:focus-visible,
.v3-landing button:focus-visible,
.v3-landing summary:focus-visible,
.v3-landing video:focus-visible {
    outline: 2px solid var(--v3-accent);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ─── Grille ────────────────────────────────────────────────────────────── */

.v3-wrap {
    max-width: 1160px;
    margin-inline: auto;
    padding-inline: 24px;
}

.v3-wrap--sm { max-width: 820px; }

@media (min-width: 1280px) {
    .v3-wrap { padding-inline: 32px; }
}

/* ─── Typographie ───────────────────────────────────────────────────────── */

.v3-eyebrow {
    font-size: 13px; line-height: 19px; font-weight: 600;
    letter-spacing: .08em; text-transform: uppercase;
    color: var(--v3-accent);
    margin-bottom: 18px;
}

.v3-display {
    font-family: var(--v3-font-display);
    font-size: 54px; line-height: 62px; font-weight: 700;
    letter-spacing: -0.032em; color: var(--v3-ink);
    text-wrap: balance;
    margin-bottom: 20px;
}

.v3-landing h2 {
    font-family: var(--v3-font-display);
    font-size: 30px; line-height: 38px; font-weight: 700;
    letter-spacing: -0.02em; color: var(--v3-ink);
    text-wrap: balance;
}

.v3-landing h3 {
    font-family: var(--v3-font-display);
    font-size: 20px; line-height: 28px; font-weight: 600;
    color: var(--v3-ink);
}

.v3-lede {
    font-size: 17px; line-height: 27px; color: var(--v3-ink-2);
    max-width: 640px;
    text-wrap: pretty;
}

/* ─── Numerotation de section ───────────────────────────────────────────── */

.v3-num { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }

.v3-num-digit {
    font-family: var(--v3-font-mono);
    font-size: 12px; line-height: 19px; font-weight: 700;
    font-variant-numeric: tabular-nums; color: var(--v3-accent);
    letter-spacing: .06em;
}

.v3-num-label {
    font-family: var(--v3-font-mono);
    font-size: 12px; line-height: 19px; font-weight: 600;
    letter-spacing: .1em; text-transform: uppercase; color: var(--v3-ink-3);
}

/* ─── Boutons ───────────────────────────────────────────────────────────── */

.v3-btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px;
    font-family: var(--v3-font-body);
    font-size: 15px; line-height: 24px; font-weight: 600;
    text-decoration: none; cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease, text-decoration-color .18s ease;
}

.v3-btn i { font-size: 0.95em; }

/* global.css impose ses couleurs de liens avec :not(...) en haute specificite :
   les couleurs de boutons v3 doivent gagner (pattern maison landing.css). */
.v3-landing .v3-btn-primary,
.v3-landing .v3-btn-primary:hover {
    color: var(--v3-on-accent) !important;
}

.v3-landing .v3-btn-secondary,
.v3-landing .v3-btn-secondary:hover {
    color: var(--v3-ink) !important;
}
.v3-landing .v3-btn-secondary:hover { color: var(--v3-accent) !important; }

/* Primaire: violet enrichi, liseré haut, double ombre (portée + halo
   colore discret). Le survol soulève d'un pixel, sans animation continue. */
.v3-btn-primary {
    min-height: 46px;
    padding: 10px 28px;
    border-radius: 999px;
    border: none;
    background: var(--v3-accent);
    color: var(--v3-on-accent);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .22),
        0 1px 2px rgba(26, 20, 8, .16),
        0 6px 18px rgba(106, 52, 232, .30);
}

.v3-btn-primary:hover {
    background: var(--v3-accent-deep);
    color: var(--v3-on-accent);
    transform: translateY(-1px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .18),
        0 2px 4px rgba(26, 20, 8, .18),
        0 12px 28px rgba(106, 52, 232, .38);
}

.v3-btn-primary:active { transform: translateY(0); }

body.dark-mode .v3-btn-primary {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .16),
        0 1px 2px rgba(0, 0, 0, .5),
        0 6px 18px rgba(124, 58, 237, .35);
}

body.dark-mode .v3-btn-primary:hover {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .14),
        0 2px 4px rgba(0, 0, 0, .5),
        0 12px 28px rgba(124, 58, 237, .42);
}

.v3-btn-secondary {
    min-height: 44px;
    padding: 10px 4px;
    background: transparent;
    color: var(--v3-ink);
    text-decoration: underline;
    text-decoration-color: var(--v3-line-strong);
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
}

.v3-btn-secondary:hover { color: var(--v3-accent); text-decoration-color: var(--v3-accent); }

/* ─── Fiche document, signature composant v3 ────────────────────────────── */

.v3-doc {
    background: var(--v3-surface);
    border: 1px solid var(--v3-line);
    border-radius: 12px;
    overflow: hidden;
    font-variant-numeric: tabular-nums;
}

.v3-doc-head {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 12px;
    padding: 16px 22px;
    border-bottom: 1px solid var(--v3-line);
}

.v3-doc-title {
    font-size: 11px; line-height: 16px; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase; color: var(--v3-ink);
    white-space: nowrap;
}

.v3-doc-meta {
    font-family: var(--v3-font-mono);
    font-size: 11px; line-height: 16px; font-weight: 600;
    letter-spacing: .08em; text-transform: uppercase; color: var(--v3-ink-3);
    text-align: right;
}

.v3-doc-body { padding: 26px 22px; }

.v3-doc-foot {
    padding: 16px 22px;
    border-top: 1px solid var(--v3-line);
    font-size: 13px; line-height: 19px; color: var(--v3-ink-3);
}

.v3-doc-foot a {
    display: inline-block;
    margin-top: 8px;
    color: var(--v3-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Seule ombre fonctionnelle: fiche hero (menus flottants: voir navbar v3). */
.v3-doc--hero { box-shadow: var(--v3-shadow-pop); }

/* ─── Bloc code Markdown ────────────────────────────────────────────────── */

.v3-landing .v3-code-label {
    font-family: var(--v3-font-mono);
    font-size: 12px; line-height: 19px; font-weight: 600; color: var(--v3-ink-3);
    letter-spacing: .04em;
    margin-bottom: 8px;
}

.v3-code {
    background: var(--v3-code-bg);
    color: var(--v3-code-ink);
    border-radius: 8px;
    padding: 18px 20px;
    font-family: var(--v3-font-mono);
    font-size: 13px; line-height: 21px;
    overflow-x: auto;
    margin-bottom: 20px;
    -webkit-overflow-scrolling: touch;
}

.v3-code code { font-family: inherit; white-space: pre; }

/* ─── Hero, S0 ──────────────────────────────────────────────────────────── */

/* Papier millimetre tres discret, evanescent sur les bords: la signature
   "instrument de mesure" du premier ecran. Uniquement des filets, aucun
   decor ajoute (ni halo, ni particule). La grille vit sur un ::before
   masque: jamais sur le contenu (une mask sur la section laverait
   les textes). */
.v3-hero { position: relative; padding: 80px 0 72px; }

.v3-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(to right, rgba(25, 24, 33, .05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(25, 24, 33, .05) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(130% 110% at 22% 0%, #000 32%, transparent 76%);
    mask-image: radial-gradient(130% 110% at 22% 0%, #000 32%, transparent 76%);
}

body.dark-mode .v3-hero::before {
    background-image:
        linear-gradient(to right, rgba(239, 238, 233, .05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(239, 238, 233, .05) 1px, transparent 1px);
}

.v3-hero-grid {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 48px;
    align-items: start;
}

.v3-hero-copy .v3-lede { margin-bottom: 32px; }

.v3-hero-actions {
    display: flex; align-items: center; flex-wrap: wrap;
    gap: 12px 24px;
    margin-bottom: 32px;
}

.v3-landing .v3-hero-proof {
    display: flex; flex-wrap: wrap;
    border-top: 1px solid var(--v3-line);
    padding-top: 20px;
}

.v3-hero-proof li {
    display: flex; align-items: center;
    font-size: 13px; line-height: 19px; color: var(--v3-ink-2);
}

.v3-hero-proof li + li::before {
    content: "";
    display: inline-block;
    width: 1px; height: 14px;
    background: var(--v3-line-strong);
    margin-inline: 14px;
}

.v3-hero-proof strong { font-weight: 600; color: var(--v3-ink); }

/* Score global de la fiche hero. */
.v3-score {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--v3-line);
    margin-bottom: 22px;
}

.v3-score-label { font-size: 13px; line-height: 19px; color: var(--v3-ink-3); margin-bottom: 4px; }

.v3-score-value {
    font-family: var(--v3-font-display);
    font-size: 44px; line-height: 50px; font-weight: 700;
    font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
    color: var(--v3-ink);
}

.v3-score-value span { font-size: 20px; line-height: 28px; font-weight: 600; color: var(--v3-ink-3); }

.v3-grade {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 44px; height: 44px; padding-inline: 10px;
    border-radius: 6px;
    font-family: var(--v3-font-display);
    font-size: 20px; font-weight: 700;
    border: 1px solid currentColor;
}

.v3-grade--warn { color: var(--v3-warn); }
.v3-grade--bad { color: var(--v3-bad); }
.v3-grade--ok { color: var(--v3-ok); }

/* Verbatim annote (hero et S2). */
.v3-landing .v3-verbatim {
    border-left: 2px solid var(--v3-accent);
    padding: 6px 0 6px 24px;
    margin-bottom: 20px;
}

.v3-verbatim p { font-size: 15px; line-height: 25px; color: var(--v3-ink-2); }

/* Ligne de source sous le verbatim (modele, date d'extraction). */
.v3-verbatim-src {
    margin-top: 10px;
    font-size: 13px; line-height: 19px;
    color: var(--v3-ink-3);
    font-variant-numeric: tabular-nums;
}

/* Label de la liste des indices detectes (S2). */
.v3-anno-label {
    font-family: var(--v3-font-mono);
    font-size: 11px; line-height: 16px; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase; color: var(--v3-ink-3);
    margin: 22px 0 12px;
}

.v3-landing mark {
    background: rgba(106, 52, 232, .14);
    color: inherit;
    padding: 0 3px;
    border-radius: 3px;
}

.v3-landing .v3-mark-src { background: rgba(14, 159, 110, .13); }

.v3-anno-ref {
    font-size: 11px; line-height: 1; font-weight: 700;
    font-variant-numeric: tabular-nums; color: var(--v3-accent);
    margin-inline: 2px;
}

/* Lignes metriques tabulaires de la fiche hero. */
.v3-metrics { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 24px; }

.v3-metrics th, .v3-metrics td {
    text-align: left;
    padding: 12px 0;
    border-bottom: 1px solid var(--v3-line);
    font-weight: 400;
}

.v3-metrics tr:last-child th, .v3-metrics tr:last-child td { border-bottom: none; }
.v3-metrics th { color: var(--v3-ink-2); }

.v3-metrics td {
    text-align: right;
    font-variant-numeric: tabular-nums; font-weight: 600; color: var(--v3-ink);
}

/* ─── Bande preuve, S1 ──────────────────────────────────────────────────── */

.v3-proofband {
    border-top: 1px solid var(--v3-line);
    border-bottom: 1px solid var(--v3-line);
    background: var(--v3-bg-alt);
}

.v3-proofband-inner {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px 32px;
    padding-block: 26px;
}

.v3-proofband-stats { display: flex; flex-wrap: wrap; gap: 12px 40px; }

.v3-proofband-stats li { display: flex; align-items: baseline; gap: 10px; }

.v3-proofband-stats strong {
    font-family: var(--v3-font-display);
    font-size: 32px; line-height: 38px; font-weight: 700;
    font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
    color: var(--v3-ink);
}

.v3-proofband-stats span { font-size: 13px; line-height: 19px; color: var(--v3-ink-2); max-width: 220px; }

.v3-proofband-source {
    font-family: var(--v3-font-mono);
    font-size: 11px; line-height: 17px; letter-spacing: .04em;
    color: var(--v3-ink-3);
}

/* global.css (a:not(...) haute specificite) impose --text-link sur les liens :
   on ré-affirme les couleurs de liens v3 en !important (pattern maison). */
.v3-landing .v3-proofband-source a,
.v3-landing .v3-sec-link a,
.v3-landing .v3-doc-foot a,
.v3-landing .v3-video-transcript a,
.v3-landing .v3-video a {
    color: var(--v3-accent) !important;
}

.v3-proofband-source a {
    color: var(--v3-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    margin-left: 8px;
}

/* ─── Sections numerotees, base ─────────────────────────────────────────── */

.v3-section { padding: 88px 0; }
.v3-sec-head { margin-bottom: 48px; }
.v3-sec-head h2 { max-width: 720px; margin-bottom: 16px; }

.v3-sec-link { margin-top: 32px; font-size: 15px; line-height: 24px; }

.v3-sec-link a { color: var(--v3-accent); text-decoration: underline; text-underline-offset: 4px; }

.v3-sec-actions {
    display: flex; align-items: center; flex-wrap: wrap;
    gap: 12px 24px;
    margin-top: 40px;
}

/* ─── S2, explorer la mesure ────────────────────────────────────────────── */

.v3-explorer-grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 32px;
    margin-bottom: 32px;
    align-items: stretch;
}

.v3-scenario-q {
    font-family: var(--v3-font-display);
    font-size: 20px; line-height: 28px; font-weight: 600; color: var(--v3-ink);
    text-wrap: pretty;
}

.v3-anno-list {
    counter-reset: v3anno;
    display: grid; gap: 12px;
    font-size: 15px; line-height: 25px; color: var(--v3-ink-2);
}

.v3-anno-list li { counter-increment: v3anno; position: relative; padding-left: 30px; }

.v3-anno-list li::before {
    content: counter(v3anno);
    position: absolute; left: 0; top: 3px;
    display: inline-flex; align-items: center; justify-content: center;
    width: 20px; height: 20px;
    border-radius: 999px;
    border: 1px solid var(--v3-accent);
    color: var(--v3-accent);
    font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums;
}

/* Tableau des 3 phenomenes. */
.v3-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 24px; }

.v3-table th, .v3-table td {
    text-align: left; vertical-align: top;
    padding: 16px 20px 16px 0;
    border-bottom: 1px solid var(--v3-line);
}

.v3-table thead th {
    font-size: 11px; line-height: 16px; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase; color: var(--v3-ink-3);
    padding-top: 0;
}

.v3-table tbody tr:last-child th, .v3-table tbody tr:last-child td { border-bottom: none; padding-bottom: 0; }
.v3-table tbody th { font-weight: 600; color: var(--v3-ink); white-space: nowrap; }
.v3-table tbody td { color: var(--v3-ink-2); }

/* ─── S3, le produit ────────────────────────────────────────────────────── */

.v3-figures { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 32px; }

.v3-figure-body { padding: 0; background: var(--v3-bg); }
.v3-figure-body img { width: 100%; height: auto; }
.v3-figure .v3-doc-foot p { font-size: 13px; line-height: 19px; color: var(--v3-ink-2); }

/* Video walkthrough, repliee en details natif. */
.v3-video {
    border: 1px solid var(--v3-line);
    border-radius: 10px;
    background: var(--v3-surface);
}

.v3-video summary {
    display: flex; align-items: center; gap: 10px;
    padding: 18px 22px;
    font-size: 15px; line-height: 24px; font-weight: 600; color: var(--v3-ink);
    cursor: pointer; list-style: none;
    min-height: 44px;
}

.v3-video summary::-webkit-details-marker { display: none; }
.v3-video summary i { color: var(--v3-accent); font-size: 1.1em; }

.v3-video summary::after {
    content: "+";
    margin-left: auto;
    font-size: 20px; font-weight: 400; line-height: 1;
    color: var(--v3-ink-3);
    transition: transform 0.2s ease;
}

.v3-video[open] summary::after { transform: rotate(45deg); }
.v3-video summary:hover { color: var(--v3-accent); }

.v3-video-frame { padding: 0 22px 22px; }

.v3-video-frame video {
    width: 100%; height: auto;
    border-radius: 8px;
    background: var(--v3-code-bg);
}

.v3-video-transcript { margin-top: 12px; font-size: 13px; line-height: 19px; }

.v3-video-transcript a { color: var(--v3-accent); text-decoration: underline; text-underline-offset: 3px; }

/* ─── S4, livrables, file editoriale ────────────────────────────────────── */

.v3-deliv-grid { display: grid; gap: 32px; }
.v3-deliv { max-width: 72%; }
.v3-deliv.v3-doc--flip { margin-left: auto; }
.v3-deliv .v3-doc-body > p { font-size: 15px; line-height: 25px; color: var(--v3-ink-2); }

/* Mini apercu typographique des livrables (pas de fausse UI). */
.v3-deliv-visual {
    display: grid; gap: 8px;
    border: 1px solid var(--v3-line);
    border-radius: 8px;
    background: var(--v3-bg);
    padding: 18px 20px;
    margin-bottom: 20px;
}

.v3-deliv-file {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--v3-font-mono);
    font-size: 13px; line-height: 21px; color: var(--v3-ink);
    margin-bottom: 4px;
}

.v3-deliv-file i { color: var(--v3-accent); }

.v3-toc {
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.v3-toc li {
    position: relative;
    padding-left: 22px;
    font-size: 14px; line-height: 22px;
    color: var(--v3-ink-2);
}

.v3-toc li::before {
    content: '';
    position: absolute;
    left: 2px; top: 8px;
    width: 8px; height: 2px;
    background: var(--v3-accent);
}

/* ─── S5, suivi : encart comparaison ────────────────────────────────────── */

.v3-checklist {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 14px;
}

.v3-checklist li {
    position: relative;
    padding-left: 28px;
    font-size: 15px; line-height: 24px;
    color: var(--v3-ink);
}

.v3-checklist li::before {
    content: '';
    position: absolute;
    left: 0; top: 7px;
    width: 14px; height: 8px;
    border-left: 2px solid var(--v3-ok);
    border-bottom: 2px solid var(--v3-ok);
    transform: rotate(-45deg);
}

/* Encart honnetete. */
.v3-note {
    border: 1px solid var(--v3-line-strong);
    border-left: 2px solid var(--v3-ink-3);
    border-radius: 10px;
    background: var(--v3-surface);
    padding: 20px 22px;
    margin-bottom: 32px;
    font-size: 15px; line-height: 25px; color: var(--v3-ink-2);
}

.v3-landing .v3-note-title {
    font-size: 13px; line-height: 19px; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase; color: var(--v3-ink-3);
    margin-bottom: 6px;
}

/* Vitrines GEO. */
.v3-vitrine {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px 32px;
    border-top: 1px solid var(--v3-line);
    padding-top: 24px;
}

.v3-vitrine > div { max-width: 640px; }

.v3-vitrine-title {
    font-family: var(--v3-font-display);
    font-size: 17px; line-height: 26px; font-weight: 600; color: var(--v3-ink);
    margin-bottom: 4px;
}

.v3-vitrine p { font-size: 15px; line-height: 25px; color: var(--v3-ink-2); }

/* ─── S6, commencer ─────────────────────────────────────────────────────── */

.v3-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.v3-step { border-top: 1px solid var(--v3-line-strong); padding-top: 24px; }

.v3-step-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px;
    border-radius: 999px;
    border: 1px solid var(--v3-accent);
    color: var(--v3-accent);
    font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums;
    margin-bottom: 18px;
}

.v3-step h3 { margin-bottom: 8px; }
.v3-step p { font-size: 15px; line-height: 25px; color: var(--v3-ink-2); }

/* ─── S7, FAQ ───────────────────────────────────────────────────────────── */

#v3-faq h2 { margin-bottom: 28px; }
.v3-faq-list { display: grid; border-top: 1px solid var(--v3-line); }
.v3-faq { border-bottom: 1px solid var(--v3-line); }

.v3-faq summary {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px;
    padding: 22px 4px;
    font-family: var(--v3-font-display);
    font-size: 17px; line-height: 26px; font-weight: 600; color: var(--v3-ink);
    cursor: pointer; list-style: none;
    min-height: 44px;
    transition: color 0.2s ease;
}

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

.v3-faq summary::after {
    content: "+";
    flex-shrink: 0;
    font-size: 22px; font-weight: 400; line-height: 1;
    color: var(--v3-ink-3);
    transition: transform 0.2s ease;
}

.v3-faq[open] summary::after { transform: rotate(45deg); }
.v3-faq summary:hover { color: var(--v3-accent); }

.v3-faq-a { padding: 0 4px 18px; }

.v3-faq-a p { font-size: 15px; line-height: 24px; color: var(--v3-ink-2); max-width: 640px; }

/* ─── CTA final ─────────────────────────────────────────────────────────── */

/* Panneau encre: la seule section foncee de la page, conclusion nette.
   Le CTA violet y fait tache chromatique, jamais deux accents. */
.v3-final {
    border-top: 1px solid var(--v3-ink-panel);
    background: var(--v3-ink-panel);
    color: var(--v3-on-panel);
    padding: 72px 0;
}

.v3-final-inner { text-align: center; }
.v3-final h2 {
    max-width: 760px; margin-inline: auto; margin-bottom: 14px;
    color: var(--v3-on-panel);
}
.v3-final .v3-lede { margin-inline: auto; margin-bottom: 28px; color: var(--v3-on-panel-2); }
.v3-final .v3-hero-actions { justify-content: center; margin-bottom: 0; }

/* Lien secondaire du panneau: encre sur papier, retourne a l'accent au survol. */
.v3-final .v3-btn-secondary,
.v3-final .v3-btn-secondary:hover {
    color: var(--v3-on-panel) !important;
    text-decoration-color: var(--v3-on-panel-2);
}
.v3-final .v3-btn-secondary:hover { color: var(--v3-accent) !important; text-decoration-color: var(--v3-accent); }

/* En sombre le panneau seulement un cran au-dessus du fond: la hierarchie
   s'inverse proprement (bande au lieu de panneau flottant). */
body.dark-mode .v3-final { border-top-color: var(--v3-line-strong); }

/* ─── Responsive, 768px ─────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .v3-display { font-size: 34px; line-height: 42px; }
    .v3-landing h2 { font-size: 26px; line-height: 34px; }

    .v3-hero { padding: 48px 0; }

    .v3-hero-grid { grid-template-columns: 1fr; gap: 40px; }

    /* Ordre mobile: promesse, CTA pleine largeur, lien demo, preuve, doc. */
    .v3-hero-copy { order: 1; }
    .v3-doc--hero { order: 2; }

    .v3-hero-actions { flex-direction: column; align-items: stretch; }
    .v3-hero-actions .v3-btn { width: 100%; }

    .v3-hero-proof { flex-direction: column; gap: 8px; }
    .v3-hero-proof li + li::before { display: none; }

    .v3-section { padding: 48px 0; }
    .v3-sec-head { margin-bottom: 28px; }

    .v3-explorer-grid { grid-template-columns: 1fr; }
    .v3-figures { grid-template-columns: 1fr; }

    .v3-deliv, .v3-deliv.v3-doc--flip { max-width: 100%; margin-left: 0; }

    .v3-steps { grid-template-columns: 1fr; gap: 28px; }

    .v3-proofband-inner { flex-direction: column; align-items: flex-start; }
    .v3-proofband-stats { flex-direction: column; gap: 14px; }

    .v3-vitrine { flex-direction: column; align-items: flex-start; }
    .v3-vitrine .v3-btn { width: 100%; }

    .v3-sec-actions { flex-direction: column; align-items: stretch; }
    .v3-sec-actions .v3-btn { width: 100%; }
}

/* ─── Responsive, 480px (test mental a 360px: aucun debordement) ────────── */

@media (max-width: 480px) {
    .v3-wrap { padding-inline: 16px; }

    .v3-display { font-size: 30px; line-height: 38px; }
    .v3-landing h2 { font-size: 24px; line-height: 32px; }

    .v3-doc-head { flex-direction: column; gap: 4px; align-items: flex-start; }
    .v3-doc-meta { text-align: left; }

    .v3-score-value { font-size: 36px; line-height: 42px; }

    .v3-proofband-stats strong { font-size: 24px; line-height: 30px; }

    .v3-table th, .v3-table td { padding-right: 10px; }
    .v3-table tbody th { white-space: normal; }

    .v3-code { font-size: 12px; line-height: 19px; padding: 14px; }

    .v3-final { padding: 48px 0; }
}

/* ─── Dark mode, ajustements hors tokens ────────────────────────────────── */

body.dark-mode .v3-landing mark { background: rgba(167, 139, 250, .26); }
body.dark-mode .v3-landing .v3-mark-src { background: rgba(52, 211, 153, .20); }
body.dark-mode .v3-landing ::selection { background: rgba(167, 139, 250, .32); }

/* ─── prefers-reduced-motion ────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
    .v3-landing *,
    .v3-landing *::before,
    .v3-landing *::after {
        transition: none !important;
        animation: none !important;
        scroll-behavior: auto !important;
    }
}

/* ─── Mise en avant de l'export Markdown (seul livrable "à brancher") ───── */
.v3-deliv--md {
    border: 1px solid var(--v3-accent);
    box-shadow: 0 1px 2px rgba(26, 20, 8, .06), 0 12px 32px rgba(106, 52, 232, .14);
}

.v3-doc-badge {
    font-family: var(--v3-font-mono);
    font-size: 10px; line-height: 16px; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase;
    color: #fff;
    background: var(--v3-accent-deep);
    border-radius: 999px;
    padding: 3px 10px;
    white-space: nowrap;
}

body.dark-mode .v3-deliv--md {
    box-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px rgba(124, 58, 237, .22);
}

/* ─── Encarts réponse directe (AEO) ───────────────────────────────────── */
.v3-answers { padding-top: 32px; padding-bottom: 32px; }
.v3-answers-updated {
    font-family: var(--v3-font-mono);
    font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
    color: var(--v3-ink-3); margin-top: 8px;
}
.v3-answers-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}
.v3-answer {
    border: 1px solid var(--v3-line);
    border-radius: 10px;
    padding: 18px 18px 14px;
    background: var(--v3-paper, #fff);
}
.v3-answer-q {
    font-family: var(--v3-font-display, inherit);
    font-size: 16px; line-height: 22px; font-weight: 650;
    margin: 0 0 10px; color: var(--v3-ink);
}
.v3-answer-a {
    font-size: 14px; line-height: 22px; color: var(--v3-ink-2);
    margin: 0 0 12px;
}
.v3-answer-date {
    font-family: var(--v3-font-mono);
    font-size: 10px; letter-spacing: .06em; text-transform: uppercase;
    color: var(--v3-ink-3); margin: 0;
}
body.dark-mode .v3-answer { background: var(--v3-panel, #1c1a14); }

/* ─── Guides (maillage home → hubs) ───────────────────────────────────── */
.v3-guides-list {
    list-style: none; margin: 0; padding: 0;
    display: grid; gap: 10px;
}
.v3-guides-list a {
    display: block; padding: 14px 16px;
    border: 1px solid var(--v3-line); border-radius: 10px;
    color: var(--v3-ink); text-decoration: none;
    font-size: 15px; font-weight: 550;
}
.v3-guides-list a:hover {
    border-color: var(--v3-accent); color: var(--v3-accent);
}
