/* Vitrine — nouvelle direction artistique (18/09/2026). Chargée par src/layouts/Vitrine.astro. */

    :root {
      --navy: #0F1B36;
      --navy-line: #2A3B63;
      --sky: #3B82F6;
      --sky-soft: #93C5FD;
      --paper: #F6F7F9;
      --white: #FFFFFF;
      --ink: #0E1726;
      --ink-2: #3E4A5E;
      --rule: #D9DEE6;
      --display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
      --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
      --gutter: clamp(16px, 4vw, 56px);
      --max: 1240px;
    }
    * { box-sizing: border-box; margin: 0; padding: 0; }
    html { -webkit-text-size-adjust: 100%; }
    body {
      background: var(--white); color: var(--ink);
      font-family: var(--display); font-stretch: 100%; font-size: 17px; line-height: 1.6;
      -webkit-font-smoothing: antialiased;
    }
    a { color: inherit; }
    .wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
    .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
    :focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; }
    [dir="rtl"] { --display: 'Tajawal', 'Archivo', 'Helvetica Neue', Arial, sans-serif; }
    [dir="rtl"] body { line-height: 1.75; }
    /* L'arabe ne s'espace jamais (l'espacement casse les liaisons entre lettres) ; les
       libellés « machine à écrire » passent en Tajawal, les chiffres restent en Plex Mono. */
    [dir="rtl"] * { letter-spacing: 0 !important; }
    [dir="rtl"] { --mono: 'Tajawal', 'IBM Plex Mono', ui-monospace, monospace; }
    [dir="rtl"] .eyebrow, [dir="rtl"] .faits, [dir="rtl"] .acces .question, [dir="rtl"] .etape .quand { text-transform: none; font-size: 14px; }
    [dir="rtl"] .ltr, [dir="rtl"] #chrono, [dir="rtl"] .res, [dir="rtl"] [data-chrono] { font-family: 'IBM Plex Mono', ui-monospace, monospace; }
    /* Le plan est un dessin : ses textes (arabes compris) s'ancrent de gauche à droite. */
    .hero svg.plan { direction: ltr; }
    .ltr { direction: ltr; unicode-bidi: isolate; }

    .btn {
      display: inline-flex; align-items: center; gap: 10px;
      padding: 12px 18px; font: 600 14px/1 var(--display); letter-spacing: .01em;
      text-decoration: none; border: 1px solid transparent; cursor: pointer;
      transition: transform .15s ease, background .2s, color .2s, border-color .2s;
    }
    .btn:hover { transform: translateY(-1px); }
    .btn-sky { background: var(--sky); color: #fff; }
    .btn-sky:hover { background: #2563EB; }
    .btn-ligne { border-color: currentColor; }
    .btn-ligne:hover { background: rgba(255,255,255,.08); }
    .fleche { font-family: var(--mono); }

    /* ── Hero : le parcours ─────────────────────────────────────────── */
    .hero {
      position: relative; min-height: 100svh; overflow: hidden;
      background: radial-gradient(120% 90% at 78% 30%, #1A2C55 0%, var(--navy) 55%);
      color: #fff; display: flex; align-items: flex-end;
    }
    .hero svg.plan { position: absolute; inset: 0; width: 100%; height: 100%; }
    .hero .contenu { position: relative; z-index: 2; padding-bottom: clamp(56px, 10vh, 112px); width: 100%; }
    .eyebrow {
      font-family: var(--mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
      color: var(--sky-soft);
    }
    .hero h1 {
      margin-top: 18px; max-width: 13ch;
      font-weight: 700; font-stretch: 106%; letter-spacing: -.02em;
      font-size: clamp(44px, 7vw, 96px); line-height: 1.02; text-wrap: balance;
    }
    .hero h1 em { font-style: normal; color: var(--sky); }
    .hero .lede { margin-top: 26px; max-width: 46ch; color: #DCE3F0; font-size: 18px; }
    .hero .actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }

    /* Lecture en direct, posée sur le plan */
    .lecture {
      position: absolute; z-index: 2; right: calc(var(--gutter) + 4vw); bottom: clamp(56px, 10vh, 112px);
      width: 260px; padding: 16px 18px;
      background: rgba(10, 19, 40, .72); backdrop-filter: blur(8px);
      border: 1px solid var(--navy-line);
      font-family: var(--mono); font-size: 12px; color: #AFC0DE;
    }
    .lecture .ligne { display: flex; justify-content: space-between; gap: 12px; }
    .lecture .direct { color: #fff; display: inline-flex; align-items: center; gap: 8px; letter-spacing: .14em; }
    .lecture .direct::before { content: ""; width: 7px; height: 7px; background: #EF4444; animation: pulse 1.4s infinite; }
    @keyframes pulse { 50% { opacity: .25; } }
    .lecture .temps { margin-top: 12px; font-size: 40px; line-height: 1; color: #fff; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
    .lecture .temps small { font-size: 14px; color: #7F93B8; margin-inline-start: 6px; }
    .lecture .etat { margin-top: 10px; color: var(--sky-soft); min-height: 1.4em; }

    .faits {
      background: var(--navy); border-top: 1px solid var(--navy-line);
      font-family: var(--mono); font-size: 13px; letter-spacing: .06em; color: #A9B8D4;
    }
    .faits .wrap { display: flex; flex-wrap: wrap; gap: 10px 36px; padding-top: 18px; padding-bottom: 18px; }

    /* ── Sections claires ───────────────────────────────────────────── */
    section.claire { padding: clamp(88px, 14vh, 160px) 0; }
    .titre {
      font-weight: 700; font-stretch: 100%; letter-spacing: -.015em;
      font-size: clamp(32px, 4.2vw, 54px); line-height: 1.08; text-wrap: balance; max-width: 20ch;
    }
    .titre em { font-style: normal; color: var(--sky); }
    .intro { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; }
    .intro p { color: var(--ink-2); max-width: 44ch; justify-self: end; }

    /* Les quatre modules dans l'ordre réel d'un concours */
    .jour { margin-top: 72px; border-top: 1px solid var(--ink); }
    .etape {
      display: grid; grid-template-columns: 170px 1fr 1.25fr auto; gap: 32px; align-items: baseline;
      padding: 30px 0; border-bottom: 1px solid var(--rule);
      text-decoration: none; transition: background .2s, padding .2s;
    }
    .etape:hover { background: var(--paper); padding-inline: 16px; }
    .etape .quand { font-family: var(--mono); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
    .etape h3 { font-weight: 700; font-stretch: 100%; font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -.01em; line-height: 1.1; }
    .etape h3 span { color: var(--sky); }
    .etape p { color: var(--ink-2); max-width: 46ch; }
    .etape .aller { font-family: var(--mono); color: var(--ink-2); }
    .etape:hover .aller { color: var(--sky); }

    /* Split */
    .split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
    .split p { margin-top: 22px; color: var(--ink-2); max-width: 44ch; }
    .split ul { margin-top: 28px; list-style: none; border-top: 1px solid var(--rule); }
    .split li { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
    .split li .mono { color: var(--sky); font-size: 13px; padding-top: 3px; }
    .signal { aspect-ratio: 4 / 3; width: 100%; background: var(--paper); border: 1px solid var(--rule); display: block; }

    /* Le public suit */
    section.public { background: var(--paper); }
    .classement { background: var(--white); border: 1px solid var(--rule); font-size: 15px; }
    .classement header {
      display: flex; justify-content: space-between; align-items: center;
      padding: 16px 20px; background: var(--navy); color: #fff;
    }
    .classement header .mono { font-size: 12px; letter-spacing: .12em; color: var(--sky-soft); }
    .classement table { width: 100%; border-collapse: collapse; }
    .classement td { padding: 13px 20px; border-bottom: 1px solid var(--rule); }
    .classement td.rg { width: 44px; font-family: var(--mono); color: var(--ink-2); }
    .classement td.nom b { font-weight: 600; }
    .classement td.nom small { display: block; color: var(--ink-2); font-size: 13px; }
    .classement td.res { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
    .classement tr.piste td { background: #EFF5FF; }
    .classement tr.piste td.res { color: var(--sky); }

    /* ── Section flottante : les écrans du concours ──────────────── */
    section.ecrans { background: var(--navy); color: #fff; padding: clamp(96px, 14vh, 160px) 0 0; }
    .ecrans .entete { max-width: 30ch; }
    .ecrans .entete p { margin-top: 20px; color: #C9D3E6; max-width: 44ch; }
    .ecrans .grille { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 80px); margin-top: 40px; }
    .ecrans .etapes { padding-bottom: 20vh; }
    .ecrans .etape-ecran { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; opacity: .35; transition: opacity .4s; }
    .ecrans .etape-ecran.active { opacity: 1; }
    .ecrans .etape-ecran .quand { font-family: var(--mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--sky-soft); }
    .ecrans .etape-ecran h3 { margin-top: 12px; font-weight: 700; font-size: clamp(26px, 2.8vw, 38px); line-height: 1.1; letter-spacing: -.01em; }
    .ecrans .etape-ecran p { margin-top: 14px; color: #C9D3E6; max-width: 40ch; }
    .ecrans .scene { position: sticky; top: calc(50vh - min(19vw, 250px)); height: fit-content; }
    .ecrans .cadre {
      position: relative; aspect-ratio: 16 / 10; background: #05070D;
      border: 1px solid #2A3B63; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6);
      overflow: hidden;
    }
    .ecrans .vue { position: absolute; inset: 0; opacity: 0; transform: scale(1.02); transition: opacity .5s ease, transform .6s ease; }
    .ecrans .vue.active { opacity: 1; transform: none; }
    .ecrans .legende { margin-top: 14px; font-family: var(--mono); font-size: 12px; color: #8FA2C6; letter-spacing: .06em; }
    .ecrans .mobile-vue { display: none; }

    /* Vue 1 : écran de piste */
    .v-piste { background: radial-gradient(#141a2a 1px, transparent 1.2px) 0 0 / 6px 6px, #05070D; color: #fff; display: grid; grid-template-rows: auto 1fr auto; padding: 4% 5%; font-family: var(--mono); }
    .v-piste .haut { display: flex; justify-content: space-between; font-size: clamp(10px, 1.1vw, 14px); color: #9FB1D3; letter-spacing: .08em; }
    .v-piste .centre { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4%; }
    .v-piste .couple b { display: block; font-family: var(--display); font-size: clamp(16px, 2.6vw, 34px); font-weight: 700; color: #fff; }
    .v-piste .couple span { font-size: clamp(11px, 1.3vw, 17px); color: #9FB1D3; }
    .v-piste .grand { font-size: clamp(34px, 7.2vw, 96px); line-height: 1; color: #FBBF24; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
    .v-piste .bas { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #1F2A44; padding-top: 3%; font-size: clamp(10px, 1.2vw, 15px); color: #9FB1D3; }
    .v-piste .bas b { display: block; color: #fff; font-size: clamp(14px, 2vw, 26px); font-weight: 500; }

    /* Vue 1 : l'écran de piste réel (MockArene, composé à 520 × 325 puis mis à l'échelle) */
    .v-piste.reel { padding: 0; background: #0B1428; display: block; }
    .echelle-arene { position: absolute; top: 0; left: 0; width: 520px; transform-origin: 0 0; }
    [dir="rtl"] .echelle-arene { left: auto; right: 0; transform-origin: 100% 0; }

    /* Vues 2 et 3 : les habillages vidéo de Pro, reproduits (thème « equidesk ») */
    .v-image {
      background:
        linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.4) 100%),
        linear-gradient(180deg, #5A7A94 0%, #8FA9B8 34%, #6F8B5B 35%, #7C8F57 48%, #C8A77A 49%, #B8925F 100%);
    }
    .v-image .obst { position: absolute; left: 40%; top: 44%; width: 20%; height: 10%; border-top: 4px solid #F8FAFC; border-bottom: 4px solid #EF4444; opacity: .9; }
    .v-image .obst::before, .v-image .obst::after { content: ""; position: absolute; top: -30%; width: 5px; height: 170%; background: #E5E7EB; }
    .v-image .obst::before { left: -4px; } .v-image .obst::after { right: -4px; }
    .ov { --accent: #E0A800; --panel: rgba(15,27,54,.96); --sombre: #0b142b; --sub: #b9c6e0; --sub2: #8fa1c0; --sub3: #6f82a6; --chrono: #fbbf24; --rang: #9aa7c2;
          position: absolute; font-family: -apple-system, 'Segoe UI', Roboto, sans-serif; font-variant-numeric: tabular-nums; color: #fff; direction: ltr; }
    .ov-lt { left: 4%; bottom: 7%; display: flex; border-radius: 1.2cqw; overflow: hidden; box-shadow: 0 1cqw 4cqw rgba(0,0,0,.45); }
    .ov-lt .bib { background: var(--accent); font-weight: 800; font-size: 3cqw; display: flex; align-items: center; justify-content: center; padding: 0 2.2cqw; min-width: 9cqw; }
    .ov-lt .mid { background: var(--panel); padding: 1.4cqw 2.6cqw 1.4cqw 2.2cqw; min-width: 26cqw; }
    .ov-lt .horse { font-size: 2.6cqw; font-weight: 800; text-transform: uppercase; line-height: 1.05; }
    .ov-lt .rider { font-size: 1.5cqw; color: var(--sub); margin-top: .3cqw; }
    .ov-lt .time { background: var(--sombre); display: flex; flex-direction: column; align-items: flex-end; justify-content: center; padding: 0 2.6cqw; border-left: 1px solid rgba(255,255,255,.12); }
    .ov-lt .lbl { font-size: 1cqw; letter-spacing: .14em; text-transform: uppercase; color: var(--sub2); }
    .ov-lt .val { font-size: 3.6cqw; font-weight: 800; font-family: ui-monospace, Menlo, Consolas, monospace; color: var(--chrono); }
    .ov-sb { top: 5%; left: 50%; transform: translateX(-50%); display: flex; border-radius: 1.2cqw; overflow: hidden; box-shadow: 0 1cqw 4cqw rgba(0,0,0,.45); }
    .ov-sb .cell { padding: 1cqw 2.2cqw; display: flex; flex-direction: column; align-items: center; min-width: 13cqw; }
    .ov-sb .lbl { font-size: 1cqw; letter-spacing: .14em; text-transform: uppercase; }
    .ov-sb .val { font-size: 3cqw; font-weight: 800; font-family: ui-monospace, Menlo, Consolas, monospace; margin-top: .2cqw; }
    .ov-sb .live { background: var(--panel); } .ov-sb .live .lbl { color: var(--sub2); } .ov-sb .live .val { color: var(--chrono); }
    .ov-sb .beat { background: var(--sombre); border-left: 1px solid rgba(255,255,255,.12); } .ov-sb .beat .lbl { color: var(--sub3); }
    .ov-sb .leader { font-size: 1.1cqw; color: var(--sub); margin-top: .4cqw; text-transform: uppercase; }
    .ov-lb { right: 4%; top: 6%; width: 42cqw; border-radius: 1.2cqw; overflow: hidden; box-shadow: 0 1.2cqw 4.4cqw rgba(0,0,0,.45); }
    .ov-lb .hd { background: var(--accent); padding: 1.2cqw 1.8cqw; display: flex; justify-content: space-between; align-items: center; }
    .ov-lb .ttl { font-size: 1.6cqw; font-weight: 800; text-transform: uppercase; }
    .ov-lb .sub { font-size: 1.1cqw; color: rgba(255,255,255,.82); }
    .ov-lb .rows { background: var(--panel); }
    .ov-lb .row { display: grid; grid-template-columns: 4.4cqw 1fr 5.8cqw 7.8cqw; align-items: center; padding: .9cqw 1.6cqw; border-top: 1px solid rgba(255,255,255,.06); }
    .ov-lb .row:first-child { border-top: 0; }
    .ov-lb .row.p1 { background: rgba(224,168,0,.16); }
    .ov-lb .rk { font-size: 1.8cqw; font-weight: 800; color: var(--rang); }
    .ov-lb .row.p1 .rk { color: var(--accent); }
    .ov-lb .h { display: block; font-size: 1.5cqw; font-weight: 700; text-transform: uppercase; line-height: 1.1; }
    .ov-lb .a { display: block; font-size: 1.2cqw; color: var(--sub); }
    .ov-lb .ft { text-align: center; font-size: 1.5cqw; font-weight: 700; }
    .ov-lb .tm { text-align: right; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.5cqw; }
    .ov-lb .ft-bar { background: var(--sombre); color: var(--sub3); font-size: 1cqw; letter-spacing: .12em; text-transform: uppercase; text-align: center; padding: .7cqw; }
    .ecrans .cadre, .ecrans .mobile-vue { container-type: inline-size; }

    /* ── Accès directs : résultats et engagement ─────────────────── */
    section.acces { border-bottom: 1px solid var(--rule); }
    /* En tête de page : dégager la barre flottante. */
    section.acces--haut { padding-top: 84px; }
    /* L'en-tête tient dans le premier écran avec la bande au-dessus. */
    .acces--haut + .hero { min-height: max(620px, calc(100svh - var(--haut-acces, 150px))); }
    .acces .wrap { display: grid; grid-template-columns: auto 1fr 1fr; align-items: stretch; }
    .acces .question { padding: 28px 32px 28px 0; padding-inline: 0 32px; font: 500 13px/1.4 var(--mono); color: var(--ink-2); text-transform: uppercase; letter-spacing: .08em; align-self: center; max-width: 18ch; }
    .acces a.tuile { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 28px 32px; text-decoration: none; border-inline-start: 1px solid var(--rule); transition: background .2s; }
    .acces a.tuile:hover { background: var(--paper); }
    .acces .tuile b { font-size: 22px; font-weight: 700; line-height: 1.2; }
    .acces .tuile span { grid-column: 1; color: var(--ink-2); font-size: 15px; }
    .acces .tuile .aller { grid-column: 2; grid-row: 1 / span 3; align-self: center; width: 44px; height: 44px; display: grid; place-items: center; background: var(--sky); color: #fff; font-family: var(--mono); font-size: 18px; transition: transform .2s; }
    [dir="rtl"] .acces .tuile .aller { transform: scaleX(-1); }
    .acces a.tuile:hover .aller { transform: translateX(3px); }
    [dir="rtl"] .acces a.tuile:hover .aller { transform: scaleX(-1) translateX(3px); }
    .acces .tuile .lien { grid-column: 1; margin-top: 6px; color: var(--sky); font-weight: 600; font-size: 14px; }
    .acces .tuile .point { display: inline-block; width: 8px; height: 8px; background: #EF4444; margin-inline-end: 8px; animation: pulse 1.4s infinite; vertical-align: middle; }

    /* ── Accréditation : badge + contrôle à l'entrée ─────────────── */
    section.accred { padding: clamp(96px, 14vh, 160px) 0; }
    .accred .scene-badge { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; align-items: stretch; }
    .badge {
      background: #fff; border: 1px solid var(--rule); box-shadow: 0 30px 60px -30px rgba(15,27,54,.35);
      display: flex; flex-direction: column; transition: opacity .35s ease, transform .35s ease;
    }
    .badge.change { opacity: 0; transform: translateY(8px); }
    .badge .bande { padding: 10px 14px; color: #fff; font: 700 13px/1.2 var(--display); letter-spacing: .08em; text-transform: uppercase; display: flex; justify-content: space-between; }
    .badge .bande span:last-child { font-family: var(--mono); font-weight: 500; }
    .badge .corps { padding: 16px 14px 10px; }
    .badge .evt { font: 500 11px/1.3 var(--mono); color: var(--ink-2); letter-spacing: .06em; }
    .badge .nom { margin-top: 10px; font-weight: 700; font-size: 20px; line-height: 1.15; }
    .badge .fonction { color: var(--ink-2); font-size: 14px; }
    .badge .nation { margin-top: 8px; font: 600 13px var(--mono); }
    .badge .zones { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-top: 16px; }
    .badge .z { aspect-ratio: 1; display: grid; place-items: center; font: 700 13px var(--display); border: 1.5px solid; }
    .badge .z.non { color: #C3CCDA; border-color: #E3E8F0; background: #fff; }
    .badge .pied { margin-top: auto; display: flex; justify-content: space-between; align-items: end; padding: 10px 14px 14px; }
    .badge .num { font: 500 12px var(--mono); color: var(--ink-2); }
    .badge svg.qr { width: 64px; height: 64px; }

    .poste { background: var(--navy); color: #fff; display: flex; flex-direction: column; font-family: var(--mono); }
    .poste .tete { padding: 12px 14px; border-bottom: 1px solid var(--navy-line); font-size: 12px; letter-spacing: .1em; color: #AFC0DE; display: flex; justify-content: space-between; }
    .poste .viseur { position: relative; margin: 18px; flex: 1; min-height: 150px; border: 1px dashed #3A4D7A; display: grid; place-items: center; overflow: hidden; }
    .poste .viseur::before, .poste .viseur::after { content: ""; position: absolute; width: 22px; height: 22px; border: 2px solid var(--sky); }
    .poste .viseur::before { top: 8px; left: 8px; border-right: 0; border-bottom: 0; }
    .poste .viseur::after { bottom: 8px; right: 8px; border-left: 0; border-top: 0; }
    .poste .rayon { position: absolute; left: 10%; right: 10%; height: 2px; background: var(--sky); box-shadow: 0 0 12px var(--sky); top: 20%; animation: balayage 1.6s ease-in-out infinite alternate; }
    @keyframes balayage { to { top: 80%; } }
    .poste .viseur .qui { font-size: 13px; color: #C9D3E6; text-align: center; padding: 0 12px; }
    .poste .verdict { margin: 0 18px 18px; padding: 14px; font: 700 15px/1.3 var(--display); letter-spacing: .02em; text-align: center; transition: background .3s; }
    .poste .verdict small { display: block; font: 400 12px/1.4 var(--mono); opacity: .9; margin-top: 4px; }
    .poste .verdict.ok { background: #15803D; }
    .poste .verdict.non { background: #B91C1C; }
    .poste .verdict.attente { background: #1B2A4E; color: #AFC0DE; }

    /* ── Bandeau international ─────────────────────────────────────── */
    section.international { background: var(--paper); padding: clamp(80px, 12vh, 140px) 0; }
    .international .faits-grands { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
    .international .fait { padding-block: 28px 8px; padding-inline-end: 28px; }
    .international .fait + .fait { padding-inline-start: 28px; border-inline-start: 1px solid var(--rule); }
    .international .fait b { display: block; font-weight: 700; font-size: clamp(30px, 3.4vw, 46px); letter-spacing: -.02em; line-height: 1.05; }
    .international .fait b em { font-style: normal; color: var(--sky); }
    .international .fait p { margin-top: 10px; color: var(--ink-2); max-width: 30ch; }

    /* Appel final */
    .final .eyebrow { color: var(--sky); }
    .final .titre { margin-top: 18px; }
    .final .actions { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; }
    .final .btn-ligne { color: var(--ink); }
    .final .btn-ligne:hover { background: var(--paper); }


    /* Apparition au défilement (le contenu reste visible sans JavaScript) */
    .js .apparait { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
    .js .apparait.vu { opacity: 1; transform: none; }

    @media (max-width: 900px) {
      .acces .wrap { grid-template-columns: 1fr; }
      .acces .question { padding: 24px 0 8px; max-width: none; }
      .acces a.tuile { border-inline-start: 0; border-top: 1px solid var(--rule); padding: 22px 0; }
      .lecture { position: relative; right: auto; bottom: auto; margin: calc(6svh + 63vw + 40px) var(--gutter) 28px; width: auto; } /* recalculée par le script */
      .hero { flex-direction: column; justify-content: flex-end; align-items: stretch; }
      .intro, .split { grid-template-columns: 1fr; }
      .intro p { justify-self: start; }
      .etape { grid-template-columns: 1fr; gap: 8px; }
      .etape .aller { display: none; }
      .ecrans .grille { grid-template-columns: 1fr; }
      .ecrans .scene { display: none; }
      .ecrans .etape-ecran { min-height: 0; opacity: 1; padding: 28px 0; }
      .ecrans .mobile-vue { display: block; position: relative; aspect-ratio: 16 / 10; margin-top: 18px; border: 1px solid #2A3B63; overflow: hidden; }
      .ecrans .mobile-vue .vue { opacity: 1; transform: none; }
      .international .faits-grands { grid-template-columns: 1fr; }
      .accred .scene-badge { grid-template-columns: 1fr; }
      .international .fait + .fait { padding-inline-start: 0; border-inline-start: 0; border-top: 1px solid var(--rule); }
    }
    @media (prefers-reduced-motion: reduce) {
      .js .apparait { opacity: 1; transform: none; transition: none; }
      .btn { transition: none; }
      .lecture .direct::before { animation: none; }
      .acces .tuile .point { animation: none; }
      .poste .rayon { animation: none; top: 50%; }
    }
  