/* Limal · landing page. Couleurs et police reprises de l'appli (lib/app/theme.dart). */

@font-face { font-family: Nunito; src: url(../fonts/nunito-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Nunito; src: url(../fonts/nunito-700.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: Nunito; src: url(../fonts/nunito-800.woff2) format('woff2'); font-weight: 800; font-display: swap; }

:root {
  --primaire: #0b6e5f;
  --primaire-foncee: #07574b;
  --primaire-claire: #d5ede8;
  --ambre: #f2a900;
  --ambre-clair: #fff3d1;
  --critique: #c62828;
  --critique-clair: #fdecea;
  --texte: #111827;
  --secondaire: #4b5563;
  --fond: #fbf8f1;
  --surface: #ffffff;
  --bordure: #e7e2d6;
  --ombre: 0 24px 60px -24px rgb(7 87 75 / 0.35);
  --rayon: 20px;
  --ressort: cubic-bezier(.2, .9, .25, 1.15);
  --doux: cubic-bezier(.22, 1, .36, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font: 400 1.0625rem/1.6 Nunito, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 4.6vw, 3rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 800; }
p { margin: 0 0 1em; text-wrap: pretty; }
svg { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 3px solid var(--ambre); outline-offset: 3px; border-radius: 6px; }

section { position: relative; padding: clamp(72px, 11vw, 140px) 16px; }
section > * { max-width: 1160px; margin-inline: auto; }
.surtitre { color: var(--primaire); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; margin-bottom: 14px; display: inline-flex; align-items: center; gap: 10px; }
.titre-section { text-align: center; margin-bottom: clamp(40px, 6vw, 72px); }
.titre-section h2 { max-width: 760px; margin-inline: auto; }

/* Barre de progression de lecture */
.progression { position: fixed; inset: 0 0 auto; height: 3px; z-index: 60; background: linear-gradient(90deg, var(--primaire), var(--ambre)); transform-origin: left; transform: scaleX(var(--p, 0)); }

/* En-tête */
.entete {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 12px max(16px, calc((100vw - 1160px) / 2));
  background: rgb(251 248 241 / .78);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.entete.defilee { border-bottom-color: var(--bordure); box-shadow: 0 8px 24px -18px rgb(0 0 0 / .25); }
.marque { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.3rem; color: var(--primaire); text-decoration: none; }
.marque img { border-radius: 10px; }
.menu { display: flex; gap: 28px; margin-left: auto; }
.menu a { text-decoration: none; color: var(--secondaire); font-weight: 700; font-size: .95rem; position: relative; }
.menu a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--primaire); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--doux); }
.menu a:hover { color: var(--texte); }
.menu a:hover::after { transform: scaleX(1); transform-origin: left; }

/* Boutons */
.bouton {
  --fond-bouton: var(--primaire);
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 26px; border-radius: 999px;
  background: var(--fond-bouton); color: #fff;
  font-weight: 800; font-size: 1.05rem; text-decoration: none;
  box-shadow: 0 12px 28px -12px rgb(11 110 95 / .7);
  position: relative; overflow: hidden; isolation: isolate;
  transition: transform .35s var(--ressort), box-shadow .35s;
}
.bouton::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / .28) 50%, transparent 70%); transform: translateX(-120%); transition: transform .8s var(--doux); }
.bouton:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 18px 34px -14px rgb(11 110 95 / .8); }
.bouton:hover::before { transform: translateX(120%); }
.bouton svg { width: 20px; height: 20px; transition: transform .35s var(--ressort); }
.bouton:hover svg { transform: translateX(4px); }
.bouton-petit { padding: 10px 18px; font-size: .92rem; margin-left: 0; }
.bouton-clair { --fond-bouton: #fff; color: var(--primaire-foncee); box-shadow: 0 14px 30px -14px rgb(0 0 0 / .5); }
.lien-fleche { font-weight: 800; color: var(--primaire); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.lien-fleche::after { content: ''; width: 18px; height: 2px; background: currentColor; transition: width .3s var(--doux); }
.lien-fleche:hover::after { width: 30px; }

/* 1. Héros */
.heros {
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 48px;
  max-width: none; padding-top: clamp(40px, 7vw, 96px); padding-bottom: clamp(64px, 9vw, 120px);
  padding-inline: max(16px, calc((100vw - 1160px) / 2));
  overflow: hidden;
}
.heros > * { max-width: none; margin: 0; }
.halo { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; pointer-events: none; z-index: -1; }
.halo-vert { width: 520px; height: 520px; background: #9fd8cc; top: -160px; right: -120px; animation: derive 18s ease-in-out infinite alternate; }
.halo-ambre { width: 380px; height: 380px; background: #ffe199; bottom: -140px; left: 30%; animation: derive 22s ease-in-out infinite alternate-reverse; }
@keyframes derive { to { transform: translate(-60px, 50px) scale(1.15); } }
.point-vivant { width: 9px; height: 9px; border-radius: 50%; background: var(--primaire); box-shadow: 0 0 0 0 rgb(11 110 95 / .5); animation: pouls 2s infinite; }
@keyframes pouls { 70% { box-shadow: 0 0 0 10px rgb(11 110 95 / 0); } 100% { box-shadow: 0 0 0 0 rgb(11 110 95 / 0); } }
.souligne { position: relative; white-space: nowrap; color: var(--primaire); }
.souligne::after {
  content: ''; position: absolute; left: -2%; right: -2%; bottom: .04em; height: .32em; z-index: -1;
  background: var(--ambre); border-radius: 4px; opacity: .85;
  transform: scaleX(0); transform-origin: left; animation: trait 1s .7s var(--doux) forwards;
}
@keyframes trait { to { transform: scaleX(1); } }
.chapeau { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--secondaire); max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin: 30px 0 26px; }
.slogan { color: var(--secondaire); font-size: .95rem; }
.slogan strong { color: var(--texte); }

.scene { position: relative; height: 560px; display: grid; place-items: center; }
.telephone {
  position: relative; width: 260px; aspect-ratio: 494 / 1100;
  border-radius: 38px; padding: 9px; background: #10181a;
  box-shadow: var(--ombre), inset 0 0 0 2px #2b3437;
}
.telephone::before { content: ''; position: absolute; top: 15px; left: 50%; width: 64px; height: 18px; translate: -50% 0; background: #10181a; border-radius: 12px; z-index: 2; }
.telephone img { width: 100%; height: 100%; object-fit: cover; border-radius: 30px; }
.telephone-heros { position: absolute; right: 2%; top: 10px; rotate: 6deg; animation: flotte 7s ease-in-out infinite; }
@keyframes flotte { 50% { transform: translateY(-14px); } }

.ticket { position: absolute; left: 0; top: 40px; width: 300px; rotate: -4deg; z-index: 2; filter: drop-shadow(0 22px 30px rgb(7 87 75 / .28)); }
.ticket-papier {
  position: relative; background: #fffdf7; padding: 22px 20px 30px;
  font: 600 .74rem/1.25 ui-monospace, 'SF Mono', Menlo, Consolas, monospace; color: #2d2a24; letter-spacing: .02em;
  --dent: radial-gradient(circle at 8px 0, transparent 7px, #000 7.5px);
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 8px) no-repeat, var(--dent) bottom / 16px 8px repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - 8px) no-repeat, var(--dent) bottom / 16px 8px repeat-x;
  overflow: hidden;
}
.ticket-tete { text-align: center; font-weight: 800; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1.5px dashed #c9c2b2; }
.ticket-tete span { font-weight: 500; opacity: .7; }
.ticket-lignes { list-style: none; margin: 0; padding: 0; }
.ticket-lignes li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 6px; margin: 0 -6px; border-radius: 4px; position: relative; transition: background .4s, color .4s; }
.ticket-lignes em { font-style: normal; font-weight: 800; }
.ticket-total { display: flex; justify-content: space-between; margin: 12px 0 0; padding-top: 10px; border-top: 1.5px dashed #c9c2b2; font-weight: 800; font-size: .86rem; }
.faisceau { position: absolute; left: 0; right: 0; top: 0; height: 36px; background: linear-gradient(transparent, rgb(11 110 95 / .22) 70%, #12a58c 96%, transparent); opacity: 0; pointer-events: none; }

.pastille {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px;
  background: var(--surface); border-radius: 16px; padding: 12px 16px; box-shadow: var(--ombre);
  font-weight: 800; opacity: 0; transform: translateY(14px) scale(.9);
  transition: opacity .5s var(--doux), transform .6s var(--ressort);
}
.pastille.montree { opacity: 1; transform: none; }
.pastille-alerte { left: 4%; bottom: 66px; color: var(--critique); font-size: .9rem; border: 1.5px solid #f3c1bd; }
.pastille-alerte svg { width: 22px; height: 22px; flex: none; }
.pastille-montant { right: 0; bottom: 8px; flex-direction: column; align-items: flex-start; gap: 0; background: var(--critique); color: #fff; padding: 14px 20px; }
.pastille-libelle { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; opacity: .85; }
.pastille-montant strong { font-size: 1.9rem; line-height: 1.1; font-variant-numeric: tabular-nums; }

/* États du ticket pilotés par main.js */
.js .ticket-lignes li, .js .ticket-total { opacity: 0; transform: translateY(-6px); }
.ticket .imprimee { opacity: 1 !important; transform: none !important; transition: opacity .3s, transform .35s var(--doux); }
.ticket.scan .faisceau { animation: scan 1.7s var(--doux) forwards; }
@keyframes scan { 0% { opacity: 0; transform: translateY(0); } 10% { opacity: 1; } 90% { opacity: 1; } 100% { opacity: 0; transform: translateY(var(--course, 300px)); } }
.ticket .ligne-fautive.reperee { background: var(--critique-clair); color: var(--critique); }
.ticket .ligne-fautive.reperee::after { content: ''; position: absolute; left: 6px; right: 6px; top: 50%; height: 1.5px; background: currentColor; transform-origin: left; animation: barre .5s .25s var(--doux) both; }
@keyframes barre { from { transform: scaleX(0); } }
.ticket .ligne-fautive.reperee em { display: inline-block; animation: bondit .6s var(--ressort); }
@keyframes bondit { 40% { transform: scale(1.7); } }

/* Apparitions au défilement */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--doux), transform .9s var(--doux); transition-delay: calc(var(--d, 0) * 110ms); }
.js [data-reveal].visible { opacity: 1; transform: none; }

/* 1 bis. Le film (assets/js/film.js). Le plateau est dessiné en 1280×720 (720×960 en portrait)
   puis mis à l'échelle : GSAP n'anime que des décalages, les positions restent ici. */
.film { padding-top: clamp(56px, 8vw, 110px); }
.film-ecran {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; isolation: isolate; cursor: pointer;
  border-radius: 28px; background: var(--fond); border: 1.5px solid var(--bordure); box-shadow: var(--ombre);
}
.film-plateau {
  position: absolute; left: 0; top: 0; width: 1280px; height: 720px; overflow: hidden;
  transform-origin: 0 0; transform: scale(var(--k, 1)); user-select: none;
  font-family: Nunito, system-ui, sans-serif; color: var(--texte);
}
.film-plateau svg { stroke: none; }
.film-plateau p { margin: 0; text-wrap: initial; }
.film-symboles { position: absolute; }
.film-plan { position: absolute; inset: 0; }
.film:not(.film-pret) .film-plan:not(.plan-signature),
.film:not(.film-pret) .f-legende, .film:not(.film-pret) .f-volet,
.film:not(.film-pret) .film-commandes, .film:not(.film-pret) .film-chapitres,
.film:not(.film-pret) .film-revoir { display: none; }
.film:not(.film-pret) .film-ecran { cursor: default; }

.f-fond { position: absolute; inset: 0; }
.f-halo { position: absolute; border-radius: 50%; }
.f-halo-vert { width: 760px; height: 760px; right: -220px; top: -300px; background: radial-gradient(closest-side, rgb(159 216 204 / .7), transparent); }
.f-halo-ambre { width: 620px; height: 620px; left: -160px; bottom: -320px; background: radial-gradient(closest-side, rgb(255 225 153 / .7), transparent); }

/* Plan 0 */
.f-titre { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.f-ville { font-size: 168px; font-weight: 800; line-height: 1; letter-spacing: -.04em; color: var(--primaire); }
.f-heure { font-size: 58px; font-weight: 800; letter-spacing: -.02em; margin: 10px 0 20px !important; }
.f-heure span { position: relative; display: inline-block; }
.f-heure span i { position: absolute; left: -2%; right: -2%; bottom: .06em; height: .3em; z-index: -1; background: var(--ambre); border-radius: 5px; opacity: .85; }
.f-note { font-size: 24px; color: var(--secondaire); }

/* Plan 1 */
.f-etagere { position: absolute; left: 40px; top: 56px; width: 700px; height: 430px; padding: 26px 26px 0; display: grid; grid-template-rows: repeat(3, 1fr); background: #efe8d9; border-radius: 24px; }
.f-rayon { display: flex; align-items: flex-end; gap: 8px; padding: 0 6px; overflow: hidden; border-bottom: 12px solid #d9cdb4; }
.f-rayon i { flex: none; border-radius: 7px 7px 3px 3px; opacity: .95; }
.f-caddie-pose { position: absolute; left: 180px; top: 300px; width: 400px; height: 320px; }
.f-caddie { position: relative; width: 100%; height: 100%; }
.f-caddie > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.f-caddie-devant { z-index: 10; }
.f-produit { position: absolute; left: var(--x); top: var(--y); width: var(--l); height: var(--h); }
.f-produit > svg, .f-colis > svg { display: block; width: 100%; height: 100%; overflow: visible; }
.f-cadre-scan {
  --c: var(--primaire); position: absolute; inset: -12px;
  background:
    linear-gradient(var(--c) 0 0) 0 0 / 18px 4px, linear-gradient(var(--c) 0 0) 0 0 / 4px 18px,
    linear-gradient(var(--c) 0 0) 100% 0 / 18px 4px, linear-gradient(var(--c) 0 0) 100% 0 / 4px 18px,
    linear-gradient(var(--c) 0 0) 0 100% / 18px 4px, linear-gradient(var(--c) 0 0) 0 100% / 4px 18px,
    linear-gradient(var(--c) 0 0) 100% 100% / 18px 4px, linear-gradient(var(--c) 0 0) 100% 100% / 4px 18px;
  background-repeat: no-repeat; opacity: 0;
}
.f-cadre-scan::after { content: ''; position: absolute; left: 8px; right: 8px; top: 50%; height: 2px; background: #12a58c; box-shadow: 0 0 10px 1px #12a58c; }

.f-tel-pose { position: absolute; transform-origin: 0 0; }
.f-tel-rayon { left: 900px; top: 70px; }
.f-tel { position: relative; width: 250px; height: 540px; padding: 8px; border-radius: 40px; background: #10181a; box-shadow: 0 40px 70px -30px rgb(7 87 75 / .55), inset 0 0 0 2px #2b3437; }
.f-tel::before { content: ''; position: absolute; top: 17px; left: 50%; width: 58px; height: 16px; translate: -50% 0; background: #10181a; border-radius: 10px; z-index: 5; }
.f-ecran { position: relative; height: 100%; overflow: hidden; border-radius: 32px; background: #fff; }
.f-etat { display: flex; justify-content: space-between; align-items: center; height: 32px; padding: 6px 20px 0 24px; font-size: 11px; font-weight: 800; }
.f-etat i { width: 30px; height: 9px; border-radius: 3px; background: linear-gradient(90deg, #111827 0 70%, #d1d5db 70%); }
.f-app-titre { font-size: 18px; font-weight: 800; padding: 6px 16px 8px; }
.f-courses { list-style: none; margin: 0; padding: 0; }
.f-courses li { display: flex; justify-content: space-between; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-bottom: 1px solid #ece8de; font-size: 11.5px; }
.f-courses b { display: block; font-weight: 800; white-space: nowrap; }
.f-courses small { display: block; font-size: 10px; color: var(--secondaire); }
.f-courses strong { font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.f-app-pied { position: absolute; left: 0; right: 0; bottom: 44px; padding: 8px 14px 10px; background: #fff; }
.f-total { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px !important; font-size: 12px; font-weight: 800; }
.f-total small { display: block; font-size: 10px; font-weight: 400; color: var(--secondaire); }
.f-total strong { font-size: 22px; color: var(--primaire); font-variant-numeric: tabular-nums; }
.f-app-bouton { padding: 10px; border-radius: 12px; background: var(--primaire); color: #fff; text-align: center; font-size: 13px; font-weight: 800; }
.f-onglets { position: absolute; left: 0; right: 0; bottom: 0; height: 44px; display: flex; justify-content: space-around; align-items: center; border-top: 1px solid #ece8de; font-size: 10px; color: var(--secondaire); }
.f-onglets i { font-style: normal; }
.f-onglets .actif { color: var(--primaire); font-weight: 800; }
.f-ondes { position: absolute; inset: 0; pointer-events: none; }
.f-onde { position: absolute; inset: -4px; border: 3px solid var(--primaire); border-radius: 44px; opacity: 0; }

/* Plan 2 */
.f-comptoir { position: absolute; left: 0; right: 0; top: 470px; bottom: 0; z-index: 2; background: linear-gradient(#e9dfca, #ddd0b6); }
.f-tapis { position: absolute; left: 0; right: 0; top: 0; height: 54px; overflow: hidden; background: #2b3437; box-shadow: inset 0 -6px 0 #1d2427; }
.f-tapis-bandes { position: absolute; left: 0; top: 0; bottom: 6px; width: calc(100% + 720px); background: repeating-linear-gradient(90deg, #37423f 0 40px, #2b3437 40px 80px); }
.f-colis { position: absolute; z-index: 3; left: calc(640px - var(--l) / 2); top: calc(474px - var(--h)); width: var(--l); height: var(--h); }
.f-scanner { position: absolute; z-index: 4; left: 560px; top: 250px; width: 160px; height: 224px; pointer-events: none; }
.f-scanner::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 36px; background: #10181a; border-radius: 12px 12px 4px 4px; box-shadow: inset 0 -5px 0 #c62828; }
.f-scanner::after { content: ''; position: absolute; inset: 0; border: solid #10181a; border-width: 0 12px; border-radius: 12px; }
.f-laser { position: absolute; left: 12px; right: 12px; top: 36px; bottom: 0; background: linear-gradient(rgb(229 57 53 / .6), rgb(229 57 53 / .05)); clip-path: polygon(38% 0, 62% 0, 100% 100%, 0 100%); }
.f-afficheur { position: absolute; left: 780px; top: 70px; width: 350px; padding: 16px 22px 18px; border-radius: 18px; background: #10181a; color: #7ee2c8; font: 700 22px/1.3 ui-monospace, 'SF Mono', Menlo, Consolas, monospace; box-shadow: 0 24px 40px -24px rgb(0 0 0 / .6); }
.f-afficheur::after { content: ''; position: absolute; left: 44px; top: 100%; width: 14px; height: 320px; background: #2b3437; z-index: -1; }
.f-aff-tete { font-size: 13px; letter-spacing: .12em; opacity: .55; margin-bottom: 8px !important; }
.f-aff-etats { position: relative; height: 64px; }
.f-aff-etat { position: absolute; inset: 0; display: flex; flex-direction: column; white-space: nowrap; }
.f-aff-etat b { align-self: flex-end; font-size: 26px; }
.f-aff-etat:nth-child(7) b { color: #ff8a80; }
.f-file { position: absolute; z-index: 1; left: 990px; top: 250px; width: 270px; height: 220px; }
.f-perso { position: absolute; bottom: 0; width: 92px; height: 170px; --tete: #6b4a3a; --corps: #9fd8cc; }
.f-perso::before { content: ''; position: absolute; left: 50%; top: 0; width: 54px; height: 54px; margin-left: -27px; border-radius: 50%; background: var(--tete); }
.f-perso::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 112px; border-radius: 46px 46px 12px 12px; background: var(--corps); }
.f-perso:nth-child(1) { left: 0; }
.f-perso:nth-child(2) { left: 84px; height: 186px; --tete: #8a5a44; --corps: #ffe199; }
.f-perso:nth-child(3) { left: 168px; height: 160px; --tete: #4a3228; --corps: #f3b8b3; }
.f-bulle { position: absolute; left: 150px; top: -26px; display: flex; gap: 7px; padding: 14px 18px; background: #fff; border-radius: 20px 20px 20px 6px; box-shadow: 0 12px 26px -14px rgb(0 0 0 / .4); }
.f-bulle i { width: 10px; height: 10px; border-radius: 50%; background: #9aa5a8; }
.f-bips { position: absolute; z-index: 5; left: 640px; top: 196px; }
.f-bip { position: absolute; left: 0; top: 0; translate: -50% 0; padding: 6px 16px; border-radius: 999px; background: var(--ambre); font-size: 22px; font-weight: 800; white-space: nowrap; box-shadow: 0 10px 20px -10px rgb(0 0 0 / .4); }
.f-bip.rouge { background: var(--critique); color: #fff; }

/* Plans 3 et 4 */
.f-cadre-ticket { position: absolute; inset: 0; }
.f-imprimante { position: absolute; z-index: 3; left: 420px; top: -20px; width: 440px; height: 92px; background: #10181a; border-radius: 0 0 22px 22px; box-shadow: 0 20px 30px -18px rgb(0 0 0 / .5); }
.f-imprimante::after { content: ''; position: absolute; left: 40px; right: 40px; bottom: 16px; height: 8px; border-radius: 4px; background: #000; }
.f-ticket-pose { position: absolute; left: 460px; top: 64px; width: 360px; }
.f-ticket-bloc { position: relative; }
.f-ticket-fente { overflow: hidden; margin: 0 -30px; padding: 0 30px 44px; }
.f-ticket {
  position: relative; padding: 22px 22px 18px; background: #fffdf7; color: #2d2a24;
  font: 600 13.5px/1.3 ui-monospace, 'SF Mono', Menlo, Consolas, monospace; letter-spacing: .01em;
  box-shadow: 0 26px 40px -22px rgb(7 87 75 / .45);
}
.f-ticket::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 9px; background: linear-gradient(135deg, #fffdf7 50%, transparent 50%) 0 0 / 14px 9px repeat-x, linear-gradient(225deg, #fffdf7 50%, transparent 50%) 0 0 / 14px 9px repeat-x; }
.f-ticket-tete { text-align: center; font-weight: 800; padding-bottom: 12px; margin-bottom: 10px !important; border-bottom: 1.5px dashed #c9c2b2; }
.f-ticket-tete span { font-weight: 500; opacity: .7; }
.f-ticket-lignes { list-style: none; margin: 0; padding: 0; }
.f-ticket-lignes li { position: relative; display: flex; justify-content: space-between; gap: 10px; margin: 0 -6px; padding: 5px 26px 5px 6px; border-radius: 4px; white-space: nowrap; }
.f-ticket-lignes em { display: inline-block; font-style: normal; font-weight: 800; }
.f-coche { position: absolute; right: 0; top: 50%; width: 20px; height: 20px; margin-top: -10px; }
.f-coche path { fill: none; stroke: var(--primaire); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.f-fautive { background: var(--critique-clair); color: var(--critique); }
.f-raye { position: absolute; left: 6px; right: 26px; top: 50%; height: 2px; background: currentColor; }
.f-entoure { position: absolute; left: -8px; top: -8px; width: calc(100% + 12px); height: calc(100% + 16px); overflow: visible; }
.f-entoure path { fill: none; stroke: var(--critique); stroke-width: 2.6; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.f-ticket-total { display: flex; justify-content: space-between; margin-top: 10px !important; padding-top: 10px; border-top: 1.5px dashed #c9c2b2; font-size: 16px; font-weight: 800; transform-origin: 50% 50%; }
.f-ticket-pied { margin-top: 14px !important; text-align: center; font-size: 11.5px; opacity: .7; }
.f-codebarre { display: block; height: 42px; margin: 10px 30px 0; background: repeating-linear-gradient(90deg, #2d2a24 0 2px, transparent 2px 4px, #2d2a24 4px 7px, transparent 7px 9px, #2d2a24 9px 10px, transparent 10px 13px); }
.f-faisceau { position: absolute; left: 0; right: 0; top: 0; height: 40px; background: linear-gradient(transparent, rgb(11 110 95 / .22) 70%, #12a58c 96%, transparent); pointer-events: none; opacity: 0; }
.f-viseur { position: absolute; width: 46px; height: 46px; border: 0 solid var(--primaire); }
.f-hg { left: -16px; top: -14px; border-width: 5px 0 0 5px; border-radius: 14px 0 0 0; }
.f-hd { right: -16px; top: -14px; border-width: 5px 5px 0 0; border-radius: 0 14px 0 0; }
.f-bg { left: -16px; bottom: 26px; border-width: 0 0 5px 5px; border-radius: 0 0 0 14px; }
.f-bd { right: -16px; bottom: 26px; border-width: 0 5px 5px 0; border-radius: 0 0 14px 0; }
.f-badge { position: absolute; z-index: 5; left: calc(100% + 8px); top: 150px; width: max-content; display: flex; align-items: center; gap: 10px; padding: 12px 18px 12px 12px; border-radius: 16px; background: var(--critique); color: #fff; font-size: 17px; font-weight: 800; white-space: nowrap; box-shadow: 0 16px 30px -14px rgb(198 40 40 / .7); }
.f-badge b { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #fff; color: var(--critique); }
.f-tel-verif { left: 860px; top: 56px; }
.f-vue { position: absolute; inset: 0; }
.f-vue-vise { display: flex; flex-direction: column; align-items: center; padding-top: 48px; background: #0e1416; color: #fff; font-size: 14px; font-weight: 800; }
.f-mire { --c: #fff; position: relative; width: 170px; height: 290px; margin-top: 22px;
  background:
    linear-gradient(var(--c) 0 0) 0 0 / 26px 4px, linear-gradient(var(--c) 0 0) 0 0 / 4px 26px,
    linear-gradient(var(--c) 0 0) 100% 0 / 26px 4px, linear-gradient(var(--c) 0 0) 100% 0 / 4px 26px,
    linear-gradient(var(--c) 0 0) 0 100% / 26px 4px, linear-gradient(var(--c) 0 0) 0 100% / 4px 26px,
    linear-gradient(var(--c) 0 0) 100% 100% / 26px 4px, linear-gradient(var(--c) 0 0) 100% 100% / 4px 26px;
  background-repeat: no-repeat; }
.f-mire i { position: absolute; inset: 22px 26px; rotate: 3deg; border-radius: 3px; background: repeating-linear-gradient(#fffdf7 0 12px, #cfc8b8 12px 14px); opacity: .9; }
.f-declencheur { position: absolute; left: 50%; bottom: 34px; width: 60px; height: 60px; margin-left: -30px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px #0e1416, 0 0 0 9px #fff; }
.f-vue-analyse { background: #fff; }
.f-app-sous { margin: 0 16px 10px !important; font-size: 11px; color: var(--secondaire); }
.f-jauge { height: 6px; margin: 0 16px 10px !important; border-radius: 3px; background: #ece8de; overflow: hidden; }
.f-jauge i { display: block; height: 100%; background: var(--primaire); }
.f-controles { list-style: none; margin: 0; padding: 0 8px; }
.f-controles li { display: flex; justify-content: space-between; align-items: center; height: 40px; padding: 0 8px; border-bottom: 1px solid #ece8de; border-radius: 8px; font-size: 12px; font-weight: 700; }
.f-controles i { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--primaire); color: #fff; font: 800 12px/1 Nunito, sans-serif; font-style: normal; }
.f-controles i::after { content: '✓'; }
.f-controles .f-ko { background: var(--critique-clair); color: var(--critique); }
.f-controles .f-ko i { background: var(--critique); }
.f-controles .f-ko i::after { content: '!'; }
.f-banniere { position: absolute; left: 10px; right: 10px; bottom: 54px; display: flex; flex-direction: column; padding: 12px 16px; border-radius: 16px; background: var(--critique); color: #fff; font-size: 13px; font-weight: 700; box-shadow: 0 14px 26px -12px rgb(198 40 40 / .7); }
.f-banniere b { font-size: 18px; font-weight: 800; }
.f-flash { position: absolute; inset: 0; z-index: 20; background: #fff; opacity: 0; pointer-events: none; }

/* Plan 5 */
.plan-verdict { background: var(--fond); }
.f-tel-verdict { left: 130px; top: 84px; }
.f-alerte { display: flex; align-items: center; gap: 10px; margin: 4px 12px 12px; padding: 14px; border-radius: 16px; background: var(--critique); color: #fff; font-size: 11.5px; }
.f-alerte > b { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: #fff; color: var(--critique); font-size: 16px; }
.f-alerte strong { display: block; font-size: 17px; }
.f-detail { margin: 0 12px 12px; padding: 12px; border: 1.5px solid #f3c1bd; border-left: 5px solid var(--critique); border-radius: 14px; font-size: 11.5px; line-height: 1.45; }
.f-detail p { display: flex; justify-content: space-between; margin-bottom: 6px !important; color: var(--critique); font-size: 12px; font-weight: 800; }
.f-tel-verdict .f-app-bouton { margin: 0 12px; }
.f-verdict { position: absolute; left: 470px; top: 100px; width: 780px; }
.f-verdict-avant, .f-verdict-apres { font-size: 38px; font-weight: 800; letter-spacing: -.02em; }
.f-montant { font-size: 158px; font-weight: 800; line-height: 1.02; letter-spacing: -.045em; color: var(--critique); white-space: nowrap; font-variant-numeric: tabular-nums; }
.f-puces { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; padding: 0; }
.f-puces li { padding: 8px 18px; border-radius: 999px; background: #fff; border: 1.5px solid var(--bordure); font-size: 19px; font-weight: 700; }
.f-puces b { color: var(--critique); }
.f-pdf { position: absolute; left: 470px; top: 506px; width: 560px; display: flex; align-items: center; gap: 18px; padding: 18px 22px; border-radius: 22px; background: #fff; border: 1.5px solid var(--bordure); box-shadow: var(--ombre); }
.f-pdf svg { flex: none; width: 48px; height: 60px; }
.f-pdf p { font-size: 16px; color: var(--secondaire); }
.f-pdf p b { display: block; font-size: 21px; color: var(--texte); }
.f-pdf-ok { display: grid; place-items: center; flex: none; width: 42px; height: 42px; margin-left: auto; border-radius: 50%; background: var(--primaire); color: #fff; font-size: 22px; font-weight: 800; }

/* Plan 6 */
.plan-signature { color: #fff; background: radial-gradient(circle at 15% 0%, #138c78, transparent 55%), radial-gradient(circle at 90% 100%, #0a4d43, transparent 50%), var(--primaire); }
.f-portefeuille-pose { position: absolute; left: 530px; top: 76px; width: 220px; height: 160px; }
.f-portefeuille { width: 100%; height: 100%; overflow: visible; visibility: hidden; }
.f-billets { position: absolute; left: 640px; top: 156px; }
.f-billet { position: absolute; left: -75px; top: -38px; width: 150px; height: 76px; display: grid; place-items: center; border-radius: 8px; border: 2px solid #7fb874; background: linear-gradient(135deg, #e1f2d6, #a6d39b); color: #2f5d28; font-size: 19px; font-weight: 800; font-style: normal; box-shadow: 0 12px 22px -12px rgb(0 0 0 / .45); visibility: hidden; }
.f-signature { position: absolute; left: 0; right: 0; top: 96px; text-align: center; }
.f-logo { position: relative; width: 120px; height: 120px; margin: 0 auto 18px; }
.f-logo img { width: 100%; height: 100%; border-radius: 28px; box-shadow: 0 20px 40px -18px rgb(0 0 0 / .5); }
.f-eclat { position: absolute; inset: -12px; border: 3px solid var(--ambre); border-radius: 40px; opacity: 0; }
.f-marque { font-size: 84px; font-weight: 800; line-height: 1; letter-spacing: -.03em; margin-bottom: 18px !important; }
.f-slogan { font-size: 38px; font-weight: 800; color: var(--ambre); margin-bottom: 6px !important; }
.f-traduction { font-size: 22px; opacity: .85; }

/* Sous-titres, volet de transition */
.f-legende {
  position: absolute; z-index: 15; left: 50%; bottom: 34px; translate: -50% 0; width: max-content; max-width: 1160px;
  padding: 12px 28px; border-radius: 999px; background: rgb(255 255 255 / .95); box-shadow: 0 14px 30px -16px rgb(0 0 0 / .35);
  font-size: 30px; font-weight: 800; letter-spacing: -.01em; text-align: center;
}
.f-volet { position: absolute; inset: 0; z-index: 30; background: var(--primaire); }

/* Fin du film : vrais boutons, hors du plateau pour rester cliquables à taille normale */
.film-fin { position: absolute; z-index: 5; left: 16px; right: 16px; bottom: 8%; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 16px; }
.film-revoir { display: inline-flex; align-items: center; gap: 8px; padding: 14px 22px; border: 2px solid rgb(255 255 255 / .55); border-radius: 999px; background: transparent; color: #fff; font: 800 1rem Nunito, system-ui, sans-serif; cursor: pointer; transition: background .3s, border-color .3s; }
.film-revoir:hover { background: rgb(255 255 255 / .12); border-color: #fff; }
.film-revoir svg { width: 20px; height: 20px; }
.film-signal { position: absolute; z-index: 6; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px; border-radius: 50%; background: rgb(16 24 26 / .55); opacity: 0; pointer-events: none; }
.film-signal::after { content: ''; position: absolute; inset: 27px 24px 27px 32px; background: #fff; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.film-signal.pause::after { inset: 27px 28px; clip-path: polygon(0 0, 36% 0, 36% 100%, 0 100%, 0 0, 64% 0, 100% 0, 100% 100%, 64% 100%, 64% 0); }

/* Lecteur */
.film-commandes { display: flex; align-items: center; gap: 16px; margin-top: 18px; }
.film-lecture { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border: 0; border-radius: 50%; background: var(--primaire); color: #fff; cursor: pointer; box-shadow: 0 10px 22px -10px rgb(11 110 95 / .8); transition: transform .3s var(--ressort); }
.film-lecture:hover { transform: scale(1.06); }
.film-lecture svg { width: 24px; height: 24px; stroke-width: 2.6; }
.film-lecture .icone-lire path { fill: currentColor; }
.film-lecteur.en-lecture .icone-lire, .film-lecteur:not(.en-lecture) .icone-pause { display: none; }
.film-son { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 1.5px solid var(--bordure); border-radius: 50%; background: var(--surface); color: var(--secondaire); cursor: pointer; transition: color .3s, border-color .3s, background .3s; }
.film-son:hover { color: var(--texte); border-color: #cfc7b5; }
.film-son svg { width: 22px; height: 22px; }
.film-son .icone-muet path:first-child, .film-son .icone-son path:first-child { fill: currentColor; }
.film-son[aria-pressed="true"] { background: var(--primaire-claire); border-color: transparent; color: var(--primaire-foncee); }
.film-son[aria-pressed="true"] .icone-muet, .film-son[aria-pressed="false"] .icone-son { display: none; }
.film-piste { position: relative; flex: 1; height: 36px; margin-inline: 9px; cursor: pointer; touch-action: none; }
.film-rail { position: absolute; left: 0; right: 0; top: 50%; height: 6px; margin-top: -3px; overflow: hidden; border-radius: 3px; background: var(--bordure); }
.film-rempli { display: block; height: 100%; background: linear-gradient(90deg, var(--primaire), #12a58c); transform-origin: left; transform: scaleX(var(--p, 0)); }
.film-piste::after { content: ''; position: absolute; top: 50%; left: calc(var(--p, 0) * 100%); width: 18px; height: 18px; margin: -9px; border-radius: 50%; background: #fff; border: 3px solid var(--primaire); box-shadow: 0 2px 6px rgb(0 0 0 / .2); transition: scale .2s; }
.film-piste:hover::after, .film-piste:focus-visible::after { scale: 1.2; }
.film-reperes i { position: absolute; top: 50%; left: var(--x); width: 3px; height: 10px; margin: -5px 0 0 -1.5px; border-radius: 2px; background: var(--fond); }
.film-temps { flex: none; min-width: 6.5em; text-align: right; color: var(--secondaire); font-weight: 700; font-size: .95rem; font-variant-numeric: tabular-nums; }
.film-chapitres { position: relative; list-style: none; display: flex; gap: 8px; margin: 14px 0 0; padding: 2px 2px 6px; overflow-x: auto; scrollbar-width: none; }
.film-chapitres button { white-space: nowrap; padding: 8px 14px; border: 1.5px solid var(--bordure); border-radius: 999px; background: var(--surface); color: var(--secondaire); font: 700 .88rem Nunito, system-ui, sans-serif; cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.film-chapitres button:hover { color: var(--texte); border-color: #cfc7b5; }
.film-chapitres button.actif { background: var(--primaire-claire); border-color: transparent; color: var(--primaire-foncee); }
.film-deroule { margin-top: 18px; color: var(--secondaire); }
.film-deroule summary { cursor: pointer; font-weight: 800; color: var(--primaire); }
.film-deroule ol { margin: 12px 0 0; padding-left: 1.3em; display: grid; gap: 6px; }
.lien-film svg { width: 18px; height: 18px; fill: currentColor; stroke: none; }

/* Film en portrait (téléphones) : plateau 720×960, mêmes plans recomposés */
@media (max-width: 639px) {
  .film-ecran { aspect-ratio: 3 / 4; border-radius: 22px; }
  .film-plateau { width: 720px; height: 960px; }
  .f-ville { font-size: 136px; }
  .f-heure { font-size: 52px; }
  .f-note { font-size: 26px; }
  .f-etagere { left: 30px; top: 50px; width: 660px; height: 390px; }
  .f-caddie-pose { left: 14px; top: 472px; }
  .f-tel-rayon { left: 452px; top: 290px; scale: .9; }
  .f-comptoir { top: 640px; }
  .f-colis { left: calc(360px - var(--l) / 2); top: calc(644px - var(--h)); }
  .f-scanner { left: 280px; top: 420px; }
  .f-bips { left: 360px; top: 366px; }
  .f-afficheur { left: 150px; top: 76px; width: 420px; }
  .f-file { left: 470px; top: 420px; scale: .85; transform-origin: 0 100%; }
  .f-imprimante { left: 140px; }
  .f-ticket-pose { left: 180px; }
  .f-tel-verif { left: 450px; top: 380px; scale: .85; }
  .f-verdict { left: 40px; top: 50px; width: 640px; }
  .f-verdict-avant, .f-verdict-apres { font-size: 34px; }
  .f-montant { font-size: 124px; }
  .f-puces li { font-size: 18px; }
  .f-pdf { left: 40px; top: 400px; width: 640px; }
  .f-tel-verdict { left: 265px; top: 506px; scale: .74; }
  .f-portefeuille-pose { left: 250px; top: 150px; }
  .f-billets { left: 360px; top: 230px; }
  .f-signature { top: 170px; }
  .f-marque { font-size: 96px; }
  .f-slogan { font-size: 36px; max-width: 680px; margin-inline: auto; }
  .f-traduction { font-size: 26px; }
  .f-legende { bottom: 32px; max-width: 660px; font-size: 34px; border-radius: 30px; }
  .film-fin { bottom: 5%; gap: 8px; }
  .film-fin .bouton, .film-revoir { padding: 11px 18px; font-size: .92rem; }
  .film-commandes { gap: 12px; }
  .film-temps { min-width: 0; font-size: .85rem; }
}

/* 2. Problème */
.probleme { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: center; max-width: 1192px; margin-inline: auto; }
.probleme > * { max-width: none; margin: 0; }
.probleme-cartes { position: relative; height: 340px; }
.carte-article {
  position: absolute; left: 50%; width: min(300px, 84%); display: flex; justify-content: space-between;
  padding: 18px 22px; border-radius: 16px; background: var(--surface); font-weight: 800; box-shadow: var(--ombre); border: 1.5px solid var(--bordure);
}
.carte-vraie { top: 20px; translate: -50% 0; }
.carte-fantome { color: var(--critique); background: var(--critique-clair); border: 1.5px dashed #ef9a94; }
.carte-fantome::after { content: 'en trop'; position: absolute; right: 14px; top: -11px; background: var(--critique); color: #fff; font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; padding: 2px 9px; border-radius: 999px; }
.js .carte-fantome { transition-duration: .7s, .8s; }
.carte-fantome:nth-child(2) { top: 100px; translate: -46% 0; rotate: 2deg; }
.carte-fantome:nth-child(3) { top: 180px; translate: -54% 0; rotate: -2.5deg; }
.carte-fantome:nth-child(4) { top: 260px; translate: -48% 0; rotate: 1.5deg; }
.js .carte-fantome[data-reveal] { transform: translateY(-80px) scale(.9); }
.js .carte-fantome[data-reveal].visible { transform: none; }
.grand-chiffre { font-size: clamp(5rem, 14vw, 9rem); font-weight: 800; line-height: .9; color: var(--critique); margin-bottom: 12px; letter-spacing: -0.05em; }
.accroche { font-size: 1.5rem; font-weight: 800; color: var(--primaire); margin: 0; }

/* 3. Comment ça marche */
.comment { background: var(--surface); border-block: 1px solid var(--bordure); }
.recit { display: grid; grid-template-columns: 1fr 340px; gap: clamp(32px, 7vw, 110px); }
.etapes { list-style: none; margin: 0; padding: 0; }
.etape { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; padding: 24px 0; opacity: .35; transition: opacity .6s var(--doux); }
.etape.active { opacity: 1; }
.etape-numero { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--primaire-claire); color: var(--primaire); font-weight: 800; font-size: 1.4rem; margin-bottom: 18px; transition: background .5s, color .5s, transform .5s var(--ressort); }
.etape.active .etape-numero { background: var(--primaire); color: #fff; transform: rotate(-6deg) scale(1.08); }
.etape h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.etape p { color: var(--secondaire); font-size: 1.1rem; max-width: 30em; }
.etape-image { display: none; }
.recit-telephone { position: sticky; top: calc(50vh - 300px); height: 600px; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.recit-telephone .telephone { width: 270px; }
.recit-telephone .ecran { position: absolute; inset: 9px; width: calc(100% - 18px); height: calc(100% - 18px); opacity: 0; transform: translateY(24px) scale(.97); transition: opacity .6s var(--doux), transform .7s var(--doux); }
.recit-telephone .ecran.actif { opacity: 1; transform: none; }
.recit-progression { display: flex; gap: 8px; }
.recit-progression span { width: 26px; height: 6px; border-radius: 3px; background: var(--bordure); transition: width .5s var(--doux), background .5s; }
.recit-progression span.actif { width: 54px; background: var(--primaire); }

/* 4. Détection */
.cartes { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.carte { background: var(--surface); border: 1.5px solid var(--bordure); border-radius: var(--rayon); padding: 24px 22px; transition: transform .45s var(--ressort), box-shadow .45s, border-color .45s; }
.carte:hover { transform: translateY(-6px); box-shadow: var(--ombre); border-color: transparent; }
.carte p { color: var(--secondaire); font-size: .97rem; margin: 0; }
.anim { position: relative; height: 92px; margin-bottom: 18px; border-radius: 14px; background: var(--fond); overflow: hidden; }
.anim i { position: absolute; left: 18px; right: 46px; height: 12px; border-radius: 6px; background: #d9d3c4; }
.anim-multiple i:nth-child(1) { top: 22px; }
.anim-multiple i:nth-child(2) { top: 40px; background: #f3b8b3; }
.anim-multiple i:nth-child(3) { top: 58px; background: #f3b8b3; }
.anim-multiple b { position: absolute; right: 12px; top: 30px; color: var(--critique); font-size: 1.3rem; }
.visible .anim-multiple i:nth-child(n+2) { animation: empile 2.6s var(--ressort) infinite; }
.visible .anim-multiple i:nth-child(3) { animation-delay: .2s; }
@keyframes empile { 0%, 15% { transform: translateY(-18px); opacity: 0; } 35%, 85% { transform: none; opacity: 1; } 100% { opacity: 0; } }
.anim-doublon i { top: 40px; }
.visible .anim-doublon i:last-child { background: #f3b8b3; animation: dedouble 2.4s var(--doux) infinite; }
@keyframes dedouble { 0%, 20% { transform: none; } 50%, 80% { transform: translateY(20px); } 100% { transform: none; } }
.anim-prix { display: flex; align-items: center; justify-content: center; gap: 18px; font-weight: 800; }
.anim-prix span { padding: 8px 12px; border-radius: 10px; background: var(--surface); box-shadow: 0 4px 12px -6px rgb(0 0 0 / .25); }
.prix-caisse { color: var(--critique); }
.visible .prix-caisse { animation: secoue 2.4s infinite; }
@keyframes secoue { 0%, 60%, 100% { transform: none; } 65% { transform: rotate(-6deg); } 72% { transform: rotate(5deg); } 79% { transform: rotate(-3deg); } }
.anim-frais { display: grid; place-items: center; }
.anim-frais b { color: var(--critique); font-size: 1.6rem; }
.visible .anim-frais b { animation: tombe 2.4s var(--ressort) infinite; }
@keyframes tombe { 0% { transform: translateY(-60px); opacity: 0; } 30%, 80% { transform: none; opacity: 1; } 100% { transform: translateY(10px); opacity: 0; } }
.anim-total i:nth-child(1) { top: 16px; }
.anim-total i:nth-child(2) { top: 34px; }
.anim-total i:nth-child(3) { top: 52px; }
.anim-total b { position: absolute; left: 18px; right: 46px; top: 74px; height: 3px; background: var(--critique); border-radius: 2px; transform-origin: left; }
.visible .anim-total b { animation: mesure 2.4s var(--doux) infinite; }
@keyframes mesure { 0% { transform: scaleX(0); } 50%, 85% { transform: scaleX(1.35); } 100% { transform: scaleX(1.35); opacity: 0; } }

/* 5. Produits */
.produits { display: grid; grid-template-columns: 1fr 420px; gap: clamp(32px, 6vw, 90px); align-items: center; padding-bottom: 56px; max-width: 1192px; margin-inline: auto; }
.produits > * { max-width: none; margin: 0; }
.produits-texte > p { color: var(--secondaire); font-size: 1.1rem; }
.chiffres { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 14px 34px; color: var(--secondaire); }
.chiffres strong { display: block; font-size: 1.9rem; line-height: 1.1; color: var(--primaire); font-variant-numeric: tabular-nums; }
.recherche { background: var(--surface); border-radius: 26px; padding: 22px; box-shadow: var(--ombre); border: 1.5px solid var(--bordure); min-height: 340px; }
.recherche-champ { position: relative; border: 2px solid var(--primaire); border-radius: 12px; padding: 18px 16px 12px; font-weight: 700; font-size: 1.1rem; min-height: 60px; }
.recherche-libelle { position: absolute; top: -10px; left: 12px; background: var(--surface); padding: 0 6px; font-size: .78rem; color: var(--primaire); }
.curseur { display: inline-block; width: 2px; height: 1.1em; background: var(--primaire); vertical-align: -3px; margin-left: 1px; animation: clignote 1s steps(1) infinite; }
@keyframes clignote { 50% { opacity: 0; } }
.recherche-liste { list-style: none; padding: 0; margin: 10px 0 0; }
.recherche-liste li { display: flex; align-items: center; gap: 12px; padding: 11px 10px; border-radius: 10px; animation: suggere .45s var(--doux) both; animation-delay: calc(var(--i) * 70ms); }
.recherche-liste li:first-child { background: var(--primaire-claire); }
.recherche-liste li::before { content: ''; width: 16px; height: 16px; flex: none; border: 2px solid var(--primaire); border-radius: 4px 50% 50% 50%; rotate: -45deg; opacity: .7; }
.recherche-liste b { display: block; font-size: .98rem; }
.recherche-liste small { color: var(--secondaire); font-size: .8rem; }
@keyframes suggere { from { opacity: 0; transform: translateY(8px); } }

.defile { overflow: hidden; padding: 8px 0 clamp(72px, 10vw, 120px); display: grid; gap: 14px; -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.defile-piste { display: flex; gap: 14px; width: max-content; animation: defile 38s linear infinite; }
.defile-inverse { animation-direction: reverse; animation-duration: 46s; }
.defile span { padding: 12px 22px; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--bordure); font-weight: 800; white-space: nowrap; color: var(--primaire-foncee); }
.defile-inverse span { background: var(--ambre-clair); border-color: #f6e0a4; color: #6b4d00; font-weight: 700; }
@keyframes defile { to { transform: translateX(-50%); } }
.defile:hover .defile-piste { animation-play-state: paused; }

/* 6. Données */
.donnees { display: grid; grid-template-columns: 220px 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; max-width: 900px; margin-inline: auto; }
.donnees > * { max-width: none; margin: 0; }
.cadenas { color: var(--primaire); }
.cadenas svg { width: 100%; max-width: 200px; stroke-width: 7; }
.cadenas rect { fill: var(--primaire-claire); }
.cadenas .anse { transform: translateY(-18px); transition: transform .7s .5s var(--ressort); }
.cadenas.visible .anse { transform: none; }
.garanties { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 14px; font-size: 1.12rem; font-weight: 700; }
.garanties li { display: flex; gap: 14px; align-items: flex-start; }
.garanties svg { width: 26px; height: 26px; flex: none; padding: 4px; border-radius: 50%; background: var(--primaire); color: #fff; stroke-width: 3; }

/* 7. Appel final */
.final { padding-inline: 16px; }
.final-contenu {
  position: relative; overflow: hidden; isolation: isolate; text-align: center; color: #fff;
  background: radial-gradient(circle at 15% 0%, #138c78, transparent 55%), radial-gradient(circle at 90% 100%, #0a4d43, transparent 50%), var(--primaire);
  border-radius: 34px; padding: clamp(48px, 8vw, 96px) clamp(20px, 6vw, 80px);
}
.final-contenu::before, .final-contenu::after { content: ''; position: absolute; z-index: -1; width: 160px; height: 220px; background: #fffdf7; opacity: .08; border-radius: 8px; rotate: -14deg; top: -40px; left: -30px; animation: flotte 9s ease-in-out infinite; }
.final-contenu::after { top: auto; left: auto; bottom: -70px; right: -20px; rotate: 18deg; animation-delay: -4s; }
.final-contenu h2 { max-width: 640px; margin-inline: auto; }
.final-contenu > p { max-width: 560px; margin: 0 auto 32px; opacity: .9; font-size: 1.1rem; }
.final-etapes { list-style: none; padding: 0; margin: 0 auto 38px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 26px; font-weight: 700; }
.final-etapes li { display: flex; align-items: center; gap: 10px; }
.final-etapes b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ambre); color: var(--texte); }
.inscription { max-width: 520px; margin: 0 auto; display: grid; gap: 12px; text-align: left; }
.inscription label { font-weight: 700; }
.inscription input { width: 100%; padding: 16px 20px; border: 2px solid transparent; border-radius: 999px; background: #fff; color: var(--texte); font: inherit; font-size: 1.05rem; }
.inscription input:focus { outline: none; border-color: var(--ambre); }
.inscription input[aria-invalid="true"] { border-color: #f87171; }
.inscription-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.inscription-actions .bouton { flex: 1 1 200px; justify-content: center; border: 0; cursor: pointer; font-family: inherit; }
.inscription-actions .bouton:disabled { opacity: .6; cursor: progress; }
.bouton-contour { --fond-bouton: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgb(255 255 255 / .8); }
.bouton-contour:hover { box-shadow: inset 0 0 0 2px #fff; }
.inscription-message { min-height: 1.5em; margin: 0; text-align: center; font-weight: 700; }
.inscription-message:empty { min-height: 0; }
.inscription-recaptcha { margin: 0; text-align: center; font-size: .8rem; opacity: .75; }
.inscription-recaptcha a { color: inherit; }
/* Badge flottant masqué : la mention ci-dessus le remplace (permis par Google). */
.grecaptcha-badge { visibility: hidden; }

/* Pied de page */
.pied { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; max-width: 1160px; margin: 0 auto; padding: 32px 16px 48px; color: var(--secondaire); font-size: .92rem; }
.pied p { margin: 0; }
.pied nav { display: flex; gap: 22px; }
.pied nav a { font-weight: 700; text-decoration: none; }
.pied nav a:hover { color: var(--primaire); }

/* Tablette et mobile */
@media (max-width: 960px) {
  .menu { display: none; }
  .bouton-petit { margin-left: auto; }
  .heros { grid-template-columns: 1fr; text-align: left; }
  .scene { height: 520px; max-width: 460px; width: 100%; margin-inline: auto; }
  .probleme, .produits { grid-template-columns: 1fr; }
  .probleme-cartes { order: 2; }
  .recit { grid-template-columns: 1fr; }
  .recit-telephone { display: none; }
  .etape { min-height: 0; opacity: 1; padding: 0 0 56px; }
  .etape-image { display: block; width: min(260px, 70vw); margin-top: 22px; border-radius: 26px; border: 8px solid #10181a; box-shadow: var(--ombre); }
  .donnees { grid-template-columns: 1fr; justify-items: start; }
  .cadenas svg { max-width: 120px; }
}
@media (max-width: 480px) {
  .entete { gap: 12px; }
  .marque span { display: none; }
  .scene { height: 470px; }
  .ticket { width: 250px; top: 20px; }
  .ticket-papier { font-size: .66rem; padding: 18px 16px 26px; }
  .telephone-heros { width: 200px; right: -4px; }
  .pastille-alerte { left: 0; bottom: 74px; font-size: .8rem; }
  .pastille-montant strong { font-size: 1.5rem; }
  .actions .bouton { width: 100%; justify-content: center; }
}

/* Mouvement réduit : tout est affiché, rien ne bouge */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js [data-reveal], .js .ticket-lignes li, .js .ticket-total { opacity: 1; transform: none; }
  .souligne::after { transform: none; }
  .pastille { opacity: 1; transform: none; }
  .recit-telephone .ecran { transition: none; }
}
