/* Le site de namico.fr (templates/site/, apprentissage/site.py).
   Même direction artistique que l'appli : un plan de métro gravé sur papier ivoire, encre bleu nuit, filets d'or,
   cachet de cire. L'idée de la page d'accueil : elle est elle-même une ligne. Un trajet fixe suit le défilement, le
   médaillon de Nami y glisse de station en station, et le visiteur finit avec un billet composté.
   Mouvement lent et précis, jamais de rebond ; tout s'arrête sous prefers-reduced-motion. */
:root {
  color-scheme: light;
  --paper: #F2ECE1; --paper-2: #E8E0D1; --paper-3: #FBF8F2;
  --ink: #15192B; --ink-2: #4A4E5E; --ink-3: #6F7280; --hair: rgba(21, 25, 43, .14);
  --gold: #A9824A; --gold-hi: #E2C88F; --gold-lo: #7C5A28; --wax: #8C1C22; --river: #CDD8D9;
  --l1: #1F7A63; --l2: #4F3F96; --l3: #B27A1C; --l4: #B8402E; --l5: #5E7340;
  --ok: #1F7A63; --ko: #A8322B;
  --nuit: #15192B; --nuit-2: #1F2439; --sur-nuit: #FBF8F2; --sur-nuit-2: #C6C2B9; --planche: #FAF7F0;
  --serif: "Bodoni Moda", "Shippori Mincho", "Amiri", Didot, "Bodoni 72", "Times New Roman", serif;
  --sans: "Jost", "Zen Kaku Gothic New", "Noto Kufi Arabic", Futura, "Century Gothic", system-ui, sans-serif;
  --anglais: "Newsreader", Georgia, serif;
  --lux: cubic-bezier(.19, 1, .22, 1); --silk: cubic-bezier(.77, 0, .175, 1);
  --marge: clamp(20px, 5vw, 72px); --rail: 0px; --large: 1180px;
  --foil: linear-gradient(115deg, #7C5A28 0%, #B8925A 22%, #F1DCAA 40%, #B8925A 55%, #8E6A35 75%, #D9BC82 100%);
}
html[data-theme="sombre"] {
  color-scheme: dark;
  --paper: #15192B; --paper-2: #0E111E; --paper-3: #1F2439;
  --ink: #F2ECE1; --ink-2: #C6C2B9; --ink-3: #9F9D99; --hair: rgba(242, 236, 225, .16);
  --gold: #C9A467; --gold-hi: #EBD5A3; --gold-lo: #DFC48C; --wax: #E8777A; --river: #1C2B3D;
  --l1: #45B899; --l2: #A497F0; --l3: #E3AE4A; --l4: #EC7A64; --l5: #A9C27D; --ok: #56C7A4; --ko: #F28A7C;
  --nuit: #0C0F1B; --nuit-2: #161A2C; --planche: #EAE3D5;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; overflow-x: clip; }
/* Le japonais se coupe entre deux groupes de mots, pas au milieu d'un mot. */
html[lang="ja"] :is(h1, h2, h3, .depart-devise, .chapeau) { word-break: auto-phrase; }
html[lang="ja"] .depart-devise { max-width: 17em; } html[lang="ja"] .plaque h2 { max-width: 15em; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.55;
  font-optical-sizing: auto; -webkit-font-smoothing: antialiased; overflow-x: clip; }
/* Le grain du papier : une trame fixe très légère. */
body::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(21, 25, 43, .045) 1px, transparent 1.2px); background-size: 5px 5px; }
html[data-theme="sombre"] body::before { background-image: radial-gradient(rgba(242, 236, 225, .035) 1px, transparent 1.2px); }
main, .pied, .entete { position: relative; z-index: 1; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--gold-lo); outline-offset: 3px; }
.evitement { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 50; padding: 10px 16px; background: var(--ink); color: var(--paper-3); }
.evitement:focus { top: 12px; }
.t1 { --teinte: var(--l1); } .t2 { --teinte: var(--l2); } .t3 { --teinte: var(--l3); } .t4 { --teinte: var(--l4); } .t5 { --teinte: var(--l5); }

/* ---------------- Boutons et liens ---------------- */
.bouton { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border: 0; cursor: pointer;
  font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; text-align: center;
  transition: background var(--lux) .3s, color var(--lux) .3s, box-shadow var(--lux) .3s; }
