/* ============================================================================ Guide Rouen · prototype
   Une seule famille (Inter), fonds blancs, grands arrondis, ombres douces, pastilles de couleur. */

:root {
  /* direction artistique « nuit et or » : bleu nuit profond, accent doré, une seule famille (Figtree) */
  --nuit-0: #0a1428;
  --nuit-1: #0f1d38;
  --nuit-2: #16264a;
  --nuit-3: #1f3159;
  --or: #f6d38d;
  --or-fonce: #e3b25a;
  --sur-or: #0f1d38;

  --page: #070d1b;
  --fond: var(--nuit-1);
  --carte: var(--nuit-2);
  --encre: #ffffff;
  --texte: #dde3ee;
  --doux: #9aa6bc;
  --pale: #66748f;
  --bord: rgba(255, 255, 255, .08);
  --gris: rgba(255, 255, 255, .06);

  --orange: var(--or);
  --orange-fonce: var(--or);
  --orange-pale: rgba(246, 211, 141, .1);
  --violet: #8f9fe6;
  --violet-fonce: #b4c0f5;
  --violet-pale: rgba(143, 159, 230, .12);
  --corail: #e88d84;
  --corail-fonce: #f0a49b;
  --corail-pale: rgba(232, 141, 132, .12);
  --vert: #6fcf8a;
  --vert-fonce: #8fe0a6;
  --vert-pale: rgba(111, 207, 138, .13);
  --bleu: #8ab4f0;
  --bleu-fonce: #a9c8f5;
  --bleu-pale: rgba(138, 180, 240, .12);

  /* anciens noms encore utilisés dans le code */
  --vermillon: var(--corail-fonce);
  --lapis: var(--violet-fonce);
  --nuit: var(--nuit-1);
  --or-clair: var(--or);

  --taille: 16px;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: var(--sans);
  --r-xl: 32px;
  --r-l: 26px;
  --r: 20px;
  --r-s: 14px;
  --ombre: 0 6px 24px rgba(0, 0, 0, .25);
  --ombre-forte: 0 18px 50px rgba(0, 0, 0, .4);
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body { background: var(--page); color: var(--encre); font: 15px/1.5 var(--sans); font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
img { display: block; max-width: 100%; }
.ico { width: 22px; height: 22px; flex: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; border-radius: 8px; }

/* ============================================================================ scène et appareil */
.scene {
  min-height: 100%; display: grid; place-items: center; padding: 16px;
  background:
    radial-gradient(520px 420px at 22% 18%, rgba(244, 184, 96, .28), transparent 70%),
    radial-gradient(560px 460px at 80% 78%, rgba(155, 140, 242, .24), transparent 70%),
    radial-gradient(420px 360px at 85% 12%, rgba(106, 166, 245, .18), transparent 70%),
    var(--page);
}
.appareil {
  height: min(880px, calc(100vh - 32px)); width: calc(min(880px, calc(100vh - 32px)) * 9 / 19.5); position: relative;
  background: #fbfbfc; border-radius: 60px; padding: 10px;
  box-shadow: 0 40px 90px -20px rgba(17, 17, 20, .28), 0 0 0 1px rgba(17, 17, 20, .06), inset 0 0 0 1px #fff;
}
.appareil::before, .appareil::after { content: ""; position: absolute; background: #e3e3e8; border-radius: 3px; }
.appareil::before { right: -3px; top: 25%; width: 3px; height: 84px; }
.appareil::after { left: -3px; top: 20%; width: 3px; height: 56px; box-shadow: 0 76px 0 #e3e3e8; }
.cadre { height: 100%; border-radius: 50px; overflow: hidden; position: relative; background: var(--fond); display: flex; flex-direction: column; isolation: isolate; }
.barre-etat {
  position: absolute; inset: 0 0 auto; height: 50px; z-index: 50; display: flex; align-items: center; justify-content: space-between;
  padding: 4px 30px 0 34px; font: 600 15px var(--sans); color: var(--encre); pointer-events: none;
}
.ilot { position: absolute; left: 50%; top: 11px; width: 116px; height: 33px; transform: translateX(-50%); background: #000; border-radius: 20px; }
.etat-icones { display: flex; gap: 6px; align-items: center; }
.barre-accueil { position: absolute; left: 50%; bottom: 7px; width: 132px; height: 5px; border-radius: 3px; background: var(--encre); opacity: .3; transform: translateX(-50%); z-index: 60; pointer-events: none; }

/* bouton de démonstration, à droite du téléphone */
.relancer {
  position: fixed; top: 50%; transform: translateY(-50%); z-index: 10;
  left: calc(50% + min(880px, calc(100vh - 32px)) * 9 / 39 + 40px);
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 999px;
  background: #fff; color: var(--encre); font: 600 14px var(--sans); white-space: nowrap;
  box-shadow: 0 10px 30px -10px rgba(17, 17, 20, .3), 0 0 0 1px rgba(17, 17, 20, .06); transition: transform .12s, box-shadow .2s;
}
.relancer:hover { box-shadow: 0 14px 34px -10px rgba(17, 17, 20, .38), 0 0 0 1px rgba(17, 17, 20, .1); }
.relancer:active { transform: translateY(-50%) scale(.97); }

@media (max-width: 820px) {
  .scene { padding: 0; }
  .relancer { display: none; }
  .appareil { height: 100vh; height: 100dvh; width: 100%; border-radius: 0; padding: 0; box-shadow: none; background: none; }
  .appareil::before, .appareil::after, .ilot, .barre-accueil, .barre-etat { display: none; }
  .cadre { border-radius: 0; }
  .ecran { --haut: 0px; }
}

.ecran { --haut: 50px; isolation: isolate; z-index: 1; flex: 1; overflow: hidden; font-size: var(--taille); position: relative; }
.rond {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--carte);
  color: var(--encre); box-shadow: var(--ombre); transition: transform .12s;
}
.rond:active { transform: scale(.93); }
.rond .ico { width: 20px; height: 20px; }
.vide-txt { color: var(--pale); font-size: .9em; text-align: center; }

/* ============================================================================ carte */
.carte-ecran { position: absolute; inset: 0; }
#carte { position: absolute; inset: 0; background: #e9ebee; }

.leaflet-container { font: inherit; }
.leaflet-control-attribution { font-size: 9px !important; background: rgba(255,255,255,.75) !important; }
.titre-carte {
  position: absolute; left: 14px; top: calc(var(--haut) + 6px); z-index: 900; padding: 10px 16px 11px; border-radius: 22px;
  display: flex; flex-direction: column-reverse;
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--ombre);
  max-width: calc(100% - 92px);
}
.titre-carte b { display: block; font: 800 1.2em/1.15 var(--sans); letter-spacing: -.02em; }
.titre-carte .sur { display: block; font-size: .78em; font-weight: 500; color: var(--doux); }
.carte-boutons { position: absolute; right: 14px; top: calc(var(--haut) + 6px); z-index: 900; display: grid; gap: 10px; transition: opacity .2s; }
.carte-ecran:has(.feuille[data-etat="pleine"]) .carte-boutons { opacity: 0; pointer-events: none; }

.repere { width: 32px; height: 32px; position: relative; transition: transform .2s; filter: drop-shadow(0 3px 6px rgba(17,17,20,.25)); }
.repere:hover { transform: scale(1.12); }
.repere .sceau { width: 32px; }
.repere-id { position: absolute; inset: 0; display: grid; place-items: center; font: 800 12px var(--sans); color: var(--encre); }
.repere.choisi { transform: scale(1.3); z-index: 2; }
.repere.choisi .sceau-cire { stroke: var(--encre); stroke-width: 7; }
.moi { width: 16px; height: 16px; border-radius: 50%; background: var(--bleu-fonce); border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(47,116,216,.22); }

/* ============================================================================ sceaux (pastilles rondes) */
.sceau { display: block; width: 100%; height: auto; overflow: visible; }
.sceau-cire { fill: var(--encre); }
.sceau-anneau { display: none; }
.sceau g { color: #fff; }
.sceau-vide .sceau-cire { fill: #fff; stroke: var(--bord); stroke-width: 4; }
.sceau-num { font: 800 34px var(--sans); fill: var(--encre); }
.sceau-rouge .sceau-cire { fill: var(--encre); }
.sceau-or .sceau-cire { fill: var(--orange); }
.sceau-cire-simple .sceau-cire { fill: #c9c9d1; }

/* ============================================================================ feuille glissante */
.feuille {
  position: absolute; left: 0; right: 0; top: calc(var(--haut) + 6px); bottom: 0; z-index: 1000;
  background: var(--carte); border-radius: var(--r-xl) var(--r-xl) 0 0; box-shadow: 0 -10px 40px rgba(17, 17, 20, .12);
  display: flex; flex-direction: column; transition: transform .4s cubic-bezier(.2, .9, .25, 1); will-change: transform;
}
/* accueil : la feuille est sortie de l'écran (et retirée du parcours au clavier une fois descendue) */
.feuille:not([data-etat]) { transform: translateY(110%); }
.feuille[data-etat="cachee"] { visibility: hidden; transition: transform .4s cubic-bezier(.2, .9, .25, 1), visibility 0s .4s; }
.feuille-prise { flex: none; cursor: grab; touch-action: none; user-select: none; }
.feuille-prise:active { cursor: grabbing; }
.feuille-poignee { display: grid; place-items: center; padding: 10px 0 8px; }
.feuille-poignee span { width: 40px; height: 5px; border-radius: 3px; background: #dadae0; }
.feuille-tete { display: flex; align-items: center; padding: 0 16px 12px 20px; }
.feuille-corps { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.feuille-corps::-webkit-scrollbar { display: none; }

.tete-liste { display: flex; align-items: baseline; justify-content: space-between; width: 100%; }
.tete-liste b { font: 800 1.35em/1.1 var(--sans); letter-spacing: -.025em; }
.tete-liste span { font-size: .82em; color: var(--doux); font-weight: 500; }
.tete-etape { display: flex; align-items: center; gap: 8px; width: 100%; margin-left: -4px; }
.tete-etape .tete-txt { flex: 1; min-width: 0; }
.tete-etape .tete-txt .sur { display: block; font-size: .76em; font-weight: 600; color: var(--orange-fonce); }
.tete-etape .tete-txt b { display: block; font: 800 1.12em/1.2 var(--sans); letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tete-etape .rond { width: 38px; height: 38px; box-shadow: none; background: var(--gris); }
.tete-etape .rond:disabled { opacity: .35; cursor: default; }

/* ============================================================================ liste des étapes */
.liste { list-style: none; margin: 0; padding: 2px 12px 8px; }
.item { position: relative; }
.lien-arret { display: flex; gap: 14px; align-items: center; width: 100%; text-align: left; padding: 10px 8px; border-radius: var(--r); transition: background .15s; }
.lien-arret:hover { background: var(--gris); }
.item.surligne .lien-arret { background: var(--orange-pale); }
.vignette { width: 64px; height: 64px; border-radius: 18px; overflow: hidden; flex: none; position: relative; background: var(--gris); }
.vignette img { width: 100%; height: 100%; object-fit: cover; }
.vignette .sceau { position: absolute; right: 4px; bottom: 4px; width: 22px; filter: drop-shadow(0 1px 3px rgba(0,0,0,.3)); }
.item-txt { flex: 1; min-width: 0; }
.item-haut { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.t-etape, .t-secret {
  display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; background: var(--orange); color: #fff;
  font: 700 .72em/1.5 var(--sans);
}
.item-txt h4 { margin: 4px 0 1px; font: 700 1.02em/1.25 var(--sans); letter-spacing: -.01em; }
.item-txt p { margin: 0; font-size: .82em; color: var(--doux); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.puce { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px; border-radius: 999px; font: 700 .72em/1.5 var(--sans); }
.puce .ico { width: 12px; height: 12px; stroke-width: 2.4; }
.p-audio { background: var(--violet); color: #fff; }
.p-fait { background: var(--vert); color: #fff; }
.p-facul { background: var(--gris); color: var(--doux); }
.item .fleche { color: var(--pale); width: 18px; height: 18px; }
.item.visite h4 { color: var(--doux); }
.marche-entre { display: flex; align-items: center; gap: 6px; margin: -4px 0 2px 86px; font-size: .76em; color: var(--pale); font-weight: 500; }
.marche-entre .ico { width: 14px; height: 14px; }

.enquete {
  margin: 6px 16px 10px; padding: 18px; border-radius: var(--r-l);
  background: linear-gradient(135deg, var(--violet-pale), var(--orange-pale)); color: var(--encre);
}
.enquete .etiquette-section { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font-size: .8em; font-weight: 700; color: var(--violet-fonce); }
.enquete .etiquette-section .ico { width: 16px; height: 16px; }
.enquete-q { margin: 0 0 12px; font: 700 1.08em/1.35 var(--sans); letter-spacing: -.015em; }
.enquete-compteurs { display: flex; flex-wrap: wrap; gap: 6px; font-size: .78em; color: var(--doux); }
.enquete-compteurs span { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.75); font-weight: 500; }
.enquete-compteurs b { color: var(--encre); }
.enquete-compteurs .ico { width: 14px; height: 14px; color: var(--orange-fonce); }
.pied-liste { padding: 4px 18px 28px; text-align: center; }
.lien-discret { font-size: .8em; color: var(--pale); text-decoration: underline; text-underline-offset: 3px; }
.feuille-corps.avec-mini .pied-liste, .feuille-corps.avec-mini .pied-arret { padding-bottom: 90px; }

/* ============================================================================ étape */
.arret { padding-bottom: 8px; }
.scene-img {
  position: sticky; top: -70px; z-index: 20; height: 270px; margin: 0 14px; border-radius: var(--r-l); overflow: hidden;
  background: #16161a; color: #fff; touch-action: pan-y; user-select: none; box-shadow: var(--ombre);
}
.couche-img { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.couche-img.visible { opacity: 1; }
.couche-img img { width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; }
.couche-img.visible img { animation: kenburns 16s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.12) translate(-1.5%, -1%); } }
.couche-img.portrait img.flou { position: absolute; inset: 0; filter: blur(24px) brightness(.6); transform: scale(1.25); animation: none; }
.couche-img.portrait img.net { position: relative; object-fit: contain; padding: 12px 0 40px; }
.scene-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.65)); pointer-events: none; z-index: 2; }
.scene-legende { position: absolute; left: 16px; right: 56px; bottom: 26px; z-index: 3; font-size: .76em; line-height: 1.35; font-weight: 500; }
.scene-legende small { display: block; opacity: .65; font-size: .9em; font-weight: 400; }
.scene-agrandir { position: absolute; right: 12px; bottom: 22px; z-index: 4; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.2); backdrop-filter: blur(8px); color: #fff; }
.scene-agrandir .ico { width: 17px; height: 17px; }
.scene-fleche { position: absolute; z-index: 4; top: calc(50% + 35px); transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.9); color: var(--encre); box-shadow: var(--ombre); }
.scene-fleche .ico { width: 18px; height: 18px; }
.scene-fleche.g { left: 10px; } .scene-fleche.d { right: 10px; }
.points { position: absolute; z-index: 4; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 5px; }
.points button { width: 6px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.5); transition: width .3s, background .3s; padding: 0; position: relative; }
.points button::before { content: ""; position: absolute; inset: -8px -3px; }
.points button.actif { width: 18px; background: #fff; }
.carte-scene { position: absolute; inset: 0; display: grid; place-items: center; padding: 30px 24px 50px; text-align: center; background: #16161a; }
.carte-scene blockquote { margin: 0; font: 700 1.1em/1.35 var(--sans); }
.carte-scene cite { display: block; margin-top: 10px; font-size: .78em; opacity: .65; font-style: normal; }
.carte-scene .etiquette-section { font-size: .78em; font-weight: 600; color: var(--orange); margin: 0 0 8px; }

.arret-tete { padding: 18px 20px 2px; }
.arret-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .82em; font-weight: 500; color: var(--doux); }
.arret-meta .t-etape { font-size: .88em; }
.arret-tete h1 { font: 800 1.75em/1.12 var(--sans); letter-spacing: -.03em; margin: 8px 0 6px; }
.arret-tete .lieu { margin: 0; color: var(--doux); font-size: .88em; display: flex; gap: 6px; align-items: center; }
.arret-tete .lieu .ico { width: 16px; height: 16px; color: var(--pale); }

.lecture-info { margin: 14px 16px 0; display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: var(--r); background: var(--gris); font-size: .84em; color: var(--doux); }
.lecture-info .ico { color: var(--pale); width: 20px; height: 20px; }

.bloc { margin: 14px 16px 0; padding: 16px; border-radius: var(--r); }
.bloc-titre { display: flex; align-items: center; gap: 8px; font-size: .85em; font-weight: 700; margin-bottom: 6px; }
.bloc-titre .ico { width: 18px; height: 18px; }
.bloc p { margin: 0; font-size: .93em; color: var(--texte); }
.b-regardez { background: var(--orange-pale); } .b-regardez .bloc-titre { color: var(--orange-fonce); }
.b-discute { background: var(--bleu-pale); } .b-discute .bloc-titre { color: var(--bleu-fonce); }
.b-erreur { background: var(--corail-pale); } .b-erreur .bloc-titre { color: var(--corail-fonce); }
.b-note { background: var(--gris); }

.script { padding: 4px 20px 0; }
.script-tete { display: flex; justify-content: space-between; align-items: center; margin: 22px 0 8px; }
.script-tete > span:first-child { font: 800 1.05em var(--sans); letter-spacing: -.01em; }
.taille { display: flex; gap: 6px; }
.taille button { width: 36px; height: 30px; border-radius: 10px; background: var(--gris); font-weight: 700; font-size: .8em; }
.script p { margin: 0 0 1em; font-size: 1em; line-height: 1.65; color: var(--texte); transition: color .4s; border-radius: 10px; }
.arret.en-lecture > .script > p, .script.en-lecture > p { color: var(--pale); }
.arret.en-lecture > .script > p.actif, .script.en-lecture > p.actif { color: var(--encre); }
.arret.en-lecture > .script > p.lu, .script.en-lecture > p.lu { color: var(--doux); }
.figure { margin: 4px 0 16px; cursor: zoom-in; }
.figure img { width: 100%; max-height: 300px; object-fit: cover; border-radius: var(--r); }
.figure figcaption { padding: 8px 2px 0; font-size: .78em; color: var(--doux); line-height: 1.35; }
.figure figcaption small { color: var(--pale); }

/* défi */
.defi { margin: 22px 16px 0; padding: 18px 16px 16px; border-radius: var(--r-l); background: var(--carte); box-shadow: var(--ombre-forte); border: 1px solid var(--bord); }
.defi-tete { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.defi-tete .sceau { width: 42px; flex: none; }
.defi-tete .etiquette-section { margin: 0; font-size: .78em; font-weight: 700; color: var(--orange-fonce); }
.defi h3 { font: 800 1.12em/1.3 var(--sans); letter-spacing: -.015em; margin: 2px 0 0; }
.choix { display: grid; gap: 8px; }
.choix button {
  display: flex; align-items: center; gap: 12px; text-align: left; padding: 13px 14px; border-radius: 18px; background: var(--gris);
  font-size: .95em; font-weight: 500; transition: background .2s, transform .1s;
}
.choix button:hover:not(:disabled) { background: #eaeaef; }
.choix button:active:not(:disabled) { transform: scale(.98); }
.choix .lettre { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none; background: #fff; font-size: .8em; font-weight: 800; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.choix button:disabled { cursor: default; }
.choix button.bon { background: var(--vert-pale); color: #145a30; }
.choix button.bon .lettre { background: var(--vert-fonce); color: #fff; }
.choix button.faux { background: var(--corail-pale); color: #7a231d; }
.choix button.faux .lettre { background: var(--corail-fonce); color: #fff; }
.choix button.eteint { opacity: .45; }
.verdict { margin-top: 12px; padding: 12px 14px; border-radius: 16px; background: var(--fond); font-size: .9em; color: var(--texte); animation: monte .3s ease-out; }
.verdict b { display: block; margin-bottom: 2px; color: var(--encre); }
@keyframes monte { from { transform: translateY(14px); opacity: 0; } }

.indice { margin: 12px 16px 0; padding: 16px; border-radius: var(--r); display: flex; gap: 12px; align-items: flex-start; background: var(--violet-pale); }
.indice .pastille-ico { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; flex: none; background: var(--violet); color: #fff; }
.indice .pastille-ico .ico { width: 20px; height: 20px; }
.indice .etiquette-section { margin: 0 0 2px; font-size: .76em; font-weight: 700; color: var(--violet-fonce); }
.indice p { margin: 0; font-size: .9em; color: var(--texte); }
.indice b.titre { display: block; font: 800 1.02em var(--sans); margin-bottom: 2px; }
.indice.verrou { background: var(--gris); }
.indice.verrou .pastille-ico { background: #dcdce2; color: var(--doux); }
.indice.verrou .etiquette-section { color: var(--doux); }
.indice.nouveau { animation: eclat .9s ease-out; }
@keyframes eclat { 0% { transform: scale(.96); box-shadow: 0 0 0 0 rgba(155,140,242,.5); } 60% { box-shadow: 0 0 0 14px rgba(155,140,242,0); } 100% { transform: none; } }

details.option { margin: 14px 16px 0; border-radius: var(--r); background: var(--carte); border: 1px solid var(--bord); overflow: hidden; }
details.option summary { list-style: none; display: flex; gap: 12px; align-items: center; padding: 14px 16px; cursor: pointer; }
details.option summary::-webkit-details-marker { display: none; }
details.option summary .pastille-ico { width: 38px; height: 38px; border-radius: 13px; display: grid; place-items: center; background: var(--bleu-pale); color: var(--bleu-fonce); flex: none; }
details.option summary b { display: block; font-size: .92em; }
details.option summary span { font-size: .8em; color: var(--doux); }
details.option summary .fleche { margin-left: auto; transition: transform .2s; color: var(--pale); }
details.option[open] summary .fleche { transform: rotate(90deg); }
details.option .script { padding: 0 16px 6px; }
details.option .bloc-video { margin: 2px 0 18px; }

.suite { margin: 22px 16px 0; border-radius: var(--r-l); overflow: hidden; background: var(--encre); color: #fff; }
.suite-marche { display: flex; align-items: center; gap: 8px; padding: 14px 16px 4px; font-size: .84em; color: rgba(255,255,255,.7); font-weight: 500; }
.suite-marche .ico { width: 18px; height: 18px; color: var(--orange); }
.suite-btn { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 14px 14px; text-align: left; color: #fff; }
.suite-btn .vignette { width: 52px; height: 52px; border-radius: 16px; }
.suite-btn h4 { margin: 0; font: 700 1.05em/1.2 var(--sans); }
.suite-btn > span > span { font-size: .78em; font-weight: 600; color: var(--orange); }
.suite-btn .fleche-ronde { margin-left: auto; width: 42px; height: 42px; border-radius: 50%; background: #fff; color: var(--encre); display: grid; place-items: center; flex: none; }
.pied-arret { height: 30px; }

/* ============================================================================ lecteur audio (étapes sans récit illustré) */
.lecteur { margin: 14px 16px 0; padding: 14px; border-radius: var(--r-l); background: var(--carte); box-shadow: var(--ombre); border: 1px solid var(--bord); }

/* forme d'onde et commandes (partagées) */
.onde { display: flex; align-items: center; gap: 2px; height: 40px; cursor: pointer; }
.onde i { flex: 1; border-radius: 2px; background: #dcdce2; min-height: 3px; transition: background .2s; }
.onde i.lu { background: var(--encre); }
.temps { display: flex; justify-content: space-between; font-size: .74em; color: var(--doux); margin-top: 4px; font-variant-numeric: tabular-nums; font-weight: 500; }
.commandes { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.commandes .saut { width: 46px; height: 46px; display: grid; place-items: center; position: relative; color: var(--encre); }
.commandes .saut span { position: absolute; font-size: 9px; font-weight: 800; top: 18px; }
.commandes .saut .ico { width: 30px; height: 30px; stroke-width: 1.6; }
.lire { width: 60px; height: 60px; border-radius: 50%; background: var(--encre); color: #fff; display: grid; place-items: center; transition: transform .12s; box-shadow: 0 8px 20px rgba(17,17,20,.25); }
.lire:active { transform: scale(.94); }
.lire .ico { width: 26px; height: 26px; }
.vitesse { min-width: 46px; height: 32px; border-radius: 12px; background: var(--gris); font-size: .78em; font-weight: 800; display: grid; place-items: center; }
.vitesse .ico { width: 18px; height: 18px; }

/* ============================================================================ mini-lecteur, toasts, agrandissement */
.mini {
  position: absolute; left: 12px; right: 12px; bottom: 18px; z-index: 1100; display: flex; align-items: center; gap: 10px; padding: 8px;
  border-radius: 22px; background: rgba(255,255,255,.96); backdrop-filter: blur(14px); box-shadow: var(--ombre-forte); overflow: hidden; animation: monte .25s ease-out;
}
.mini img { width: 44px; height: 44px; border-radius: 14px; object-fit: cover; }
.mini .txt { flex: 1; min-width: 0; cursor: pointer; }
.mini b { display: block; font-size: .88em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini span { font-size: .76em; color: var(--doux); font-variant-numeric: tabular-nums; }
.mini .lire { width: 42px; height: 42px; box-shadow: none; }
.mini .lire .ico { width: 18px; height: 18px; }
.mini .jauge { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--orange); }

.toast {
  position: absolute; left: 14px; right: 14px; top: 58px; z-index: 1200; display: flex; gap: 12px; align-items: center; padding: 10px 14px 10px 10px;
  border-radius: 22px; background: var(--encre); color: #fff; box-shadow: var(--ombre-forte); animation: descend .35s cubic-bezier(.2,1.4,.4,1);
}
.toast .sceau { width: 42px; flex: none; }
.toast b { display: block; font-size: .92em; }
.toast span { font-size: .8em; opacity: .7; }
@keyframes descend { from { transform: translateY(-30px); opacity: 0; } }

.couche { position: absolute; inset: 0; z-index: 1300; background: #0c0c0e; color: #fff; display: flex; flex-direction: column; animation: fondu .2s; }
@keyframes fondu { from { opacity: 0; } }
.couche .fermer { position: absolute; right: 14px; top: 56px; z-index: 2; background: rgba(255,255,255,.15); color: #fff; box-shadow: none; }
.couche-img-pleine { flex: 1; display: grid; place-items: center; padding: 70px 10px 10px; min-height: 0; }
.couche-img-pleine img { max-height: 100%; max-width: 100%; object-fit: contain; border-radius: 12px; }
.couche-legende { padding: 10px 22px 40px; font-size: .86em; line-height: 1.4; }
.couche-legende small { display: block; opacity: .6; margin-top: 4px; }
.couche-legende a { color: var(--orange); }

/* ============================================================================ récit illustré */
@property --n { syntax: "<integer>"; inherits: false; initial-value: 0; }

.bloc-video { margin: 0 14px; }
.video { position: relative; aspect-ratio: 16 / 10.5; overflow: hidden; border-radius: var(--r-l); background: #121215; color: #fff; user-select: none; box-shadow: var(--ombre-forte); }
.commandes-video { padding: 12px 4px 4px; }
.commandes-video .onde { height: 32px; }
.plans, .plan { position: absolute; inset: 0; }
.plan { animation: plan-entree .7s ease both; animation-delay: calc(0s - var(--e, 0s)); }
@keyframes plan-entree { from { opacity: 0; } }
.an { animation-duration: .8s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); animation-fill-mode: both; animation-delay: calc(var(--t, 0s) - var(--e, 0s)); }
.video.pause .plan, .video.pause .plan * { animation-play-state: paused !important; }

.plan-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--op0); transform: scale(var(--s0));
  animation: camera var(--d) linear both; animation-delay: calc(0s - var(--e, 0s)); }
@keyframes camera { from { object-position: var(--op0); transform: scale(var(--s0)); } to { object-position: var(--op1); transform: scale(var(--s1)); } }
.voile { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,0) 28%, rgba(0,0,0,0) 55%, rgba(0,0,0,.55)); }
.camouflage { position: absolute; inset: 0; mix-blend-mode: multiply; animation-name: apparait; animation-duration: 2.5s;
  background:
    radial-gradient(38% 30% at 30% 30%, rgba(60, 120, 60, .85), transparent 70%),
    radial-gradient(30% 26% at 70% 45%, rgba(170, 60, 50, .8), transparent 70%),
    radial-gradient(34% 28% at 45% 75%, rgba(70, 130, 70, .85), transparent 70%),
    radial-gradient(26% 22% at 80% 80%, rgba(160, 70, 50, .75), transparent 70%); }
@keyframes apparait { from { opacity: 0; } }

.etiq { position: absolute; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 6px 12px 6px 9px; border-radius: 999px; background: #fff; color: var(--encre); font: 700 12.5px var(--sans);
  box-shadow: 0 6px 18px rgba(0,0,0,.3); animation-name: pop; }
.etiq i { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
@keyframes pop { from { opacity: 0; transform: translate(-50%, -50%) scale(.5); } 70% { transform: translate(-50%, -50%) scale(1.06); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
.cote { position: absolute; width: 2px; background: #fff; transform-origin: 50% 100%; animation-name: grandit; animation-duration: 1.4s; }
.cote::before, .cote::after { content: ""; position: absolute; left: -6px; width: 14px; height: 2px; background: #fff; }
.cote::before { top: 0; } .cote::after { bottom: 0; }
.cote b { position: absolute; top: 50%; right: 10px; transform: translateY(-50%); font: 800 26px/1 var(--sans); letter-spacing: -.03em; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.6); white-space: nowrap; }
@keyframes grandit { from { transform: scaleY(0); } }
.tiers { position: absolute; left: 12px; bottom: 56px; max-width: calc(100% - 24px); padding: 8px 14px; background: #fff; color: var(--encre);
  font: 700 14px/1.25 var(--sans); border-radius: 14px; box-shadow: 0 8px 22px rgba(0,0,0,.3); animation-name: glisse; animation-duration: .8s; }
@keyframes glisse { from { transform: translateY(14px); opacity: 0; } }
.tampon { position: absolute; left: 50%; top: 42%; padding: 6px 14px; border-radius: 12px; background: var(--corail-fonce); color: #fff;
  font: 800 16px var(--sans); transform: translate(-50%, -50%) rotate(-6deg); box-shadow: 0 10px 24px rgba(0,0,0,.35); animation-name: tamponne; animation-duration: .5s; }
@keyframes tamponne { from { opacity: 0; transform: translate(-50%, -50%) rotate(-6deg) scale(1.8); } }
.ici { position: absolute; transform: translate(-50%, -50%); animation-name: apparait; }
.ici i { position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #fff; animation: onde 2s ease-out infinite; }
.ici i + i { animation-delay: 1s; }
.ici::before { content: ""; position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border-radius: 50%; background: var(--bleu-fonce); border: 2px solid #fff; }
.ici b { position: absolute; left: 14px; top: -12px; white-space: nowrap; padding: 3px 9px; border-radius: 999px; background: #fff; color: var(--encre); font: 700 12px var(--sans); }
@keyframes onde { from { transform: scale(.6); opacity: 1; } to { transform: scale(3.2); opacity: 0; } }

.plan-titre { display: grid; place-items: center; text-align: center; padding: 30px 26px 60px; }
.fond-anime { position: absolute; inset: -20%;
  background:
    radial-gradient(40% 45% at 25% 30%, rgba(244, 184, 96, .55), transparent 70%),
    radial-gradient(45% 50% at 78% 70%, rgba(155, 140, 242, .55), transparent 70%),
    radial-gradient(35% 40% at 70% 20%, rgba(106, 166, 245, .35), transparent 70%), #141418;
  filter: blur(10px); animation: respire var(--d, 10s) ease-in-out both; animation-delay: calc(0s - var(--e, 0s)); }
@keyframes respire { from { transform: scale(1) rotate(0deg); } to { transform: scale(1.15) rotate(6deg); } }
.titre-bloc { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.t-sur { --t: .15s; padding: 4px 11px; border-radius: 999px; background: rgba(255,255,255,.16); backdrop-filter: blur(8px); font: 600 12px var(--sans); color: #fff; animation-name: monte-fondu; }
.t-grand { --t: .35s; font: 800 34px/1.02 var(--sans); letter-spacing: -.035em; animation-name: devoile; animation-duration: 1s; }
.t-sous { --t: .9s; font: 500 14.5px/1.4 var(--sans); color: rgba(255,255,255,.78); max-width: 290px; animation-name: monte-fondu; }
.t-unite { --t: .9s; font: 700 15px var(--sans); color: var(--orange); animation-name: monte-fondu; }
@keyframes monte-fondu { from { opacity: 0; transform: translateY(10px); } }
@keyframes devoile { from { opacity: 0; transform: translateY(12px) scale(.96); filter: blur(6px); } }
.nombre { --t: .3s; animation-name: compte; animation-duration: 1.8s; animation-timing-function: cubic-bezier(.15, .8, .25, 1); counter-reset: n var(--n); --n: var(--cible); }
.nombre::before { content: counter(n); }
@keyframes compte { from { --n: 0; } to { --n: var(--cible); } }
.plan-compteur .t-grand { font-size: 48px; animation: none; }
.grand-point { position: absolute; right: -10px; bottom: -60px; font: 800 250px/1 var(--sans); color: rgba(255,255,255,.07); }
.t-q { font: 700 19px/1.3 var(--sans); letter-spacing: -.02em; max-width: 310px; }
.t-cit { font: 700 18px/1.35 var(--sans); letter-spacing: -.015em; max-width: 310px; }
.mot { display: inline-block; animation-name: mot; animation-duration: .45s; }
@keyframes mot { from { opacity: 0; transform: translateY(6px); filter: blur(3px); } }
.t-idee { --t: .3s; font: 800 22px/1.2 var(--sans); letter-spacing: -.03em; max-width: 300px; animation-name: monte-fondu; animation-duration: 1s; }
.idee-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .22; mix-blend-mode: screen;
  animation: camera var(--d) linear both; --op0: 50% 50%; --op1: 50% 50%; --s0: 1.05; --s1: 1.2; animation-delay: calc(0s - var(--e, 0s)); }

.plan-duo { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 0 18px 48px; }
.duo-carte { position: relative; margin: 0; width: 41%; aspect-ratio: 3 / 4; border-radius: 18px; overflow: hidden; box-shadow: 0 14px 30px rgba(0,0,0,.45); border: 3px solid #fff; animation-duration: 1s; }
.duo-carte.g { animation-name: entre-g; } .duo-carte.d { animation-name: entre-d; }
@keyframes entre-g { from { opacity: 0; transform: translateX(-40px) rotate(-4deg); } }
@keyframes entre-d { from { opacity: 0; transform: translateX(40px) rotate(4deg); } }
.duo-carte img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.duo-carte figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 9px 8px; background: linear-gradient(transparent, rgba(0,0,0,.85)); }
.duo-carte b { display: block; font: 700 13px/1.15 var(--sans); }
.duo-carte span { font-size: 10.5px; opacity: .8; }

.plan-carte svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.carte-zoom { transform-origin: 50% 50%; transform-box: view-box; animation: zoom-carte var(--d) ease-in-out both; animation-delay: calc(0s - var(--e, 0s)); }
@keyframes zoom-carte { from { transform: scale(var(--z0)); } to { transform: scale(var(--z1)); } }
.carte-nom { font: 600 8px var(--sans); fill: #8b8b96; }
.carte-nom.eau { fill: #5b8fcf; font-size: 9px; }
.chemin { fill: none; stroke: var(--orange-fonce); stroke-width: 3.2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation-name: trace; animation-duration: var(--duree, 2.4s); animation-timing-function: ease-in-out; }
@keyframes trace { to { stroke-dashoffset: 0; } }
.point { animation-name: pop-svg; }
@keyframes pop-svg { from { opacity: 0; transform: scale(0); } 70% { transform: scale(1.2); } }
.point-rond { fill: var(--encre); stroke: #fff; stroke-width: 2.5; }
.point-nom { font: 700 8.5px var(--sans); fill: var(--encre); paint-order: stroke; stroke: #fff; stroke-width: 3px; }
.point-nom.g { text-anchor: end; }
.ici-carte { animation-name: apparait; }
.ici-rond { fill: var(--bleu-fonce); stroke: #fff; stroke-width: 2; }
.ici-onde { fill: none; stroke: var(--bleu-fonce); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: onde 2s ease-out infinite; }
.ici-onde.o2 { animation-delay: 1s; }
.carte-texte { position: absolute; transform: translate(-50%, -50%); padding: 6px 13px; border-radius: 999px; background: var(--encre); color: #fff; font: 700 13px var(--sans); animation-name: pop; }

.plan-ambiance img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; filter: blur(2px);
  animation: camera var(--d) linear both; --op0: 50% 50%; --op1: 50% 50%; --s0: 1.1; --s1: 1.25; animation-delay: calc(0s - var(--e, 0s)); }

.st { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 6; text-align: center; pointer-events: none; transition: opacity .2s; }
.st.vide { opacity: 0; }
.st span { display: inline; padding: 3px 8px; border-radius: 6px; background: rgba(10, 10, 12, .78); color: #fff; font: 500 14px/1.6 var(--sans);
  -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.video-haut { position: absolute; left: 12px; right: 12px; top: 12px; z-index: 6; display: flex; justify-content: space-between; align-items: center; pointer-events: none; }
.badge-video { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.18); backdrop-filter: blur(8px); font: 600 11px var(--sans); }
.badge-video .ico { width: 13px; height: 13px; }
.cc { pointer-events: auto; padding: 4px 8px; border-radius: 8px; font: 800 10.5px var(--sans); color: rgba(255,255,255,.75); background: rgba(255,255,255,.18); backdrop-filter: blur(8px); }
.cc.actif { background: #fff; color: var(--encre); }
.poster { position: absolute; inset: 0; z-index: 7; display: block; width: 100%; color: #fff; text-align: left; transition: opacity .5s; }
.poster img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: brightness(.7); }
.poster-txt { position: absolute; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center;
  padding: 40px 16px 16px; background: linear-gradient(transparent, rgba(0,0,0,.7)); }
.poster-play { grid-row: span 2; width: 54px; height: 54px; border-radius: 50%; background: #fff; color: var(--encre); display: grid; place-items: center; box-shadow: 0 0 0 7px rgba(255,255,255,.22); animation: battement 2.2s ease-in-out infinite; }
.poster-play .ico { width: 24px; height: 24px; margin-left: 3px; }
@keyframes battement { 50% { box-shadow: 0 0 0 13px rgba(255,255,255,.08); } }
.poster b { font: 800 19px/1.1 var(--sans); letter-spacing: -.02em; }
.poster-duree { font-size: 12.5px; opacity: .8; }
.video.demarre .poster { opacity: 0; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .couche-img.visible img, .poster-play { animation: none !important; }
}

/* nom du parcours : bandeau fin, centré, sur toute la largeur */
.titre-carte {
  left: 14px; right: 14px; max-width: none; flex-direction: row; align-items: center; justify-content: center; gap: 10px;
  padding: 9px 18px; border-radius: 999px; white-space: nowrap;
}
.titre-carte b { display: inline; font-size: 1em; font-weight: 700; }
.titre-carte .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--pale); flex: none; }
.titre-carte .sur { display: inline; font-size: .84em; overflow: hidden; text-overflow: ellipsis; }
.carte-boutons { top: calc(var(--haut) + 58px); }

/* ============================================================================ affiche, lecteur compact, plein écran */
.affiche { position: relative; display: block; width: 100%; aspect-ratio: 16 / 11; border-radius: var(--r-l); overflow: hidden; text-align: left; color: #fff; box-shadow: var(--ombre-forte); }
.affiche img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform .6s; }
.affiche:hover img { transform: scale(1.04); }
.affiche::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.65)); }
.affiche-txt { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 2; display: flex; align-items: center; gap: 14px; }
.affiche-play { width: 58px; height: 58px; border-radius: 50%; background: #fff; color: var(--encre); display: grid; place-items: center; flex: none;
  box-shadow: 0 0 0 7px rgba(255,255,255,.25); animation: battement 2.2s ease-in-out infinite; }
.affiche-play .ico { width: 24px; height: 24px; margin-left: 3px; }
.affiche b { display: block; font: 800 20px/1.1 var(--sans); letter-spacing: -.02em; }
.affiche-sous { font-size: 12.5px; opacity: .85; }

.compact { padding: 6px 4px 2px; }
.barre-temps { position: relative; height: 6px; border-radius: 3px; background: #e4e4ea; cursor: pointer; }
.barre-temps::before { content: ""; position: absolute; inset: -10px 0; }
.barre-temps i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: var(--encre); }
.compact .temps { margin-top: 6px; }
.compact .commandes { margin-top: 4px; }

.plein { position: absolute; inset: 0; z-index: 1250; background: #0b0b0d; color: #fff; overflow: hidden; animation: plein-entree .38s cubic-bezier(.2, .9, .25, 1); }
.plein.sortie { animation: plein-sortie .28s ease-in forwards; }
@keyframes plein-entree { from { transform: translateY(40%) scale(.92); opacity: 0; border-radius: 40px; } }
@keyframes plein-sortie { to { transform: translateY(45%) scale(.9); opacity: 0; } }
.plein-scene { position: absolute; inset: 0; touch-action: none; }
.plein .plans { position: absolute; inset: 0; }
.plein-voile { position: absolute; inset: 0; pointer-events: none; z-index: 5;
  background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 18%, rgba(0,0,0,0) 58%, rgba(0,0,0,.8) 100%); }
.plein-haut { position: absolute; left: 14px; right: 14px; top: calc(var(--haut, 50px) + 8px); z-index: 8; display: flex; align-items: center; gap: 10px; }
.rond.verre { background: rgba(255,255,255,.18); color: #fff; box-shadow: none; backdrop-filter: blur(10px); }
.plein-titre { flex: 1; min-width: 0; text-align: center; }
.plein-titre span { display: block; font-size: 12px; font-weight: 600; color: var(--orange); }
.plein-titre b { display: block; font: 800 16px/1.2 var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plein .cc { padding: 6px 10px; font-size: 11.5px; }
.plein .st { left: 18px; right: 18px; bottom: 168px; }
.plein .st span { font-size: 17px; line-height: 1.55; padding: 3px 9px; }
.plein-bas { position: absolute; left: 18px; right: 18px; bottom: 30px; z-index: 8; }
.plein-bas .barre-temps { background: rgba(255,255,255,.25); }
.plein-bas .barre-temps i { background: #fff; }
.plein-bas .temps { color: rgba(255,255,255,.75); margin-top: 6px; }
.plein-bas .commandes { margin-top: 6px; }
.plein-bas .saut { color: #fff; }
.plein-bas .lire { background: #fff; color: var(--encre); box-shadow: none; }
.plein-bas .vitesse { background: rgba(255,255,255,.16); color: #fff; }
.plein-flash { position: absolute; left: 50%; top: 45%; z-index: 7; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(0,0,0,.45); backdrop-filter: blur(6px); opacity: 0; pointer-events: none; }
.plein-flash .ico { width: 32px; height: 32px; }
.plein-flash.montre { animation: flash .7s ease-out; }
@keyframes flash { 0% { opacity: 1; transform: scale(.8); } 100% { opacity: 0; transform: scale(1.25); } }
.plein.pause .plan, .plein.pause .plan * { animation-play-state: paused !important; }

/* les plans en format vertical */
.plein .tiers { bottom: 236px; left: 18px; font-size: 16px; padding: 10px 16px; }
.plein .t-grand { font-size: 40px; }
.plein .plan-compteur .t-grand { font-size: 56px; }
.plein .t-q, .plein .t-cit { font-size: 23px; max-width: 320px; }
.plein .t-idee { font-size: 28px; max-width: 320px; }
.plein .t-sous { font-size: 16px; }
.plein .plan-titre { padding: 120px 28px 240px; }
.plein .plan-duo { flex-direction: column; gap: 16px; padding: 110px 0 240px; }
.plein .duo-carte { width: 46%; }
.plein .duo-carte.g { align-self: flex-start; margin-left: 12%; }
.plein .duo-carte.d { align-self: flex-end; margin-right: 12%; margin-top: -60px; }
.plein .etiq { font-size: 14px; padding: 7px 14px 7px 10px; }
.plein .cote b { font-size: 32px; }
.plein .carte-texte { font-size: 15px; }
.plein .tampon { font-size: 19px; }
.plein .carte-texte { top: 64% !important; }
.plein .ici { top: 60% !important; }

/* ============================================================================ récit illustré v2 : vraie carte, photo du lecteur compact */
.carte-video { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; background: #f6f3ee; }
.carte-video.visible { opacity: 1; }
.plan-carte-vraie { background: transparent; pointer-events: none; }
.video-recit { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #0b0b0d; pointer-events: none; }
.pin-video { width: 22px; height: 22px; border-radius: 50%; background: var(--encre); border: 4px solid #fff; box-shadow: 0 4px 12px rgba(0,0,0,.35);
  opacity: 0; transform: scale(.2); transition: opacity .4s, transform .5s cubic-bezier(.2, 1.6, .4, 1); }
.pin-video.arrivee { background: var(--orange-fonce); width: 28px; height: 28px; }
.pin-video.vu { opacity: 1; transform: scale(1); }
/* MapLibre impose une opacité en ligne sur ses marqueurs : on la neutralise tant que le repère n'est pas encore cité */
.pin-video:not(.vu), .ici-video:not(.vu) { opacity: 0 !important; }
.ici-video { position: relative; width: 20px; height: 20px; opacity: 0; transition: opacity .4s; }
.ici-video.vu { opacity: 1; }
.ici-video::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--bleu-fonce); border: 3px solid #fff; box-shadow: 0 3px 10px rgba(0,0,0,.3); }
.ici-video i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--bleu-fonce); animation: onde 2s ease-out infinite; }
.ici-video i + i { animation-delay: 1s; }
.ici-video b { display: none; }
.plein .carte-video .maplibregl-canvas { outline: none; }

.compact-photo { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; margin-bottom: 14px; box-shadow: var(--ombre); }
.compact-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.compact-photo-txt { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px;
  background: rgba(17,17,20,.6); backdrop-filter: blur(8px); color: #fff; font: 600 12px var(--sans); }
.compact-photo-txt .ico { width: 14px; height: 14px; }

/* point focal du zoom (plans « photo ») */
.plan-photo img { transform-origin: var(--fx, 50%) var(--fy, 50%); }

/* plan ancien avec chemin dessiné dessus */
.plan-ancien { background: #efe9dc; overflow: hidden; }
.ancien { position: absolute; transform-origin: var(--fx) var(--fy); animation: camera-ancien var(--d) linear both; animation-delay: calc(0s - var(--e, 0s)); }
@keyframes camera-ancien { from { transform: scale(var(--s0)); } to { transform: scale(var(--s1)); } }
.ancien img, .ancien svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ancien img { object-fit: fill; filter: sepia(.35) contrast(1.05); }
.chemin-ancien, .chemin-ancien-fond { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1;
  animation-name: trace; animation-duration: var(--duree, 4s); animation-timing-function: ease-in-out; }
.chemin-ancien { stroke: #b3261e; stroke-width: 12; }
.chemin-ancien-fond { stroke: rgba(255, 250, 240, .85); stroke-width: 22; }
.pin-ancien { fill: #111114; stroke: #fff; stroke-width: 6; animation-name: pop-svg; }
.pin-ancien.arrivee { fill: #b3261e; }

/* ============================================================================ direction artistique « nuit et or »
   Ces règles viennent en dernier : elles reprennent les composants dessinés pour l'ancien thème clair. */
.filtres { position: absolute; width: 0; height: 0; overflow: hidden; }
body { font-feature-settings: normal; }

/* scène autour du téléphone */
.scene {
  background:
    radial-gradient(520px 420px at 22% 18%, rgba(246, 211, 141, .10), transparent 70%),
    radial-gradient(560px 460px at 80% 78%, rgba(90, 120, 200, .16), transparent 70%),
    var(--page);
}
.appareil { background: #1b2233; box-shadow: 0 40px 90px -20px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .06), inset 0 0 0 1px rgba(255, 255, 255, .08); }
.appareil::before, .appareil::after { background: #2a3247; }
.appareil::after { box-shadow: 0 76px 0 #2a3247; }
.barre-etat { color: #fff; }
.barre-accueil { background: #fff; }
.relancer { background: var(--nuit-2); color: #fff; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .6), 0 0 0 1px var(--bord); }
.relancer:hover { box-shadow: 0 14px 34px -10px rgba(0, 0, 0, .7), 0 0 0 1px rgba(246, 211, 141, .35); }

/* boutons ronds, bandeau du parcours, carte */
.rond { background: var(--nuit-2); color: #fff; box-shadow: 0 6px 20px rgba(0, 0, 0, .35), inset 0 0 0 1px var(--bord); }
#carte { background: var(--nuit-1); }
.leaflet-control-attribution { background: rgba(15, 29, 56, .8) !important; color: var(--doux) !important; }
.leaflet-control-attribution a { color: var(--texte) !important; }
.titre-carte { background: rgba(15, 29, 56, .82); color: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, .35), inset 0 0 0 1px var(--bord); }
.titre-carte .sur { color: var(--doux); }
.titre-carte .sep { background: var(--or); }

/* repères des étapes sur la carte */
.repere { filter: drop-shadow(0 3px 8px rgba(0, 0, 0, .5)); }
.sceau-cire { fill: var(--nuit-2); stroke: var(--or); stroke-width: 5; }
.sceau-vide .sceau-cire { fill: var(--nuit-2); stroke: var(--or); stroke-width: 5; }
.sceau-num { fill: #fff; }
.repere-id { color: #fff; }
.sceau g { color: var(--or); }
.sceau-rouge .sceau-cire { fill: var(--nuit-2); }
.sceau-or .sceau-cire { fill: var(--or); stroke: #fff; }
.sceau-or g { color: var(--sur-or); }
.sceau-cire-simple .sceau-cire { fill: var(--nuit-3); }
.repere.choisi .sceau-cire { stroke: #fff; stroke-width: 7; }
.moi { background: var(--or); border-color: #fff; box-shadow: 0 0 0 6px rgba(246, 211, 141, .25); }

/* feuille */
/* un pixel de plus de chaque côté : à certaines tailles de fenêtre, l'arrondi laissait voir la carte (et son tracé doré) au bord */
.feuille { left: -1px; right: -1px; }
.feuille { background: var(--nuit-1); box-shadow: 0 -10px 40px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .06); }
.feuille-poignee span { background: rgba(255, 255, 255, .22); }
.tete-etape .tete-txt .sur { color: var(--or); letter-spacing: .04em; text-transform: uppercase; font-size: .7em; }
.tete-etape .rond { background: var(--nuit-2); box-shadow: inset 0 0 0 1px var(--bord); }
.lien-arret:hover { background: var(--gris); }

/* pastilles et étiquettes */
.t-etape, .t-secret { background: var(--or); color: var(--sur-or); }
.p-audio { background: rgba(246, 211, 141, .14); color: var(--or); }
.p-fait { background: var(--vert-pale); color: var(--vert-fonce); }
.p-facul { color: var(--doux); }

/* page d'une étape */
.arret-meta { color: var(--doux); }
.arret-tete h1 { color: #fff; }
.bloc { box-shadow: inset 0 0 0 1px var(--bord); }
.b-regardez { background: rgba(246, 211, 141, .09); } .b-regardez .bloc-titre { color: var(--or); }
.b-discute .bloc-titre { color: var(--bleu-fonce); }
.b-erreur .bloc-titre { color: var(--corail-fonce); }
.scene-img { background: var(--nuit-0); }
.scene-fleche { background: rgba(15, 29, 56, .85); color: #fff; }
.defi { background: var(--nuit-2); box-shadow: 0 18px 50px rgba(0, 0, 0, .35); }
.defi-tete .etiquette-section { color: var(--or); }
.choix button:hover:not(:disabled) { background: rgba(255, 255, 255, .1); }
.choix .lettre { background: var(--nuit-3); color: #fff; box-shadow: none; }
.choix button.bon { background: var(--vert-pale); color: #c9f1d5; }
.choix button.bon .lettre { background: #2f9e57; }
.choix button.faux { background: var(--corail-pale); color: #f7cdc8; }
.choix button.faux .lettre { background: #c4544b; }
.verdict { background: var(--nuit-1); }
.indice .pastille-ico { background: var(--violet); color: var(--nuit-1); }
.indice.verrou .pastille-ico { background: var(--nuit-3); color: var(--doux); }
details.option { background: var(--nuit-2); }
details.option summary .pastille-ico { background: rgba(246, 211, 141, .12); color: var(--or); }
.suite { background: var(--nuit-2); box-shadow: inset 0 0 0 1px var(--bord); }
.suite-marche .ico, .suite-btn > span > span { color: var(--or); }
.suite-btn .fleche-ronde { background: var(--or); color: var(--sur-or); }
.lecteur { background: var(--nuit-2); }
.onde i { background: rgba(255, 255, 255, .14); }
.onde i.lu { background: var(--or); }

/* lecteur : boutons carrés arrondis, lecture dorée */
.commandes .saut { color: #fff; }
.vitesse { min-width: 52px; height: 52px; border-radius: 16px; background: var(--nuit-2); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); font-size: .9em; }
.lire { width: 70px; height: 70px; border-radius: 24px; background: var(--or); color: var(--sur-or); box-shadow: 0 10px 34px rgba(246, 211, 141, .35); }
.lire .ico { width: 28px; height: 28px; }
.barre-temps { height: 6px; background: rgba(255, 255, 255, .14); }
.barre-temps i { background: var(--or); }
.barre-temps i::after { content: ""; position: absolute; right: -9px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%;
  background: var(--or); box-shadow: 0 0 0 5px rgba(246, 211, 141, .18), 0 0 18px rgba(246, 211, 141, .6); }
.temps { color: var(--doux); }

/* affiche « Écouter le récit » et lecteur compact */
.affiche::after { background: linear-gradient(180deg, rgba(15, 29, 56, 0) 35%, rgba(15, 29, 56, .92)); }
.affiche-play { border-radius: 20px; background: var(--or); color: var(--sur-or); box-shadow: 0 8px 28px rgba(246, 211, 141, .4); animation: none; }
.compact-photo-txt { background: rgba(15, 29, 56, .75); }
/* transcription : le mot que prononce le narrateur passe en or */
.script .mt { transition: color .15s; }
.script .mt.dit { color: var(--or); }
/* affiche « Écouter le récit » : l'image en entier, sur fond bleu nuit */
.affiche { background: var(--nuit-0); }
.affiche img { object-fit: contain; object-position: 50% 50%; }
.affiche:hover img { transform: none; }
/* image du lecteur compact : l'image du moment, en entier sur fond bleu nuit */
.compact-photo { background: var(--nuit-0); }
.compact-photo img { object-fit: contain; object-position: 50% 50%; }

/* mini-lecteur, messages, agrandissement */
.mini { background: rgba(22, 38, 74, .96); box-shadow: 0 18px 50px rgba(0, 0, 0, .5), inset 0 0 0 1px var(--bord); }
.mini .lire { width: 44px; height: 44px; border-radius: 15px; box-shadow: none; }
.mini .jauge { background: var(--or); }
.toast { background: var(--nuit-2); box-shadow: 0 18px 50px rgba(0, 0, 0, .5), inset 0 0 0 1px var(--bord); }
.couche { background: var(--nuit-0); }
.couche-legende a { color: var(--or); }

/* ---------------------------------------------------------------- plein écran (maquette « nuit et or ») */
.plein { background: var(--nuit-1); }
.plein-voile { background: linear-gradient(180deg, rgba(15, 29, 56, .55) 0%, rgba(15, 29, 56, 0) 16%, rgba(15, 29, 56, 0) 42%, rgba(15, 29, 56, .88) 64%, var(--nuit-1) 86%); }
.plein-haut { justify-content: space-between; }
.plein-haut .rond.verre { width: 46px; height: 46px; background: rgba(15, 29, 56, .7); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.plein-titre { display: none; }
.plein .cc { padding: 11px 18px; border-radius: 999px; font: 700 14px var(--sans); background: rgba(15, 29, 56, .7); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.plein .cc.actif { background: #fff; color: var(--sur-or); box-shadow: 0 6px 20px rgba(0, 0, 0, .35); }
.plein-texte { position: absolute; left: 20px; right: 18px; bottom: 192px; z-index: 6; pointer-events: none; }
.plein .plein-texte .st { position: static; text-align: left; }
.plein .st > span { display: block; padding: 0; background: none; border-radius: 0; font: 700 35px/1.15 var(--sans); letter-spacing: -.015em; color: #fff; }
.plein .st .mot-st { display: inline; padding: 0; background: none; border-radius: 0; font: inherit; color: inherit; }
.plein .st .mot-st.dit { color: var(--or); }
.plein .st .mot-st { transition: color .15s; }
.plein .st .mot-st.dit { color: var(--or); }
.plein-bas { left: 24px; right: 24px; bottom: 34px; }
.plein-bas .barre-temps { background: rgba(255, 255, 255, .14); }
.plein-bas .barre-temps i { background: var(--or); }
.plein-bas .temps { color: #8d9ab3; margin-top: 12px; font-size: .8em; }
.plein-bas .commandes { margin-top: 14px; }
.plein-bas .lire { width: 80px; height: 80px; border-radius: 26px; background: var(--or); color: var(--sur-or); box-shadow: 0 12px 40px rgba(246, 211, 141, .35); }
.plein-bas .lire .ico { width: 30px; height: 30px; }
.plein-bas .vitesse { min-width: 52px; height: 52px; border-radius: 16px; background: var(--nuit-2); color: #fff; }
.plein-flash { background: rgba(15, 29, 56, .6); }

/* ---------------------------------------------------------------- plans du récit (ce que filme la vidéo) */
.plan { background: var(--nuit-1); }
.plan.plan-carte-vraie { background: transparent; } /* la vraie carte est dessous */
.plan-photo.entier img { inset: 9% 0 auto; height: 58%; object-fit: contain; --op0: 50% 50%; --op1: 50% 50%;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(180deg, transparent, #000 5%, #000 95%, transparent); }
.plan-photo.entier .voile { display: none; }
/* motion design : images en couleurs d'origine, sans zoom (le cadrage reste celui de départ, seul le glissement demeure) */
@keyframes camera { from { object-position: var(--op0); transform: scale(var(--s0)); } to { object-position: var(--op0); transform: scale(var(--s0)); } }
@keyframes camera-ancien { from { transform: scale(var(--s0)); } to { transform: scale(var(--s0)); } }
.voile { background: linear-gradient(180deg, rgba(10, 20, 40, .2), rgba(10, 20, 40, 0) 30%, rgba(10, 20, 40, 0) 55%, rgba(10, 20, 40, .35)); }
.plan-ancien { background: #efe9dc; }
.chemin-ancien { stroke: var(--nuit-1); stroke-width: 8; }
.chemin-ancien-fond { stroke: rgba(255, 255, 255, .9); stroke-width: 20; }
.pin-ancien { fill: var(--or); stroke: var(--nuit-1); stroke-width: 7; filter: drop-shadow(0 0 12px rgba(246, 211, 141, .9)); }
.pin-ancien.arrivee { fill: var(--or); }
.nom-ancien { position: absolute; transform: translate(-50%, calc(-100% - 22px)); white-space: nowrap; padding: 7px 14px; border-radius: 999px;
  background: rgba(15, 29, 56, .88); color: #fff; font: 700 14px var(--sans); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 6px 18px rgba(0, 0, 0, .35);
  animation-name: nom-entree; }
@keyframes nom-entree { from { opacity: 0; transform: translate(-50%, calc(-100% - 10px)); } }
.nom-ancien.vers-g { transform: translate(calc(-100% + 22px), calc(-100% - 22px)); animation-name: nom-entree-g; }
.nom-ancien.vers-d { transform: translate(-22px, calc(-100% - 22px)); animation-name: nom-entree-d; }
@keyframes nom-entree-g { from { opacity: 0; transform: translate(calc(-100% + 22px), calc(-100% - 10px)); } }
@keyframes nom-entree-d { from { opacity: 0; transform: translate(-22px, calc(-100% - 10px)); } }
.zone-ancien { fill: rgba(15, 29, 56, .16); stroke: var(--nuit-1); stroke-width: 3; stroke-dasharray: 9 6; animation-name: apparait; animation-duration: 1.2s; }

/* vraie carte du récit : bleu nuit, tracé blanc lumineux, repères dorés */
.carte-video { background: #f6f3ee; }
.pin-video { background: var(--or); border: 4px solid var(--nuit-1); box-shadow: 0 0 0 6px rgba(246, 211, 141, .35), 0 4px 14px rgba(15, 29, 56, .4); }
.pin-video.arrivee { background: var(--or); }
.ici-video::before { background: var(--nuit-1); border-color: #fff; box-shadow: 0 3px 10px rgba(15, 29, 56, .4); }
.ici-video i { border-color: var(--nuit-1); }
.pin-video b { position: absolute; left: 50%; bottom: calc(100% + 12px); transform: translateX(-50%); white-space: nowrap; padding: 6px 13px; border-radius: 999px;
  background: rgba(15, 29, 56, .88); color: #fff; font: 700 13px var(--sans); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }

/* ============================================================================ accueil : langue et parcours */
.accueil { position: absolute; inset: 0; overflow-y: auto; scrollbar-width: none; padding: calc(var(--haut) + 18px) 20px 28px;
  background: radial-gradient(420px 320px at 85% 0%, rgba(246, 211, 141, .12), transparent 70%), var(--nuit-1); color: #fff; }
.accueil::-webkit-scrollbar { display: none; }
.accueil-haut { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.accueil-sur { font: 700 11px var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--or); }
.accueil-points { display: flex; gap: 6px; }
.accueil-points i { width: 7px; height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .2); transition: width .3s, background .3s; }
.accueil-points i.actif { width: 22px; background: var(--or); }
.accueil h1 { margin: 0 0 22px; font: 800 32px/1.08 var(--sans); letter-spacing: -.03em; }
.choix-liste { display: grid; gap: 10px; }
.choix-carte, .parcours-carte { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 14px; border-radius: 20px;
  background: var(--nuit-2); box-shadow: inset 0 0 0 1px var(--bord); transition: box-shadow .2s, transform .1s; }
.choix-carte:active:not(:disabled), .parcours-carte:active { transform: scale(.98); }
.choix-carte.choisi, .parcours-carte.choisi { box-shadow: inset 0 0 0 2px var(--or); }
.choix-carte.bientot { opacity: .5; cursor: default; }
.choix-code { width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--nuit-3); color: var(--or); font: 800 13px var(--sans); }
.choix-code .ico { width: 22px; height: 22px; }
.choix-txt { flex: 1; min-width: 0; }
.choix-txt b { display: block; font: 700 1em/1.25 var(--sans); }
.choix-txt span { display: block; margin-top: 2px; font-size: .8em; color: var(--doux); }
.choix-txt .parcours-infos { margin-top: 6px; color: var(--or); font-weight: 600; }
.choix-coche { width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--or); color: var(--sur-or); }
.choix-coche .ico { width: 15px; height: 15px; stroke-width: 3; }
.puce-bientot { flex: none; padding: 4px 9px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: var(--doux); font: 700 11px var(--sans); }
.parcours-carte { align-items: stretch; }
.parcours-img { width: 74px; flex: none; border-radius: 14px; overflow: hidden; background: var(--nuit-0); }
.parcours-img img { width: 100%; height: 100%; object-fit: cover; }
.parcours-carte .choix-coche { align-self: center; }
.accueil-suite { position: sticky; bottom: 0; width: 100%; margin-top: 22px; height: 58px; border-radius: 20px; display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--or); color: var(--sur-or); font: 800 16px var(--sans); box-shadow: 0 12px 34px rgba(246, 211, 141, .3); }
.accueil-suite .ico { width: 20px; height: 20px; stroke-width: 2.6; }
.accueil-retour { display: inline-flex; align-items: center; gap: 4px; margin: -8px 0 16px -4px; padding: 6px 10px 6px 4px; border-radius: 999px; color: var(--doux); font: 600 .85em var(--sans); }
.accueil-retour .ico { width: 18px; height: 18px; }

/* étapes sans récit illustré : un emplacement de vidéo, désactivé */
.affiche-attente img { opacity: .55; filter: grayscale(.4); }
.affiche-attente .affiche-play { background: rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .7); box-shadow: none; }
.affiche-attente .affiche-sous { color: var(--or); opacity: 1; font-weight: 600; }

.choix-rond { width: 26px; height: 26px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .2); }


/* bouton « Dashboard », à gauche du téléphone (symétrique de « Relancer l'application ») */
.dashboard-lien {
  position: fixed; top: 50%; transform: translateY(-50%); z-index: 10;
  right: calc(50% + min(880px, calc(100vh - 32px)) * 9 / 39 + 40px);
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 999px; text-decoration: none;
  background: var(--nuit-2); color: #fff; font: 600 14px var(--sans); white-space: nowrap;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .6), 0 0 0 1px var(--bord); transition: box-shadow .2s;
}
.dashboard-lien:hover { box-shadow: 0 14px 34px -10px rgba(0, 0, 0, .7), 0 0 0 1px rgba(246, 211, 141, .35); }
@media (max-width: 820px) { .dashboard-lien { display: none; } }
