/* Best4GoEat, le concept · une page du site de Best4Go (best4goeat.ch/best4goeat/).
   Même langue que l'accueil : Sora et Inter, thème multi-bleu de la marque (b4g-eat-brand-voice), le ciel qui respire.
   Le fond et les couleurs du texte posé dessus passent par les variables --ciel-* et --page-* : les mêmes noms que
   l'accueil, pour pouvoir reprendre tel quel le fond que BG y choisira. */

:root {
  --ciel-1: #a8d8fa;
  --ciel-2: #e8f1fe;
  --ciel-3: #8fb0f5;
  --cyan: #01ddfb;
  --cyan-2: #01b8f8;
  --blue: #0080f0;
  --accent: #0070d6;
  --indigo: #2f5fe8;
  --accent-fort: color-mix(in srgb, var(--accent) 72%, #000);
  --navy: #0b2e55;
  --ink: #122f4e;
  --muted: #26405c;
  --wash: #e9f2fc;
  --line: #d1e0f0;
  --grad: linear-gradient(135deg, #2bb1f6 0%, #0080f0 52%, #2f5fe8 100%);
  /* Le même dégradé, assombri pour porter du texte blanc (4.5:1 au moins sur toute sa longueur). */
  --grad-fonce: linear-gradient(135deg, #0a72d9 0%, #0a63cf 52%, #2f4fd6 100%);
  --page-titre: var(--navy);
  --page-texte: var(--muted);
  --page-accent: var(--accent);
  --page-nav: var(--ink);
  --page-verre: color-mix(in srgb, var(--ciel-2) 80%, transparent);
  --page-ligne: rgb(11 46 85 / 22%);
  --carte: rgb(255 255 255 / 78%);
  --carte-bord: rgb(255 255 255 / 92%);
  --chrome-haut: #fbfcfe;
  --chrome-bas: color-mix(in srgb, var(--wash) 60%, #fff);
  --chrome-bord: color-mix(in srgb, var(--line) 70%, #fff);
  --chrome-texte: color-mix(in srgb, var(--ink) 80%, var(--muted));
  --coque: #101821;
  /* L'appli telle qu'elle est (relevé dans ses écrans) : fond, cartes, choix, bleu du « 4 ». */
  --appli-fond: #05060a;
  --appli-carte: #0f141b;
  --appli-barre: #0b0f15;
  --appli-choisi: #0d213e;
  --appli-bord: #1c2533;
  --appli-texte: #eef3fa;
  --appli-doux: #8796ab;
  /* Les plis du Jura : du plus lointain (pâle) au plus proche (le bleu de la marque). */
  --pli-0-haut: color-mix(in srgb, var(--ciel-3) 34%, var(--ciel-2));
  --pli-0-bas: color-mix(in srgb, var(--ciel-3) 18%, var(--ciel-2));
  --pli-1-haut: color-mix(in srgb, var(--ciel-3) 62%, var(--ciel-2));
  --pli-1-bas: color-mix(in srgb, var(--ciel-3) 36%, var(--ciel-2));
  --pli-2-haut: color-mix(in srgb, var(--ciel-1) 40%, var(--ciel-3));
  --pli-2-bas: color-mix(in srgb, var(--ciel-3) 70%, var(--ciel-2));
  --pli-3-haut: color-mix(in srgb, var(--blue) 46%, var(--ciel-3));
  --pli-3-bas: color-mix(in srgb, var(--blue) 26%, var(--ciel-3));
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-display: "Sora", "Inter", system-ui, Arial, sans-serif;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --ressort: cubic-bezier(.3, 1.45, .5, 1);
  --entete: 72px;
  --gouttiere: clamp(16px, 4vw, 40px);
  --largeur: 1320px;
  --ombre-objet: 0 0 0 1px rgb(11 46 85 / 7%), 0 2px 4px rgb(11 46 85 / 6%), 0 22px 44px -18px rgb(11 46 85 / 30%), 0 60px 100px -50px rgb(11 46 85 / 40%);
  --ombre-carte: 0 0 0 1px rgb(11 46 85 / 5%), 0 18px 40px -26px rgb(11 46 85 / 38%);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--entete) + 12px); }
body { margin: 0; background: var(--ciel-2); color: var(--ink); font: 400 1rem/1.6 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 700; line-height: 1.02; letter-spacing: -.03em; }
p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
figure { margin: 0; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
/* Anneau marine : lisible sur toute l'aurore (bleu sur cyan tombait sous 3:1) ; blanc sur les fonds bleus, plus bas. */
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 8px; }
::selection { background: color-mix(in srgb, var(--blue) 22%, transparent); }
.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.saut { position: absolute; left: 16px; top: -80px; z-index: 100; padding: 12px 18px; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 600; text-decoration: none; }
.saut:focus { top: 12px; }

/* ---------- Le ciel : l'aurore de la marque (cyan, bleu, orange du pingouin) qui dérive, une lumière qui suit la souris, du grain ---------- */
/* Recopié tel quel de l'accueil (section « Le ciel » de son styles.css, 24.10) : BG garde l'Aurore sur tout le site. */

.ciel { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: var(--ciel-2); }
.ciel-lumiere { position: absolute; left: 0; top: 0; width: 84vmax; height: 84vmax; margin: -42vmax 0 0 -42vmax; border-radius: 50%; background: radial-gradient(closest-side, rgb(255 255 255 / 78%), rgb(255 255 255 / 0)); transform: translate3d(70vw, 24vh, 0); will-change: transform; }
.ciel-lumiere-2 { width: 64vmax; height: 64vmax; margin: -32vmax 0 0 -32vmax; background: radial-gradient(closest-side, rgb(1 221 251 / 26%), rgb(1 221 251 / 0)); transform: translate3d(10vw, 92vh, 0); animation: derive 38s ease-in-out infinite alternate; }
@keyframes derive { to { transform: translate3d(40vw, 62vh, 0); } }
.ciel-grain { position: absolute; inset: 0; opacity: .09; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .04 0 0 0 0 .18 0 0 0 0 .33 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"); }
.ciel-aurore { position: absolute; inset: 0; }
.ciel-aurore i { position: absolute; width: 78vmax; height: 78vmax; border-radius: 50%; will-change: transform; }
.ciel-aurore i:nth-child(1) { left: -24vmax; top: -30vmax; background: radial-gradient(closest-side, rgb(1 221 251 / 62%), rgb(1 221 251 / 0)); animation: aurore-1 34s ease-in-out infinite alternate; }
.ciel-aurore i:nth-child(2) { right: -30vmax; bottom: -34vmax; background: radial-gradient(closest-side, rgb(251 154 3 / 50%), rgb(254 192 39 / 18%) 55%, rgb(254 192 39 / 0)); animation: aurore-2 40s ease-in-out infinite alternate; }
.ciel-aurore i:nth-child(3) { left: 30vw; top: 18vh; width: 64vmax; height: 64vmax; background: radial-gradient(closest-side, rgb(0 128 240 / 40%), rgb(0 128 240 / 0)); animation: aurore-3 30s ease-in-out infinite alternate; }
@keyframes aurore-1 { to { transform: translate3d(22vw, 18vh, 0) scale(1.1); } }
@keyframes aurore-2 { to { transform: translate3d(-26vw, -16vh, 0) scale(1.15); } }
@keyframes aurore-3 { to { transform: translate3d(-24vw, 30vh, 0) scale(.9); } }

/* ---------- Boutons, surtitres, liens ---------- */

.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 24px; border: 1px solid transparent; border-radius: 999px; font: 600 .975rem/1 var(--font-body); text-decoration: none; white-space: nowrap; transition: transform .16s var(--ease-out), background-color .2s, border-color .2s, box-shadow .2s; -webkit-tap-highlight-color: transparent; }
.bouton:active { transform: scale(.97); }
.bouton svg { width: 18px; height: 18px; }
.bouton-plein { background: var(--accent); color: #fff; box-shadow: inset 0 1px 0 rgb(255 255 255 / 22%), 0 10px 22px -10px rgb(0 112 214 / 70%); }
.bouton-clair { background: rgb(255 255 255 / 86%); color: var(--ink); border-color: rgb(255 255 255 / 90%); box-shadow: 0 8px 20px -14px rgb(11 46 85 / 40%); }
.bouton-blanc { background: #fff; color: var(--accent); box-shadow: 0 10px 24px -12px rgb(0 20 60 / 45%); }
.bouton-verre { background: rgb(255 255 255 / 12%); color: #fff; border-color: rgb(255 255 255 / 55%); }
.bouton-petit { height: 40px; padding: 0 18px; font-size: .9rem; }
@media (hover: hover) {
  .bouton-plein:hover { background: var(--accent-fort); }
  .bouton-clair:hover { background: #fff; }
  .bouton-blanc:hover { background: #fff; color: var(--accent-fort); box-shadow: 0 14px 28px -12px rgb(0 20 60 / 55%); }
  .bouton-verre:hover { background: rgb(255 255 255 / 22%); border-color: #fff; }
}

.surtitre { display: inline-flex; align-items: center; gap: 10px; font: 600 .76rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-fort); }
.pastille { width: 7px; height: 7px; border-radius: 50%; background: var(--page-accent); box-shadow: 0 0 0 4px rgb(0 128 240 / 16%); }
.lien-fleche { font-weight: 600; color: var(--accent); text-decoration: none; }
@media (hover: hover) { .lien-fleche:hover { text-decoration: underline; text-underline-offset: 4px; } }

/* ---------- En-tête (comme l'accueil) ---------- */

.entete { position: sticky; top: 0; z-index: 50; transition: background-color .3s, box-shadow .3s; }
.entete.est-defile { background: var(--page-verre); box-shadow: 0 1px 0 rgb(11 46 85 / 8%); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); }
.entete-in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; max-width: var(--largeur); height: var(--entete); margin: 0 auto; padding: 0 var(--gouttiere); }
.marque { display: inline-flex; justify-self: start; border-radius: 8px; }
.marque img { width: auto; height: 40px; }
.nav { display: flex; gap: 30px; }
.nav a { position: relative; padding: 8px 0; font: 500 .94rem/1 var(--font-body); color: var(--page-nav); text-decoration: none; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; border-radius: 2px; background: var(--page-accent); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease-out); }
.nav a.est-ici::after { transform: scaleX(1); transform-origin: left; }
@media (hover: hover) { .nav a:hover::after { transform: scaleX(1); transform-origin: left; } }
.entete-actions { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
/* Se connecter : le compte Best4GoEat ou le Bureau (comme l'accueil). */
.compte { position: relative; }
.compte-bouton { height: 40px; padding: 0 6px; border: 0; background: none; color: var(--page-nav); font: 500 .94rem/1 var(--font-body); cursor: pointer; }
.compte-menu { position: absolute; right: 0; top: calc(100% + 10px); width: 270px; padding: 8px; border-radius: 16px; background: #fff; box-shadow: var(--ombre-objet); transform-origin: top right; animation: menu-ouvre .22s var(--ease-out); }
.compte-menu a { display: grid; gap: 3px; padding: 12px 14px; border-radius: 10px; text-decoration: none; }
.compte-menu a strong { font: 600 .95rem/1.2 var(--font-body); color: var(--navy); }
.compte-menu a span { font-size: .85rem; color: var(--muted); }
.compte-menu a:hover, .compte-menu a:focus-visible { background: var(--wash); }
.nav a, .compte-bouton { white-space: nowrap; }
.lien-discret { font: 500 .94rem/1 var(--font-body); color: var(--page-nav); text-decoration: none; }
@media (hover: hover) { .lien-discret:hover { color: var(--accent); } }
.menu-bouton { display: none; position: relative; width: 44px; height: 44px; border: 1px solid rgb(255 255 255 / 90%); border-radius: 50%; background: rgb(255 255 255 / 86%); cursor: pointer; }
.menu-bouton span { position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .3s var(--ease-out), top .3s var(--ease-out); }
.menu-bouton span:first-child { top: 17px; }
.menu-bouton span:last-child { top: 25px; }
.menu-bouton[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-bouton[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }
.menu-mobile { display: grid; padding: 8px var(--gouttiere) 24px; background: var(--ciel-2); box-shadow: 0 20px 30px -24px rgb(11 46 85 / 40%); animation: menu-ouvre .25s var(--ease-out); }
.menu-mobile[hidden] { display: none; }
.menu-mobile a { padding: 14px 0; border-bottom: 1px solid var(--line); font: 600 1.25rem/1.2 var(--font-display); letter-spacing: -.02em; color: var(--navy); text-decoration: none; }
.menu-mobile a.menu-mobile-secondaire { font: 500 1rem/1.2 var(--font-body); color: var(--muted); letter-spacing: 0; }
@keyframes menu-ouvre { from { opacity: 0; transform: translateY(-4px); } }

.section-tete { display: grid; gap: 18px; max-width: var(--largeur); margin: 0 auto clamp(40px, 7vh, 72px); padding: 0 var(--gouttiere); }
.section-tete h2 { max-width: 16ch; font-size: clamp(2.2rem, 1.1rem + 4vw, 4.6rem); font-weight: 800; letter-spacing: -.05em; color: var(--page-titre); }
.section-tete > p:last-child { max-width: 52ch; font-size: clamp(1rem, .95rem + .3vw, 1.15rem); color: var(--page-texte); }

/* ---------- 1. L'ouverture ---------- */

/* Le paysage suit le texte dans le flux (et remplit le reste de l'écran) : les plis ne montent jamais sous le titre,
   même sur un écran bas (1280 × 720, 1366 × 640). */
.ouverture { position: relative; display: flex; flex-direction: column; min-height: max(640px, calc(100svh - var(--entete))); margin-top: calc(-1 * var(--entete)); padding: calc(var(--entete) + clamp(28px, 7vh, 84px)) var(--gouttiere) 0; overflow: hidden; }
.ouverture-texte { position: relative; z-index: 2; width: 100%; max-width: var(--largeur); margin: 0 auto; }
.ouverture-grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); gap: 28px clamp(32px, 5vw, 80px); align-items: end; margin: 22px 0 0; }
.ouverture-cote { padding-bottom: .5em; }
.ouverture h1 { margin: 0; font-size: clamp(2.6rem, 1rem + 5.2vw, 6rem); font-weight: 800; line-height: .95; letter-spacing: -.055em; color: var(--page-titre); }
.ouverture h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.ligne { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.ligne > span { display: inline-block; }
.chapeau { max-width: 36ch; font-size: clamp(1.05rem, .95rem + .4vw, 1.25rem); line-height: 1.55; color: var(--page-texte); }
.ouverture-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.annonce { display: inline-flex; align-items: center; gap: 14px; margin-top: clamp(22px, 3.4vh, 36px); padding: 8px 18px 8px 8px; border-radius: 18px; background: var(--carte); box-shadow: var(--ombre-carte); font-size: .95rem; color: var(--ink); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.annonce strong { font-weight: 600; color: var(--navy); }
.annonce-jour { display: grid; place-items: center; width: 46px; height: 50px; border-radius: 11px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font: 800 1.35rem/1 var(--font-display); letter-spacing: -.04em; color: var(--accent); overflow: hidden; }
.annonce-jour small { display: block; align-self: stretch; padding: 3px 0 2px; background: var(--accent); font: 600 .6rem/1.2 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: #fff; text-align: center; }

.paysage { position: relative; z-index: 1; flex: 1 0 clamp(250px, 42vh, 480px); margin: -24px calc(-1 * var(--gouttiere)) 0; pointer-events: none; -webkit-mask-image: linear-gradient(#000 62%, transparent); mask-image: linear-gradient(#000 62%, transparent); }
.plis { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; -webkit-mask-image: linear-gradient(transparent, #000 40px); mask-image: linear-gradient(transparent, #000 40px); }
/* Le fondu du haut est sur les plis seuls : le pingouin, qui roule près du bord, garde sa tête. */
.pli > path { stroke: rgb(255 255 255 / 42%); stroke-width: 1.2; vector-effect: non-scaling-stroke; transform: translate3d(0, var(--py, 0px), 0); }
.pli > .pli-crete { fill: none; stroke: rgb(255 255 255 / 55%); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.coursier { position: absolute; left: 0; top: 0; z-index: 3; width: clamp(92px, 8.4vw, 150px); pointer-events: auto; will-change: transform; transform: translate3d(-200px, 0, 0); }
.coursier-bouton { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; border-radius: 16px; }
.coursier-corps { display: block; transform-origin: 30% 92%; }
.coursier-corps img { width: 100%; }
.coursier.roule .coursier-corps img { animation: moteur .14s linear infinite alternate; }
.coursier.au-ralenti .coursier-corps img { animation: moteur .5s ease-in-out infinite alternate; }
@keyframes moteur { to { transform: translateY(-1.5%); } }
.coursier.saute .coursier-corps { animation: saute .62s var(--ease-out); }
@keyframes saute { 30% { transform: translateY(-16%) rotate(-9deg); } 62% { transform: translateY(0) rotate(1.5deg); } 80% { transform: translateY(-3%) rotate(0); } }
.coursier-fumees { position: absolute; left: 4%; bottom: 14%; width: 30%; height: 30%; pointer-events: none; }
.coursier-fumees i { position: absolute; left: 0; bottom: 0; width: 34%; aspect-ratio: 1; border-radius: 50%; background: rgb(255 255 255 / 85%); filter: blur(1px); opacity: 0; animation: fumee .9s var(--ease-out) forwards; }
@keyframes fumee { 0% { opacity: .9; transform: translate(0, 0) scale(.4); } 100% { opacity: 0; transform: translate(-160%, -60%) scale(1.6); } }
.bulle { position: absolute; right: 42%; bottom: 100%; padding: 9px 14px; border-radius: 14px 14px 4px 14px; background: #fff; box-shadow: var(--ombre-carte); font: 600 .86rem/1.2 var(--font-body); color: var(--navy); white-space: nowrap; opacity: 0; transform: translateY(6px) scale(.9); transform-origin: bottom right; transition: opacity .2s, transform .3s var(--ressort); pointer-events: none; }
.bulle.est-visible { opacity: 1; transform: none; }

/* ---------- 2. Le principe ---------- */

.principe { max-width: var(--largeur); margin: 0 auto; padding: clamp(110px, 20vh, 220px) var(--gouttiere) clamp(110px, 18vh, 200px); }
.manifeste { max-width: 22em; font: 600 clamp(1.7rem, 1rem + 2.9vw, 3.4rem)/1.14 var(--font-display); letter-spacing: -.035em; color: var(--page-titre); }
.manifeste .mot { opacity: var(--o, 1); transition: opacity .25s linear; }
.js .manifeste .mot { --o: .18; }

/* ---------- 3. La course : la signature ---------- */

.course { padding: clamp(40px, 6vh, 80px) 0 clamp(60px, 10vh, 120px); }
.course-grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(24px, 4vw, 64px); max-width: var(--largeur); margin: 0 auto; padding: 0 var(--gouttiere); }
.etapes { position: relative; padding-left: 34px; padding-bottom: 16vh; }
.etapes::before, .etapes::after { content: ""; position: absolute; left: 6px; top: 39vh; bottom: calc(39vh + 16vh); width: 2px; border-radius: 2px; background: var(--page-ligne); }
.etapes::after { background: var(--grad); transform-origin: top; transform: scaleY(var(--avance, 0)); }
.etape { display: flex; flex-direction: column; justify-content: center; min-height: 78vh; padding: 40px 0; }
/* L'étape lue ressort ; les autres restent lisibles (titre et texte à 0.8, numéro plein : 4.5:1 tenu). */
.etape :is(h3, p) { transition: opacity .45s var(--ease-out); }
.js .etape:not(.est-active) :is(h3, p) { opacity: .8; }
.etape-numero { position: relative; margin-bottom: 14px; font: 700 .9rem/1 var(--font-display); letter-spacing: .02em; color: var(--accent-fort); }
.etape-numero::before { content: ""; position: absolute; left: -34px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: var(--ciel-2); box-shadow: inset 0 0 0 2px var(--page-ligne); transition: box-shadow .3s, background-color .3s, transform .4s var(--ressort); }
.etape.est-active .etape-numero::before { background: var(--accent); box-shadow: 0 0 0 5px rgb(0 128 240 / 18%); transform: scale(1.1); }
.etape h3 { max-width: 16ch; margin-bottom: 18px; font-size: clamp(1.75rem, 1rem + 2vw, 2.7rem); font-weight: 800; letter-spacing: -.045em; color: var(--page-titre); }
.etape p { max-width: 36ch; font-size: clamp(1rem, .95rem + .25vw, 1.12rem); color: var(--page-texte); }

.scene { position: sticky; top: var(--entete); height: calc(100svh - var(--entete)); }
.scene-in { position: relative; height: 100%; display: grid; place-items: center; }
.scene-points { position: absolute; left: 50%; bottom: 3vh; display: flex; gap: 6px; transform: translateX(-50%); }
.scene-points li { width: 6px; height: 6px; border-radius: 3px; background: var(--page-ligne); transition: width .4s var(--ease-out), background-color .3s; }
.scene[data-etat="1"] .scene-points li:nth-child(1), .scene[data-etat="2"] .scene-points li:nth-child(2), .scene[data-etat="3"] .scene-points li:nth-child(3), .scene[data-etat="4"] .scene-points li:nth-child(4), .scene[data-etat="5"] .scene-points li:nth-child(5) { width: 22px; background: var(--accent); }

/* Le téléphone : tout en em, pour qu'il se règle d'une seule taille de police. */
.telephone { position: relative; z-index: 2; font-size: clamp(12px, 1.9vh, 16px); width: 19.5em; padding: .55em; border-radius: 3.1em; background: linear-gradient(150deg, #2b3746, var(--coque) 52%, #1d2733); box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 12%), 0 0 0 1px rgb(0 0 0 / 20%), 0 40px 70px -28px rgb(11 46 85 / 60%), 0 12px 24px -14px rgb(11 46 85 / 40%); }
.telephone::after { content: ""; position: absolute; top: 22%; right: -.3em; width: .3em; height: 9%; border-radius: 0 3px 3px 0; background: #1d2733; }
.telephone-ecran { position: relative; overflow: hidden; height: 40.5em; border-radius: 2.6em; background: var(--appli-fond); color: var(--appli-texte); font-family: var(--font-body); transform: translateZ(0); }
.appli-barre { display: flex; align-items: center; justify-content: space-between; height: 3.1em; padding: 0 1.7em; font: 600 .82em/1 var(--font-body); }
.appli-barre-ilot { width: 6.2em; height: 1.9em; border-radius: 1em; background: #000; }
.appli-barre-icones { display: flex; gap: .3em; }
.appli-barre-icones i { width: .5em; height: .5em; border-radius: 50%; background: var(--appli-texte); opacity: .9; }
.appli-vue { position: absolute; inset: 3.4em 1.1em 4.6em; opacity: 0; visibility: hidden; transform: translate3d(6%, 0, 0); transition: opacity .4s var(--ease-out), transform .55s var(--ease-out), visibility 0s .55s; }
.scene[data-etat="1"] [data-vue="1"], .scene[data-etat="2"] [data-vue="2"], .scene[data-etat="3"] [data-vue="3"], .scene[data-etat="4"] [data-vue="3"], .scene[data-etat="5"] [data-vue="3"] { opacity: 1; visibility: visible; transform: none; transition: opacity .4s var(--ease-out) .08s, transform .55s var(--ease-out) .08s, visibility 0s; }
.appli-titre { font: 700 1.55em/1.1 var(--font-display); letter-spacing: -.03em; }
.appli-sous { margin: .3em 0 1.2em; font-size: .82em; line-height: 1.4; color: var(--appli-doux); }
.appli-carte { border-radius: 1em; background: var(--appli-carte); }
.appli-panier { display: grid; gap: .55em; padding: 1em 1.1em; font-size: .86em; }
.appli-panier p { display: flex; justify-content: space-between; }
.appli-question { margin: 1.5em 0 .7em; font: 700 1.05em/1.2 var(--font-display); letter-spacing: -.02em; }
.appli-choix, .appli-livreurs { display: grid; gap: .55em; }
.appli-choix li, .appli-livreurs li { position: relative; display: flex; align-items: center; gap: .8em; padding: .95em 1em; border-radius: 1em; background: var(--appli-carte); box-shadow: inset 0 0 0 1px transparent; font-size: .86em; overflow: hidden; }
.appli-choix li span { flex: 1; color: var(--appli-doux); }
.appli-choix li strong { margin-right: .4em; font-weight: 600; color: var(--appli-texte); }
.appli-livreurs li span { display: grid; flex: 1; gap: .15em; font-size: .9em; color: var(--appli-doux); }
.appli-livreurs li strong { font-size: 1.08em; font-weight: 600; color: var(--appli-texte); }
.appli-choix li i, .appli-livreurs li i { position: relative; width: 1.3em; height: 1.3em; border-radius: 50%; box-shadow: inset 0 0 0 1.5px #3a4658; }
.appli-choix li i::after, .appli-livreurs li i::after { content: ""; position: absolute; left: .42em; top: .26em; width: .34em; height: .62em; border: solid #fff; border-width: 0 .14em .14em 0; transform: rotate(45deg) scale(0); transition: transform .3s var(--ressort); }
.appli-choix li::after, .appli-livreurs li::after { content: ""; position: absolute; left: 70%; top: 50%; width: 2em; height: 2em; margin: -1em; border-radius: 50%; background: rgb(255 255 255 / 30%); opacity: 0; }
.avatar { display: grid; place-items: center; flex: none; width: 2.5em; height: 2.5em; border-radius: 50%; font: 700 1em/1 var(--font-display); color: #fff; }
.avatar-l { background: #1f7a52; }
.avatar-i { background: var(--blue); }
.avatar.avatar-attente { background: transparent; box-shadow: inset 0 0 0 1.5px var(--appli-doux); }
.avatar-n { background: #a2622c; }
.appli-petit { margin-top: 1.1em; font-size: .76em; line-height: 1.45; color: var(--appli-doux); }
.appli-bouton { position: absolute; left: 0; right: 0; bottom: 0; display: grid; place-items: center; height: 3.2em; border-radius: 1.6em; background: var(--blue); font: 600 .92em/1 var(--font-body); color: #fff; }
.appli-doigt { display: none; }
.appli-onglets { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-around; align-items: center; height: 3.6em; padding-bottom: .4em; background: var(--appli-barre); }
.appli-onglets span { width: 1.15em; height: 1.15em; border-radius: .35em; background: #2a3442; }
.appli-onglets span.est-actif { background: var(--blue); }

/* Le choix qui se fait sous nos yeux : un toucher, puis la coche. */
.scene[data-etat="1"] [data-vue="1"] .appli-choisi-plus-tard, .scene[data-etat="2"] [data-vue="2"] .appli-choisi-plus-tard { animation: choisir .45s var(--ease-out) 1.15s both; }
.scene[data-etat="1"] [data-vue="1"] .appli-choisi-plus-tard::after, .scene[data-etat="2"] [data-vue="2"] .appli-choisi-plus-tard::after { animation: toucher .7s var(--ease-out) 1s both; }
.scene[data-etat="1"] [data-vue="1"] .appli-choisi-plus-tard i, .scene[data-etat="2"] [data-vue="2"] .appli-choisi-plus-tard i { animation: cocher .35s var(--ease-out) 1.2s both; }
.scene[data-etat="1"] [data-vue="1"] .appli-choisi-plus-tard i::after, .scene[data-etat="2"] [data-vue="2"] .appli-choisi-plus-tard i::after { transform: rotate(45deg) scale(1); transition-delay: 1.3s; }
@keyframes choisir { to { background: var(--appli-choisi); box-shadow: inset 0 0 0 1.5px var(--blue); } }
@keyframes cocher { to { background: var(--blue); box-shadow: inset 0 0 0 1.5px var(--blue); } }
@keyframes toucher { 0% { opacity: 0; transform: scale(.3); } 25% { opacity: 1; } 100% { opacity: 0; transform: scale(7); } }
.scene[data-etat="1"] [data-vue="1"] .appli-choix li, .scene[data-etat="2"] [data-vue="2"] .appli-livreurs li { animation: monte .5s var(--ease-out) calc(.18s + var(--k) * .08s) backwards; }
@keyframes monte { from { opacity: 0; transform: translateY(.8em); } }

/* Le suivi : chaque pas se coche à son tour. */
.appli-livreur-choisi { display: flex; align-items: center; gap: .8em; padding: .8em 1em; font-size: .86em; }
.appli-livreur-choisi span { display: grid; gap: .1em; font-size: .9em; color: var(--appli-doux); }
.appli-livreur-choisi strong { font-size: 1.08em; font-weight: 600; color: var(--appli-texte); }
.appli-carte-route { position: relative; height: 0; margin-top: .6em; overflow: hidden; opacity: 0; transition: height .5s var(--ease-out), opacity .4s; }
.scene[data-etat="4"] .appli-carte-route, .scene[data-etat="5"] .appli-carte-route { height: 6.4em; opacity: 1; }
.mini-carte { position: absolute; inset: .6em .8em; width: calc(100% - 1.6em); height: calc(100% - 1.2em); }
.mini-carte-rue { stroke: #253042; stroke-width: 7; }
.mini-carte-trace { stroke: var(--blue); stroke-width: 3; stroke-dasharray: 1; stroke-dashoffset: 1; }
.mini-carte-depart { fill: #3a4658; stroke: none; }
.mini-carte-arrivee { fill: none; stroke: var(--blue); stroke-width: 2.5; }
.scene[data-etat="4"] .mini-carte-trace { stroke-dashoffset: 0; transition: stroke-dashoffset 5s cubic-bezier(.4, .1, .3, 1) .4s; }
.scene[data-etat="5"] .mini-carte-trace { stroke-dashoffset: 0; }
.suivi { display: grid; gap: 0; margin-top: 1.2em; }
.suivi li { position: relative; display: flex; align-items: center; gap: .9em; height: 2.75em; font: 600 .95em/1 var(--font-display); letter-spacing: -.01em; color: #4b586b; transition: color .3s; }
.suivi li:not(:last-child)::after { content: ""; position: absolute; left: .62em; top: 2.05em; width: 2px; height: 1.45em; margin-left: -1px; background: #263142; transition: background-color .3s; }
.suivi li i { position: relative; flex: none; width: 1.25em; height: 1.25em; border-radius: 50%; box-shadow: inset 0 0 0 1.5px #3a4658; transition: background-color .3s, box-shadow .3s; }
.suivi li i::after { content: ""; position: absolute; left: .4em; top: .22em; width: .3em; height: .58em; border: solid #fff; border-width: 0 .13em .13em 0; transform: rotate(45deg) scale(0); transition: transform .35s var(--ressort); }
.suivi li.est-fait { color: var(--appli-texte); }
.suivi li.est-fait i { background: var(--blue); box-shadow: inset 0 0 0 1.5px var(--blue); }
.suivi li.est-fait i::after { transform: rotate(45deg) scale(1); }
.suivi li.est-fait::after { background: var(--blue); }
.suivi li.est-encours { color: var(--appli-texte); font-size: 1.08em; }
.suivi li.est-encours i { box-shadow: inset 0 0 0 1.5px var(--blue), 0 0 0 .3em rgb(0 128 240 / 22%); animation: pouls 1.6s ease-out infinite; }
.suivi li.est-encours i::before { content: ""; position: absolute; inset: .32em; border-radius: 50%; background: var(--blue); }
@keyframes pouls { 50% { box-shadow: inset 0 0 0 1.5px var(--blue), 0 0 0 .55em rgb(0 128 240 / 0%); } }

/* Les accessoires de la scène, un par moment fort. */
.accessoire { position: absolute; left: 50%; top: 50%; z-index: 3; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .45s var(--ease-out), transform .7s var(--ease-out), visibility 0s .7s; }
.scene[data-etat="1"] [data-pour="1"], .scene[data-etat="2"] [data-pour="2"], .scene[data-etat="3"] [data-pour="3"], .scene[data-etat="4"] [data-pour="4"], .scene[data-etat="5"] [data-pour="5"] { opacity: 1; visibility: visible; transition: opacity .45s var(--ease-out) .12s, transform .8s var(--ease-out) .12s, visibility 0s; }

.accessoire-four { z-index: 1; width: 15em; font-size: clamp(12px, min(1.9vh, 1.15vw), 16px); transform: translate(calc(-50% - 14em), -58%) rotate(-3deg) scale(.94); }
.scene[data-etat="3"] .accessoire-four { transform: translate(calc(-50% - 16em), -58%) rotate(-5deg); }
.four { overflow: hidden; aspect-ratio: 4 / 5; border-radius: 1.6em; background: #1b120c; box-shadow: var(--ombre-objet); }
.four video { width: 100%; height: 100%; object-fit: cover; }
.ticket-papier { position: absolute; left: -3.4em; bottom: -4.2em; width: 12.5em; padding: 1em 1.1em 1.3em; background: #fffdf8; color: #1b2430; font: 500 .82em/1.35 var(--font-body); font-variant-numeric: tabular-nums; box-shadow: 0 18px 30px -16px rgb(11 46 85 / 50%); transform: rotate(-3deg); -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / .8em 100%; mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / .8em 100%; clip-path: inset(0 0 100% 0); }
.scene[data-etat="3"] .ticket-papier { clip-path: inset(0 0 0 0); transition: clip-path 1.4s cubic-bezier(.45, .05, .3, 1) .7s; }
.ticket-papier-tete { display: flex; justify-content: space-between; padding-bottom: .5em; border-bottom: 1px dashed #c9cfd8; font-weight: 600; }
.ticket-papier-tete span:last-child { color: var(--accent); }
.ticket-papier-heure { margin: .6em 0 .4em; font: 700 1.25em/1.1 var(--font-display); letter-spacing: -.02em; }

.accessoire-chrono { width: 14em; padding: 1.4em 1.3em; border-radius: 1.6em; background: #fff; box-shadow: var(--ombre-objet); font-size: clamp(12px, min(1.9vh, 1.15vw), 16px); text-align: center; transform: translate(calc(-50% - 13.2em), -86%) rotate(-2deg) scale(.94); }
.scene[data-etat="4"] .accessoire-chrono { transform: translate(calc(-50% - 15em), -90%) rotate(-3deg); }
.chrono { position: relative; width: 7.5em; margin: 0 auto .9em; }
.chrono svg { display: block; width: 100%; height: auto; transform: rotate(-90deg); }
.chrono-fond { stroke: var(--wash); stroke-width: 8; }
.chrono-arc { stroke: var(--accent); stroke-width: 8; stroke-dasharray: 326.7; stroke-dashoffset: 0; transition: stroke-dashoffset 1s linear; }
.chrono-chiffre { position: absolute; inset: 0; display: grid; place-content: center; grid-auto-flow: column; align-items: baseline; gap: .1em; font: 800 2.2em/1 var(--font-display); letter-spacing: -.04em; color: var(--navy); font-variant-numeric: tabular-nums; }
.chrono-chiffre small { font-size: .42em; font-weight: 600; color: var(--muted); }
.chrono.est-accepte .chrono-arc { stroke: var(--blue); }
.chrono-titre { font: 700 1.02em/1.25 var(--font-display); letter-spacing: -.02em; color: var(--navy); }
.chrono-note { margin-top: .35em; font-size: .82em; line-height: 1.4; color: var(--muted); }

.accessoire-note { width: 14em; padding: 1.3em 1.3em 1.4em; border-radius: 1.6em; background: #fff; box-shadow: var(--ombre-objet); font-size: clamp(12px, min(1.9vh, 1.15vw), 16px); transform: translate(calc(-50% - 14.5em), -18%) rotate(2deg) scale(.94); }
.scene[data-etat="5"] .accessoire-note { transform: translate(calc(-50% - 16.4em), -22%) rotate(3deg); }
.note-titre { font: 600 .82em/1 var(--font-body); color: var(--muted); }
.etoiles { display: flex; gap: .3em; margin: .45em 0 1em; }
.etoiles i { width: 1.45em; height: 1.45em; background: var(--line); clip-path: polygon(50% 0, 61.8% 35.4%, 100% 35.4%, 69.1% 57.3%, 80.9% 92.7%, 50% 70.8%, 19.1% 92.7%, 30.9% 57.3%, 0 35.4%, 38.2% 35.4%); transition: background-color .25s, transform .35s var(--ressort); }
.scene[data-etat="5"] .etoiles i { background: var(--blue); transform: scale(1.08); }
.etoiles i:nth-child(1) { transition-delay: .5s; } .etoiles i:nth-child(2) { transition-delay: .6s; } .etoiles i:nth-child(3) { transition-delay: .7s; } .etoiles i:nth-child(4) { transition-delay: .8s; } .etoiles i:nth-child(5) { transition-delay: .9s; }
.etoiles-2 i:nth-child(1) { transition-delay: 1.1s; } .etoiles-2 i:nth-child(2) { transition-delay: 1.2s; } .etoiles-2 i:nth-child(3) { transition-delay: 1.3s; } .etoiles-2 i:nth-child(4) { transition-delay: 1.4s; } .etoiles-2 i:nth-child(5) { transition-delay: 1.5s; }
.note-pourboire { padding-top: .9em; border-top: 1px solid var(--line); font-size: .86em; line-height: 1.4; color: var(--muted); }
.note-pourboire strong { display: block; font: 800 1.9em/1 var(--font-display); letter-spacing: -.04em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- 4. L'addition ---------- */

.addition { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "texte ticket" "retour ticket"; gap: clamp(28px, 4vw, 64px); align-items: start; max-width: var(--largeur); margin: 0 auto; padding: clamp(60px, 10vh, 120px) var(--gouttiere); }
.addition-texte { grid-area: texte; display: grid; gap: 18px; }
.addition-texte h2 { max-width: 13ch; font-size: clamp(2.2rem, 1.1rem + 4vw, 4.4rem); font-weight: 800; letter-spacing: -.05em; color: var(--page-titre); }
.addition-texte > p:last-child { max-width: 40ch; font-size: clamp(1rem, .95rem + .3vw, 1.15rem); color: var(--page-texte); }
.addition-ticket { grid-area: ticket; position: relative; justify-self: center; width: min(440px, 100%); padding-top: 18px; overflow: hidden; }
.addition-ticket::before { content: ""; position: absolute; z-index: 2; left: 0; right: 0; top: 0; height: 26px; border-radius: 13px; background: linear-gradient(#26313f, #111821); box-shadow: inset 0 1px 0 rgb(255 255 255 / 14%), 0 8px 18px -8px rgb(11 46 85 / 60%); }
.addition-ticket::after { content: ""; position: absolute; z-index: 3; left: 9%; right: 9%; top: 11px; height: 4px; border-radius: 2px; background: #05080c; }
.ticket-long { margin: 0 14px; padding: 34px 30px 40px; background: #fffdf8; color: #1b2430; font-variant-numeric: tabular-nums; box-shadow: 0 30px 50px -30px rgb(11 46 85 / 55%); -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 18px 100%; mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 18px 100%; transform-origin: top; }
.js .ticket-long { transform: translateY(-104%); transition: transform 1.9s cubic-bezier(.45, .05, .25, 1); }
.js .addition-ticket.est-vu .ticket-long { transform: none; }
.ticket-long-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 16px; margin-bottom: 8px; border-bottom: 1.5px dashed #c9cfd8; }
.ticket-long-tete span { font: 800 1.4rem/1 var(--font-display); letter-spacing: -.035em; }
.ticket-long-tete small { font-size: .82rem; color: #5d6877; }
.ticket-long dl > div { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; align-items: baseline; padding: 13px 0; border-bottom: 1px dotted #d8dde4; }
.ticket-long dt { font-weight: 600; }
.ticket-long dd { text-align: right; color: #5d6877; }
.ticket-long .ticket-long-total { border-bottom: 0; padding-top: 18px; }
.ticket-long .ticket-long-total dt { font: 800 1.2rem/1 var(--font-display); letter-spacing: -.02em; }
.ticket-long .ticket-long-total dd { font-weight: 600; color: var(--accent); }
.ticket-long-pied { margin-top: 18px; padding-top: 16px; border-top: 1.5px dashed #c9cfd8; font-size: .88rem; color: #5d6877; text-align: center; }
.retour { grid-area: retour; position: relative; padding: 30px 30px 32px; border-radius: 28px; background: var(--carte); box-shadow: var(--ombre-carte), inset 0 0 0 1px var(--carte-bord); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.retour-pingouin { position: absolute; right: 18px; bottom: calc(100% - 46px); width: auto; height: 120px; filter: drop-shadow(0 12px 14px rgb(11 46 85 / 22%)); }
.retour h3 { margin-bottom: 18px; font-size: clamp(1.45rem, 1rem + 1vw, 1.9rem); font-weight: 800; letter-spacing: -.04em; color: var(--navy); }
.retour-liste { display: grid; gap: 12px; }
.retour-liste li { color: var(--muted); }
.retour-liste strong { margin-right: .35em; font-weight: 600; color: var(--navy); }

/* ---------- 5. Pour qui ---------- */

.pour-qui { padding: clamp(60px, 10vh, 120px) 0; }
.portes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); max-width: var(--largeur); margin: clamp(90px, 12vh, 130px) auto 0; padding: 0 var(--gouttiere); }
.porte { position: relative; display: flex; flex-direction: column; padding: 104px 30px 30px; border-radius: 28px; background: var(--carte); box-shadow: var(--ombre-carte), inset 0 0 0 1px var(--carte-bord); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.porte-maison { background: var(--grad-fonce); color: #fff; box-shadow: 0 30px 60px -30px rgb(0 80 200 / 70%); }
.porte-pingouin { position: absolute; left: 26px; bottom: calc(100% - 90px); width: auto; height: 150px; filter: drop-shadow(0 12px 14px rgb(11 46 85 / 25%)); }
.porte-pingouin-scooter { height: 122px; }
.porte h3 { margin-bottom: 20px; font-size: clamp(1.55rem, 1rem + 1.2vw, 2.1rem); font-weight: 800; letter-spacing: -.045em; color: var(--navy); }
.porte-maison h3 { color: #fff; }
.porte ul { display: grid; gap: 12px; margin-bottom: 30px; }
.porte li { position: relative; padding-left: 28px; color: var(--muted); }
.porte-maison li { color: #fff; }
.porte li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.porte-maison li::before { background-color: rgb(255 255 255 / 92%); }
.porte .bouton { align-self: flex-start; margin-top: auto; }
.porte-maison .bouton-plein { background: #fff; color: var(--accent); box-shadow: 0 10px 24px -12px rgb(0 20 60 / 45%); }
@media (hover: hover) { .porte-maison .bouton-plein:hover { background: #fff; color: var(--accent-fort); } }

/* ---------- En bref : trois gestes, une route, le coursier qui roule de l'un à l'autre ---------- */

.bref { padding: clamp(40px, 6vh, 80px) 0 clamp(70px, 10vh, 120px); }
.bref-route { position: relative; max-width: var(--largeur); margin: 0 auto; padding: 0 var(--gouttiere); }
.bref-trace { display: block; width: 100%; height: 120px; overflow: visible; }
.bref-rue { stroke: rgb(255 255 255 / 70%); stroke-width: 14; vector-effect: non-scaling-stroke; }
.bref-avance { stroke: var(--accent); stroke-width: 3; stroke-dasharray: 1; stroke-dashoffset: var(--reste, 0); vector-effect: non-scaling-stroke; }
.js .bref-avance { --reste: 1; }
.bref-coursier { position: absolute; left: 0; top: 0; width: clamp(84px, 7vw, 120px); transform-origin: 46% 95%; will-change: transform; pointer-events: none; }
.bref-gestes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); margin-top: 26px; }
.bref-geste { padding: 26px 26px 28px; border-radius: 24px; background: var(--carte); box-shadow: var(--ombre-carte), inset 0 0 0 1px var(--carte-bord); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: transform .5s var(--ressort), box-shadow .4s, background-color .4s; }
.bref-numero { display: inline-grid; place-items: center; width: 36px; height: 36px; margin-bottom: 16px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); font: 700 .82rem/1 var(--font-display); color: var(--accent); transition: background-color .3s, color .3s, box-shadow .3s; }
.bref-geste h3 { margin-bottom: 10px; font-size: clamp(1.35rem, 1rem + .9vw, 1.75rem); font-weight: 800; letter-spacing: -.04em; color: var(--navy); }
.bref-geste p { color: var(--muted); }
.bref-geste.est-passe { background: #fff; transform: translateY(-6px); box-shadow: 0 0 0 1px rgb(0 112 214 / 14%), 0 28px 50px -30px rgb(0 80 200 / 55%); }
.bref-geste.est-passe .bref-numero { background: var(--accent); color: #fff; box-shadow: 0 0 0 5px rgb(0 128 240 / 16%); }
.bref-suite { max-width: var(--largeur); margin: clamp(26px, 4vh, 40px) auto 0; padding: 0 var(--gouttiere); text-align: center; }
.bref-suite .bouton { height: auto; min-height: 52px; padding-top: 12px; padding-bottom: 12px; white-space: normal; text-align: left; }

/* ---------- Cadres : navigateur et téléphone (communs à la galerie des maisons) ---------- */

.navigateur { overflow: hidden; border-radius: 14px; background: #fff; box-shadow: var(--ombre-objet); }
.navigateur-barre { display: flex; justify-content: center; align-items: center; height: 34px; border-bottom: 1px solid var(--chrome-bord); background: linear-gradient(var(--chrome-haut), var(--chrome-bas)); }
.adresse { display: inline-flex; align-items: center; justify-content: center; min-width: 46%; height: 22px; padding: 0 12px; border: 1px solid var(--chrome-bord); border-radius: 7px; background: #fff; font: 500 12px/1 var(--font-body); color: var(--chrome-texte); white-space: nowrap; }
.navigateur img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.mobile { overflow: hidden; padding: 4%; border-radius: 15% / 7%; background: linear-gradient(150deg, #2b3746, var(--coque) 52%, #1d2733); box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 12%), var(--ombre-objet); }

/* ---------- Les maisons : une galerie qui défile de côté, en site et en appli ---------- */

.maisons { position: relative; }
.maisons-piste { position: relative; height: 340vh; }
.maisons-collant { position: sticky; top: var(--entete); display: flex; flex-direction: column; justify-content: center; gap: clamp(20px, 3.5vh, 40px); height: calc(100svh - var(--entete)); overflow: clip; }
.maisons-tete { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 14px clamp(28px, 4vw, 64px); align-items: end; width: 100%; max-width: var(--largeur); margin: 0 auto; padding: 0 var(--gouttiere); }
.maisons-tete .surtitre { grid-column: 1 / -1; }
.maisons-tete h2 { font-size: clamp(2rem, 1rem + 3.4vw, 4rem); font-weight: 800; letter-spacing: -.05em; color: var(--page-titre); }
.maisons-tete > p:last-child { max-width: 46ch; color: var(--page-texte); }
.maisons-rail { display: flex; gap: clamp(18px, 2.4vw, 32px); padding: 0 max(var(--gouttiere), calc((100vw - var(--largeur)) / 2 + var(--gouttiere))); transform: translate3d(var(--glisse, 0px), 0, 0); will-change: transform; }
.vitrine-maison { position: relative; flex: none; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); align-items: center; gap: clamp(16px, 2vw, 32px); width: min(1040px, 82vw); height: min(58svh, 560px); padding: clamp(24px, 3vw, 44px); border-radius: 30px; background: radial-gradient(90% 100% at 0% 0%, color-mix(in srgb, var(--fond-2) 85%, transparent), transparent 70%), var(--fond); color: var(--encre); overflow: hidden; box-shadow: 0 40px 80px -46px rgb(11 46 85 / 60%); }
.vitrine-maison-tete { display: flex; align-items: center; gap: 12px; font: 500 .92rem/1 var(--font-body); opacity: .92; }
.statut-livre { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 8px; background: color-mix(in srgb, var(--encre) 12%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--encre) 18%, transparent); font: 600 .76rem/1 var(--font-body); }
.vitrine-maison h3 { margin: 20px 0 22px; font-family: var(--police), var(--font-display); font-weight: var(--graisse, 700); font-size: clamp(2rem, 1rem + 2.4vw, 3.6rem); line-height: 1; letter-spacing: -.015em; color: var(--accent); }
.vitrine-maison-lien { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 999px; background: var(--encre); color: var(--fond); font: 600 .92rem/1 var(--font-body); text-decoration: none; transition: gap .3s var(--ease-out); }
.vitrine-maison-lien svg { width: 16px; height: 16px; }
@media (hover: hover) { .vitrine-maison-lien:hover { gap: 12px; } }
.vitrine-maison-objets { position: relative; height: 100%; display: flex; align-items: center; }
.vitrine-maison-objets .navigateur { width: 88%; box-shadow: 0 0 0 1px rgb(255 255 255 / 8%), 0 40px 70px -34px rgb(0 0 0 / 60%); }
.vitrine-maison-objets .mobile { position: absolute; right: 0; bottom: 4%; width: 24%; }
/* Téléphones seuls (le site n'a pas de vue d'ordinateur parlante) : deux téléphones, mesurés sur la hauteur de la carte. */
.vitrine-maison-objets-seul { container-type: size; justify-content: center; gap: min(7cqh, 6cqw); }
.vitrine-maison-objets-seul .mobile { position: relative; right: auto; bottom: auto; flex: none; width: min(43cqh, 40cqw); padding: 1.6cqh; border-radius: 6cqh; }
.vitrine-maison-objets-seul .mobile-ecran { border-radius: 4.6cqh; }
.vitrine-maison-objets-seul .mobile-decale { translate: 0 -5cqh; rotate: 2deg; }
.vitrine-maison-objets-seul .mobile:first-child { translate: 0 5cqh; rotate: -2deg; }
.vitrine-maison.est-vue .mobile-defile.mobile-decale .mobile-ecran img { animation-delay: -5s; }
.vitrine-maison-claire .vitrine-maison-objets .mobile { box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 12%), 0 40px 70px -34px rgb(60 30 10 / 50%); }
.mobile-ecran { overflow: hidden; border-radius: 11% / 5%; aspect-ratio: 560 / 1212; background: #000; }
.mobile-defile .mobile-ecran img { width: 100%; height: auto; transform: translateY(0); }
.vitrine-maison.est-vue .mobile-defile .mobile-ecran img { animation: defile 16s cubic-bezier(.45, 0, .55, 1) 1s infinite alternate; }
@keyframes defile { 0%, 8% { transform: translateY(0); } 92%, 100% { transform: translateY(calc(-100% + var(--hauteur-ecran, 380px))); } }
/* Sans JavaScript, rien ne fait glisser la galerie : elle redevient un rail qui défile (comme en « moins de mouvement »). */
html:not(.js) .maisons-piste { height: auto; }
html:not(.js) .maisons-collant { position: static; height: auto; padding: clamp(60px, 10vh, 120px) 0; }
html:not(.js) .maisons-rail { overflow-x: auto; scroll-snap-type: x mandatory; transform: none; padding-bottom: 12px; }
.maisons-points { display: none; justify-content: center; gap: 8px; }
.maisons-points i { width: 7px; height: 7px; border-radius: 99px; background: rgb(11 46 85 / 22%); transition: width .35s var(--ease-out), background-color .25s; }
.maisons-points i.est-actif { width: 22px; background: var(--accent); }
.vitrine-maison-suivante { grid-template-columns: 1fr; align-content: center; justify-items: start; width: min(560px, 82vw); background: rgb(255 255 255 / 72%); color: var(--ink); box-shadow: var(--ombre-carte), inset 0 0 0 1px var(--carte-bord); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.vitrine-maison-suivante h3 { margin: 0 0 14px; font-family: var(--font-display); font-weight: 800; letter-spacing: -.045em; color: var(--navy); font-size: clamp(1.8rem, 1rem + 1.8vw, 2.8rem); }
.vitrine-maison-suivante p { max-width: 30ch; margin-bottom: 26px; color: var(--muted); }
.vitrine-maison-pingouin { position: absolute; right: 6%; bottom: -4%; width: auto; height: 46%; filter: drop-shadow(0 14px 16px rgb(11 46 85 / 24%)); }

/* ---------- Le Jura : la vraie carte, les quatre villes, leurs photos ---------- */

.jura { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); grid-template-areas: "texte carte" "photos carte"; gap: clamp(24px, 3vw, 44px) clamp(28px, 4vw, 64px); align-items: start; max-width: var(--largeur); margin: 0 auto; padding: clamp(70px, 12vh, 140px) var(--gouttiere); }
.jura-texte { grid-area: texte; display: grid; gap: 18px; }
.jura-texte h2 { max-width: 12ch; font-size: clamp(2.2rem, 1.1rem + 4vw, 4.4rem); font-weight: 800; letter-spacing: -.05em; color: var(--page-titre); }
.jura-texte > p { max-width: 44ch; font-size: clamp(1rem, .95rem + .3vw, 1.12rem); color: var(--page-texte); }
/* La carte : le relief (une image, tirée par outils/carte.py), les traits en SVG par-dessus, les noms et les villes en HTML,
   posés en % pour garder leur taille au téléphone comme au bureau. */
.carte { grid-area: carte; position: sticky; top: calc(var(--entete) + 24px); padding: 8px; border-radius: 32px; background: rgb(255 255 255 / 55%); box-shadow: inset 0 0 0 1px var(--carte-bord), var(--ombre-objet); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.carte-cadre { position: relative; overflow: hidden; border-radius: 25px; background: #d5e1ef; isolation: isolate; }
.carte-relief, .carte-dessin { position: absolute; inset: 0; width: 100%; height: 100%; }
.carte-dessin { overflow: visible; }
.carte-rivieres { stroke: #3d9ae8; stroke-width: 2; vector-effect: non-scaling-stroke; }
.carte-rivieres-dehors { stroke: rgb(80 140 210 / 45%); stroke-width: 1.4; }
.carte-route-dehors { opacity: .42; }
.canton-halo { stroke: rgb(255 255 255 / 85%); stroke-width: 6; vector-effect: non-scaling-stroke; }
.canton-bord { stroke: var(--accent); stroke-width: 2.2; stroke-dasharray: 1; stroke-dashoffset: 0; vector-effect: non-scaling-stroke; }
.carte-route-fond { stroke: #fff; stroke-width: 8; stroke-dasharray: 1; stroke-dashoffset: 0; vector-effect: non-scaling-stroke; }
.carte-route-bord { stroke: #d4861d; stroke-width: 5; stroke-dasharray: 1; stroke-dashoffset: 0; vector-effect: non-scaling-stroke; }
.carte-route { stroke: #ffc65a; stroke-width: 3; stroke-dasharray: 1; stroke-dashoffset: 0; vector-effect: non-scaling-stroke; }
.carte-etiquettes > * { position: absolute; left: var(--x); top: var(--y); translate: -50% -50%; rotate: var(--a, 0deg); white-space: nowrap; pointer-events: none; }
.carte-voisin { font: 700 .66rem/1 var(--font-display); letter-spacing: .34em; text-transform: uppercase; color: rgb(11 46 85 / 70%); }
.carte-eau { margin-top: -10px; font: italic 500 .74rem/1 var(--font-body); letter-spacing: .03em; color: #1f5f9e; text-shadow: 0 0 3px #fff, 0 0 6px #fff; }
.carte-panneau { padding: 4px 7px 3px; border-radius: 6px; background: #d52b1e; box-shadow: 0 0 0 2px #fff, 0 4px 10px -4px rgb(11 46 85 / 50%); font: 800 .7rem/1 var(--font-display); letter-spacing: .02em; color: #fff; }
.reperes { position: absolute; inset: 0; }
.repere { --pastille: 58px; position: absolute; left: var(--x); top: var(--y); width: 0; height: 0; }
.repere::before { content: ""; position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px #fff, 0 2px 6px rgb(11 46 85 / 40%); }
.repere-pastille { position: absolute; left: calc(var(--pastille) / -2); bottom: 13px; width: var(--pastille); height: var(--pastille); border-radius: 50%; background: var(--navy); box-shadow: 0 0 0 3px #fff, 0 10px 22px -8px rgb(11 46 85 / 55%); transform-origin: 50% calc(100% + 13px); transition: transform .45s var(--ressort), box-shadow .3s; }
.repere-pastille::after { content: ""; position: absolute; left: 50%; top: 100%; margin: 1px 0 0 -6px; border: 6px solid transparent; border-top: 8px solid #fff; border-bottom: 0; }
.repere-pastille img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.repere[data-ville="porrentruy"] img { object-position: 64% 40%; }
.repere-nom { position: absolute; bottom: calc(13px + var(--pastille) / 2); translate: 0 50%; padding: 6px 11px 6px; border-radius: 999px; background: #fff; box-shadow: 0 6px 16px -8px rgb(11 46 85 / 55%); font: 700 .84rem/1 var(--font-display); letter-spacing: -.01em; color: var(--navy); white-space: nowrap; transition: background-color .25s, color .25s; }
.repere-droite .repere-nom { left: calc(var(--pastille) / 2 + 8px); }
.repere-gauche .repere-nom { right: calc(var(--pastille) / 2 + 8px); }
.repere-dessous .repere-pastille { top: 13px; bottom: auto; transform-origin: 50% -13px; }
.repere-dessous .repere-pastille::after { top: auto; bottom: 100%; margin: 0 0 1px -6px; border-top: 0; border-bottom: 8px solid #fff; }
.repere-dessous .repere-nom { top: calc(13px + var(--pastille) / 2); bottom: auto; translate: 0 -50%; }
.repere.est-allumee .repere-pastille { transform: scale(1.14); box-shadow: 0 0 0 3px var(--accent), 0 14px 26px -8px rgb(11 46 85 / 60%); }
.repere.est-allumee .repere-nom { background: var(--accent); color: #fff; }
.jura.est-vu .repere::before { animation: repere-onde 2.8s ease-out calc(3s + var(--v) * .3s) infinite; }
@keyframes repere-onde { 0% { box-shadow: 0 0 0 3px #fff, 0 0 0 3px rgb(0 112 214 / 50%); } 100% { box-shadow: 0 0 0 3px #fff, 0 0 0 22px rgb(0 112 214 / 0%); } }
.js .carte-relief { opacity: 0; scale: 1.05; }
.js .canton-bord, .js .carte-route-fond, .js .carte-route-bord, .js .carte-route { stroke-dashoffset: 1; }
.js .carte-rivieres, .js .canton-halo, .js .carte-etiquettes > * { opacity: 0; }
.js .repere { opacity: 0; translate: 0 -14px; }
.js .jura.est-vu .carte-relief { opacity: 1; scale: 1; transition: opacity 1.1s var(--ease-out), scale 2.6s var(--ease-out); }
.js .jura.est-vu .canton-bord { stroke-dashoffset: 0; transition: stroke-dashoffset 2.2s var(--ease-in-out) .3s; }
.js .jura.est-vu .canton-halo, .js .jura.est-vu .carte-rivieres { opacity: 1; transition: opacity 1s var(--ease-out) 1.2s; }
.js .jura.est-vu :is(.carte-route-fond, .carte-route-bord, .carte-route) { stroke-dashoffset: 0; transition: stroke-dashoffset 2s var(--ease-in-out) 1.5s; }
.js .jura.est-vu .carte-etiquettes > * { opacity: 1; transition: opacity .8s var(--ease-out) 2.4s; }
.js .jura.est-vu .repere { opacity: 1; translate: 0 0; transition: opacity .5s var(--ease-out) calc(2.2s + var(--v) * .16s), translate .8s var(--ressort) calc(2.2s + var(--v) * .16s); }
.carte-source { margin: 8px 10px 2px; font-size: .7rem; color: var(--muted); text-align: right; }
.photos-villes { grid-area: photos; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.photo-ville { position: relative; overflow: hidden; border-radius: 22px; background: var(--navy); box-shadow: var(--ombre-carte); outline: none; isolation: isolate; transition: transform .45s var(--ressort), box-shadow .3s; }
.photo-ville img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transform: scale(1.02); transition: transform 1.2s var(--ease-out); }
.photo-ville::after { content: ""; position: absolute; inset: 40% 0 0; z-index: 1; background: linear-gradient(transparent, rgb(6 22 44 / 78%)); pointer-events: none; }
.photo-ville-nom { position: absolute; z-index: 2; left: 16px; right: 16px; bottom: 30px; display: grid; gap: 2px; font-size: .86rem; line-height: 1.25; color: rgb(255 255 255 / 86%); }
.photo-ville-nom strong { font: 700 1.12rem/1.1 var(--font-display); letter-spacing: -.02em; color: #fff; }
.photo-ville-credit { position: absolute; z-index: 2; left: 16px; right: 16px; bottom: 11px; font-size: .64rem; color: rgb(255 255 255 / 62%); }
.photo-ville.est-allumee { transform: translateY(-4px); box-shadow: 0 0 0 3px var(--accent), var(--ombre-objet); }
.photo-ville.est-allumee img { transform: scale(1.08); }
.js .photo-ville { opacity: 0; transform: translateY(24px) scale(.97); transition: opacity .7s var(--ease-out) calc(var(--v) * .12s + .2s), transform .9s var(--ressort) calc(var(--v) * .12s + .2s), box-shadow .3s; }
.js .jura.est-vu .photo-ville { opacity: 1; transform: none; }
.js .jura.est-vu .photo-ville.est-allumee { transform: translateY(-4px); transition-delay: 0s; }

/* ---------- Espace client : l'entrée et les portes vers b4g-eat.ch ---------- */

.accueil-client { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 80px); align-items: center; max-width: var(--largeur); min-height: calc(100svh - var(--entete)); margin: 0 auto; padding: clamp(24px, 6vh, 64px) var(--gouttiere) clamp(40px, 8vh, 90px); }
.accueil-client-texte { position: relative; }
.accueil-client h1 { margin: 22px 0 24px; font-size: clamp(2.6rem, 1rem + 5vw, 5.8rem); font-weight: 800; line-height: .95; letter-spacing: -.055em; color: var(--page-titre); }
.accueil-client h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.accueil-client-pingouin { width: auto; height: clamp(150px, 20vh, 220px); margin-top: clamp(20px, 4vh, 40px); filter: drop-shadow(0 16px 18px rgb(11 46 85 / 24%)); }
.chemins { display: grid; gap: 10px; padding: clamp(16px, 2vw, 24px); border-radius: 30px; background: rgb(255 255 255 / 52%); box-shadow: inset 0 0 0 1px var(--carte-bord), var(--ombre-carte); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.chemins-titre { padding: 4px 8px 6px; font: 600 .76rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-fort); }
.chemin { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px rgb(11 46 85 / 6%); text-decoration: none; color: var(--ink); transition: transform .2s var(--ease-out), box-shadow .2s, background-color .2s; }
/* Pas de pictogrammes (BG, 25.10 : « ça fait trop IA ») : la porte principale porte une vraie photo, les autres un numéro. */
.chemin-numero { min-width: 2ch; font: 700 1.35rem/1 var(--font-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--accent-fort); }
.chemin-photo { position: absolute; inset: 0; z-index: -1; }
.chemin-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; transition: transform 1.2s var(--ease-out); }
.chemin-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgb(6 26 58 / 86%) 0%, rgb(6 26 58 / 66%) 55%, rgb(6 26 58 / 30%) 100%); }
.chemin-texte { display: grid; gap: 3px; font-size: .86rem; line-height: 1.3; color: var(--muted); }
.chemin-texte strong { font: 600 1rem/1.2 var(--font-body); color: var(--navy); }
.chemin-fleche { width: 18px; height: 18px; color: var(--accent); transition: transform .25s var(--ease-out); }
.chemin-principal { position: relative; isolation: isolate; overflow: hidden; grid-template-columns: 1fr auto; align-items: end; min-height: 128px; padding: 18px 20px; background: var(--navy); color: #fff; box-shadow: 0 18px 34px -18px rgb(0 50 120 / 70%); }
.chemin-principal .chemin-texte { color: #fff; }
.chemin-principal .chemin-texte strong { color: #fff; font-size: 1.1rem; }
.chemin-principal .chemin-fleche { color: #fff; }
.chemin:active { transform: scale(.985); }
@media (hover: hover) {
  .chemin:hover { box-shadow: 0 0 0 1.5px var(--accent), 0 14px 26px -18px rgb(11 46 85 / 45%); }
  .chemin:hover .chemin-fleche { transform: translate(2px, -2px); }
  .chemin-principal:hover { box-shadow: 0 0 0 1.5px var(--navy), 0 20px 36px -18px rgb(0 50 120 / 80%); }
  .chemin-principal:hover .chemin-photo img { transform: scale(1.05); }
}

/* ---------- La scène de la course : un halo qui change d'humeur, l'avant de la commande, le coursier ---------- */

.scene-halo { position: absolute; left: 50%; top: 50%; width: 34em; height: 34em; font-size: clamp(12px, 1.9vh, 16px); border-radius: 50%; background: radial-gradient(closest-side, var(--halo, rgb(255 255 255 / 80%)), transparent); transform: translate(-50%, -50%); transition: background .8s var(--ease-out); pointer-events: none; }
.scene[data-etat="2"] .scene-halo { --halo: rgb(1 221 251 / 32%); }
.scene[data-etat="3"] .scene-halo { --halo: rgb(255 196 140 / 42%); }
.scene[data-etat="4"] .scene-halo { --halo: rgb(43 177 246 / 34%); }
.scene[data-etat="5"] .scene-halo { --halo: rgb(255 255 255 / 90%); }

.accessoire-radar { width: 14em; padding: 1.3em; border-radius: 1.6em; background: #fff; box-shadow: var(--ombre-objet); font-size: clamp(12px, min(1.9vh, 1.15vw), 16px); transform: translate(calc(-50% - 13.2em), -64%) rotate(-2deg) scale(.94); }
.scene[data-etat="1"] .accessoire-radar { transform: translate(calc(-50% - 15em), -68%) rotate(-3deg); }
.radar { position: relative; aspect-ratio: 1; margin-bottom: .9em; border-radius: 50%; background: radial-gradient(circle, var(--wash) 0 30%, transparent 30.5%), var(--ciel-2); overflow: hidden; }
.radar-onde { position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--blue) 30%, transparent); transform: scale(.33); }
.radar-onde:nth-child(2) { transform: scale(.66); }
.radar-onde:nth-child(3) { transform: scale(.98); }
.radar-vous { position: absolute; left: 50%; top: 50%; width: .9em; height: .9em; margin: -.45em; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 .35em rgb(0 128 240 / 22%); }
.radar-maison { position: absolute; left: var(--x); top: var(--y); width: .75em; height: .75em; margin: -.375em; border-radius: .25em; background: var(--navy); opacity: 0; transform: scale(.4); }
.scene[data-etat="1"] .radar-maison { animation: pointe .5s var(--ressort) calc(.4s + var(--k) * .28s) forwards; }
@keyframes pointe { to { opacity: 1; transform: scale(1); } }
.scene[data-etat="1"] .radar-onde:nth-child(1) { animation: balaie 2.4s ease-out .3s infinite; }
@keyframes balaie { 0% { box-shadow: inset 0 0 0 1.5px rgb(0 128 240 / 60%); } 100% { box-shadow: inset 0 0 0 1.5px rgb(0 128 240 / 0%); transform: scale(1); } }
.radar-titre { font: 700 1.02em/1.25 var(--font-display); letter-spacing: -.02em; color: var(--navy); }
.radar-note { margin-top: .3em; font-size: .82em; line-height: 1.4; color: var(--muted); }

.accessoire-fiche { width: 15em; padding: 1.2em 1.25em 1.1em; border-radius: 1.6em; background: #fff; box-shadow: var(--ombre-objet); font-size: clamp(12px, min(1.9vh, 1.15vw), 16px); transform: translate(calc(-50% - 15em), -40%) rotate(2deg) scale(.94); }
.scene[data-etat="2"] .accessoire-fiche { transform: translate(calc(-50% - 16.9em), -44%) rotate(3deg); }
.fiche-tete { display: flex; align-items: center; gap: .75em; padding-bottom: .9em; border-bottom: 1px solid var(--line); }
.fiche-tete span { display: grid; gap: .1em; font-size: .82em; color: var(--muted); }
.fiche-tete strong { font: 700 1.2em/1.2 var(--font-display); letter-spacing: -.02em; color: var(--navy); }
.fiche-lignes > div { display: grid; gap: .15em; padding: .6em 0; border-bottom: 1px dotted var(--line); font-size: .84em; }
.fiche-lignes > div:last-child { border-bottom: 0; padding-bottom: 0; }
.fiche-lignes dt { font-size: .86em; font-weight: 600; letter-spacing: .02em; color: var(--muted); }
.fiche-lignes dd { font-weight: 600; color: var(--navy); }
.fiche-lignes dd small { display: block; font-size: .86em; font-weight: 400; color: var(--muted); }

.scene-coursier { position: absolute; z-index: 1; left: 50%; bottom: 7%; width: clamp(84px, 9vh, 120px); opacity: 0; transform: translateX(-34vw); pointer-events: none; }
.scene[data-etat="4"] .scene-coursier { opacity: 1; transform: translateX(10em); transition: transform 3.6s cubic-bezier(.3, .6, .2, 1) .6s, opacity .3s .6s; }
.scene[data-etat="5"] .scene-coursier { opacity: 1; transform: translateX(10.5em); }

.nav a[aria-current="page"] { color: var(--accent); }
.nav a[aria-current="page"]::after { transform: scaleX(1); }

/* ---------- 8. La date ---------- */

.date { padding: clamp(40px, 6vh, 80px) var(--gouttiere) clamp(80px, 12vh, 140px); }
.date-panneau { position: relative; max-width: var(--largeur); margin: 0 auto; padding: clamp(64px, 10vh, 120px) clamp(24px, 6vw, 88px) 0; border-radius: clamp(28px, 4vw, 44px); background: var(--grad-fonce); color: #fff; overflow: hidden; isolation: isolate; box-shadow: 0 50px 90px -50px rgb(0 70 190 / 75%); }
.date-lumiere { position: absolute; z-index: -1; left: 0; top: 0; width: 70vmax; height: 70vmax; margin: -35vmax 0 0 -35vmax; border-radius: 50%; background: radial-gradient(closest-side, rgb(1 221 251 / 6%), rgb(1 221 251 / 0)); transform: translate3d(var(--lx, 70%), var(--ly, 20%), 0); transition: transform .9s var(--ease-out); pointer-events: none; }
.date-avant { font: 600 clamp(1rem, .9rem + .5vw, 1.3rem)/1.2 var(--font-body); color: #fff; }
.date-titre { margin: 16px 0 36px; font-size: clamp(3.1rem, 1rem + 9vw, 10rem); font-weight: 800; line-height: .9; letter-spacing: -.06em; }
.date-titre .ligne:nth-child(2) > span { color: #a6f4ff; }
/* Sur les fonds bleus, l'anneau de focus passe au blanc ; les boutons « verre » s'assombrissent pour porter le blanc. */
.porte-maison :focus-visible, .date-panneau :focus-visible { outline-color: #fff; }
.date-panneau .bouton-verre { background: rgb(4 28 84 / 22%); }
.date-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.date-rue { position: relative; height: clamp(150px, 17vw, 230px); margin: clamp(30px, 5vh, 60px) calc(-1 * clamp(24px, 6vw, 88px)) 0; }
.date-plis { position: absolute; inset: 0; width: 100%; height: 100%; }
.date-plis path { stroke: none; }
.date-pli-1 { fill: rgb(255 255 255 / 10%); }
.date-pli-2 { fill: rgb(255 255 255 / 16%); }
.date-pli-3 { fill: rgb(255 255 255 / 26%); }
.date-coursier { position: absolute; z-index: 1; left: 0; bottom: 33%; width: clamp(110px, 12vw, 180px); transform: translateX(var(--x, 64vw)); }

/* ---------- 9. Les questions ---------- */

.questions { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: clamp(28px, 5vw, 80px); align-items: start; max-width: var(--largeur); margin: 0 auto; padding: clamp(40px, 8vh, 100px) var(--gouttiere) clamp(80px, 12vh, 140px); }
.questions-tete { position: sticky; top: calc(var(--entete) + 32px); display: grid; gap: 18px; }
.questions-tete h2 { max-width: 11ch; font-size: clamp(2.2rem, 1.1rem + 4vw, 4.2rem); font-weight: 800; letter-spacing: -.05em; color: var(--page-titre); }
.questions-tete > p:last-child { color: var(--page-texte); }
.questions-tete a { color: var(--accent); font-weight: 600; }
.faq { border-top: 1px solid var(--page-ligne); }
.faq details { border-bottom: 1px solid var(--page-ligne); interpolate-size: allow-keywords; }
.faq summary { position: relative; display: block; padding: 24px 44px 24px 0; font: 600 clamp(1.08rem, 1rem + .4vw, 1.3rem)/1.3 var(--font-display); letter-spacing: -.02em; color: var(--page-titre); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 16px; height: 2px; margin-top: -1px; border-radius: 2px; background: var(--accent); transition: transform .35s var(--ease-out); }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq details::details-content { block-size: 0; overflow: hidden; transition: block-size .4s var(--ease-out), content-visibility .4s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
.faq details p { max-width: 62ch; padding: 0 0 26px; color: var(--page-texte); }
.faq details a { color: var(--accent); font-weight: 600; }

/* ---------- Pied (comme l'accueil) ---------- */

.pied { background: rgb(255 255 255 / 86%); box-shadow: 0 -1px 0 rgb(11 46 85 / 8%); }
.pied-in { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px 40px; max-width: var(--largeur); margin: 0 auto; padding: 36px var(--gouttiere) calc(30px + env(safe-area-inset-bottom)); }
.pied .marque img { height: 36px; }
.pied-phrase { color: var(--muted); font-size: .92rem; }
.pied-liens { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.pied-liens a { font-size: .9rem; color: var(--ink); text-decoration: none; }
.pied-liens a:hover { color: var(--accent); }
.pied-bas { grid-column: 1 / -1; font-size: .82rem; color: var(--muted); }

/* ---------- Le mouvement (seulement si on ne demande pas d'en avoir moins) ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js .entree { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease-out), transform .9s var(--ease-out); transition-delay: calc(var(--d, 0) * 90ms + 120ms); }
  .js .est-pret .entree { opacity: 1; transform: none; }
  .js .ouverture h1 .ligne > span { transform: translateY(104%); transition: transform 1s var(--ease-out); }
  .js .est-pret h1 .ligne > span { transform: none; }
  .js .est-pret h1 .ligne:nth-child(2) > span { transition-delay: .09s; }
  .js .est-pret h1 .ligne:nth-child(3) > span { transition-delay: .18s; }
  .js .pli { transform: translateY(70px); opacity: 0; transition: opacity 1s var(--ease-out), transform 1.5s var(--ease-out); transition-delay: calc(var(--n) * 110ms + 150ms); }
  .js .est-pret .pli { opacity: 1; transform: none; }

  .js .revele { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease-out), transform 1s var(--ease-out); transition-delay: calc(var(--i, 0) * 110ms); }
  .js .revele.est-vu { opacity: 1; transform: none; }
  .js .porte .porte-pingouin, .js .retour .retour-pingouin { transform: translateY(26px) scale(.86); opacity: 0; transition: transform .7s var(--ressort), opacity .3s; transition-delay: calc(var(--i, 0) * 110ms + .35s); }
  .js .est-vu .porte-pingouin, .js .est-vu .retour-pingouin { transform: none; opacity: 1; }

  .js .date-titre .ligne > span { transform: translateY(104%); transition: transform 1.1s var(--ease-out); }
  .js .date.est-vu .date-titre .ligne > span { transform: none; }
  .js .date.est-vu .date-titre .ligne:nth-child(2) > span { transition-delay: .1s; }
  .js .date.est-vu .date-titre .ligne:nth-child(3) > span { transition-delay: .2s; }
  .js .date-coursier { --x: -30vw; transition: transform 2.6s cubic-bezier(.2, .7, .2, 1) .5s; }
  .js .date.est-vu .date-coursier { --x: min(64vw, 900px); }
}

/* ---------- Tailles ---------- */

/* Les accessoires de la course, posés en em autour du téléphone, mordraient sur le texte des étapes sous 1260 px
   (mesuré : chevauchement de 1181 à 1245 px dès 780 px de haut). */
@media (max-width: 1260px) {
  .accessoire { display: none; }
}
@media (max-width: 1100px) {
  .carte-eau { display: none; }
}
@media (max-width: 1080px) {
  .nav { gap: 20px; }
  .lien-discret { display: none; }
}
/* Cinq entrées au menu : entre 961 et 1040 px, on le resserre pour qu'il tienne sur une ligne (comme l'accueil). */
@media (max-width: 1040px) {
  .entete-in { gap: 16px; }
  .nav { gap: 16px; }
  .nav a, .compte-bouton { font-size: .88rem; }
}

@media (max-width: 960px) {
  .entete-in { grid-template-columns: 1fr auto; }
  .nav, .compte { display: none; }
  .menu-bouton { display: block; }
  .portes { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
  .ouverture-grille { grid-template-columns: 1fr; gap: 20px; }
  .ouverture-cote { padding-bottom: 0; }
  .portes { gap: 110px; }
  .addition { grid-template-columns: 1fr; grid-template-areas: "texte" "ticket" "retour"; }
  .retour { margin-top: 70px; }
  .questions { grid-template-columns: 1fr; }
  .questions-tete { position: static; }
  .jura { grid-template-columns: 1fr; grid-template-areas: "texte" "carte" "photos"; }
  .carte { position: relative; top: auto; }
  .accueil-client { grid-template-columns: 1fr; min-height: 0; }
  .accueil-client-pingouin { display: none; }
  .maisons-tete { grid-template-columns: 1fr; }
}

/* Téléphone : la scène reste en haut, les étapes défilent dessous. */
@media (max-width: 759px) {
  :root { --entete: 64px; }
  .marque img { height: 34px; }
  .entete-actions { gap: 10px; }
  .ouverture { min-height: 0; padding-top: calc(var(--entete) + 12px); }
  /* La bulle du pingouin s'ouvre à sa gauche : au-dessus, elle passait sous la carte de la date. */
  .bulle { right: 100%; bottom: 46%; width: max-content; max-width: 44vw; margin-right: 6px; border-radius: 14px 14px 4px 14px; white-space: normal; text-align: center; }
  .surtitre { font-size: .68rem; letter-spacing: .1em; }
  .ouverture-grille { margin-top: 12px; gap: 14px; }
  .ouverture h1 { font-size: clamp(2.3rem, 10.4vw, 3.2rem); line-height: .93; }
  .chapeau { font-size: 1rem; line-height: 1.48; }
  .ouverture-actions { margin-top: 16px; }
  .ouverture-actions .bouton { height: 48px; padding: 0 20px; }
  .annonce { margin-top: 12px; padding: 6px 14px 6px 6px; font-size: .86rem; }
  .annonce-jour { width: 40px; height: 44px; font-size: 1.15rem; }
  .paysage { flex-basis: 172px; margin-top: -12px; }
  .principe { padding-top: 80px; }
  .course-grille { grid-template-columns: 1fr; gap: 0; }
  /* Verre dépoli : le texte qui passe sous le bas de la scène se brouille au lieu de transparaître. */
  .scene { order: -1; z-index: 3; height: 50svh; margin: 0 calc(-1 * var(--gouttiere)); background: linear-gradient(rgb(232 241 254 / 92%) 84%, rgb(232 241 254 / 0)); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); -webkit-mask-image: linear-gradient(#000 93%, transparent); mask-image: linear-gradient(#000 93%, transparent); }
  .telephone { font-size: calc(43svh / 41.6); }
  .accessoire { display: none; }
  .scene-points { bottom: 9%; }
  .etapes { padding-left: 26px; }
  .etapes { padding-bottom: 8svh; }
  .etapes::before, .etapes::after { left: 4px; top: 4svh; bottom: 12svh; }
  .etape { min-height: 44svh; justify-content: center; padding: 18px 0; }
  .etape-numero::before { left: -26px; }
  .etape h3 { margin-bottom: 12px; font-size: 1.55rem; }
  .etape p { font-size: .98rem; }
  .carte { padding: 6px; border-radius: 26px; }
  .carte-cadre { border-radius: 20px; }
  .repere { --pastille: 40px; }
  .repere-nom { padding: 5px 8px; font-size: .7rem; }
  .repere-pastille::after { margin-left: -5px; border-width: 5px; border-top-width: 7px; }
  .repere-dessous .repere-pastille::after { border-top-width: 0; border-bottom-width: 7px; }
  .repere[data-ville="franches"] .repere-nom { left: 0; top: 13px; bottom: auto; translate: -50% 0; }
  .carte-voisin { font-size: .56rem; letter-spacing: .26em; }
  .carte-eau { display: none; }
  .carte-source { font-size: .62rem; }
  .carte-panneau { padding: 3px 5px 2px; font-size: .6rem; }
  .bref-trace, .bref-coursier { display: none; }
  .bref-gestes { grid-template-columns: 1fr; margin-top: 0; }
  .maisons-piste { height: auto; }
  .maisons-collant { position: static; height: auto; padding: 70px 0 30px; }
  .maisons-rail { overflow-x: auto; scroll-snap-type: x mandatory; transform: none !important; padding-bottom: 16px; scrollbar-width: none; }
  .maisons-rail::-webkit-scrollbar { display: none; }
  .maisons-points { display: flex; margin-top: -8px; }
  .vitrine-maison { grid-template-columns: 1fr; grid-template-rows: auto auto; align-content: space-between; width: 86vw; height: auto; padding: 22px; scroll-snap-align: center; }
  .vitrine-maison-objets { order: -1; height: auto; min-height: 220px; }
  .vitrine-maison-objets-seul { container-type: normal; gap: 18px; padding: 10px 0 14px; }
  .vitrine-maison-objets-seul .mobile { width: 112px; padding: 5px; border-radius: 20px; }
  .vitrine-maison-objets-seul .mobile-ecran { border-radius: 16px; }
  .vitrine-maison-objets-seul .mobile-decale { translate: 0 -8px; }
  .vitrine-maison-objets-seul .mobile:first-child { translate: 0 8px; }
  .vitrine-maison h3 { margin: 14px 0 16px; }
  .vitrine-maison-suivante { min-height: 420px; align-content: end; }
  .vitrine-maison-pingouin { top: 22px; bottom: auto; right: 22px; height: 150px; }
  .scene-coursier { display: none; }
  .chemin { padding: 12px 14px; }
  .chemin-numero { font-size: 1.2rem; }
  .chemin-principal { min-height: 112px; }
  .accueil-client h1 { font-size: clamp(2.3rem, 10.4vw, 3.2rem); }
  .photo-ville-nom { left: 12px; right: 12px; bottom: 26px; font-size: .78rem; }
  .photo-ville-nom strong { font-size: .95rem; }
  .photo-ville-credit { left: 12px; bottom: 9px; font-size: .56rem; }
  .date-panneau { padding-top: 56px; }
  .date-actions .bouton { flex: 1 1 100%; }
  .pied-in { grid-template-columns: 1fr; }
}

@media (any-pointer: coarse) {
  .coursier-bouton { cursor: default; }
  .ciel-lumiere-2, .ciel-aurore i:nth-child(n) { animation: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* :nth-child(n) : sans lui, .ciel-aurore i:nth-child(1..3) { animation } l'emporte et l'aurore tourne encore. */
  .ciel-lumiere-2, .ciel-aurore i:nth-child(n) { animation: none; }
  .appli-vue, .accessoire, .ticket-papier, .mini-carte-trace, .etoiles i, .etape, .photo-ville, .bref-geste { transition: none !important; }
  .maisons-piste { height: auto; }
  .maisons-collant { position: static; height: auto; padding: clamp(60px, 10vh, 120px) 0; }
  .maisons-rail { overflow-x: auto; scroll-snap-type: x mandatory; transform: none !important; padding-bottom: 12px; }
  .maisons-points { display: flex; }
  .vitrine-maison { scroll-snap-align: center; }
  .mobile-defile .mobile-ecran img { animation: none !important; }
  .scene-coursier { display: none; }
  .scene *, .scene *::before, .scene *::after { animation: none !important; }
  .ticket-papier { clip-path: none; }
  .suivi li.est-encours i { animation: none; }
  .faq details::details-content { transition: none; }
  .repere::before { animation: none !important; }
  .carte-relief, .canton-bord, .carte-route-fond, .carte-route-bord, .carte-route, .carte-rivieres, .canton-halo, .carte-etiquettes > *, .repere { transition: none !important; }
  .appli-choisi-plus-tard { background: var(--appli-choisi) !important; box-shadow: inset 0 0 0 1.5px var(--blue) !important; }
  .appli-choisi-plus-tard i { background: var(--blue); box-shadow: inset 0 0 0 1.5px var(--blue) !important; }
  .appli-choisi-plus-tard i::after { transform: rotate(45deg) scale(1) !important; }
  .manifeste .mot { --o: 1 !important; }
  .coursier .coursier-corps img, .coursier .coursier-corps { animation: none !important; }
  .js .ticket-long { transform: none; transition: none; }
  .radar-maison { opacity: 1 !important; transform: none !important; }
  .date-lumiere { transition: none; }
}