.bouton-encre { background: var(--ink); color: var(--paper-3); box-shadow: inset 0 0 0 1px rgba(226, 200, 143, .32), inset 0 0 0 4px var(--ink), inset 0 0 0 5px rgba(226, 200, 143, .18); }
.bouton-encre:hover { box-shadow: inset 0 0 0 1px rgba(226, 200, 143, .7), inset 0 0 0 4px var(--ink), inset 0 0 0 5px rgba(226, 200, 143, .45); }
.bouton-ligne { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.bouton-ligne:hover { background: var(--ink); color: var(--paper-3); }
.bouton-papier { background: #FBF8F2; color: #15192B; box-shadow: inset 0 0 0 1px rgba(169, 130, 74, .6), inset 0 0 0 4px #FBF8F2, inset 0 0 0 5px rgba(169, 130, 74, .35); }
.bouton-papier:hover { background: #fff; }
.bouton-grand { min-height: 58px; padding: 0 34px; font-size: 14px; }
html[lang="ja"] .bouton, html[lang="ar"] .bouton { letter-spacing: .04em; font-size: 15px; }
.lien-fil { background: none; border: 0; padding: 4px 0; cursor: pointer; font: inherit; font-size: 15.5px; color: var(--ink); text-decoration: none;
  background-image: linear-gradient(var(--gold), var(--gold)); background-size: 100% 1px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size var(--lux) .5s; }
.lien-fil:hover { background-size: 100% 3px; }

/* ---------------- En-tête ---------------- */
.entete { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 28px; padding: 12px var(--marge);
  background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .4s; }
.entete.pose { border-bottom-color: var(--hair); }
.logo { height: .78em; width: auto; flex: none; }
.marque { display: inline-flex; align-items: center; gap: .32em; font-family: var(--serif); font-weight: 600; font-size: 28px; letter-spacing: -.012em; text-decoration: none; margin-inline-end: auto; }
.menu { display: flex; align-items: center; gap: 26px; }
.menu a { font-size: 15px; text-decoration: none; color: var(--ink-2); padding: 6px 0; border-bottom: 1px solid transparent; transition: color .3s, border-color .3s; }
.menu a:hover, .menu a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--gold); }
.entete-entrer { min-height: 42px; padding: 0 20px; font-size: 12px; }
.menu-bouton { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; color: var(--ink); }
.menu-bouton i { position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor; transition: transform var(--lux) .5s, top var(--lux) .5s; }
.menu-bouton i:first-child { top: 17px; } .menu-bouton i:last-child { top: 26px; }
.menu-bouton[aria-expanded="true"] i:first-child { top: 21.500px; transform: rotate(45deg); }
.menu-bouton[aria-expanded="true"] i:last-child { top: 21.500px; transform: rotate(-45deg); }

/* ---------------- Le trajet : la ligne qui suit la page ---------------- */
.trajet { position: fixed; z-index: 20; inset-inline-start: 22px; top: 50%; height: min(62vh, 500px); translate: 0 -50%; padding: 14px 14px 14px 12px;
  --p: 0; display: none; }
.trajet::before { content: ""; position: absolute; inset: -14px -6px -14px -10px; z-index: -1; border-radius: 22px; background: color-mix(in srgb, var(--paper) 90%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 0 0 1px var(--hair); opacity: 0; transition: opacity .5s; }
.trajet.actif::before { opacity: 1; }
.trajet ol { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: space-between; }
.trajet li { position: relative; height: 0; display: flex; align-items: center; }
.trajet a { display: flex; align-items: center; gap: 20px; text-decoration: none; font-size: 12.5px; color: var(--ink-3); white-space: nowrap; transition: color .4s; }
.trajet a::before { content: ""; width: 11px; height: 11px; flex: none; border-radius: 50%; background: var(--paper-3); box-shadow: 0 0 0 1.5px var(--ink-3); transition: background .4s, box-shadow .4s; }
.trajet li.passe a::before { background: var(--gold); box-shadow: 0 0 0 1.5px var(--gold-lo); }
.trajet li.ici a { color: var(--ink); font-weight: 500; }
.trajet li.ici a::before { background: var(--ink); box-shadow: 0 0 0 1.5px var(--ink), 0 0 0 5px color-mix(in srgb, var(--gold) 35%, transparent); }
.trajet a span { opacity: 0; translate: -6px 0; transition: opacity .4s, translate var(--lux) .5s; }
.trajet:hover a span, .trajet:focus-within a span, .trajet li.ici a span { opacity: 1; translate: 0 0; }
.trajet-voie { position: absolute; inset-inline-start: 17px; top: 14px; bottom: 14px; width: 1.5px; background: var(--hair); }
.trajet-voie i { position: absolute; inset: 0; background: var(--gold); transform-origin: top; transform: scaleY(var(--p)); }
.trajet-jeton { position: absolute; inset-inline-start: 4px; top: calc(14px + (100% - 28px) * var(--p)); width: 27px; height: 27px; translate: 0 -50%; border-radius: 50%; overflow: hidden;
  background: var(--paper-3); box-shadow: 0 0 0 1.5px var(--gold), 0 0 0 4px var(--paper-3), 0 8px 18px -8px rgba(21, 25, 43, .5); pointer-events: none; }
.trajet-jeton img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 1180px) {
  .trajet { display: block; }
  .page-accueil { --rail: 120px; }
}

/* ---------------- Les stations de l'accueil ---------------- */
.station { padding: clamp(72px, 11vw, 150px) var(--marge); padding-inline-start: calc(var(--marge) + var(--rail)); max-width: calc(var(--large) + var(--rail) + 2 * var(--marge)); margin-inline: auto; }
.plaque { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: clamp(14px, 2.4vw, 34px); margin-bottom: clamp(26px, 4vw, 52px); }
.plaque-rang { font-family: var(--serif); font-weight: 500; font-size: clamp(54px, 8.5vw, 124px); line-height: .78; font-variant-numeric: lining-nums; color: transparent; -webkit-text-stroke: 1px var(--gold); }
.plaque h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(31px, 4.7vw, 64px); line-height: 1.04; letter-spacing: -.012em; text-wrap: balance; max-width: 17ch; padding-top: .06em; }
.plaque::after { content: ""; grid-column: 1 / -1; height: 4px; border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold); transform-origin: left; transform: scaleX(0); transition: transform 1.4s var(--lux); }
html[dir="rtl"] .plaque::after { transform-origin: right; }
.station.vue .plaque::after { transform: scaleX(1); }
.chapeau { font-size: clamp(18.500px, 1.75vw, 22px); line-height: 1.5; color: var(--ink-2); max-width: 58ch; text-wrap: pretty; }
.petit { font-size: 14.5px; line-height: 1.5; color: var(--ink-3); max-width: 60ch; }
.plan-suite { margin-top: 30px; }

