/* L'accueil de retooch.com, direction D5 du 04/12/2026 (choisie par Virgile) : la vitrine de nuit.
   Maquette : _livrables/accueil-premium-2026-12-04/direction-d5/index.html ; consignes :
   _coordination/creation/prompt-developpeur-accueil-d5-2026-12-04.md.
   Seule page sombre du site : ses couleurs (#0B0A10, #A99BFF), le verre, les halos et l'anneau de l'IA
   ne servent qu'ici (tests/test_identite.py le vérifie). Les polices viennent de marque.css ; le violet des
   boutons reste #5B3BE8. Le récit : un seul attribut (data-e sur .scene) change, posé par vitrine.js ;
   tout le reste est ici, en transform et opacity. */

:root {
  color-scheme: dark;
  --nuit: #0B0A10;
  --ink: #F4F2F8;
  --ink2: #B9B4C6;
  --violet: #5B3BE8;
  --violet2: #4527C9;
  --accent: #A99BFF;
  --filet: rgba(255, 255, 255, .12);
  --vert: #0B7A3E;
  --titres: var(--police-titres);
  --texte: var(--police-texte);
  --courbe: cubic-bezier(.2, .7, .2, 1);
  --flou: 22px;
}
* { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--nuit); color: var(--ink); font: 400 17px/1.55 var(--texte); -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, p, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.cont { width: min(1180px, 100% - 32px); margin-inline: auto; }
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 28px; border-radius: 999px; background: var(--violet); color: #fff; text-decoration: none; font: 600 17px/1 var(--texte); border: 0; cursor: pointer; transition: background-color .2s, transform .2s var(--courbe); }
.bouton:hover { background: var(--violet2); }
.bouton:active { transform: scale(.98); }

