/* Les deux pages de la vitrine, en six blocs dans le flux
   (spec docs/specs/2026-11-20-vitrine-simple-design.md).

   Port de la maquette validée le 20/11 (maquettes/clarte/vitrine.css), règle
   par règle, aux noms préfixés `vt-`. Chargée après vitrine.css, dont elle
   garde les polices, la remise à zéro, les jetons de couleur et le téléphone
   du deck. Là où ce socle partagé diffère de la maquette (en-tête, pied,
   boutons, liens, titres, cartes de guide), elle redit la valeur de la
   maquette sous `.vt-corps` ou `.vt` : la démonstration, l'abonnement et les
   guides, qui ne chargent pas cette feuille, ne bougent pas.

   Deux régimes. Par défaut (sans script, à l'impression, sous mouvement
   réduit), tout se lit et la scène du bloc 2 est dans son état final. Quand
   vitrine-arme.js pose `vt-anime` sur <html>, et seulement alors, la scène
   prend ses états de départ. Aucun état masqué ou décalé n'existe hors de
   `.vt-anime`, sauf le décor et les replis de largeur que nomme la garde
   (test_vitrine_scenes.py), tous sans texte lu. */

.vt-corps {
  --vt-nuit: #171d27;
  --vt-fond-vert: #1f4439;
  --vt-lune: #f4efe4;
  --vt-lune-2: #cfc8b9;
  --vt-menthe: #a9c1b5;
  --vt-laiton: #c9a85a;
  --vt-laiton-texte: #836424;
  --vt-ecran: #f4f0e5;
  --vt-ecran-carte: #fbf8f0;
  --vt-marge: clamp(16px, 5vw, 72px);
  --vt-large: 1240px;
  --vt-bloc: clamp(64px, 8vw, 112px);
  --vt-douce: cubic-bezier(.4, 0, .2, 1);
  --vt-sortie: cubic-bezier(.22, 1, .36, 1);
  font-size: 16px; overflow-x: hidden; overflow-x: clip;
}
.vt-corps a:focus-visible, .vt-corps button:focus-visible, .vt-corps summary:focus-visible { outline: 2px solid var(--brass); outline-offset: 4px; border-radius: 2px; }
/* Les règles d'élément de la maquette gardent leur poids d'élément (`:where`) : une classe de bloc les corrige sans surenchère. */
:where(.vt) h1, :where(.vt) h2, :where(.vt) h3, :where(.vt) h4 { font-family: var(--font-display); font-weight: 600; text-wrap: balance; }
:where(.vt) p { text-wrap: pretty; }
:where(.vt) ul { list-style: none; }
:where(.vt) .num { font-variant-numeric: tabular-nums lining-nums; }
:where(.vt) .accent { color: var(--primary); font-style: normal; }
:where(.vt-corps) .picto { width: 16px; height: 16px; flex: none; }
.vt-lecteur { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.vt-cadre { width: min(var(--vt-large), 100% - 2 * var(--vt-marge)); margin-inline: auto; }

/* ---------- liens et boutons ---------- */
.vt-corps .login-link { font-size: 14px; padding-block: 10px; white-space: nowrap; }
.vt-corps .showcase-button { gap: 20px; padding: 14px 24px; font-size: 14px; line-height: 1.25; transition: background-color .2s, border-color .2s, color .2s; }
.vt-corps .showcase-button:hover { background: var(--navy); border-color: var(--navy); transform: none; }
.vt-corps .showcase-button-discret { background: transparent; color: var(--primary); }
.vt-corps .showcase-button-discret:hover { background: var(--primary); border-color: var(--primary); color: var(--primary-foreground); }
.vt-corps .vt-bouton-clair { background: var(--vt-lune); border-color: var(--vt-lune); color: var(--vt-fond-vert); }
.vt-corps .vt-bouton-clair:hover { background: #fff; border-color: #fff; color: var(--vt-fond-vert); }
.vt-gestes { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }

/* ---------- en-tête : dans le flux, hors de <main> (repère de bannière) ---------- */
.vt-corps > .site-header { width: min(var(--vt-large), 100% - 2 * var(--vt-marge)); height: auto; min-height: 108px; padding-block: 0; grid-template-columns: auto minmax(0, 1fr) auto auto; grid-template-areas: "logo vue langue actions"; gap: 28px; }
.vt-corps .brand { width: 84px; height: 84px; }
.vt-corps > .site-header > .vt-onglets { justify-self: center; }
.vt-onglets { display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: color-mix(in srgb, var(--paper) 72%, transparent); box-shadow: 0 0 0 1px var(--border); }
.vt-onglets a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 999px; font-size: 14px; font-weight: 600; line-height: 1; white-space: nowrap; color: var(--muted-foreground); transition: color .2s, background-color .2s; }
.vt-onglets a:hover { color: var(--foreground); }
.vt-onglets a[aria-current="page"] { background: var(--foreground); color: var(--background); }
.vt-corps .header-actions { gap: 28px; }

/* ---------- l'ordinateur du deck (diapositive 4, spec du 30/10, 9.2), rapporté à une largeur de 868 ---------- */
.appareil-ordinateur { container-type: inline-size; position: relative; width: 100%; aspect-ratio: 868 / 523; margin: 0; }
.ordinateur-ecran { --u: calc(100cqw / 868); position: absolute; left: calc(40 * var(--u)); top: 0; width: calc(788 * var(--u)); height: calc(503 * var(--u)); padding: calc(12 * var(--u)); border: calc(2 * var(--u)) solid #A9AAAE; border-radius: calc(22 * var(--u)) calc(22 * var(--u)) calc(6 * var(--u)) calc(6 * var(--u)); background: #121314; box-shadow: 0 calc(30 * var(--u)) calc(70 * var(--u)) rgba(10, 20, 16, 0.28); }
.ordinateur-ecran picture, .ordinateur-ecran img { display: block; width: 100%; height: 100%; }
.ordinateur-ecran img { object-fit: cover; object-position: top; border-radius: calc(4 * var(--u)); }
.ordinateur-camera { position: absolute; top: calc(4 * var(--u)); left: calc(389 * var(--u)); width: calc(6 * var(--u)); height: calc(6 * var(--u)); border-radius: 50%; background: #2A2C2F; }
.ordinateur-socle { --u: calc(100cqw / 868); position: absolute; left: 0; top: calc(503 * var(--u)); width: 100%; height: calc(20 * var(--u)); border-radius: calc(2 * var(--u)) calc(2 * var(--u)) calc(16 * var(--u)) calc(16 * var(--u)); background: linear-gradient(180deg, #DCDDE0 0%, #C3C4C8 55%, #8E8F93 100%); box-shadow: 0 calc(24 * var(--u)) calc(40 * var(--u)) rgba(10, 20, 16, 0.22); }
.ordinateur-encoche { position: absolute; left: calc(364 * var(--u)); top: 0; width: calc(140 * var(--u)); height: calc(7 * var(--u)); border-radius: 0 0 calc(8 * var(--u)) calc(8 * var(--u)); background: #9C9DA1; }

/* ---------- 1. héros : le titre à gauche, le hall à droite jusqu'au bord, l'ordinateur et le téléphone posés ---------- */
.vt-heros { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 13fr); gap: clamp(32px, 4vw, 64px); align-items: stretch; margin-left: max(var(--vt-marge), calc((100% - var(--vt-large)) / 2)); padding-bottom: var(--vt-bloc); }
.vt-heros-texte { align-self: center; padding-block: 24px; }
.vt-surtitre { font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--vt-laiton-texte); margin-bottom: 20px; }
.vt-heros h1 { font-size: clamp(34px, 4vw, 60px); line-height: 1.05; }
/* Trois lignes, chacune dans son masque : le mouvement du titre arrive sans retoucher le gabarit. */
.vt-h-l, .vt-masque, .vt-masque > span { display: block; }
.vt-h-l:nth-child(3) { color: var(--primary); font-style: normal; }
.vt-chapeau { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5; color: var(--muted-foreground); max-width: 30em; }
.vt-heros .vt-chapeau { margin-top: 28px; }
.vt-heros .vt-gestes { margin-top: 32px; }
.vt-heros-scene { position: relative; min-height: clamp(420px, 46vw, 660px); border-radius: 0 0 0 112px; overflow: hidden; display: grid; place-items: end center; padding: 9% 7% 8%; }
.vt-heros-photo, .vt-heros-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vt-heros-voile { position: absolute; inset: 0; background: linear-gradient(180deg, rgb(23 29 39 / .08) 0%, rgb(23 29 39 / .5) 100%); }
/* Le téléphone à côté de l'ordinateur, jamais posé dessus, jamais rogné. */
.vt-heros-appareils { position: relative; width: min(100%, 680px); display: flex; align-items: flex-end; justify-content: center; gap: 3%; }
.vt-heros-ordi { width: 78%; }
.vt-heros-tel { width: 18%; margin-bottom: 1%; }

/* ---------- 2. la scène ---------- */
.vt-scene { background: var(--paper); border-block: 1px solid var(--border); padding-block: var(--vt-bloc); }
.vt-scene-grille { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.vt-scene-sur { font-size: 16px; font-weight: 600; color: var(--muted-foreground); margin-bottom: 12px; }
.vt-geant { font-size: clamp(40px, 5.2vw, 76px); line-height: 1.03; }
.vt-geant span { display: block; }
.vt-scene-legende { margin-top: 28px; font-size: 17px; line-height: 1.5; color: var(--muted-foreground); max-width: 24em; }
.vt-plateau { position: relative; display: flex; justify-content: center; align-items: flex-start; gap: clamp(14px, 4vw, 56px); }
.vt-poste { width: 270px; flex: none; margin: 0; }
.vt-poste figcaption { margin-top: 20px; text-align: center; font-size: 14px; font-weight: 600; color: var(--muted-foreground); }

/* Les écrans composés des téléphones de la scène, dans le style de l'application. */
.vt-app { position: absolute; inset: 0; display: flex; flex-direction: column; padding-top: calc(56 * var(--u)); background: var(--vt-ecran); font-size: calc(17.6 * var(--u)); line-height: 1.38; color: var(--foreground); }
.vt-app-corps { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; padding-inline: 1.15em; }
.vt-app-onglets { flex: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: .7em .5em calc(20 * var(--u)); border-top: 1px solid var(--border); font-size: .66em; line-height: 1.2; text-align: center; color: var(--muted-foreground); }
.vt-app-onglets span { display: grid; justify-items: center; gap: .35em; }
.vt-app-onglets .picto { width: 2em; height: 2em; stroke-width: 1.5; }
.vt-app-onglets .vt-actif { color: var(--primary); font-weight: 700; }
.vt-app-barre { display: flex; align-items: center; justify-content: space-between; gap: .6em; font-size: .94em; font-weight: 700; padding-bottom: .9em; }
.vt-app-pastille { flex: none; display: grid; place-items: center; width: 2.3em; height: 2.3em; border-radius: 50%; background: var(--primary); color: var(--primary-foreground); font-size: .8em; font-weight: 600; }
.vt-app-heure { font-size: .9em; color: var(--muted-foreground); }
.vt-app-titre { font-size: 1.1em; font-weight: 600; line-height: 1.2; margin-top: .1em; }
.vt-app-sous { font-size: .92em; color: var(--muted-foreground); margin-top: .35em; }
.vt-app-viseur { position: relative; margin-top: .9em; aspect-ratio: 4 / 3; border-radius: .5em; overflow: hidden; background: #cfc8b9; }
.vt-app-viseur img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 60%; border-radius: 0; }
.vt-app-eclair { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.vt-app-vignettes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .4em; }
.vt-app-equipe .vt-app-vignettes { margin-top: .7em; }
.vt-vignette { position: relative; aspect-ratio: 1; border-radius: .34em; overflow: hidden; background-color: #ddd5c4; background-repeat: no-repeat; box-shadow: inset 0 0 0 1px rgb(42 37 29 / .08); }
/* Les deux photos de la scène, en fond des vignettes et de la photo en vol : l'AVIF que `<picture>` a déjà
   chargé, le JPEG en repli pour un navigateur qui ne lit pas `image-set()` avec son type. Une seule requête par photo. */
.vt-scene { --vt-photo-matin: url("img/vitrine/photo-porsche-matin.bd8a90a6fde5.jpg"); --vt-photo-rs: url("img/vitrine/photo-porsche-rs.d7964710748f.jpg"); }
@supports (background-image: image-set(url("img/vitrine/photo-porsche-rs.38d74b5958c2.avif") type("image/avif"))) {
  .vt-scene {
    --vt-photo-matin: image-set(url("img/vitrine/photo-porsche-matin.e8b899c4dd68.avif") type("image/avif"), url("img/vitrine/photo-porsche-matin.bd8a90a6fde5.jpg") type("image/jpeg"));
    --vt-photo-rs: image-set(url("img/vitrine/photo-porsche-rs.38d74b5958c2.avif") type("image/avif"), url("img/vitrine/photo-porsche-rs.d7964710748f.jpg") type("image/jpeg"));
  }
}
.vt-v1 { background-image: var(--vt-photo-rs); background-size: 290%; background-position: 20% 82%; }
.vt-v2 { background-image: var(--vt-photo-rs); background-size: 250%; background-position: 88% 62%; }
.vt-v3 { background-image: var(--vt-photo-matin); background-size: 520%; background-position: 70% 74%; }
.vt-v4 { background-image: var(--vt-photo-matin); background-size: cover; background-position: 72% 60%; }
.vt-app-fente { position: relative; aspect-ratio: 1; border-radius: .34em; box-shadow: inset 0 0 0 1px var(--border); background: var(--vt-ecran-carte); }
.vt-app-fente .vt-vignette { position: absolute; inset: 0; }
.vt-app-pied { margin-top: auto; display: grid; place-items: center; padding-block: .9em calc(34 * var(--u)); }
.vt-declencheur { position: relative; display: grid; place-items: center; width: 4.2em; height: 4.2em; border-radius: 50%; background: none; cursor: pointer; box-shadow: inset 0 0 0 .22em var(--primary); transition: transform .15s var(--vt-douce); }
.vt-declencheur::before { content: ""; width: 3.1em; height: 3.1em; border-radius: 50%; background: var(--primary); transition: background-color .2s; }
.vt-declencheur .picto { position: absolute; width: 1.45em; height: 1.45em; color: var(--primary-foreground); stroke-width: 1.8; }
.vt-declencheur:not(:disabled):hover::before { background: var(--navy); }
.vt-declencheur:not(:disabled):active { transform: scale(.94); }
/* Sans script ou sous mouvement réduit, rien à déclencher : le bouton inerte ne s'affiche pas, comme « Déposer ». */
.vt-declencheur:disabled { display: none; }
/* L'invitation au geste : un halo lent autour du déclencheur, tant que la scène attend. */
.vt-declencheur::after { content: ""; position: absolute; inset: -.5em; border-radius: 50%; box-shadow: 0 0 0 2px var(--vt-laiton); opacity: 0; pointer-events: none; }
@keyframes vt-halo { 0% { opacity: 0; transform: scale(.86); } 35% { opacity: .9; } 100% { opacity: 0; transform: scale(1.16); } }

.vt-app-une { position: relative; border-radius: .5em; overflow: hidden; background: var(--primary); color: var(--primary-foreground); flex: none; }
.vt-app-une picture { height: auto; }
.vt-app-une img { width: 100%; height: auto; aspect-ratio: 16 / 6.4; object-fit: cover; object-position: 50% 62%; border-radius: 0; }
.vt-app-une p { padding: .5em .85em .6em; font-size: 1.06em; font-weight: 600; }
.vt-app-arrivee { display: grid; grid-template-rows: 1fr; flex: none; transition: grid-template-rows .36s var(--vt-douce); }
.vt-app-arrivee > div { min-height: 0; overflow: hidden; }
.vt-app-carte { margin-top: .8em; padding: .7em; border-radius: .6em; background: var(--vt-ecran-carte); box-shadow: inset 0 0 0 1px var(--border); transition: opacity .3s var(--vt-douce); }
.vt-app-ligne { margin-top: .6em; font-size: 1em; line-height: 1.4; font-weight: 500; }
.vt-app-rubrique { margin-top: .9em; padding-bottom: .45em; font-size: 1.04em; font-weight: 700; border-bottom: 1px solid var(--border); }
.vt-app-liste li { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .34s var(--vt-douce), opacity .34s var(--vt-douce); }
.vt-app-liste li > div { min-height: 0; overflow: hidden; }
.vt-app-liste p { display: grid; grid-template-columns: 3.1em minmax(0, 1fr); gap: .5em; padding-block: .55em; border-bottom: 1px solid var(--border); font-size: .92em; line-height: 1.3; }
.vt-app-liste p span:first-child { color: var(--muted-foreground); font-variant-numeric: tabular-nums; }
/* En anglais la date s'écrit « 12 Nov » : sa colonne s'élargit pour qu'elle tienne sur une ligne. */
.vt-app-liste p:lang(en) { grid-template-columns: 3.9em minmax(0, 1fr); }
.vt-app-nouvelle p span:last-child { font-weight: 600; }

/* La photo en vol entre les deux téléphones : posée par le script, hors du flux. */
.vt-vol { position: absolute; left: 0; top: 0; z-index: 5; visibility: hidden; border-radius: 6px; background: var(--vt-photo-matin) 72% 60% / cover no-repeat; box-shadow: 0 14px 30px -10px rgb(10 20 16 / .5); transform-origin: 0 0; pointer-events: none; }

.vt-app-fente .vt-vignette { transition: opacity .2s var(--vt-douce); }
@keyframes vt-eclair { 0% { opacity: 0; } 30% { opacity: .85; } 100% { opacity: 0; } }

/* La scène « facture » des collectionneurs. */
.vt-plateau-facture { align-items: center; }
.vt-table { position: relative; width: 250px; flex: none; display: grid; justify-items: center; gap: 22px; }
.vt-table-place { position: relative; width: 100%; aspect-ratio: 210 / 285; border-radius: 4px; outline: 1.5px dashed var(--border); outline-offset: -1px; }
.vt-facture { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 9% 9% 8%; border-radius: 3px; background: #fffefb; color: #2a251d; box-shadow: 0 0 0 1px rgb(42 37 29 / .08), 0 22px 40px -22px rgb(42 37 29 / .45); font-size: 11.5px; line-height: 1.35; transform-origin: 50% 50%; rotate: -2.5deg; }
.vt-facture-garage { font-family: var(--font-display); font-size: 1.3em; font-weight: 600; line-height: 1.1; }
.vt-facture-adresse { margin-top: .3em; height: .45em; width: 46%; border-radius: 2px; background: #e6dfd0; }
.vt-facture-titre { margin-top: 1.5em; font-weight: 700; }
.vt-facture-voiture { color: #686053; }
.vt-facture-lignes { margin-top: 1.1em; border-top: 1px solid #2a251d; }
.vt-facture-lignes li { display: flex; justify-content: space-between; gap: 1em; padding-block: .5em; border-bottom: 1px solid #e6dfd0; }
.vt-facture-lignes i { flex: none; width: 2.6em; height: .5em; margin-top: .45em; border-radius: 2px; background: #e6dfd0; }
.vt-facture-total { margin-top: auto; display: flex; justify-content: space-between; align-items: baseline; padding-top: .7em; border-top: 1px solid #2a251d; font-weight: 700; }
.vt-facture-total .num { font-size: 1.3em; }
.vt-table .showcase-button { position: relative; min-height: 48px; padding: 12px 22px; gap: 12px; }
/* La même invitation au geste que chez les maisons : un anneau qui paraît et s'efface lentement autour de « Déposer », tant que la scène attend. */
.vt-table .showcase-button::after { content: ""; position: absolute; inset: -7px; border-radius: 10px; box-shadow: 0 0 0 2px var(--vt-laiton); opacity: 0; pointer-events: none; }
/* Sans script, rien à déposer : le bouton inerte ne s'affiche pas. */
.vt-table .showcase-button:disabled { display: none; }
.vt-facture.vt-glisse { rotate: 0deg; transition: transform .56s var(--vt-douce), rotate .56s var(--vt-douce), opacity .2s var(--vt-douce) .36s; z-index: 6; }
.vt-facture.vt-revient { transition: opacity .4s var(--vt-douce); }

.vt-app-facture .vt-app-titre { margin-top: .2em; }
.vt-app-depot { position: relative; margin-top: .9em; display: grid; grid-template-columns: 3.2em minmax(0, 1fr); align-items: center; gap: .8em; padding: .7em; border-radius: .6em; background: var(--vt-ecran-carte); box-shadow: inset 0 0 0 1px var(--border); }
.vt-app-piece { aspect-ratio: 210 / 285; border-radius: 2px; background: #fffefb; box-shadow: 0 0 0 1px rgb(42 37 29 / .14); padding: 16% 14%; display: grid; align-content: start; gap: 9%; transition: opacity .25s var(--vt-douce); }
.vt-app-piece i { display: block; height: .22em; border-radius: 1px; background: #cfc8b9; }
.vt-app-piece i:first-child { width: 60%; height: .34em; background: #2a251d; }
.vt-app-piece-nom { font-size: .92em; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; transition: opacity .25s var(--vt-douce); }
.vt-app-piece-nom small { display: block; font-size: .92em; font-weight: 400; color: var(--muted-foreground); }
.vt-app-champs { margin-top: .5em; }
.vt-app-champ { padding-block: .72em; border-bottom: 1px solid var(--border); }
.vt-app-champ dt { font-size: .86em; color: var(--muted-foreground); }
.vt-app-champ dd { position: relative; margin-top: .1em; font-size: 1.08em; font-weight: 600; min-height: 1.4em; }
.vt-app-champ dd span { display: block; transition: opacity .26s var(--vt-douce), transform .26s var(--vt-douce); }
.vt-app-champ dd::before { content: ""; position: absolute; left: 0; top: .42em; width: 58%; height: .6em; border-radius: .3em; background: #e3dccb; opacity: 0; transition: opacity .2s var(--vt-douce); }
.vt-app-depot-vide { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: .5em; font-size: .96em; font-weight: 600; color: var(--primary); opacity: 0; transition: opacity .2s var(--vt-douce); }
.vt-app-depot-vide .picto { width: 1.2em; height: 1.2em; }

/* Remise à l'état de départ sans transition, le temps d'une mesure ou d'une relance. Les animations restent :
   coupée puis rendue, l'entrée du bloc (450 ms) repartait à chaque pose et toute la scène pâlissait au geste. */
.vt-sans-transition, .vt-sans-transition *, .vt-sans-transition *::before, .vt-sans-transition *::after { transition: none !important; }

/* ---------- 3. tout-en-un, sur la nuit, le tracé du circuit en filet fixe ---------- */
.vt-tout { position: relative; overflow: hidden; background: var(--vt-nuit); color: var(--vt-lune); padding-block: var(--vt-bloc); }
.vt-tout .vt-cadre { position: relative; }
/* Centré par ses marges, sans transformation : large de max(1180px, 92 %), il part de la moitié de cette largeur à gauche du milieu. */
.vt-tout-circuit { position: absolute; left: calc(50% - max(590px, 46%)); top: 0; bottom: 0; margin-block: auto; width: max(1180px, 92%); height: auto; overflow: visible; pointer-events: none; }
.vt-tout-circuit path { fill: none; stroke: rgb(244 239 228 / .11); stroke-width: 3; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.vt-tout h2 { font-size: clamp(28px, 3.4vw, 50px); line-height: 1.08; max-width: 17em; }
.vt-tout h2 .accent { color: var(--vt-menthe); }
.vt-tout-texte { margin-top: 20px; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.55; color: var(--vt-lune-2); max-width: 36em; }
.vt-ecrans { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(16px, 2.6vw, 36px); }
.vt-ecrans > figure { margin: 0; display: flex; flex-direction: column; gap: 16px; }
.vt-ecrans figcaption { font-size: 14px; font-weight: 600; line-height: 1.35; text-align: center; color: var(--vt-lune); text-wrap: balance; }
.vt-tout-deux { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.vt-tout-ordi { margin-top: clamp(32px, 4vw, 48px); max-width: 620px; }
.vt-modules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.vt-modules li { display: flex; align-items: center; gap: 16px; padding-block: 17px; border-bottom: 1px solid rgb(244 239 228 / .16); font-size: 16px; font-weight: 600; }
.vt-modules li:nth-child(-n+2) { border-top: 1px solid rgb(244 239 228 / .16); }
.vt-modules .picto { width: 22px; height: 22px; stroke-width: 1.5; color: var(--vt-menthe); }

/* ---------- 4. gains ---------- */
.vt-gains { padding-block: var(--vt-bloc); }
.vt-gains h2 { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.2; color: var(--muted-foreground); font-weight: 500; }
.vt-gains-liste { margin-top: clamp(28px, 3.4vw, 48px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px clamp(24px, 3.4vw, 56px); }
.vt-gains-liste[data-n="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px clamp(20px, 2.6vw, 40px); }
.vt-gain { border-top: 1px solid var(--foreground); padding-top: 22px; }
.vt-gain h3 { font-size: clamp(22px, 2.2vw, 32px); line-height: 1.12; }
.vt-gains-liste[data-n="4"] .vt-gain h3 { font-size: clamp(21px, 1.9vw, 27px); }
.vt-gain p { margin-top: 16px; font-size: 16px; line-height: 1.55; color: var(--muted-foreground); }

/* ---------- 5. les offres : les trois situations, les trois cartes, le tableau qui se déplie ---------- */
.vt-offres { background: var(--paper); border-top: 1px solid var(--border); padding-block: var(--vt-bloc); }
.vt-offres h2 { font-size: clamp(28px, 3.4vw, 50px); line-height: 1.08; }
.vt-situations-tete { margin-top: clamp(28px, 3.4vw, 48px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr) 44px; gap: 32px; padding: 0 24px 12px; font-size: 13px; font-weight: 600; color: var(--muted-foreground); }
.vt-situations { border-top: 1px solid var(--border); }
.vt-situation { border-bottom: 1px solid var(--border); }
.vt-situation-rang { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr) 44px; gap: 32px; align-items: center; padding: 24px; }
a.vt-situation-rang { transition: background-color .2s; }
a.vt-situation-rang:hover { background: var(--background); }
.vt-situation-cas { font-family: var(--font-display); font-size: clamp(18px, 1.65vw, 22px); font-weight: 600; line-height: 1.25; text-wrap: balance; }
.vt-situation-offre { font-size: 16px; line-height: 1.5; color: var(--muted-foreground); }
.vt-situation-offre strong { color: var(--foreground); font-weight: 700; }
.vt-situation-offre a { color: var(--primary); font-weight: 700; border-bottom: 1px solid currentColor; white-space: nowrap; }
.vt-situation-offre a:hover { color: var(--navy); }
.vt-situation-repere { justify-self: end; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--muted-foreground); box-shadow: inset 0 0 0 1px var(--border); }
.vt-situation-repere .picto { width: 18px; height: 18px; }
a.vt-situation-rang:hover .vt-situation-repere { color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
/* La ligne de la page courante : fond teinté sur toute la ligne, contour fin, repère plein. Aucune barre de couleur d'un seul côté. */
.vt-situation.vt-est-ici { border-bottom-color: transparent; border-radius: 12px; background: color-mix(in srgb, var(--primary) 7%, var(--paper)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary) 30%, var(--border)); }
.vt-situation.vt-est-ici .vt-situation-cas { color: var(--primary); }
.vt-situation.vt-est-ici .vt-situation-offre { color: var(--foreground); }
.vt-situation.vt-est-ici .vt-situation-repere { background: var(--primary); color: var(--primary-foreground); box-shadow: none; }

.vt-formules-titre { margin-top: clamp(56px, 6.5vw, 96px); font-size: clamp(23px, 2.5vw, 35px); line-height: 1.14; }
.vt-formules { margin-top: clamp(24px, 3vw, 40px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.vt-formule { display: flex; flex-direction: column; padding: 28px 28px 28px; border-radius: 12px; background: var(--background); box-shadow: inset 0 0 0 1px var(--border); }
.vt-formule.vt-est-conseillee { background: color-mix(in srgb, var(--primary) 7%, var(--paper)); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--primary) 55%, var(--border)); }
.vt-formule-tete { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.vt-formule h4 { font-size: 26px; line-height: 1.1; }
.vt-formule-note { align-self: center; padding: 5px 9px; border-radius: 7px; font-size: 12.5px; font-weight: 600; color: var(--primary); box-shadow: inset 0 0 0 1px currentColor; }
.vt-formule-promesse { margin-top: 8px; font-size: 14px; line-height: 1.4; color: var(--muted-foreground); min-height: 2.8em; }
.vt-formule-prix { margin-top: 20px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.vt-formule-prix .num { font-family: var(--font-display); font-size: 40px; font-weight: 600; line-height: 1; }
.vt-formule-prix span:last-child { font-size: 14px; color: var(--muted-foreground); }
.vt-formule-autre { margin-top: 8px; font-size: 13px; color: var(--muted-foreground); }
.vt-formule-lignes { margin: 22px 0 28px; border-top: 1px solid var(--border); }
.vt-formule-lignes li { position: relative; padding: 11px 0 11px 28px; border-bottom: 1px solid var(--border); font-size: 15px; line-height: 1.4; }
.vt-formule-lignes li .picto { position: absolute; left: 0; top: 13px; width: 17px; height: 17px; color: var(--primary); }
.vt-formule-lignes li.vt-intro { padding-left: 0; font-weight: 700; }
.vt-formule .showcase-button { margin-top: auto; width: 100%; }

.vt-comparer { margin-top: 28px; border-block: 1px solid var(--border); }
.vt-comparer summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; padding: 0 4px; font-size: 16px; font-weight: 700; cursor: pointer; list-style: none; }
.vt-comparer summary::-webkit-details-marker { display: none; }
.vt-comparer summary:hover { color: var(--primary); }
.vt-comparer summary .picto { width: 20px; height: 20px; transition: rotate .25s var(--vt-douce); }
.vt-comparer[open] summary .picto { rotate: 180deg; }
.vt-comparer-cadre { padding-bottom: 28px; }
.vt-tableau-cadre { overflow-x: auto; }
.vt-comparatif { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 15px; }
.vt-comparatif th, .vt-comparatif td { padding: 13px 12px; border-top: 1px solid var(--border); text-align: left; vertical-align: middle; }
.vt-comparatif thead th { border-top: 0; font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.vt-comparatif th:first-child { width: 43%; padding-left: 4px; font-weight: 500; }
.vt-comparatif .conseille { background: color-mix(in srgb, var(--primary) 6%, transparent); }
.vt-comparatif td .picto { width: 18px; height: 18px; }
.vt-comparatif .vt-oui { color: var(--primary); }
.vt-comparatif .vt-non { color: var(--border); }
.vt-mesures { border-top: 1px solid var(--border); }
.vt-mesure { display: grid; grid-template-columns: 43% repeat(3, minmax(0, 1fr)); }
.vt-mesure + .vt-mesure { border-top: 1px solid var(--border); }
.vt-mesure > * { padding: 13px 12px; font-size: 13.5px; line-height: 1.45; color: var(--muted-foreground); }
.vt-mesure > :first-child { padding-left: 4px; font-size: 15px; font-weight: 500; color: var(--foreground); }
.vt-mesure .conseille { background: color-mix(in srgb, var(--primary) 6%, transparent); }
/* Le nom de la formule de chaque valeur : réservé aux lecteurs d'écran ici (`vt-lecteur`), montré au téléphone. */
.vt-mesure-nom::after { content: "\00a0: "; }
.vt-mesure-nom:lang(en)::after { content: ": "; }
.vt-mention { margin-top: 20px; font-size: 13px; line-height: 1.6; color: var(--muted-foreground); }

/* ---------- 6. fin ---------- */
.vt-fin-appel { background: var(--vt-fond-vert); color: var(--vt-lune); padding-block: var(--vt-bloc); }
.vt-fin .vt-geant { font-size: clamp(34px, 4.7vw, 70px); }
.vt-fin .vt-geant .accent { color: var(--vt-menthe); }
.vt-fin-bas { margin-top: clamp(28px, 3.4vw, 44px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: center; }
.vt-fin .vt-chapeau { color: var(--vt-lune-2); }
.vt-courriel { font-size: 15px; font-weight: 600; color: var(--vt-lune); padding-block: 10px; border-bottom: 1px solid rgb(244 239 228 / .4); }
.vt-courriel:hover { border-color: var(--vt-lune); }
.vt-fin-appel .login-link { color: var(--vt-lune); }
.vt-fin-appel .login-link:hover { border-color: var(--vt-menthe); }
.vt-corps .vt-fin-appel a:focus-visible { outline-color: var(--vt-laiton); }
.vt-faits { margin-top: clamp(40px, 5vw, 72px); padding-top: 32px; border-top: 1px solid rgb(244 239 228 / .2); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 48px; }
.vt-faits[data-n="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 860px; }
.vt-faits h3 { font-family: var(--font-sans); font-size: 16px; font-weight: 700; letter-spacing: 0; line-height: 1.5; }
.vt-faits p { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--vt-lune-2); }

/* Les guides d'achat, sous l'appel de la page des collectionneurs : la carte partagée (vitrine.css) aux mesures de la maquette. */
.vt-guides { padding-block: clamp(56px, 6vw, 88px) clamp(40px, 5vw, 64px); }
.vt-guides-tete { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 32px; }
.vt-guides-tete h2 { font-size: clamp(23px, 2.5vw, 35px); line-height: 1.14; }
.vt-guides-sur { font-size: 16px; font-weight: 600; color: var(--muted-foreground); margin-bottom: 8px; }
.vt .guides-tous { margin-top: 0; }
.vt .guides-cartes { margin-top: 28px; gap: 24px; }
/* Sur la vitrine, la carte de guide se cerne d'un contour fin : aucun filet de couleur sur le seul bord du haut. */
.vt .guide-carte { border-top: 0; border-radius: 12px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--border); }
.vt .guide-carte-lien { gap: 6px; padding-bottom: 20px; }
.vt .guide-carte-image { margin: 0; }
.vt .guide-carte-image img { aspect-ratio: 2 / 1; }
.vt .guide-carte-image figcaption { padding: 6px 18px 4px; }
.vt .guide-carte-marque, .vt .guide-carte-releve { font-size: 12px; text-transform: none; }
.vt .guide-carte-nom { font-size: 20px; font-weight: 600; line-height: 1.2; }
.vt .guide-carte-generation { line-height: 1.45; }
.vt .guide-carte-lien:hover .guide-carte-nom { color: var(--primary); text-decoration: none; }

/* ---------- pied ---------- */
.vt-corps > .site-footer { width: min(var(--vt-large), 100% - 2 * var(--vt-marge)); grid-template-columns: 1fr auto 1fr; gap: 28px; padding-block: 28px; border-top: 1px solid var(--border); }
.vt-corps .site-footer .brand { width: 76px; height: 76px; }
.vt-corps .footer-links { gap: 32px; }
.vt-corps .copyright { font-size: 12px; line-height: 1.6; }

/* ---------- la vidéo, ouverte depuis « Voir la vidéo » ---------- */
/* La vidéo et son bouton, posé 52 px au-dessus d'elle, tiennent dans la fenêtre : la hauteur borne la largeur
   (16/9), 120 px gardés pour le bouton et ses marges. `dvh` suit la barre d'adresse d'un téléphone. */
.vt-video { width: min(1040px, 100% - 32px, (100vh - 120px) * 16 / 9); width: min(1040px, 100% - 32px, (100dvh - 120px) * 16 / 9); max-width: none; max-height: none; margin: auto; padding: 0; background: transparent; overflow: visible; }
.vt-video::backdrop { background: rgb(23 29 39 / .82); }
.vt-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 8px; background: #000; }
.vt-video-fermer { position: absolute; right: 0; top: -52px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: none; cursor: pointer; color: var(--vt-lune); box-shadow: inset 0 0 0 1px rgb(244 239 228 / .5); }
.vt-video-fermer:hover { background: rgb(244 239 228 / .14); }
.vt-video-fermer .picto { width: 20px; height: 20px; }

/* ---------- le mouvement (spec, section 3 bis) : à l'écran, et sous `.vt-anime` seulement ----------
   Durées de 150 à 600 ms, courbes sans rebond. Deux jeux plus lents, nommés par la spec : le tracé (1,6 s) et le halo (2,4 s). */
@media screen {
  /* 0. La scène au geste. Ses états de départ et d'étape ne vivent qu'à l'écran : imprimée au milieu du jeu,
     la page sort dans son état final (revue du lot A, R3). */
  /* Page armée, script de la scène pas encore là : le bouton attend à sa place, inerte, et rien ne saute à son arrivée. */
  .vt-anime .vt-declencheur:disabled { display: grid; }
  .vt-anime .vt-scene[data-etat="avant"] .vt-declencheur::after { animation: vt-halo 2.4s var(--vt-douce) infinite; }
  .vt-anime .vt-vol.vt-part { visibility: visible; transition: transform .52s var(--vt-douce); will-change: transform; }
  /* Les états de la scène « visite » : avant, prise (éclair), vol (la carte s'ouvre), arrivee, apres.
     La page écrit l'état final. Tant que le script de la scène n'a pas signé (`vt-moteur`), une page armée
     montre déjà l'état de départ : la première peinture ne passe jamais par l'état final. */
  .vt-anime:not(.vt-moteur) .vt-scene .vt-app-fente .vt-vignette, .vt-anime .vt-scene[data-etat="avant"] .vt-app-fente .vt-vignette { opacity: 0; }
  .vt-anime .vt-scene[data-etat="prise"] .vt-app-eclair { animation: vt-eclair .28s var(--vt-douce); }
  .vt-anime:not(.vt-moteur) .vt-scene .vt-app-arrivee, .vt-anime .vt-scene:is([data-etat="avant"], [data-etat="prise"]) .vt-app-arrivee { grid-template-rows: 0fr; }
  .vt-anime:not(.vt-moteur) .vt-scene .vt-app-carte, .vt-anime .vt-scene:is([data-etat="avant"], [data-etat="prise"], [data-etat="vol"]) .vt-app-carte { opacity: 0; visibility: hidden; }
  .vt-anime:not(.vt-moteur) .vt-scene .vt-app-nouvelle, .vt-anime .vt-scene:is([data-etat="avant"], [data-etat="prise"], [data-etat="vol"], [data-etat="arrivee"]) .vt-app-nouvelle { grid-template-rows: 0fr; opacity: 0; visibility: hidden; }
  /* Autour de « Déposer », l'anneau ne change pas de taille : hors du cadre d'un écran, un anneau qui grandit sans fin
     obligeait le navigateur à composer à part tout ce qui suit dans la page (580 pixels de lissage changés dans le bloc suivant). */
  .vt-anime .vt-scene[data-etat="avant"] .vt-table .showcase-button::after { animation: vt-halo-calme 2.4s var(--vt-douce) infinite; }
  @keyframes vt-halo-calme { 0% { opacity: 0; } 35% { opacity: .9; } 100% { opacity: 0; } }
  .vt-anime .vt-table .showcase-button:disabled { display: inline-flex; }
  .vt-anime .vt-scene:is([data-etat="glisse"], [data-etat="depose"], [data-etat="lu"]) .vt-facture { opacity: 0; }
  .vt-anime .vt-scene:is([data-etat="depose"], [data-etat="lu"]) .vt-facture { visibility: hidden; }
  .vt-anime:not(.vt-moteur) .vt-scene .vt-app-champ dd span, .vt-anime .vt-app-champ:not(.vt-est-lu) dd span { opacity: 0; visibility: hidden; transform: translateY(.3em); }
  .vt-anime:not(.vt-moteur) .vt-scene .vt-app-champ dd::before, .vt-anime .vt-app-champ:not(.vt-est-lu) dd::before { opacity: 1; }
  .vt-anime:not(.vt-moteur) .vt-scene .vt-app-piece, .vt-anime .vt-scene[data-etat="avant"] .vt-app-piece, .vt-anime .vt-scene[data-etat="glisse"] .vt-app-piece { opacity: 0; }
  /* Le nom de la pièce est un texte : invisible, il quitte aussi la lecture. */
  .vt-anime:not(.vt-moteur) .vt-scene .vt-app-piece-nom, .vt-anime .vt-scene[data-etat="avant"] .vt-app-piece-nom, .vt-anime .vt-scene[data-etat="glisse"] .vt-app-piece-nom { opacity: 0; visibility: hidden; }
  .vt-anime:not(.vt-moteur) .vt-scene .vt-app-depot-vide, .vt-anime .vt-scene[data-etat="avant"] .vt-app-depot-vide, .vt-anime .vt-scene[data-etat="glisse"] .vt-app-depot-vide { opacity: 1; }

  /* 1. L'arrivée du héros. Les lignes du titre montent de derrière leur masque : le titre ne passe jamais par l'opacité 0.
     Le masque déborde de la ligne (jambages, accents, pente d'une lettre) et ses marges rendent ce qu'il prend : la mise en page ne bouge pas.
     Chaque jeu ne remplit que vers l'arrière : fini, l'élément est rendu comme sur une page sans mouvement. */
  .vt-anime .vt-h-l { display: flow-root; }
  .vt-anime .vt-masque { overflow: hidden; padding: .15em .1em .25em; margin: -.15em -.1em -.25em; }
  .vt-anime .vt-masque > span { animation: vt-monte .6s var(--vt-sortie) backwards; }
  .vt-anime .vt-h-l:nth-child(2) .vt-masque > span { animation-delay: .09s; }
  .vt-anime .vt-h-l:nth-child(3) .vt-masque > span { animation-delay: .18s; }
  .vt-anime .vt-heros .vt-chapeau { animation: vt-apparait .45s .3s var(--vt-sortie) backwards; }
  .vt-anime .vt-heros .vt-gestes { animation: vt-apparait .45s .38s var(--vt-sortie) backwards; }
  .vt-anime .vt-heros-ordi { animation: vt-pose .6s .2s var(--vt-sortie) backwards; }
  .vt-anime .vt-heros-tel { animation: vt-pose .6s .32s var(--vt-sortie) backwards; }
  @keyframes vt-monte { from { transform: translateY(130%); } to { transform: none; } }
  @keyframes vt-apparait { from { opacity: 0; } to { opacity: 1; } }
  @keyframes vt-pose { from { opacity: 0; transform: translateY(36px) scale(.94); } to { opacity: 1; transform: none; } }

  /* 2. L'entrée : une fois, quand le script pose `vu` sur l'élément. Il la pose dès qu'une part de l'élément est dans la
     fenêtre, ou s'il est déjà passé au-dessus : rien de ce qui est à l'écran ne reste masqué, quelle que soit la hauteur
     de la fenêtre. Le jeu ne remplit que vers l'arrière : fini, l'élément retrouve ses propres styles. Les éléments
     d'une même rangée entrés ensemble se suivent à 60 ms (`vt-rang-1` à `vt-rang-5`, posées par le script).
     Un élément qui reçoit le foyer est posé d'un coup, sans jeu (`vt-sans-entree`) : le foyer se voit toujours. */
  .vt-anime .vt-revele:not(.vu), .vt-anime .vt-suite > :not(.vu) { opacity: 0; }
  .vt-anime .vt-revele.vu, .vt-anime .vt-suite > .vu { animation: vt-entre .45s var(--vt-sortie) backwards; }
  .vt-anime .vu.vt-rang-1 { animation-delay: .06s; }
  .vt-anime .vu.vt-rang-2 { animation-delay: .12s; }
  .vt-anime .vu.vt-rang-3 { animation-delay: .18s; }
  .vt-anime .vu.vt-rang-4 { animation-delay: .24s; }
  .vt-anime .vu.vt-rang-5 { animation-delay: .3s; }
  .vt-anime .vt-revele.vt-sans-entree, .vt-anime .vt-suite > .vt-sans-entree { animation: none; }
  .vt-anime .vt-heros.vt-sans-entree :is(.vt-masque > span, .vt-chapeau, .vt-gestes, .vt-heros-ordi, .vt-heros-tel) { animation: none; }
  @keyframes vt-entre { from { opacity: 0; transform: translateY(28px) scale(.96); } }

  /* 3. Le tracé du circuit attend son bloc, puis se dessine une fois : le script pose un tiret de sa longueur à l'écran
     (sous `non-scaling-stroke`, Chrome compte les tirets en pixels d'écran et ignore `pathLength`), le retire à la fin. */
  .vt-anime .vt-tout:not(.vu) .vt-tout-circuit { visibility: hidden; }
  .vt-anime .vt-tout.vt-trace .vt-tout-circuit path { transition: stroke-dashoffset 1.6s var(--vt-douce); }

  /* 4. Survols et appuis : une carte se soulève de 6 px, la flèche d'un bouton avance, celle d'une ligne de situation
     glisse, un bouton tenu enfoncé se tasse. Sans mouvement, rien ne bouge sous le doigt. */
  .vt-anime .vt-formule { transition: transform .35s var(--vt-sortie); }
  .vt-anime .vt-formule:hover { transform: translateY(-6px); }
  .vt-anime .vt-ecrans > figure { transition: transform .35s var(--vt-sortie); }
  .vt-anime .vt-ecrans > figure:hover { transform: translateY(-8px) scale(1.03); }
  .vt-anime .vt-gain { transition: transform .35s var(--vt-sortie); }
  .vt-anime .vt-gain:hover { transform: translateY(-4px); }
  .vt-anime .showcase-button { transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--vt-douce); }
  .vt-anime .showcase-button .picto, .vt-anime .vt-situation-repere .picto { transition: transform .2s var(--vt-douce); }
  .vt-anime .showcase-button:hover .picto { transform: translate(2px, -2px); }
  .vt-anime .vt-table .showcase-button:hover .picto, .vt-anime a.vt-situation-rang:hover .vt-situation-repere .picto { transform: translateX(3px); }
  .vt-anime .showcase-button:active { transform: scale(.98); }
  .vt-anime .vt-video-fermer { transition: transform .2s var(--vt-douce); }
  .vt-anime .vt-video-fermer:active { transform: scale(.98); }

  /* 7. Les démonstrations : une page armée les montre au départ ; au geste, l'état nouveau se pose sur l'écran de l'équipe, puis sur le téléphone du client, et le repère paraît. */
  .vt-anime .vt-cas-bouton:disabled { visibility: visible; }
  .vt-anime .vt-cas-carte[data-cas="avant"] .vt-cas-apres { display: none; }
  .vt-anime .vt-cas-carte[data-cas="avant"] .vt-cas-etat.vt-cas-avant { display: inline-block; }
  .vt-anime .vt-cas-carte[data-cas="apres"] .vt-cas-etat.vt-cas-apres { animation: vt-entre .45s var(--vt-sortie) backwards; }
  .vt-anime .vt-cas-carte[data-cas="apres"] .vt-cas-tel .vt-cas-etat.vt-cas-apres { animation-delay: .3s; }
  /* Le repère garde sa place à l'état de départ : la carte ne change pas de hauteur au geste. */
  .vt-anime .vt-cas-carte[data-cas="avant"] .vt-cas-synchro { display: inline-flex; visibility: hidden; }
  .vt-anime .vt-cas-carte[data-cas="apres"] .vt-cas-synchro { animation: vt-entre .5s var(--vt-sortie) .15s backwards; }

  /* 6. Le dépliant « Tout comparer » s'ouvre en hauteur animée, son contenu en fondu. Un navigateur sans
     `::details-content` ni `interpolate-size` ignore ces règles et l'ouvre d'un coup. */
  .vt-anime .vt-comparer { interpolate-size: allow-keywords; }
  .vt-anime .vt-comparer::details-content { block-size: 0; overflow: hidden; transition: block-size .4s var(--vt-douce), content-visibility .4s allow-discrete; }
  .vt-anime .vt-comparer[open]::details-content { block-size: auto; }
  .vt-anime .vt-comparer .vt-comparer-cadre { opacity: 0; transition: opacity .3s var(--vt-douce); }
  .vt-anime .vt-comparer[open] .vt-comparer-cadre { opacity: 1; }
  @starting-style { .vt-anime .vt-comparer[open] .vt-comparer-cadre { opacity: 0; } }

  /* Les cartes de guide, que vitrine.js fait paraître : leur entrée propre, en 450 ms sur 12 px. */
  .vt .will-reveal { transform: translateY(12px); transition: opacity .45s var(--vt-sortie), transform .45s var(--vt-sortie); }
  .vt .will-reveal.is-visible { transform: none; }
}

/* En deux colonnes, chaque temps du titre de la scène tient sur sa ligne : mesuré le 20/11 avec
   les titres d'alors, à 104 px, où deux d'entre eux dépassaient leur colonne de 3 et 28 px. */
@media (min-width: 1181px) {
  .vt-scene .vt-geant span { white-space: nowrap; }
}

/* ---------- les démonstrations de la page des conciergeries : la vue de l'équipe, la vue du client, un geste ---------- */
.vt-cas { margin-top: clamp(64px, 7vw, 112px); }
.vt-cas-titre { font-size: clamp(23px, 2.5vw, 35px); line-height: 1.14; }
.vt-cas-grille { margin-top: clamp(24px, 3vw, 40px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.vt-cas-carte { display: flex; flex-direction: column; padding: 20px 20px 24px; border-radius: 12px; background: var(--background); box-shadow: inset 0 0 0 1px var(--border); }
.vt-cas-plateau { position: relative; min-height: 284px; margin-bottom: 24px; }
.vt-cas-ordi { margin-right: 14%; border-radius: 10px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--border), 0 14px 28px -18px rgb(42 37 29 / .35); font-size: 12.5px; line-height: 1.4; }
.vt-cas-barre { display: flex; justify-content: space-between; gap: 8px; padding: 9px 12px; border-bottom: 1px solid var(--border); font-size: 11.5px; font-weight: 600; color: var(--muted-foreground); }
.vt-cas-corps { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 4px; min-height: 148px; padding: 14px 40% 16px 12px; }
.vt-cas-rubrique { font-size: 11.5px; color: var(--muted-foreground); }
.vt-cas-ligne { font-size: 14px; font-weight: 700; line-height: 1.3; color: var(--foreground); }
.vt-cas-detail { color: var(--muted-foreground); }
.vt-cas-etats { margin-top: 8px; }
.vt-cas-etat { display: inline-block; padding: 4px 9px; border-radius: 7px; font-size: 12px; font-weight: 600; background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary); }
.vt-cas-etat.vt-cas-avant { display: none; background: color-mix(in srgb, var(--foreground) 8%, transparent); color: var(--muted-foreground); }
.vt-cas-tel { position: absolute; right: 0; top: 44px; width: 46%; padding: 4px; border-radius: 20px; background: #201d18; box-shadow: 0 18px 30px -16px rgb(42 37 29 / .55); }
.vt-cas-ecran { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 4px; min-height: 208px; padding: 0 10px 12px; border-radius: 16px; background: var(--paper); font-size: 11.5px; line-height: 1.35; }
.vt-cas-ecran .vt-cas-barre { margin: 0 -10px 6px; padding: 9px 10px 7px; justify-content: center; }
/* Un mot plus long que l'écran dessiné (« Roadworthiness ») se coupe au lieu d'en sortir. */
.vt-cas-ecran .vt-cas-ligne { font-size: 12.5px; overflow-wrap: anywhere; hyphens: auto; }
/* Le repère de synchronisation : une mise en scène posée dans le flux sous l'écran de l'équipe, hors des deux
   écrans ; quelle que soit la hauteur de cet écran, il le suit. */
.vt-cas-synchro { margin-top: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px 6px 9px; border-radius: 999px; background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary); font-size: 12.5px; font-weight: 600; line-height: 1.2; }
.vt-cas-synchro .picto { width: 14px; height: 14px; }
.vt-cas-carte h4 { font-size: 21px; line-height: 1.2; }
.vt-cas-texte { margin: 10px 0 20px; font-size: 15px; line-height: 1.5; color: var(--muted-foreground); }
.vt-cas-bouton { margin-top: auto; align-self: flex-start; }
/* Inerte sans script : il garde sa place, la carte a la même hauteur dans tous les régimes. */
.vt-cas-bouton:disabled { visibility: hidden; }

/* ---------- au doigt, tablette comprise : tout lien et tout bouton offre 44 px de haut (la maquette en donnait 36 à 43,5) ---------- */
@media (max-width: 1024px) {
  .vt-corps .login-link, .vt-courriel { display: inline-flex; align-items: center; min-height: 44px; }
  /* Dans une boîte flexible, l'espace en tête de « d'achat » se replierait : « Guidesd'achat ». */
  .vt-corps .login-link .masque-etroit { white-space: pre; }
  .vt-corps .selecteur-langue-lien { min-width: 44px; min-height: 44px; justify-content: center; }
}

/* ---------- largeurs moyennes ---------- */
@media (max-width: 1180px) {
  .vt-corps > .site-header { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "logo . actions" "vue vue langue"; row-gap: 6px; padding-block: 10px 14px; }
  .vt-corps > .site-header > .vt-onglets { justify-self: start; }
  .vt-corps > .site-header > .selecteur-langue { justify-self: end; }
  .vt-ecrans { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px clamp(24px, 6vw, 72px); max-width: 720px; margin-inline: auto; }
  .vt-scene-grille { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .vt-gains-liste[data-n="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .vt-heros { grid-template-columns: minmax(0, 1fr); margin-inline: var(--vt-marge); gap: 40px; }
  .vt-heros-texte { padding-block: 16px 0; }
  .vt-heros-scene { border-radius: 12px 12px 12px 72px; min-height: 0; padding: 20% 6% 8%; }
  .vt-poste { width: 250px; }
  .vt-tout-deux { grid-template-columns: minmax(0, 1fr); }
  .vt-gains-liste[data-n] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vt-gains-liste[data-n="3"] { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .vt-situations-tete { display: none; }
  .vt-situations { margin-top: 32px; }
  .vt-situation-rang { grid-template-columns: minmax(0, 1fr) 40px; gap: 10px 20px; padding: 22px 20px; }
  .vt-situation-cas { grid-column: 1; }
  .vt-situation-offre { grid-column: 1; grid-row: 2; }
  .vt-situation-repere { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .vt-formules { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .vt-formule-promesse { min-height: 0; }
  .vt-fin-bas { grid-template-columns: minmax(0, 1fr); }
  .vt-faits[data-n] { grid-template-columns: minmax(0, 1fr); }
  .vt .guides-cartes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vt .guides-cartes > :nth-child(3) { display: none; }
  .vt-corps > .site-footer { grid-template-columns: auto minmax(0, 1fr); }
  .vt-corps .footer-links { justify-self: end; flex-wrap: wrap; justify-content: flex-end; gap: 4px 24px; }
  .vt-corps .copyright { grid-column: 1 / -1; justify-self: start; text-align: left; }
}

@media (max-width: 760px) {
  .vt-corps .masque-etroit { display: none; }
  .vt-corps .header-actions { gap: 16px; }
  .vt-corps .header-actions .showcase-button { min-height: 44px; padding: 10px 14px; gap: 10px; font-size: 13px; }
}

/* ---------- au téléphone ---------- */
@media (max-width: 600px) {
  .vt-corps > .site-header { grid-template-areas: "logo . actions" "vue vue vue" "langue langue langue"; gap: 4px 10px; padding-block: 8px 6px; }
  .vt-corps .brand { width: 68px; height: 68px; }
  .vt-corps .header-actions { gap: 12px; }
  .vt-corps .header-actions .login-link { font-size: 12px; }
  .vt-corps .header-actions .showcase-button { min-height: 44px; padding: 8px 10px; gap: 6px; font-size: 11px; max-width: 124px; white-space: normal; text-align: left; }
  .vt-corps .header-actions .showcase-button .picto { width: 13px; height: 13px; }
  .vt-corps > .site-header > .vt-onglets { justify-self: stretch; }
  .vt-onglets a { flex: 1 1 auto; padding: 0 10px; font-size: 13px; }
  .vt-corps > .site-header > .selecteur-langue { justify-self: center; }
  .vt-heros h1 { font-size: clamp(28px, 8vw, 38px); }
  .vt-heros .vt-gestes { gap: 8px 24px; }
  .vt-heros .showcase-button { width: 100%; }
  .vt-heros-scene { padding-top: 34%; border-radius: 10px 10px 10px 56px; }
  .vt-heros-ordi { width: 76%; }
  .vt-heros-tel { width: 20%; }
  .vt-geant { font-size: clamp(34px, 10vw, 46px); }
  .vt-fin .vt-geant { font-size: clamp(28px, 8vw, 37px); }
  .vt-plateau { gap: 12px; }
  .vt-poste { width: calc((100% - 12px) / 2); }
  .vt-poste figcaption { margin-top: 14px; font-size: 13px; }
  /* Dans un téléphone de 170 px, le texte de l'écran garde une taille lisible. */
  .vt-app { font-size: 10.4px; padding-top: calc(60 * var(--u)); }
  .vt-app-corps { padding-inline: .9em; }
  .vt-app-onglets { padding-top: .6em; }
  .vt-app-onglets b { display: none; }
  .vt-app-barre { padding-bottom: .6em; }
  .vt-app-barre span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .vt-app-titre { font-size: 1.2em; }
  /* Dans un écran de 170 px, la photo s'abaisse et la liste s'arrête à deux lignes : ce que la scène ajoute se lit en entier. */
  .vt-app-une img { aspect-ratio: 16 / 4.5; }
  .vt-app-liste li:nth-child(3) { display: none; }
  .vt-app-une p { padding: .35em .7em .4em; }
  .vt-app-carte { margin-top: .6em; padding: .55em; }
  .vt-app-rubrique { margin-top: .7em; }
  .vt-app-pied { padding-block: .5em .9em; }
  .vt-declencheur { width: 4.4em; height: 4.4em; }
  .vt-table { width: calc((100% - 12px) / 2); gap: 14px; }
  .vt-facture { font-size: 7.6px; rotate: -1.5deg; }
  .vt-table .showcase-button { width: 100%; padding-inline: 12px; }
  .vt-app-depot { grid-template-columns: 2.4em minmax(0, 1fr); gap: .6em; padding: .5em; }
  .vt-app-champ { padding-block: .5em; }
  .vt-ecrans { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
  .vt-ecrans figcaption { font-size: 13px; }
  .vt-modules { grid-template-columns: minmax(0, 1fr); }
  .vt-modules li:nth-child(2) { border-top: 0; }
  .vt-modules li { padding-block: 14px; font-size: 15px; }
  .vt-gains-liste[data-n] { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .vt-situation-rang { padding: 20px 16px; }
  .vt-formule { padding: 24px 20px; }
  .vt-comparatif { font-size: 13.5px; }
  .vt-comparatif th, .vt-comparatif td { padding: 11px 4px; }
  .vt-comparatif thead th { font-size: 12px; }
  .vt-comparatif th:first-child { width: 46%; }
  .vt-comparatif td { text-align: center; }
  .vt-comparatif td .picto { margin-inline: auto; }
  /* Les mesures (voitures, mise en service) passent en lignes, une par formule. */
  .vt-mesure { display: block; padding-block: 12px; }
  .vt-mesure > * { padding: 3px 4px; background: none !important; }
  .vt-mesure > :first-child { font-size: 13.5px; font-weight: 700; padding-bottom: 5px; }
  .vt-mesure .vt-mesure-nom { position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; font-weight: 700; color: var(--foreground); }
  .vt-gestes .showcase-button { width: 100%; }
  .vt .guides-cartes { grid-template-columns: minmax(0, 1fr); }
  .vt .guides-cartes > :nth-child(n+2) { display: none; }
  .vt-corps .site-footer .brand { width: 64px; height: 64px; }
  .vt-corps .footer-links .login-link { font-size: 13px; }
}

@media (max-width: 380px) {
  .vt-corps .brand { width: 58px; height: 58px; }
  .vt-corps .lien-guides-entete { display: none; }
  .vt-onglets a { padding: 0 8px; font-size: 12px; }
  /* Dans un écran de 140 à 160 px : la date sans sa photo, la ligne que la scène ajoute seule sous la rubrique, quatre champs serrés. */
  .vt-app { font-size: 9.6px; }
  .vt-app-une picture { display: none; }
  .vt-app-liste li:nth-child(2) { display: none; }
  .vt-app-carte { margin-top: .5em; padding: .45em; }
  .vt-app-ligne { margin-top: .45em; line-height: 1.32; }
  .vt-app-rubrique { margin-top: .6em; }
  .vt-app-champ { padding-block: .34em; }
  .vt-declencheur { width: 44px; height: 44px; }
  /* Les trois noms de formule tiennent dans leur colonne de 54 px : le cadre du tableau ne défile pas. */
  .vt-comparatif thead th { font-size: 11px; padding-inline: 2px; }
  .vt-comparatif th:first-child { width: 43%; }
}

@media print {
  /* Le papier reste blanc, et ce qui a un fond le garde même sans l'option « graphiques d'arrière-plan » :
     aucun texte clair ne sort sur du blanc (revue du lot A, R4). */
  .vt-corps { background: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  /* Rien ne transite vers le papier : un état de départ quitté à l'instant de l'impression sortirait à mi-chemin. */
  .vt-corps *, .vt-corps *::before, .vt-corps *::after { transition: none !important; animation: none !important; }
  .vt-tout, .vt-fin-appel { background: none; color: var(--foreground); }
  .vt-tout-circuit path { stroke: var(--border); }
  /* Sur le papier, les textes clairs de la nuit et du vert reprennent l'encre de la page. */
  .vt-tout-texte, .vt-ecrans figcaption, .vt-fin .vt-chapeau, .vt-faits p, .vt-courriel, .vt-fin-appel .login-link { color: var(--foreground); }
  .vt-tout h2 .accent, .vt-fin .vt-geant .accent, .vt-modules .picto { color: var(--primary); }
  .vt-video { display: none; }
  /* La scène sort dans son état final, sans ses commandes ; le papier et le tracé, que le script déplace
     ou dessine, reprennent leur place ; le tableau complet s'imprime bien que replié. */
  .vt-declencheur, .vt-table .showcase-button { display: none; }
  .vt-cas-bouton { visibility: hidden; }
  .vt-facture { transform: none !important; }
  .vt-tout-circuit path { stroke-dasharray: none !important; }
  .vt-comparer::details-content { content-visibility: visible !important; block-size: auto !important; }
}

/* ---------- les démonstrations en une colonne ---------- */
@media (max-width: 1100px) {
  .vt-cas-grille { grid-template-columns: minmax(0, 1fr); }
  .vt-cas-carte { max-width: 560px; }
}