/* Départ */
.depart { position: relative; min-height: calc(100svh - 68px); display: grid; align-items: end; padding-block: clamp(30px, 6vw, 70px); overflow: hidden; max-width: none; }
.depart-plan { position: absolute; inset: 0; width: 100%; height: 100%; -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, .05) 0, rgba(0, 0, 0, .13) 40%, #000 68%); mask-image: linear-gradient(90deg, rgba(0, 0, 0, .05) 0, rgba(0, 0, 0, .13) 40%, #000 68%); }
html[dir="rtl"] .depart-plan { -webkit-mask-image: linear-gradient(270deg, rgba(0, 0, 0, .05) 0, rgba(0, 0, 0, .13) 40%, #000 68%); mask-image: linear-gradient(270deg, rgba(0, 0, 0, .05) 0, rgba(0, 0, 0, .13) 40%, #000 68%); }
.depart-plan path { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.depart-plan .fleuve { stroke: var(--river); stroke-width: 54; opacity: .75; }
.depart-plan .ligne { stroke-width: 9; }
.depart-plan .l1 { stroke: var(--l1); } .depart-plan .l2 { stroke: var(--l2); } .depart-plan .l3 { stroke: var(--l3); } .depart-plan .l4 { stroke: var(--l4); } .depart-plan .l5 { stroke: var(--l5); }
.depart-plan .arrets circle { fill: var(--paper-3); stroke: var(--ink); stroke-width: 3; opacity: 0; }
.depart-plan .arrets .noeud { stroke-width: 4; }
.depart-plan .noms text { direction: ltr; unicode-bidi: isolate; font-family: var(--sans); font-size: 15px; letter-spacing: .04em; fill: var(--ink-2); opacity: 0; }
.depart.part .depart-plan path { animation: tracer 2.2s var(--silk) forwards; }
.depart.part .depart-plan .fleuve { animation-duration: 2.8s; }
.depart.part .depart-plan .l2 { animation-delay: .18s; } .depart.part .depart-plan .l3 { animation-delay: .36s; } .depart.part .depart-plan .l4 { animation-delay: .54s; } .depart.part .depart-plan .l5 { animation-delay: .72s; }
.depart.part .depart-plan .arrets circle, .depart.part .depart-plan .noms text { animation: paraitre .9s var(--lux) 1.9s forwards; }
@keyframes tracer { to { stroke-dashoffset: 0; } }
@keyframes paraitre { to { opacity: 1; } }
.depart-texte { position: relative; max-width: 760px; }
.titre-geant, .compteurs dd, .terminus-annonce, .tete-page h1, .ticket-prix b, .oral-note b { font-optical-sizing: none; font-variation-settings: "opsz" 22; }
.plaque h2, .depart-devise, .niveau-tete h2, .principe h2, .bloc > h2 { font-optical-sizing: none; font-variation-settings: "opsz" 30; }
.titre-geant { font-family: var(--serif); font-weight: 600; font-size: clamp(84px, 18.500vw, 268px); line-height: .82; letter-spacing: -.035em; margin-inline-start: -.045em; display: flex; }
html[dir="rtl"] .titre-geant { direction: ltr; justify-content: flex-end; }
.titre-geant span { display: inline-block; opacity: 0; translate: 0 .18em; }
.depart.part .titre-geant span { animation: lever 1.3s var(--lux) calc(.25s + var(--i) * 70ms) forwards; }
@keyframes lever { to { opacity: 1; translate: 0 0; } }
.depart-devise { margin-top: clamp(18px, 2.6vw, 34px); font-family: var(--serif); font-weight: 500; font-size: clamp(23px, 2.9vw, 38px); line-height: 1.16; text-wrap: balance; max-width: 21ch; }
.depart-sous { margin-top: 16px; font-size: clamp(17px, 1.5vw, 19.500px); color: var(--ink-2); max-width: 48ch; }
.depart-actions { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.depart-note { margin-top: 16px; font-size: 14px; color: var(--ink-3); }
.depart-devise, .depart-sous, .depart-actions, .depart-note { opacity: 0; }
.depart.part :is(.depart-devise, .depart-sous, .depart-actions, .depart-note) { animation: paraitre 1.2s var(--lux) 1s forwards; }
.depart-suite { position: absolute; inset-inline-end: var(--marge); bottom: 30px; width: 44px; height: 64px; display: grid; place-items: center; }
.depart-suite i { width: 1px; height: 46px; background: var(--ink); transform-origin: top; animation: sonder 2.6s var(--silk) infinite; }
@keyframes sonder { 0% { transform: scaleY(0); } 45% { transform: scaleY(1); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* Le plan : compteurs et lignes qui défilent */
.plan { max-width: none; }
.plan > .plaque, .plan-texte, .plan-suite { max-width: var(--large); margin-inline: auto; }
.plan > .plaque { margin-bottom: clamp(26px, 4vw, 52px); }
.compteurs { display: flex; flex-wrap: wrap; gap: 26px clamp(28px, 5vw, 70px); margin-top: clamp(30px, 4vw, 54px); }
.compteurs div { display: flex; flex-direction: column-reverse; }
.compteurs dd { font-family: var(--serif); font-weight: 500; font-size: clamp(46px, 6.4vw, 92px); line-height: .9; font-variant-numeric: lining-nums tabular-nums; letter-spacing: -.02em; }
.compteurs dt { margin-top: 8px; font-size: 14.5px; color: var(--ink-2); }
.defile { margin-top: clamp(34px, 5vw, 70px); margin-inline: calc(-1 * var(--marge)); margin-inline-start: calc(-1 * var(--marge) - var(--rail)); }
.defile-cadre { overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
.defile-cadre::-webkit-scrollbar { display: none; }
.defile-piste { display: flex; gap: clamp(30px, 5vw, 80px); width: max-content; padding: 10px var(--marge) 20px calc(var(--marge) + var(--rail)); will-change: transform; }
.defile-niveau { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 40px); scroll-snap-align: start; }
.defile-code { font-family: var(--serif); font-weight: 500; font-size: clamp(110px, 17vw, 250px); line-height: .8; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1.5px var(--gold); font-variant-numeric: lining-nums; }
.defile-niveau ul { display: grid; grid-auto-flow: column; grid-template-rows: repeat(4, auto); gap: 10px; }
.defile-niveau li, .themes li { display: grid; gap: 1px; min-width: 216px; padding: 11px 16px 12px 18px; background: var(--paper-3); box-shadow: inset 0 0 0 1px var(--hair); border-inline-start: 5px solid var(--teinte); }
.defile-niveau b, .themes b { font-family: var(--anglais); font-weight: 500; font-size: 19px; line-height: 1.2; }
.defile-niveau span, .themes span { font-size: 13.5px; color: var(--ink-2); }
/* Sur grand écran, le défilement vertical fait passer les lignes à l'horizontale (site.js pose --x). */
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .defile.epingle { height: 260vh; }
  .defile.epingle .defile-cadre { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; align-items: center; }
  .defile.epingle .defile-piste { transform: translate3d(calc(var(--x, 0) * -1px), 0, 0); }
  html[dir="rtl"] .defile.epingle .defile-piste { transform: translate3d(calc(var(--x, 0) * -1px), 0, 0); }
}

/* Une leçon : les six gestes et le téléphone */
.lecon-colonnes { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(34px, 6vw, 90px); align-items: start; }
.gestes { margin-top: 30px; display: grid; gap: 0; counter-reset: geste; max-width: 560px; }
.gestes li { counter-increment: geste; display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; padding: 14px 0; border-top: 1px solid var(--hair); }
.gestes li::before { content: counter(geste); grid-row: span 2; font-family: var(--serif); font-size: 30px; line-height: 1; color: var(--gold-lo); font-variant-numeric: lining-nums; }
.gestes b { font-family: var(--serif); font-weight: 600; font-size: 21px; line-height: 1.15; }
.gestes span { font-size: 15.5px; color: var(--ink-2); }
.lecon-inviter { margin-top: 26px; font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--ink); max-width: 30ch; }
.telephone { position: sticky; top: 96px; width: 322px; padding: 11px; border-radius: 46px; background: var(--nuit); box-shadow: 0 0 0 1px rgba(226, 200, 143, .35), 0 50px 80px -40px rgba(21, 25, 43, .55), 0 18px 30px -18px rgba(21, 25, 43, .4); }
.telephone-ecran { position: relative; height: 610px; border-radius: 36px; background: var(--paper); overflow: hidden; display: flex; flex-direction: column; padding: 20px 18px 18px; }
.demo-tete { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.demo-points { display: flex; gap: 6px; } .demo-points i { width: 22px; height: 3px; background: var(--hair); transition: background .5s; } .demo-points i.on { background: var(--gold); }
.demo-ligne { font-family: var(--anglais); font-size: 13.5px; color: var(--ink-3); }
.demo-etape { display: none; flex: 1; flex-direction: column; min-height: 0; }
.demo-etape.on { display: flex; animation: paraitre .7s var(--lux); }
.demo-consigne { font-family: var(--serif); font-weight: 600; font-size: 22px; line-height: 1.12; text-wrap: balance; }
.demo-ecouter { margin: 16px auto 14px; width: 100%; height: 62px; display: flex; align-items: center; justify-content: center; gap: 14px; border: 0; cursor: pointer; background: var(--ink); color: var(--paper-3); }
.demo-ecouter svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.demo-ondes { display: flex; align-items: center; gap: 4px; height: 26px; } .demo-ondes i { width: 3px; height: 30%; background: var(--gold-hi); border-radius: 2px; }
.demo-ecouter.joue .demo-ondes i { animation: onde .7s ease-in-out infinite alternate; }
.demo-ondes i:nth-child(2) { animation-delay: .1s !important; } .demo-ondes i:nth-child(3) { animation-delay: .2s !important; } .demo-ondes i:nth-child(4) { animation-delay: .3s !important; } .demo-ondes i:nth-child(5) { animation-delay: .4s !important; }
@keyframes onde { to { height: 100%; } }
.demo-choix { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; flex: 1; min-height: 0; }
.demo-carte { position: relative; border: 0; cursor: pointer; font: inherit; padding: 10px 8px 26px; background: var(--planche); color: #15192B; box-shadow: inset 0 0 0 1px rgba(21, 25, 43, .14); display: grid; place-items: center; min-height: 0; transition: box-shadow .4s, opacity .4s; }
.demo-carte::before { content: ""; position: absolute; inset: 5px; border: 1px dashed rgba(169, 130, 74, .55); pointer-events: none; }
.demo-carte svg, .demo-carte img { width: 100%; height: 100%; max-height: 118px; object-fit: contain; }
.demo-sens, .demo-en { position: absolute; inset-inline: 6px; bottom: 7px; font-size: 13px; line-height: 1.1; text-align: center; color: #4A4E5E; }
.demo-en { font-family: var(--anglais); font-size: 16px; color: #15192B; opacity: 0; }
.demo-carte.juste { box-shadow: inset 0 0 0 2px #A9824A, 0 10px 24px -14px rgba(21, 25, 43, .6); }
.demo-carte.juste .demo-sens { opacity: 0; } .demo-carte.juste .demo-en { opacity: 1; transition: opacity .5s .2s; }
.demo-carte.faux { opacity: .38; animation: secouer .4s; }
.demo-choix.fini .demo-carte:not(.juste) { opacity: .38; pointer-events: none; }
@keyframes secouer { 25% { translate: -5px 0; } 75% { translate: 5px 0; } }
.demo-traduction { margin-top: 8px; font-size: 15.5px; color: var(--ink-2); }
.demo-fil { margin-top: 20px; min-height: 76px; padding: 12px 4px; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); font-family: var(--anglais); font-size: 25px; line-height: 1.25; }
.demo-fil i { display: inline-block; width: 2px; height: 1em; margin-inline-start: 3px; background: var(--gold); vertical-align: -.12em; animation: battre 1.1s steps(2) infinite; }
@keyframes battre { 50% { opacity: 0; } }
.demo-tuiles { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 9px; align-content: flex-start; }
.demo-tuiles button { border: 0; cursor: pointer; min-height: 46px; padding: 0 16px; background: var(--paper-3); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); font-family: var(--anglais); font-size: 19px; transition: opacity .3s, background .3s; }
.demo-tuiles button.pris { opacity: .22; pointer-events: none; }
.demo-tuiles button.faux { animation: secouer .4s; box-shadow: inset 0 0 0 1.5px var(--ko); }
.demo-etape[data-etape="fin"] { align-items: center; justify-content: center; gap: 18px; text-align: center; }
.demo-bravo { font-size: 15.5px; color: var(--ink-2); max-width: 24ch; }
.demo-retour { min-height: 22px; margin-top: 10px; font-size: 14.5px; text-align: center; color: var(--ink-2); }
.demo-retour.ok { color: var(--ok); } .demo-retour.ko { color: var(--ko); }
.billet-mini { position: relative; width: 100%; padding: 16px 16px 18px; background: var(--paper-3); color: var(--ink); box-shadow: inset 0 0 0 1px var(--hair); text-align: start;
  -webkit-mask: radial-gradient(circle 9px at 0 62%, transparent 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 9px at 100% 62%, transparent 97%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 9px at 0 62%, transparent 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 9px at 100% 62%, transparent 97%, #000) right / 51% 100% no-repeat; }
.billet-mini-haut { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-lo); }
.billet-mini-haut span:first-child { font-family: var(--serif); font-size: 16px; letter-spacing: 0; text-transform: none; color: var(--ink); }
.billet-mini-trajet { margin-top: 16px; font-family: var(--anglais); font-size: 25px; line-height: 1.1; }
.billet-mini-bas { margin-top: 20px; padding-top: 12px; border-top: 1px dashed var(--gold); font-size: 13px; color: var(--ink-2); }
/* Le tampon : l'encre mord le papier. */
.tampon { position: absolute; inset-inline-end: 12px; bottom: 10px; padding: 5px 12px 4px; rotate: -9deg; border: 2px solid var(--wax); outline: 1px solid var(--wax); outline-offset: 2px;
  font-family: var(--serif); font-weight: 700; font-size: 17px; letter-spacing: .08em; text-transform: uppercase; color: var(--wax); opacity: 0; scale: 1.7; mix-blend-mode: multiply; pointer-events: none; }
html[data-theme="sombre"] .tampon { mix-blend-mode: normal; }
.tamponne .tampon { animation: tamponner .6s var(--silk) forwards; }
@keyframes tamponner { to { opacity: .92; scale: 1; } }

/* Parler */
.parler-colonnes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(30px, 5vw, 70px); }
.parler-bloc { display: grid; gap: 16px; align-content: start; }
.parler-bloc h3 { font-family: var(--serif); font-weight: 600; font-size: clamp(23px, 2.3vw, 30px); line-height: 1.12; text-wrap: balance; }
.parler-bloc > p:not(.petit) { color: var(--ink-2); max-width: 46ch; }
.oral, .fil { margin-top: 6px; padding: 24px 22px; background: var(--paper-3); box-shadow: inset 0 0 0 1px var(--hair); }
.oral-phrase { font-family: var(--anglais); font-size: clamp(23px, 2.4vw, 31px); line-height: 1.3; }
.oral-phrase span { padding-bottom: 2px; border-bottom: 3px solid transparent; transition: border-color .6s, color .6s; }
.vue .oral-phrase .bon { border-color: var(--ok); } .vue .oral-phrase .presque { border-color: var(--l3); } .vue .oral-phrase .rate { border-color: var(--ko); color: var(--ko); }
.vue .oral-phrase span:nth-child(2) { transition-delay: .12s; } .vue .oral-phrase span:nth-child(3) { transition-delay: .24s; } .vue .oral-phrase span:nth-child(4) { transition-delay: .36s; }
.vue .oral-phrase span:nth-child(5) { transition-delay: .48s; } .vue .oral-phrase span:nth-child(6) { transition-delay: .6s; } .vue .oral-phrase span:nth-child(7) { transition-delay: .72s; } .vue .oral-phrase span:nth-child(8) { transition-delay: .84s; }
.oral-note { margin-top: 20px; display: flex; align-items: center; gap: 16px; padding-top: 16px; border-top: 1px dashed var(--gold); }
.oral-note b { font-family: var(--serif); font-weight: 500; font-size: 52px; line-height: 1; font-variant-numeric: lining-nums; }
.oral-note span { font-size: 15px; color: var(--ink-2); }
.fil { display: grid; gap: 12px; }
.bulle { max-width: 86%; padding: 11px 15px; font-family: var(--anglais); font-size: 18px; line-height: 1.3; }
.bulle.eux { justify-self: start; display: flex; align-items: flex-start; gap: 10px; background: var(--paper-2); }
.bulle.eux img { width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--planche); }
.bulle.moi { justify-self: end; background: var(--ink); color: var(--paper-3); }
.correction { justify-self: end; max-width: 86%; padding: 10px 14px; border-inline-start: 3px solid var(--gold); font-size: 14.5px; color: var(--ink-2); display: grid; gap: 4px; }
.correction b { font-family: var(--anglais); font-weight: 500; font-size: 17px; color: var(--ink); }

/* La bande */
.portraits { margin-top: clamp(30px, 4vw, 50px); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(14px, 2vw, 26px); }
.portraits li { display: grid; gap: 6px; align-content: start; }
.portraits img { width: 100%; aspect-ratio: 1; border-radius: 50%; background: var(--planche); box-shadow: 0 0 0 2px var(--teinte), 0 0 0 7px var(--paper), 0 0 0 8px var(--hair); margin-bottom: 14px; }
.portraits b { font-family: var(--serif); font-weight: 600; font-size: 23px; line-height: 1; }
.portraits b::after { content: ""; display: block; width: 34px; height: 4px; margin-top: 9px; background: var(--teinte); }
.portraits span { font-size: 14.5px; line-height: 1.4; color: var(--ink-2); }
.vlogs { margin-top: clamp(40px, 6vw, 80px); display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(8px, 1.4vw, 18px); align-items: end; }
.vlog { overflow: hidden; border-radius: 14px; background: var(--planche); box-shadow: 0 0 0 1px var(--hair), 0 26px 40px -28px rgba(21, 25, 43, .55); }
.vlog:nth-child(even) { translate: 0 -26px; }
.vlog img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 22%; }
.vlogs-legende { margin-top: 22px; }

/* La mémoire */
.memoire { max-width: none; }
.memoire > .plaque, .memoire-colonnes, .mur-legende { max-width: var(--large); margin-inline: auto; }
.memoire-colonnes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 70px); align-items: center; }
.arguments { margin-top: 22px; display: grid; gap: 12px; max-width: 54ch; }
.arguments li { padding-inline-start: 22px; position: relative; color: var(--ink-2); font-size: 16px; }
.arguments li::before { content: ""; position: absolute; inset-inline-start: 0; top: .62em; width: 10px; height: 2px; background: var(--gold); }
.intervalles svg { width: 100%; overflow: visible; }
.intervalles-voie { fill: none; stroke: var(--l1); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.4s var(--silk); }
.vue .intervalles-voie { stroke-dashoffset: 0; }
.intervalles-arrets circle { fill: var(--paper-3); stroke: var(--ink); stroke-width: 3; }
.intervalles ol { position: relative; height: 54px; font-size: 13.5px; color: var(--ink-2); }
.intervalles ol li { position: absolute; top: 0; translate: -50% 0; white-space: nowrap; }
.intervalles ol li:nth-child(1) { left: 1.8%; translate: 0 0; } .intervalles ol li:nth-child(2) { left: 10%; top: 26px; } .intervalles ol li:nth-child(3) { left: 22.500%; top: 26px; } .intervalles ol li:nth-child(4) { left: 42.500%; }
.intervalles ol li:nth-child(5) { left: 69.300%; } .intervalles ol li:nth-child(6) { left: 98.200%; translate: -100% 0; }
.mur { margin-top: clamp(40px, 6vw, 84px); margin-inline: calc(-1 * var(--marge)); margin-inline-start: calc(-1 * var(--marge) - var(--rail)); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.mur-rang { display: flex; gap: 14px; width: max-content; animation: glisser 80s linear infinite; }
.mur-rang img { width: clamp(150px, 17vw, 236px); height: auto; aspect-ratio: 1; background: var(--planche); box-shadow: 0 0 0 1px var(--hair); }
.mur:hover .mur-rang, .mur.hors .mur-rang { animation-play-state: paused; }
@keyframes glisser { to { transform: translateX(calc(-50% - 7px)); } }
.mur-legende { margin-top: 20px; }

/* Le jeu : le seul chapitre de nuit */
.nuit { --ink: #F2ECE1; --ink-2: #C6C2B9; --ink-3: #9F9D99; --hair: rgba(242, 236, 225, .16); --gold: #C9A467; --gold-lo: #DFC48C; --paper-3: #1F2439;
  max-width: none; background: var(--nuit); color: var(--ink); background-image: linear-gradient(180deg, var(--nuit), var(--nuit-2)); }
.nuit > .plaque, .jeu-colonnes { max-width: var(--large); margin-inline: auto; }
.jeu-colonnes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(30px, 5vw, 70px); align-items: center; }
.jeu-colonnes .petit { margin-top: 16px; }
.pluie { position: relative; height: clamp(340px, 40vw, 470px); overflow: hidden; box-shadow: inset 0 0 0 1px var(--hair);
  background: repeating-linear-gradient(100deg, transparent 0 26px, rgba(242, 236, 225, .045) 26px 27px), linear-gradient(180deg, #1B2036, #12152A); }
.goutte { position: absolute; left: var(--x); top: -60px; padding: 9px 16px 10px; background: #FBF8F2; color: #15192B; font-family: var(--anglais); font-size: 20px; box-shadow: inset 0 0 0 1px rgba(21, 25, 43, .2), inset 0 0 0 4px #FBF8F2, inset 0 0 0 5px rgba(169, 130, 74, .5);
  animation: tomber var(--d) linear var(--r) infinite; animation-play-state: paused; }
.goutte.or { background: #F1DCAA; }
.pluie.joue .goutte { animation-play-state: running; }
@keyframes tomber { to { translate: 0 calc(clamp(340px, 40vw, 470px) + 20px); } }
.quai { position: absolute; inset-inline: 0; bottom: 0; height: 46px; display: grid; place-items: center; background: #0C0F1B; border-top: 6px solid transparent; border-image: repeating-linear-gradient(135deg, #C9A467 0 12px, #0C0F1B 12px 24px) 6; }
.quai span { font-size: 11.5px; letter-spacing: .34em; text-transform: uppercase; color: #C9A467; }

/* Les billets */
.billets { margin-top: clamp(30px, 4vw, 54px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 3vw, 40px); align-items: stretch; }
.ticket { position: relative; display: flex; flex-direction: column; gap: 18px; padding: 30px clamp(22px, 3vw, 38px) 30px; background: var(--paper-3); box-shadow: inset 0 0 0 1px var(--hair);
  --cran: 132px;
  -webkit-mask: radial-gradient(circle 13px at 0 var(--cran), transparent 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 13px at 100% var(--cran), transparent 97%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 13px at 0 var(--cran), transparent 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 13px at 100% var(--cran), transparent 97%, #000) right / 51% 100% no-repeat; }
.ticket header { min-height: calc(var(--cran) - 30px); padding-bottom: 20px; border-bottom: 1px dashed var(--gold); display: grid; gap: 8px; align-content: start; }
.ticket-classe { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-lo); }
html[lang="ja"] .ticket-classe, html[lang="ar"] .ticket-classe { letter-spacing: .04em; font-size: 14px; }
.ticket-prix { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.ticket-prix b { font-family: var(--serif); font-weight: 500; font-size: clamp(44px, 5vw, 64px); line-height: 1; font-variant-numeric: lining-nums; letter-spacing: -.02em; }
.ticket-prix span { font-size: 14.5px; color: var(--ink-2); }
.ticket-lancement { font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.ticket ul { display: grid; gap: 9px; flex: 1; align-content: start; }
.ticket li { padding-inline-start: 22px; position: relative; font-size: 15.5px; line-height: 1.4; }
.ticket li::before { content: ""; position: absolute; inset-inline-start: 0; top: .6em; width: 10px; height: 2px; background: var(--gold); }
.ticket li b { font-family: var(--serif); font-size: 19px; font-variant-numeric: lining-nums; }
.ticket-premium { background: var(--nuit); color: #F2ECE1; --ink: #F2ECE1; --ink-2: #C6C2B9; --gold: #C9A467; --gold-lo: #DFC48C; --wax: #E8777A; box-shadow: inset 0 0 0 1px rgba(226, 200, 143, .4); }
.ticket-premium .bouton-encre { background: #FBF8F2; color: #15192B; box-shadow: inset 0 0 0 1px rgba(169, 130, 74, .6), inset 0 0 0 4px #FBF8F2, inset 0 0 0 5px rgba(169, 130, 74, .35); }
.ticket-note { font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.ticket .tampon { inset-inline-end: 22px; top: 26px; bottom: auto; mix-blend-mode: normal; font-size: 15px; }
.billet.vue .tampon, .bloc.vue .tampon { animation: tamponner .6s var(--silk) .7s forwards; }

/* Terminus */
.terminus { position: relative; z-index: 1; padding: clamp(80px, 12vw, 170px) var(--marge); background: var(--nuit); color: #F2ECE1; text-align: center; display: grid; justify-items: center; gap: 28px; }
.terminus-annonce { font-family: var(--serif); font-weight: 500; font-size: clamp(38px, 7.4vw, 112px); line-height: .98; letter-spacing: -.02em; text-wrap: balance; max-width: 13ch; }
.terminus-annonce i { color: #DFC48C; }
.terminus-note { font-size: 14.5px; color: #C6C2B9; }

/* ---------------- Pied ---------------- */
.pied { background: var(--nuit); color: #F2ECE1; padding: clamp(40px, 6vw, 70px) var(--marge) 28px; border-top: 1px solid rgba(226, 200, 143, .25); }
.pied-haut { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 22px; padding-bottom: 30px; border-bottom: 1px solid rgba(242, 236, 225, .16); }
.pied-marque { font-family: var(--serif); font-weight: 600; font-size: 40px; line-height: 1; }
.pied-devise { font-family: var(--serif); font-style: italic; font-size: 18px; color: #C6C2B9; }
.pied-colonnes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; padding: 34px 0; max-width: 820px; }
.pied-colonnes nav { display: grid; gap: 9px; align-content: start; }
.pied h2 { font-family: var(--sans); font-weight: 500; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: #DFC48C; margin-bottom: 6px; }
.pied a { font-size: 15.5px; color: #F2ECE1; text-decoration: none; }
.pied a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #C9A467; }
.pied-bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 30px; padding-top: 22px; border-top: 1px solid rgba(242, 236, 225, .16); font-size: 13.5px; color: #C6C2B9; }
.pied-langues { display: flex; flex-wrap: wrap; gap: 16px; } .pied-langues b { color: #F2ECE1; font-weight: 500; } .pied-langues a { font-size: 13.5px; color: #C6C2B9; }

/* ---------------- Pages intérieures ---------------- */
.tete-page, .bloc { max-width: calc(var(--large) + 2 * var(--marge)); margin-inline: auto; padding-inline: var(--marge); }
.tete-page { padding-block: clamp(46px, 8vw, 110px) clamp(30px, 5vw, 60px); }
.fil-ariane { font-size: 14px; color: var(--ink-3); margin-bottom: 22px; } .fil-ariane a { text-decoration: none; color: var(--ink-2); } .fil-ariane span { margin-inline: 6px; color: var(--gold); }
.tete-page h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(38px, 6.4vw, 92px); line-height: 1; letter-spacing: -.02em; text-wrap: balance; max-width: 16ch; margin-bottom: 26px; }
.bloc { padding-block: clamp(34px, 5vw, 70px); }
.bloc > h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(27px, 3.4vw, 44px); line-height: 1.08; text-wrap: balance; max-width: 22ch; margin-bottom: 26px; padding-top: 22px; border-top: 4px double var(--gold); }
.colonne { max-width: 64ch; color: var(--ink-2); }
.principes { display: grid; gap: 0; }
.principe { display: grid; grid-template-columns: clamp(64px, 11vw, 150px) minmax(0, 1fr); gap: clamp(14px, 3vw, 40px); padding: clamp(26px, 4vw, 46px) 0; border-top: 1px solid var(--hair); }
.principe-rang { font-family: var(--serif); font-weight: 500; font-size: clamp(60px, 9vw, 128px); line-height: .8; color: transparent; -webkit-text-stroke: 1px var(--gold); font-variant-numeric: lining-nums; }
.principe h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(25px, 3vw, 38px); line-height: 1.08; margin-bottom: 12px; text-wrap: balance; }
.principe p { max-width: 62ch; color: var(--ink-2); } .principe .petit { margin-top: 12px; padding-inline-start: 14px; border-inline-start: 2px solid var(--gold); }
.honnete p { max-width: 64ch; color: var(--ink-2); font-size: 18px; }
.etapes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; position: relative; }
.etapes li { padding: 26px 24px 4px 0; border-top: 6px solid var(--l1); position: relative; display: grid; gap: 8px; align-content: start; }
.etapes li:nth-child(2) { border-top-color: var(--gold); } .etapes li:nth-child(3) { border-top-color: var(--hair); }
.etapes li::before { content: ""; position: absolute; inset-inline-start: 0; top: -14px; width: 22px; height: 22px; border-radius: 50%; background: var(--paper-3); box-shadow: 0 0 0 3px var(--ink); }
.etapes b { font-family: var(--serif); font-weight: 600; font-size: 23px; } .etapes span { font-size: 15.5px; color: var(--ink-2); }
.tableau-cadre { overflow-x: auto; }
.comparatif { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15.5px; }
.comparatif th, .comparatif td { padding: 14px 12px; border-bottom: 1px solid var(--hair); text-align: start; vertical-align: top; }
.comparatif thead th { font-family: var(--serif); font-weight: 600; font-size: 21px; border-bottom: 1px solid var(--gold); }
.comparatif tbody th { font-weight: 400; color: var(--ink-2); max-width: 30ch; }
.comparatif td b { font-family: var(--serif); font-size: 21px; font-variant-numeric: lining-nums; }
.questions details { border-top: 1px solid var(--hair); max-width: 780px; } .questions details:last-of-type { border-bottom: 1px solid var(--hair); }
.questions summary { cursor: pointer; list-style: none; padding: 18px 34px 18px 0; position: relative; font-family: var(--serif); font-weight: 600; font-size: 21px; line-height: 1.2; }
html[dir="rtl"] .questions summary { padding: 18px 0 18px 34px; }
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after { content: ""; position: absolute; inset-inline-end: 4px; top: 50%; width: 11px; height: 11px; border-inline-end: 1.5px solid var(--gold-lo); border-bottom: 1.5px solid var(--gold-lo); rotate: 45deg; translate: 0 -70%; transition: rotate var(--lux) .5s; }
.questions details[open] summary::after { rotate: 225deg; translate: 0 -20%; }
.questions details p { padding: 0 0 20px; color: var(--ink-2); max-width: 62ch; }
.niveau-tete { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(16px, 3vw, 44px); align-items: start; padding-top: 22px; border-top: 4px double var(--gold); margin-bottom: 26px; }
.niveau-code { font-family: var(--serif); font-weight: 500; font-size: clamp(76px, 12vw, 170px); line-height: .8; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1.5px var(--gold); font-variant-numeric: lining-nums; }
.niveau-tete h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(27px, 3.4vw, 44px); line-height: 1.08; margin-bottom: 10px; }
.niveau-tete p:not(.petit) { max-width: 58ch; color: var(--ink-2); } .niveau-tete .petit { margin-top: 10px; }
.themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.arrets-type { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); margin-bottom: 30px; padding-top: 30px; position: relative; }
.arrets-type::before { content: ""; position: absolute; left: 5.500%; right: 5.500%; top: 9px; height: 6px; background: var(--l1); }
.arrets-type li { position: relative; text-align: center; font-size: 13.5px; color: var(--ink-2); padding-inline: 2px; }
.arrets-type li::before { content: ""; position: absolute; left: 50%; top: -30px; width: 18px; height: 18px; translate: -50% 0; border-radius: 50%; background: var(--paper-3); box-shadow: 0 0 0 3px var(--ink); }
.arrets-type li.special::before { box-shadow: 0 0 0 3px var(--gold-lo); } .arrets-type li.defi::before { width: 24px; height: 24px; top: -33px; background: var(--gold); box-shadow: 0 0 0 3px var(--ink); }
.arrets-type b { font-weight: 500; color: var(--ink); }
.a-cote { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 clamp(24px, 4vw, 50px); }
.a-cote li { padding: 20px 0; border-top: 1px solid var(--hair); display: grid; gap: 6px; align-content: start; }
.a-cote b { font-family: var(--serif); font-weight: 600; font-size: 22px; } .a-cote span { font-size: 15.5px; color: var(--ink-2); }
.legal h2 { font-family: var(--serif); font-weight: 600; font-size: 27px; margin: 40px 0 16px; padding-top: 18px; border-top: 4px double var(--gold); max-width: none; }
.legal h2:first-child { margin-top: 0; }
.legal p { max-width: 66ch; color: var(--ink-2); } .legal a { text-decoration-color: var(--gold); text-underline-offset: 3px; }
.fiche { display: grid; gap: 0; max-width: 760px; }
.fiche div { display: grid; grid-template-columns: minmax(120px, 220px) minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--hair); }
.fiche dt { font-size: 14.5px; color: var(--ink-3); } .fiche dd { font-size: 16px; }

/* ---------------- Écrans étroits ---------------- */
@media (max-width: 899px) {
  body { font-size: 16.5px; }
  .entete { gap: 10px; padding-block: 10px; }
  .menu-bouton { display: block; }
  .menu { position: fixed; inset: 64px 0 auto 0; z-index: 29; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--marge) 22px; background: var(--paper); border-bottom: 1px solid var(--gold);
    clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path var(--silk) .6s, visibility 0s .6s; }
  .menu.ouvert { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path var(--silk) .6s; }
  .menu a { padding: 16px 0; font-family: var(--serif); font-weight: 600; font-size: 26px; color: var(--ink); border-bottom: 1px solid var(--hair); }
  .depart { min-height: calc(100svh - 64px); align-items: end; }
  .depart-plan { height: 56%; -webkit-mask-image: linear-gradient(180deg, #000 18%, transparent 88%); mask-image: linear-gradient(180deg, #000 18%, transparent 88%); opacity: .8; }
  .depart-suite { display: none; }
  .lecon-colonnes, .parler-colonnes, .memoire-colonnes, .jeu-colonnes, .billets { grid-template-columns: minmax(0, 1fr); }
  .telephone { position: relative; top: 0; margin-inline: auto; width: min(322px, 100%); }
  .portraits { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 18px; }
  .portraits li:first-child { grid-column: 1 / -1; grid-template-columns: 110px minmax(0, 1fr); column-gap: 18px; align-items: center; }
  .portraits li:first-child img { grid-row: span 2; margin: 0; }
  .vlogs { grid-template-columns: repeat(6, 44vw); overflow-x: auto; margin-inline: calc(-1 * var(--marge)); padding: 30px var(--marge) 26px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .vlogs::-webkit-scrollbar { display: none; } .vlog { scroll-snap-align: center; }
  .defile-niveau ul { grid-template-rows: repeat(3, auto); }
  .defile-niveau li { min-width: 190px; }
  .etapes { grid-template-columns: minmax(0, 1fr); gap: 30px; } .etapes li { padding-inline-end: 0; }
  .pied-colonnes { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .arrets-type { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 46px; } .arrets-type::before { display: none; }
  .fiche div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .ticket { --cran: 124px; }
  /* Le tampon se range à droite du prix, sans couvrir l'étiquette. */
  .ticket .tampon { top: 60px; inset-inline-end: 14px; font-size: 11.5px; padding: 4px 8px 3px; }
}
@media (max-width: 520px) {
  .entete-entrer { padding: 0 14px; letter-spacing: .12em; }
  .compteurs { gap: 22px 30px; } .compteurs div { min-width: 40%; }
  .plaque { grid-template-columns: minmax(0, 1fr); gap: 10px; }
}

/* ---------------- Sans mouvement ---------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .depart-plan path { stroke-dashoffset: 0; } .depart-plan .arrets circle, .depart-plan .noms text, .titre-geant span, .depart-devise, .depart-sous, .depart-actions, .depart-note { opacity: 1; translate: 0 0; }
  .plaque::after { transform: scaleX(1); } .intervalles-voie { stroke-dashoffset: 0; }
  .mur-rang { animation: none; } .goutte { animation: none; top: calc(20% + var(--x) * .6); }
  .tampon { opacity: .92; scale: 1; }
}