/* Le verre : fond assez dense pour 4,5:1 sur n'importe quoi (ne pas l'éclaircir), flou, reflet sur le bord */
.verre { position: relative; isolation: isolate; background: rgba(20, 18, 28, .84); color: var(--ink); -webkit-backdrop-filter: blur(var(--flou)) saturate(170%); backdrop-filter: blur(var(--flou)) saturate(170%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 24px 60px -24px rgba(0, 0, 0, .7); }
.verre::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: -1; background: linear-gradient(135deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .06) 40%, rgba(255, 255, 255, 0) 60%, rgba(255, 255, 255, .22)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.verre.clair { background: rgba(255, 255, 255, .86); color: #16141D; }
/* Appareil modeste (vitrine.js) : flou réduit, anneau de l'IA arrêté. Flou non géré : panneaux opaques. */
.leger { --flou: 10px; }
.sans-verre .verre { -webkit-backdrop-filter: none; backdrop-filter: none; background: #1D1B26; }
.sans-verre .verre.clair { background: #fff; }
@media (prefers-reduced-transparency: reduce) {
  .verre { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background: #1D1B26; }
  .verre.clair { background: #fff; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* --- En-tête : une barre de verre qui flotte --------------------------------------------------- */
.tete { position: fixed; top: 12px; left: 0; right: 0; z-index: 50; padding: 0 12px; pointer-events: none; }
.tete .barre { pointer-events: auto; max-width: 1120px; margin: 0 auto; height: 60px; border-radius: 999px; display: flex; align-items: center; gap: 8px; padding: 0 8px 0 18px; }
/* Le logo commun (_marque.html) sur fond sombre : mot clair, bulle violette, point en accent */
.vitrine .marque { gap: 8px; color: var(--ink); margin-right: auto; }
.vitrine .marque-icone { width: 28px; height: auto; }
.vitrine .marque-mot { font-size: 22px; letter-spacing: -.03em; }
.vitrine .marque-point { background: var(--accent); }
.tete nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 12px; color: var(--ink2); text-decoration: none; font-size: 15px; }
.tete nav a:hover { color: var(--ink); background: rgba(255, 255, 255, .08); }
.tete .bouton { min-height: 44px; padding: 0 18px; font-size: 15px; }
@media (max-width: 900px) {
  .tete nav a:not(.cx) { display: none; }
  .tete .bouton { display: none; }
  .tete .barre { height: 56px; }
}

/* --- Le téléphone ------------------------------------------------------------------------------ */
.tel { position: relative; width: var(--l, 300px); aspect-ratio: 390 / 844; padding: calc(var(--l, 300px) * .032); border-radius: calc(var(--l, 300px) * .15); background: #1C1A22; box-shadow: 0 0 0 1.5px #3A3644, 0 60px 120px -40px #000; }
.tel::after { content: ""; position: absolute; top: calc(var(--l, 300px) * .055); left: 50%; width: calc(var(--l, 300px) * .03); aspect-ratio: 1; border-radius: 50%; transform: translateX(-50%); background: #0b0a0e; z-index: 3; }
.ecran { position: relative; width: 100%; height: 100%; overflow: hidden; background: #F7F3EC; border-radius: calc(var(--l, 300px) * .12); }
.ecran.blanc { background: #fff; }
.ecran::before { content: ""; display: block; height: calc(var(--l, 300px) * .085); background: var(--etat, #F7F3EC); position: relative; z-index: 2; transition: background-color .6s; }
.ecran img { width: 100%; }
.bandeau { display: grid; grid-template-rows: 0fr; background: #2E2822; color: #fff; transition: grid-template-rows .7s var(--courbe); }
.bandeau > span { overflow: hidden; text-align: center; font: 600 calc(var(--l, 300px) * .04)/1.35 var(--texte); }
.bandeau > span > b { display: block; padding: calc(var(--l, 300px) * .03) calc(var(--l, 300px) * .05); font-weight: 600; }
.bulle { position: absolute; max-width: 320px; padding: 14px 16px 10px; border-radius: 22px; text-align: left; font-size: 15px; line-height: 1.45; }
.bulle .h { display: block; text-align: right; font-size: 12px; color: #5F6368; }
.bulle.moi { background: rgba(217, 253, 211, .9); color: #0E2A12; border-top-right-radius: 8px; right: calc(100% - 64px); top: 15%; width: 300px; }
.bulle.lui { left: calc(100% - 64px); top: 33%; width: 280px; border-top-left-radius: 8px; }
.bulle { z-index: 6; opacity: 0; transform: translateY(16px) scale(.96); transition: opacity .5s, transform .6s var(--courbe); pointer-events: none; }
[data-e="0"] .bulle { opacity: 1; transform: none; }
.bulle .ok { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--vert); }
.bulle .ok svg { width: 15px; height: 15px; }
.cite { margin: 8px 0; padding: 7px 10px; border-left: 3px solid var(--violet); background: #EEEAFD; border-radius: 4px 8px 8px 4px; font-weight: 600; color: #16141D; }
.pil { position: absolute; z-index: 4; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; font: 600 14px/1 var(--texte); white-space: nowrap; }
/* Le point de la pastille : ::after (le ::before du verre fait le reflet du bord), placé en premier */
.pil::after { content: ""; order: -1; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 0 4px rgba(91, 59, 232, .2); }
@media (max-width: 760px) {
  .bulle { font-size: 14px; }
  .bulle.moi { right: auto; left: calc(-50vw + 50% + 12px); top: 34%; width: min(260px, 70vw); }
  .bulle.lui { left: auto; right: calc(-50vw + 50% + 12px); top: 54%; width: min(250px, 68vw); }
}

/* --- Le haut de page (étape 0) ----------------------------------------------------------------- */
.etape.ouverture { min-height: 150vh; min-height: 150svh; display: block; padding: 124px 16px 0; text-align: center; }
.ouverture h1 { font: 300 clamp(38px, 6vw, 84px)/1.02 var(--titres); letter-spacing: -.045em; text-wrap: balance; }
.ouverture h1 span { display: block; }
.ouverture .sous { max-width: 34em; margin: 20px auto 0; color: var(--ink2); font-size: clamp(18px, 1.6vw, 21px); text-wrap: pretty; }
.ouverture .action { margin-top: 28px; display: grid; justify-items: center; gap: 12px; }
.ouverture .petit { font-size: 15px; color: var(--ink2); }
@media (max-width: 760px) {
  .etape.ouverture { padding: 100px 16px 0; min-height: 150svh; }
  .ouverture h1 span { display: inline; }
}

/* --- Le récit : la scène reste à l'écran, le téléphone la traverse à chaque étape --------------- */
.recit { position: relative; }
.ancre-comment { position: absolute; top: 100vh; top: 100svh; }
.scene { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; perspective: 1600px; --l: min(300px, calc((100svh - 170px) / 2.164)); }
.scene::before { content: ""; position: absolute; width: 900px; height: 900px; left: 50%; top: 50%; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(91, 59, 232, .26), rgba(91, 59, 232, 0)); pointer-events: none; }
.porteur, .ordi, .cote { position: absolute; left: 50%; top: 50%; }
.porteur { transform-style: preserve-3d; transform: translate(-50%, -50%) translateX(24vw) rotateY(-16deg) rotateZ(2deg); transition: transform 1.15s cubic-bezier(.7, 0, .2, 1); will-change: transform; z-index: 3; }
.bond { animation: bond 1.15s cubic-bezier(.7, 0, .2, 1); }
@keyframes bond { 0% { transform: none; } 45% { transform: scale(.86) rotateX(8deg); } 100% { transform: none; } }
.reflet { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; z-index: 5; }
.reflet::after { content: ""; position: absolute; top: -20%; bottom: -20%; width: 40%; left: -60%; background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .28), rgba(255, 255, 255, 0)); transform: skewX(-14deg); }
.bond .reflet::after { animation: reflet 1.15s ease-in-out; }
@keyframes reflet { 0% { left: -60%; } 100% { left: 130%; } }
/* L'aura de l'IA : un anneau de lumière qui tourne autour du téléphone pendant qu'elle travaille */
@property --tour { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.aura { position: absolute; inset: -12px; border-radius: calc(var(--l) * .17); padding: 5px; opacity: 0; transition: opacity .5s; pointer-events: none; background: conic-gradient(from var(--tour), rgba(169, 155, 255, 0) 0deg, #C9BFFF 50deg, #A99BFF 90deg, #5B3BE8 140deg, rgba(91, 59, 232, 0) 200deg, rgba(169, 155, 255, 0) 360deg); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.aura::after { content: ""; position: absolute; inset: -22px; border-radius: inherit; background: inherit; filter: blur(26px); opacity: 1; }
[data-e="2"] .aura { opacity: 1; animation: tour 1.6s linear infinite; }
@keyframes tour { to { --tour: 360deg; } }
.balayage { position: absolute; left: 0; right: 0; height: 30%; top: -30%; background: linear-gradient(180deg, rgba(169, 155, 255, 0), rgba(169, 155, 255, .22), rgba(169, 155, 255, 0)); pointer-events: none; z-index: 4; opacity: 0; }
[data-e="2"] .balayage { opacity: 1; animation: balaye 1.4s ease-in-out 2; }
@keyframes balaye { 0% { top: -30%; } 100% { top: 100%; } }
.badge-ia { position: absolute; left: 50%; bottom: -26px; transform: translate(-50%, 8px); opacity: 0; transition: opacity .4s, transform .4s var(--courbe); white-space: nowrap; z-index: 6; }
[data-e="2"] .badge-ia { opacity: 1; transform: translate(-50%, 0); transition-delay: .4s; }

/* Les écrans du téléphone */
.vue { position: absolute; inset: calc(var(--l) * .085) 0 0 0; opacity: 0; transition: opacity .45s .35s; }
.vue img { width: 100%; }
[data-e="1"] .v-wa, [data-e="2"] .v-wa, [data-e="3"] .v-site, [data-e="4"] .v-q, [data-e="5"] .v-ann, [data-e="6"] .v-coif, [data-e="7"] .v-plomb { opacity: 1; }
.wa { display: flex; flex-direction: column; height: 100%; background: #EFEAE2; color: #16141D; font-size: 14px; line-height: 1.4; }
.wa-t { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #fff; border-bottom: 1px solid #E8E5DF; }
.wa-t i { width: 34px; height: 34px; border-radius: 50%; background: var(--violet); display: grid; place-items: center; }
.wa-t i svg { width: 19px; }
.wa-t b { display: block; font-size: 15px; }
.wa-t small { font-size: 12px; color: #5F6368; }
.fil { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 12px 10px 8px; overflow: hidden; }
.wa-b { display: flex; align-items: center; gap: 7px; padding: 7px 8px 9px; background: #EFEAE2; }
.wa-b .champ { flex: 1; display: flex; align-items: center; height: 36px; padding: 0 12px; border-radius: 999px; background: #fff; color: #6B6872; font-size: 14px; overflow: hidden; white-space: nowrap; gap: 8px; }
.wa-b .champ svg { width: 18px; height: 18px; flex: none; color: #8A8792; }
.wa-b .tape { display: none; color: #16141D; overflow: hidden; max-width: 0; }
.wa-b .env { width: 36px; height: 36px; border-radius: 50%; background: var(--vert); display: grid; place-items: center; flex: none; }
.wa-b .env svg { width: 16px; height: 16px; color: #fff; }
.anime [data-e="1"] .v-wa .tape { display: block; animation: tape .8s steps(28) .2s both, efface .15s 1.1s forwards; }
.anime [data-e="1"] .v-wa .ph { display: none; animation: revient 1.25s steps(1, end) forwards; }
@keyframes tape { from { max-width: 0; } to { max-width: 100%; } }
@keyframes efface { to { opacity: 0; max-width: 0; } }
@keyframes revient { to { display: inline; } }
.scene.retour .tape { display: none !important; }
.scene.retour .ph { display: inline !important; animation: none !important; }
.m { max-width: 84%; padding: 8px 11px; border-radius: 14px; box-shadow: 0 1px .5px rgba(0, 0, 0, .1); }
.m.moi { align-self: flex-end; background: #D9FDD3; border-top-right-radius: 4px; }
.m.lui { align-self: flex-start; background: #fff; border-top-left-radius: 4px; }
.ok { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--vert); }
.ok svg { width: 14px; height: 14px; }
.m .cite { margin: 6px 0 0; font-size: 13px; }
.pts { align-self: flex-start; display: inline-flex; gap: 4px; padding: 11px 13px; background: #fff; border-radius: 14px; border-top-left-radius: 4px; }
.pts i { width: 7px; height: 7px; border-radius: 50%; background: #8A8792; }
.choix { align-self: flex-start; width: 84%; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.choix span { display: grid; place-items: center; min-height: 38px; padding: 6px; background: #fff; border-radius: 10px; color: var(--violet2); font-weight: 600; font-size: 13px; text-align: center; }
.choix .sel { background: #EEEAFD; }
/* Étape 1 : le message part. Étape 2 : l'IA écrit, puis la réponse arrive. */
.v-wa .rep, .v-wa .pts { display: none; }
[data-e="2"] .v-wa .pts { display: inline-flex; max-height: 40px; overflow: hidden; animation: pts 1.2s forwards; }
[data-e="2"] .v-wa .rep { display: block; animation: pop .5s 1.2s var(--courbe) both; }
.anime [data-e="1"] .v-wa .moi { animation: pop .5s 1.2s var(--courbe) both; }
.anime [data-e="4"] .v-q .lui, .anime [data-e="5"] .v-ann .fin { animation: pop .5s .9s var(--courbe) both; }
@keyframes pts { 0%, 88% { opacity: 1; max-height: 40px; } 100% { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; margin-top: -8px; } }
@media (prefers-reduced-motion: reduce) { [data-e="2"] .v-wa .pts { display: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.94); } }
[data-e="3"] .bandeau { grid-template-rows: 1fr; }
[data-e="3"] .ecran { --etat: #2E2822; }
[data-e="1"] .ecran, [data-e="2"] .ecran, [data-e="4"] .ecran, [data-e="5"] .ecran, [data-e="7"] .ecran { --etat: #fff; }
[data-e="6"] .ecran { --etat: #FFF8F5; }
.p-maj { left: 50%; top: -22px; transform: translate(-50%, 6px); opacity: 0; transition: opacity .4s, transform .4s var(--courbe); }
[data-e="3"] .p-maj { opacity: 1; transform: translate(-50%, 0); transition-delay: .9s; }
/* Étape 6 : l'éventail des métiers */
.cote { transform: translate(-50%, -50%) scale(.8); opacity: 0; transition: transform 1.1s cubic-bezier(.7, 0, .2, 1), opacity .6s; z-index: 2; }
.cote .ecran { --etat: #fff; }
[data-e="6"] .cote.g { opacity: 1; transform: translate(-50%, -50%) translateX(-118%) rotateY(22deg) rotateZ(-6deg) scale(.88); }
[data-e="6"] .cote.d { opacity: 1; transform: translate(-50%, -50%) translateX(118%) rotateY(-22deg) rotateZ(6deg) scale(.88); }
[data-e="6"] .porteur { transform: translate(-50%, -56%) scale(1.04); }
/* Étape 7 : l'ordinateur arrive, le téléphone se pose devant */
.ordi { width: min(620px, 46vw); transform: translate(-50%, -50%) translateX(8vw) scale(.9); opacity: 0; transition: opacity .7s, transform 1.15s cubic-bezier(.7, 0, .2, 1); z-index: 1; }
.ordi .c { background: #1C1A22; padding: 10px 10px 16px; border-radius: 14px 14px 4px 4px; box-shadow: 0 0 0 1.5px #3A3644, 0 60px 120px -40px #000; }
.ordi .c img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 3px; width: 100%; }
.ordi .s { height: 16px; margin: 0 -7%; background: #3A3742; border-radius: 0 0 16px 16px; }
[data-e="7"] .ordi { opacity: 1; transform: translate(-50%, -50%) translateX(8vw); }
/* État 0 : le haut de page. Le téléphone attend sous le bouton, avec les deux bulles qui dépassent.
   --y0 et --y0m sont mesurés par vitrine.js ; aucune transition avant qu'il soit placé (.pret). */
[data-e="0"] .porteur { transform: translate(-50%, -50%) translateY(var(--y0, 46svh)); }
.scene:not(.pret) .porteur, .scene:not(.pret) .bulle, .scene:not(.pret) .vue, .scene:not(.pret) .pil { transition: none !important; }
.scene.suit[data-e="0"] .porteur { transition: none; }
[data-e="0"] .v-site { opacity: 1; transition-delay: 0s; }
[data-e="0"] .bandeau { grid-template-rows: 1fr; }
[data-e="0"] .ecran { --etat: #2E2822; }
[data-e="0"] .p-maj { opacity: 1; transform: translate(-50%, 0); }
[data-e="0"] .rail { opacity: 0; }
.rail { transition: opacity .4s; }
/* Position du téléphone à chaque étape : il traverse l'écran */
[data-e="2"] .porteur, [data-e="4"] .porteur { transform: translate(-50%, -50%) translateX(-24vw) rotateY(16deg) rotateZ(-2deg); }
[data-e="3"] .porteur, [data-e="5"] .porteur { transform: translate(-50%, -50%) translateX(24vw) rotateY(-12deg) rotateZ(1deg); }
[data-e="7"] .porteur { transform: translate(-50%, -50%) translateX(calc(8vw + min(620px, 46vw) * .46)) translateY(12%) scale(.6) rotateY(-10deg); }
.rail { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; gap: 10px; padding: 10px 14px; border-radius: 999px; }
.rail i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .3); transition: background-color .3s, transform .3s; }
[data-e="1"] .rail i:nth-child(1), [data-e="2"] .rail i:nth-child(2), [data-e="3"] .rail i:nth-child(3), [data-e="4"] .rail i:nth-child(4), [data-e="5"] .rail i:nth-child(5), [data-e="6"] .rail i:nth-child(6), [data-e="7"] .rail i:nth-child(7) { background: #fff; transform: scale(1.35); }

/* Les légendes passent par-dessus la scène, du côté opposé au téléphone */
.etapes { position: relative; z-index: 8; margin-top: -100vh; margin-top: -100svh; }
.etape { min-height: 150vh; min-height: 150svh; display: flex; align-items: flex-start; padding: 0 max(4vw, 16px); }
.etape .legende { position: sticky; top: calc(50svh - 120px); }
.etape[data-cote="d"] { justify-content: flex-end; }
.etape[data-cote="bas"] { justify-content: center; }
.etape[data-cote="bas"] .legende { top: calc(100svh - 300px); }
.legende { width: min(430px, 36vw); padding: 28px 30px; border-radius: 30px; }
.etape[data-cote="bas"] .legende { width: min(620px, 92vw); text-align: center; }
.legende h2 { font: 300 clamp(34px, 3.8vw, 54px)/1.02 var(--titres); letter-spacing: -.045em; text-wrap: balance; }
.legende p { margin-top: 12px; color: var(--ink2); font-size: clamp(16px, 1.3vw, 19px); }
.legende .liens { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.legende .liens a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--filet); text-decoration: none; font-weight: 600; font-size: 15px; }
.legende .liens a:hover { border-color: var(--accent); }
.etape .legende { transition: transform .6s var(--courbe); }
@media (max-width: 900px) {
  .scene { --l: min(260px, calc((100svh - 320px) / 2.164)); }
  .porteur, [data-e="2"] .porteur, [data-e="3"] .porteur, [data-e="4"] .porteur, [data-e="5"] .porteur { top: 76px; transform: translate(-50%, 0) rotateY(0); }
  .porteur { transform: translate(-50%, 0); }
  [data-e="2"] .porteur, [data-e="4"] .porteur { transform: translate(-50%, 0) rotateZ(-3deg); }
  [data-e="3"] .porteur, [data-e="5"] .porteur { transform: translate(-50%, 0) rotateZ(3deg); }
  [data-e="0"] .porteur { transform: translate(-50%, 0) translateY(var(--y0m, 50svh)); }
  .cote { top: 76px; transform: translate(-50%, 0) scale(.8); }
  [data-e="6"] .porteur { transform: translate(-50%, 0) scale(.92); }
  [data-e="6"] .cote.g { transform: translate(-50%, 0) translateX(-62%) rotateZ(-8deg) scale(.74); }
  [data-e="6"] .cote.d { transform: translate(-50%, 0) translateX(62%) rotateZ(8deg) scale(.74); }
  .ordi { width: min(340px, 82vw); top: 90px; transform: translate(-50%, 0) scale(.9); }
  [data-e="7"] .ordi { transform: translate(-50%, 0); }
  [data-e="7"] .porteur { transform: translate(-50%, 0) translate(36%, 34%) scale(.58); }
  .rail { display: none; }
  .etape, .etape[data-cote="d"], .etape[data-cote="bas"] { min-height: 150svh; justify-content: center; align-items: flex-start; padding: 0 12px; }
  .etape .legende { top: calc(100svh - 300px); }
  .etape[data-cote="bas"] .legende { top: calc(100svh - 370px); }
  .legende { transition: opacity .3s .15s; }
  .legende.cachee { opacity: 0; pointer-events: none; }
  .legende, .etape[data-cote="bas"] .legende { width: 100%; padding: 18px 20px; border-radius: 24px; text-align: left; }
  .legende h2 { font-size: clamp(28px, 8vw, 38px); }
  .legende p { font-size: 16px; margin-top: 8px; }
  .legende .liens { justify-content: flex-start; }
}
.leger .aura, .leger .balayage { animation: none; }
/* En remontant : l'état final de l'étape, sans rejouer les apparitions */
.scene.retour .m, .scene.retour .rep, .scene.retour .fin, .scene.retour .balayage { animation: none !important; }
.scene.retour .v-wa .pts { display: none !important; }

/* --- Tarifs : une carte de verre sur le fond sombre --------------------------------------------- */
.prix { position: relative; display: grid; place-items: center; padding: 120px 16px 40px; overflow: hidden; }
.prix::before { content: ""; position: absolute; width: 900px; height: 900px; left: 50%; top: 50%; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(91, 59, 232, .3), rgba(91, 59, 232, 0)); pointer-events: none; }
.carte { position: relative; width: min(560px, 100%); padding: clamp(28px, 4vw, 48px); border-radius: 36px; text-align: center; }
.carte h2 { font: 600 15px/1.3 var(--texte); color: var(--accent); }
.carte .montant { margin-top: 12px; font: 200 clamp(84px, 11vw, 140px)/.9 var(--titres); letter-spacing: -.06em; white-space: nowrap; }
.carte .montant small { display: block; margin-top: 8px; font: 400 22px/1.2 var(--titres); letter-spacing: -.01em; }
.carte .sous { margin-top: 10px; color: var(--ink2); }
.carte hr { border: 0; height: 1px; background: var(--filet); margin: 24px 0; }
.carte .autre { font: 500 20px/1.3 var(--titres); }
.carte .liste { margin-top: 22px; display: grid; gap: 10px; text-align: left; color: var(--ink2); font-size: 16px; }
.carte .liste li { display: flex; gap: 10px; }
.carte .liste svg { flex: none; width: 18px; height: 18px; margin-top: 4px; color: var(--accent); }
.carte .bouton { margin-top: 26px; width: 100%; }
.carte .detail { display: inline-flex; min-height: 44px; align-items: center; margin-top: 6px; color: var(--accent); font-weight: 600; text-decoration: none; }

/* --- Aperçu : la demande (app/demandes.py) ------------------------------------------------------ */
.apercu { padding: clamp(96px, 11vw, 150px) 0; }
.apercu .cont { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.apercu h2 { font: 300 clamp(36px, 4.6vw, 64px)/1.02 var(--titres); letter-spacing: -.045em; max-width: 12ch; text-wrap: balance; }
.envoi { margin-top: 22px; color: var(--ink2); font-size: clamp(18px, 1.6vw, 21px); max-width: 28em; }
.moi-v { margin-top: 36px; display: flex; align-items: center; gap: 16px; padding-top: 28px; border-top: 1px solid var(--filet); }
.moi-v .pastille { flex: none; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: #EEEAFD; color: var(--violet); font: 500 28px/1 var(--titres); }
.moi-v p { color: var(--ink2); }
.moi-v a { display: inline-flex; min-height: 44px; align-items: center; color: var(--ink); font: 500 20px/1 var(--titres); text-decoration: none; }
.form { padding: clamp(24px, 3.4vw, 40px); border-radius: 32px; display: grid; gap: 14px; }
.form label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.form label small { font-weight: 400; color: var(--ink2); font-size: inherit; }
.form input { width: 100%; height: 56px; padding: 0 16px; border: 1.5px solid transparent; border-radius: 14px; background: #fff; color: #16141D; font: 400 17px var(--texte); }
.form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(169, 155, 255, .3); }
.form .bouton { width: 100%; margin-top: 6px; }
.form .note { text-align: center; font-size: 14px; color: var(--ink2); }
/* Le message après l'envoi (merci, ou ce qui ne va pas) */
.form .retour { padding: 14px 16px; border-radius: 14px; background: rgba(169, 155, 255, .14); border: 1px solid rgba(169, 155, 255, .4); color: var(--ink); font-weight: 600; }
.form .retour-erreur { background: rgba(255, 138, 128, .12); border-color: rgba(255, 138, 128, .5); }
.piege { position: absolute; left: -9999px; }
@media (max-width: 860px) { .apercu .cont { grid-template-columns: 1fr; } }

/* --- Questions ---------------------------------------------------------------------------------- */
.faq { padding: 0 0 clamp(96px, 11vw, 150px); }
.faq .cont { max-width: 860px; }
.faq h2 { font: 300 clamp(32px, 4vw, 52px)/1.05 var(--titres); letter-spacing: -.04em; margin-bottom: 32px; }
.faq details { border-top: 1px solid var(--filet); }
.faq details:last-child { border-bottom: 1px solid var(--filet); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 68px; padding: 16px 0; font: 500 clamp(19px, 1.8vw, 22px)/1.3 var(--titres); transition: color .3s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg) translate(-3px, -3px); transition: transform .45s cubic-bezier(.4, 0, .2, 1); }
.faq details.ouvert summary::after, html:not(.js) .faq details[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.faq .rep-faq { overflow: hidden; }
.faq details p { padding: 0 32px 24px 0; color: var(--ink2); max-width: 62ch; }
.faq summary:hover { color: #fff; }

/* --- Pied de page et bouton fixe sur téléphone ------------------------------------------------- */
.pied { border-top: 1px solid var(--filet); padding: 32px 0 40px; font-size: 15px; color: var(--ink2); }
.pied .cont { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.pied a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.pied .marque-mot { font-size: 19px; }
.pied .marque-icone { width: 22px; }
.pied .pied-note { display: block; margin-top: 16px; font-size: 13px; }
.fixe { display: none; }
@media (max-width: 900px) {
  .fixe { display: block; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 60; transform: translateY(140%); transition: transform .35s var(--courbe); }
  .fixe.vis { transform: none; }
  .fixe .bouton { width: 100%; box-shadow: 0 18px 40px -12px #000; }
  body { padding-bottom: 84px; }
}
