/* ======================================================================
   LA VITRINE DES PLUS — page d'accueil (et page de connexion)
   Gabarit : src/vue-vitrine-plus.php · script : assets/vitrine-plus.js

   Une scène sombre quel que soit le thème, comme celle du FilaReader juste
   dessous : ce qui se regarde se lit mieux dans le noir, et les couleurs des
   bobines y claquent. Chaque scène a SES deux couleurs (--vp-c, --vp-c2) ; le
   fond du cadre glisse de l'une à l'autre (--vp-a, --vp-b).

   LE REPOS EST L'ÉTAT FINAL. Chaque élément est écrit à sa place d'arrivée ;
   les animations partent d'ailleurs pour y revenir (fill-mode « both »).
   Sans animation — réduire les animations, ou pas de script — la scène est
   donc figée sur son résultat, jamais sur un écran vide.

   Les animations d'une scène ne tournent que sous `.vp-on` (posée par le
   script sur la scène qui joue et sur celle qui s'en va) ; les retirer et
   les remettre relance le petit film.

   Dans une scène, les longueurs sont en cqw : 1 % de la largeur de l'image.
   L'image fait 100 × 60 cqw ; la composition est donc la même du téléphone
   au grand écran, seule l'échelle change.
   ====================================================================== */

@property --vp-a { syntax: '<color>'; inherits: true; initial-value: #22d3ee; }
@property --vp-b { syntax: '<color>'; inherits: true; initial-value: #3b82f6; }

.vplus {
  container: vplus / inline-size;
  min-width: 0;
}

/* ---------------------------------------------------------------- cadre */
.vplus-cadre {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: 22px;
  padding: clamp(12px, 2.4cqw, 18px);
  color: #eef1ff;
  background:
    radial-gradient(70% 60% at 85% 0%, color-mix(in srgb, var(--vp-a) 26%, transparent), transparent 70%),
    radial-gradient(60% 60% at 0% 100%, color-mix(in srgb, var(--vp-b) 22%, transparent), transparent 70%),
    linear-gradient(165deg, #0a0e1f 0%, #10142e 55%, #0a1022 100%);
  box-shadow:
    0 34px 70px -34px color-mix(in srgb, var(--vp-a) 65%, transparent),
    0 0 0 1px rgba(255, 255, 255, .07) inset;
  transition: --vp-a 1s ease, --vp-b 1s ease, box-shadow 1s ease;
}
@supports not (color: color-mix(in srgb, red 50%, blue)) {
  .vplus-cadre { background: linear-gradient(165deg, #0a0e1f 0%, #10142e 55%, #0a1022 100%); }
}

.vplus-fond { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.vplus-aurore {
  position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%;
  filter: blur(40px); opacity: .55;
  background: radial-gradient(circle, var(--vp-a), transparent 65%);
  animation: vplus-derive 16s ease-in-out infinite alternate;
}
.vplus-aurore-1 { left: -20%; top: -35%; }
.vplus-aurore-2 {
  right: -25%; bottom: -40%; opacity: .45;
  background: radial-gradient(circle, var(--vp-b), transparent 65%);
  animation-duration: 21s; animation-direction: alternate-reverse;
}
@keyframes vplus-derive {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(12%, 8%) scale(1.15); }
  100% { transform: translate(-6%, 14%) scale(.95); }
}
.vplus-grille {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(80% 70% at 50% 30%, #000 10%, transparent 75%);
          mask-image: radial-gradient(80% 70% at 50% 30%, #000 10%, transparent 75%);
}
/* L'éclair : une lame de lumière qui traverse le cadre à chaque changement
   de scène. C'est elle qui donne le « tac » du rythme. */
.vplus-eclair {
  position: absolute; top: -20%; bottom: -20%; left: 0; width: 38%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .16), color-mix(in srgb, var(--vp-a) 30%, transparent), transparent);
  opacity: 0; transform: translateX(-130%) skewX(-18deg);
}
.vplus-flash .vplus-eclair { animation: vplus-eclair .9s cubic-bezier(.3, .6, .2, 1) both; }
@keyframes vplus-eclair {
  0%   { opacity: 0; transform: translateX(-130%) skewX(-18deg); }
  25%  { opacity: 1; }
  100% { opacity: 0; transform: translateX(320%) skewX(-18deg); }
}

/* -------------------------------------------------------------- scènes */
.vplus-diapos { display: grid; gap: 28px; }
html.js-menu .vplus-diapos { gap: 0; }
html.js-menu .vplus-diapo {
  grid-area: 1 / 1; min-width: 0;
  opacity: 0; visibility: hidden; pointer-events: none;
}
html.js-menu .vplus-diapo.est-active { opacity: 1; visibility: visible; pointer-events: auto; z-index: 1; }
html.js-menu .vplus-diapo.est-sortante { visibility: visible; animation: vplus-sortie .5s ease both; }
@keyframes vplus-sortie {
  from { opacity: 1; }
  to   { opacity: 0; transform: translateX(-3%) scale(.975); filter: blur(5px); }
}

.vplus-diapo { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; }

/* L'image de la scène : 100 × 60 cqw, un verre sombre posé sur le cadre. */
.vplus-visuel {
  position: relative; overflow: hidden;
  aspect-ratio: 100 / 60;
  container-type: inline-size;
  border-radius: 16px;
  background:
    radial-gradient(90% 80% at 50% 0%, color-mix(in srgb, var(--vp-c) 16%, transparent), transparent 70%),
    rgba(255, 255, 255, .025);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
  --carte: #2b3047;                 /* le fond des bobines du site, ici dans le noir */
}
.vplus-visuel > * { position: absolute; }
.vp-on .vplus-visuel { animation: vplus-entree .75s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes vplus-entree {
  from { opacity: 0; transform: scale(1.05); filter: blur(8px); }
}

/* La bobine du site, à l'échelle de son logement. Un <span> : sans
   `display: block` il tomberait à 0 × 0. */
.vplus .bobine-forme { display: block; width: 100%; height: 100%; }
.vplus .bobine-forme::before, .vplus .bobine-forme::after { width: 17%; }
.vplus .bobine-forme i { left: 11%; right: 11%; }

.vplus svg { display: block; }

/* Les petites coches vertes : « reconnu », « compatible », « appliqué ».
   Vertes parce que ce sont des états. */
.vplus-visuel svg path[d^="M6 12.5"] { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* ----------------------------------------------------------------- texte */
.vplus-texte { position: relative; padding: 16px 4px 4px; min-width: 0; }
.vplus-fantome {
  position: absolute; right: 0; top: 2px; z-index: -1;
  font-size: clamp(64px, 16cqw, 120px); font-weight: 900; line-height: 1; letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .10);
  font-variant-numeric: tabular-nums;
}
.vplus-sur {
  display: flex; align-items: center; gap: 10px; margin: 0 0 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: color-mix(in srgb, var(--vp-c) 70%, #fff);
}
.vplus-num {
  display: inline-grid; place-items: center; min-width: 30px; height: 22px; padding: 0 6px;
  border-radius: 7px; font-family: var(--mono); letter-spacing: 0; font-size: 12px;
  color: #0a0e1f; background: linear-gradient(135deg, var(--vp-c), var(--vp-c2));
  box-shadow: 0 0 18px color-mix(in srgb, var(--vp-c) 55%, transparent);
}
/* Le h3 du site est un flex avec icône : ici le titre coule en lignes, mot
   par mot. */
.vplus h3.vplus-titre {
  display: block; margin: 0; color: #fff;
  font-size: clamp(19px, 2.4cqw + 9px, 27px); line-height: 1.16; letter-spacing: -.02em; font-weight: 800;
  text-wrap: balance;
}
.vplus-mot { display: inline-block; }
.vplus-phrase {
  margin: 10px 0 0; max-width: 60ch;
  font-size: clamp(14px, .6cqw + 11.5px, 15.5px); line-height: 1.6; color: rgba(226, 232, 255, .78);
}
.vplus-phrase b { color: #fff; font-weight: 700; box-shadow: inset 0 -.42em 0 color-mix(in srgb, var(--vp-c) 34%, transparent); }
.vplus-lien {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px;
  font-size: 14px; font-weight: 700; text-decoration: none;
  color: #ddd6fe; padding: 7px 14px; border-radius: 999px;
  background: rgba(124, 58, 237, .22); box-shadow: inset 0 0 0 1px rgba(167, 139, 250, .45);
}
.vplus-lien:hover { background: rgba(124, 58, 237, .36); color: #fff; }
.vplus-lien svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.vp-on .vplus-sur      { animation: vplus-monte .5s .05s cubic-bezier(.2, .8, .2, 1) both; }
.vp-on .vplus-mot      { animation: vplus-mot .6s cubic-bezier(.2, .9, .25, 1.15) both; animation-delay: calc(.12s + var(--m) * .055s); }
.vp-on .vplus-phrase   { animation: vplus-monte .6s .5s cubic-bezier(.2, .8, .2, 1) both; }
.vp-on .vplus-lien     { animation: vplus-monte .6s .7s cubic-bezier(.2, .8, .2, 1) both; }
.vp-on .vplus-fantome  { animation: vplus-fantome .9s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes vplus-monte   { from { opacity: 0; transform: translateY(12px); } }
@keyframes vplus-mot     { from { opacity: 0; transform: translateY(.6em) rotate(3deg); filter: blur(3px); } }
@keyframes vplus-fantome { from { opacity: 0; transform: translateX(30px); } }

/* -------------------------------------------------------------- commandes */
.vplus-commandes {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 14px; padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
html:not(.js-menu) .vplus-commandes { display: none; }
.vplus-puces { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.vplus-puce {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 0;
  height: 34px; min-width: 34px; padding: 0 9px;
  border: 0; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 700; color: rgba(238, 241, 255, .62);
  background: rgba(255, 255, 255, .06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .10);
  transition: min-width .45s cubic-bezier(.2, .8, .2, 1), color .3s, background .3s, box-shadow .3s;
}
.vplus-puce:hover { color: #fff; background: rgba(255, 255, 255, .11); }
.vplus-puce:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.vplus-puce-icone { display: inline-grid; place-items: center; }
.vplus-puce-icone svg { width: 15px; height: 15px; }
.vplus-puce-nom {
  max-width: 0; opacity: 0; overflow: hidden; white-space: nowrap;
  transition: max-width .45s cubic-bezier(.2, .8, .2, 1), opacity .3s, margin .45s;
}
.vplus-puce.est-active {
  min-width: 58px; color: #fff;
  background: color-mix(in srgb, var(--vp-c) 16%, rgba(255, 255, 255, .04));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--vp-c) 70%, transparent), 0 0 18px color-mix(in srgb, var(--vp-c) 35%, transparent);
}
/* Le minuteur : la puce se remplit pendant que sa scène se joue ; la fin
   du remplissage fait passer à la suivante (voir le script). */
.vplus-puce-jauge {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, color-mix(in srgb, var(--vp-c) 50%, transparent), color-mix(in srgb, var(--vp-c2) 55%, transparent));
  transform-origin: left center; transform: scaleX(0);
}
.vplus-puce.est-active .vplus-puce-jauge { animation: vplus-jauge var(--vp-t, 7000ms) linear both; }
@keyframes vplus-jauge { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.vplus-fleches { display: flex; gap: 6px; flex: none; }
.vplus-bouton {
  display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0;
  border: 0; border-radius: 50%; cursor: pointer; color: #eef1ff;
  background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
  transition: background .2s;
}
.vplus-bouton:hover { background: rgba(255, 255, 255, .15); }
.vplus-bouton:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.vplus-bouton svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.vplus-icone-lecture { display: none; fill: currentColor; stroke: none; }
.vplus.est-arretee .vplus-icone-pause { display: none; }
.vplus.est-arretee .vplus-icone-lecture { display: inline; }
.vplus.est-sobre .vplus-pause { display: none; }

/* Pause : au survol ou au clavier, seul le minuteur s'arrête — la scène
   finit son geste. Bouton pause, hors de l'écran ou onglet caché : tout se
   fige. */
.vplus.est-retenue .vplus-puce-jauge { animation-play-state: paused !important; }
.vplus.est-arretee *, .vplus.est-arretee *::before, .vplus.est-arretee *::after,
.vplus.est-endormie *, .vplus.est-endormie *::before, .vplus.est-endormie *::after {
  animation-play-state: paused !important;
}

/* Largeurs : le nom de la scène en cours s'affiche dès qu'il y a la place ;
   sur un téléphone, les flèches s'effacent — on glisse du doigt. */
@container vplus (min-width: 500px) {
  .vplus-puce.est-active { min-width: 0; padding: 0 13px; }
  .vplus-puce.est-active .vplus-puce-nom { max-width: 12em; opacity: 1; margin-left: 7px; }
}
@container vplus (max-width: 420px) {
  .vplus-prec, .vplus-suiv { display: none; }
  .vplus-commandes { gap: 8px; }
  .vplus-puces { gap: 4px; flex-wrap: nowrap; }
  .vplus-puce { height: 32px; min-width: 30px; padding: 0 7px; }
  .vplus-puce.est-active { min-width: 44px; }
}
/* Très large (page de connexion, pleine largeur) : l'image à gauche, les
   mots à droite. */
@container vplus (min-width: 980px) {
  .vplus-diapo { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: center; gap: 34px; }
  .vplus-texte { padding: 0 6px 0 0; }
  .vplus h3.vplus-titre { font-size: 32px; }
}

/* =======================================================================
   1. CATALOGUE — on scanne, la fiche se remplit ; le catalogue en chiffres
   ======================================================================= */
.vp1-mur {
  right: 1cqw; top: 2cqw; width: 52cqw; height: 56cqw;
  display: grid; grid-template-columns: repeat(8, 1fr); align-content: start; gap: .9cqw;
  opacity: .16;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent 80%);
          mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent 80%);
}
.vp1-mur i { display: block; aspect-ratio: 1; border-radius: 1.1cqw; background: var(--c); }
.vp-on .vp1-mur i { animation: vp1-vague 3.4s ease-in-out infinite both; animation-delay: calc(var(--i) * 70ms); }
@keyframes vp1-vague { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.55); opacity: .35; } }

.vp1-scan {
  left: 4cqw; top: 5cqw; width: 40cqw; height: 22cqw;
  border-radius: 2.4cqw; background: #f8fafc;
  box-shadow: 0 1.6cqw 4cqw -1cqw rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(15, 23, 42, .08);
}
.vp1-code { position: absolute; inset: 3.6cqw 4cqw 4.4cqw; display: flex; gap: .55cqw; }
.vp1-code i { flex: var(--l) 1 0; background: #0f172a; border-radius: .2cqw; }
.vp1-laser {
  position: absolute; left: 2cqw; right: 2cqw; top: 50%; height: .55cqw; margin-top: -.27cqw;
  border-radius: 1cqw; background: var(--vp-c);
  box-shadow: 0 0 1.4cqw var(--vp-c), 0 0 4cqw var(--vp-c);
  opacity: 0;
}
.vp-on .vp1-laser { animation: vp1-laser 1.25s .25s ease-in-out both; }
@keyframes vp1-laser {
  0%   { opacity: 0; top: 14%; }
  10%  { opacity: 1; }
  45%  { top: 86%; }
  85%  { top: 18%; opacity: 1; }
  100% { top: 50%; opacity: 0; }
}
.vp1-bip { position: absolute; inset: -1cqw; border-radius: 3.2cqw; border: .45cqw solid var(--vp-c); opacity: 0; }
.vp-on .vp1-bip { animation: vplus-onde .75s 1.45s ease-out both; }
@keyframes vplus-onde { from { opacity: 1; transform: scale(.96); } to { opacity: 0; transform: scale(1.14); } }

.vp1-fiche {
  left: 4cqw; top: 31cqw; width: 40cqw; height: 24cqw;
  display: flex; align-items: center; gap: 2cqw; padding: 0 2.6cqw;
  border-radius: 2.4cqw; background: rgba(255, 255, 255, .07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .13), 0 1.5cqw 4cqw -1cqw rgba(0, 0, 0, .5);
}
.vp-on .vp1-fiche { animation: vplus-glisse .6s 1.55s cubic-bezier(.2, .9, .3, 1.2) both; }
@keyframes vplus-glisse { from { opacity: 0; transform: translateY(-5cqw) scale(.92); } }
.vp1-bobine { flex: none; width: 7cqw; height: 13cqw; }
.vp1-lignes { display: grid; gap: .9cqw; min-width: 0; }
.vp1-l { display: block; font-size: max(8.5px, 2.5cqw); line-height: 1.2; color: rgba(255, 255, 255, .74); white-space: nowrap; overflow: hidden; }
b.vp1-l { font-size: max(10px, 3.3cqw); font-weight: 800; color: #fff; }
.vp1-mono { font-family: var(--mono); font-size: max(7.5px, 2.2cqw); }
.vp-on .vp1-l { animation: vplus-tape .5s ease-out both; animation-delay: calc(1.85s + var(--k) * .2s); }
@keyframes vplus-tape { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.vp1-ok {
  position: absolute; right: 2.2cqw; top: 2.2cqw; width: 4.6cqw; height: 4.6cqw;
  display: grid; place-items: center; border-radius: 50%;
  color: #052e16; background: #4ade80; box-shadow: 0 0 2cqw rgba(74, 222, 128, .6);
}
.vp1-ok svg { width: 70%; height: 70%; }
.vp-on .vp1-ok { animation: vplus-pop .5s 2.55s cubic-bezier(.2, .9, .3, 1.4) both; }
@keyframes vplus-pop { 0% { opacity: 0; transform: scale(.5); } 70% { opacity: 1; transform: scale(1.08); } 100% { opacity: 1; transform: none; } }

.vp1-stats { left: 49cqw; top: 5cqw; width: 47cqw; height: 50cqw; display: grid; grid-template-rows: repeat(4, 1fr); gap: 1.8cqw; }
.vp1-stat {
  display: grid; grid-template-columns: 21cqw minmax(0, 1fr); align-items: center; gap: 2cqw;
  padding: 0 2.6cqw; border-radius: 2.2cqw;
  background: linear-gradient(100deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .025));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .10);
}
.vp1-stat b {
  font-size: max(13px, 4.6cqw); font-weight: 850; letter-spacing: -.02em; line-height: 1; white-space: nowrap;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(110deg, #fff 10%, var(--vp-c) 60%, var(--vp-c2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.vp1-stat > span { font-size: max(8px, 2.35cqw); line-height: 1.15; color: rgba(255, 255, 255, .72); }
.vp-on .vp1-stat { animation: vp1-stat .6s cubic-bezier(.2, .9, .3, 1.2) both; animation-delay: calc(.5s + var(--k) * .15s); }
@keyframes vp1-stat { from { opacity: 0; transform: translateX(5cqw); } }

/* =======================================================================
   2. DÉCOMPTE — le trancheur envoie, la bonne bobine perd ses grammes
   ======================================================================= */
.vp2-fenetre {
  left: 4cqw; top: 5cqw; width: 42cqw; height: 40cqw; overflow: hidden;
  border-radius: 2cqw; background: #0d1426;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 2cqw 5cqw -2cqw rgba(0, 0, 0, .7);
}
.vp-on .vp2-fenetre { animation: vplus-pop .55s .05s both; }
.vp2-barre {
  display: flex; align-items: center; gap: .9cqw; height: 5cqw; padding: 0 1.8cqw;
  background: rgba(255, 255, 255, .06); border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.vp2-barre i { width: 1.3cqw; height: 1.3cqw; border-radius: 50%; background: rgba(255, 255, 255, .28); }
.vp2-barre span { margin-left: 1cqw; font-size: max(8px, 2.1cqw); font-weight: 700; color: rgba(255, 255, 255, .78); white-space: nowrap; }
.vp2-plateau {
  position: absolute; left: 3cqw; right: 3cqw; top: 8cqw; bottom: 9.5cqw; border-radius: 1.2cqw;
  background:
    radial-gradient(60% 50% at 50% 100%, color-mix(in srgb, var(--vp-c) 22%, transparent), transparent 75%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 3.6cqw),
    rgba(255, 255, 255, .02);
}
.vp2-piece { position: absolute; left: 50%; bottom: 2.4cqw; width: 15cqw; margin-left: -7.5cqw; display: flex; flex-direction: column-reverse; align-items: center; gap: .35cqw; }
.vp2-piece i {
  display: block; height: 2cqw; border-radius: .6cqw;
  width: calc(100% - var(--k) * 1.1cqw);
  background: linear-gradient(90deg, var(--vp-c2), var(--vp-c));
  box-shadow: 0 0 1.2cqw color-mix(in srgb, var(--vp-c) 40%, transparent);
}
.vp-on .vp2-piece i { animation: vp2-couche .3s ease-out both; animation-delay: calc(.35s + var(--k) * .13s); }
@keyframes vp2-couche { from { opacity: 0; transform: scaleX(.2); } }
.vp2-buse {
  position: absolute; left: 50%; top: 1cqw; width: 4cqw; height: 3cqw; margin-left: -2cqw;
  background: linear-gradient(#e2e8f0, #94a3b8);
  clip-path: polygon(0 0, 100% 0, 68% 100%, 32% 100%);
}
.vp-on .vp2-buse { animation: vp2-buse 1.2s .35s ease-in-out both; }
@keyframes vp2-buse { 0%, 100% { transform: none; } 20% { transform: translateX(-5cqw); } 45% { transform: translateX(5cqw); } 70% { transform: translateX(-3cqw); } }
.vp2-bouton {
  position: absolute; right: 2.4cqw; bottom: 2.4cqw;
  padding: 1cqw 2.6cqw; border-radius: 1cqw;
  font-size: max(8px, 2.2cqw); font-weight: 800; white-space: nowrap;
  color: #04201e; background: linear-gradient(135deg, var(--vp-c), var(--vp-c2));
}
.vp-on .vp2-bouton { animation: vplus-clic .5s 2s both; }
@keyframes vplus-clic {
  0%   { transform: none; box-shadow: 0 0 0 0 color-mix(in srgb, var(--vp-c) 70%, transparent); }
  35%  { transform: scale(.88); filter: brightness(1.35); }
  100% { transform: none; box-shadow: 0 0 0 3cqw transparent; }
}
.vp2-curseur, .vp4-main {
  left: 0; top: 0; width: 4.2cqw; height: 4.2cqw; opacity: 0; z-index: 5;
  filter: drop-shadow(0 .5cqw .8cqw rgba(0, 0, 0, .6));
}
.vp2-curseur svg, .vp4-main svg { width: 100%; height: 100%; fill: #fff; stroke: #0b1022; stroke-width: 1.4; stroke-linejoin: round; }
.vp-on .vp2-curseur { animation: vp2-curseur 2.6s .1s cubic-bezier(.45, 0, .25, 1) both; }
@keyframes vp2-curseur {
  0%   { opacity: 0; transform: translate(26cqw, 14cqw); }
  20%  { opacity: 1; }
  68%  { transform: translate(39cqw, 40.5cqw); }
  73%  { transform: translate(39cqw, 40.5cqw) scale(.82); }
  80%  { transform: translate(39cqw, 40.5cqw) scale(1); opacity: 1; }
  100% { opacity: 0; transform: translate(42cqw, 44cqw); }
}
.vp2-trajet { inset: 0; width: 100%; height: 100%; }
.vp2-trajet path {
  fill: none; stroke: rgba(255, 255, 255, .22); stroke-width: 2px; vector-effect: non-scaling-stroke;
  stroke-dasharray: 5 6; stroke-linecap: round;
}
.vp-on .vp2-trajet path { animation: vp2-flux .9s linear infinite; }
@keyframes vp2-flux { to { stroke-dashoffset: -22; } }
.vp2-paquet {
  left: 47cqw; top: 41cqw; z-index: 4;
  padding: .7cqw 1.5cqw; border-radius: 999px;
  font-family: var(--mono); font-size: max(7.5px, 1.95cqw); font-weight: 800; white-space: nowrap;
  color: #04201e; background: var(--vp-c); box-shadow: 0 0 2.6cqw var(--vp-c);
  opacity: 0; transform: translate(-50%, -50%);
}
.vp-on .vp2-paquet { animation: vp2-paquet 1.15s 2.1s ease-in-out both; }
@keyframes vp2-paquet {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(.5); }
  15%  { opacity: 1; transform: translate(-50%, -50%) translate(2cqw, 0) scale(1); }
  50%  { transform: translate(-50%, -50%) translate(9.5cqw, -7cqw); }
  85%  { opacity: 1; transform: translate(-50%, -50%) translate(17cqw, -15cqw) scale(.9); }
  100% { opacity: 0; transform: translate(-50%, -50%) translate(19cqw, -16cqw) scale(.4); }
}
.vp2-bobine { left: 63cqw; top: 9cqw; width: 9.5cqw; height: 17cqw; }
.vp2-bobine::after {
  content: ''; position: absolute; inset: -2cqw; border-radius: 2cqw;
  border: .45cqw solid var(--vp-c); opacity: 0;
}
.vp-on .vp2-bobine::after { animation: vplus-onde .8s 3.15s ease-out both; }
.vp-on .vp2-bobine .bobine-forme i { animation: vp2-vide 1s 3.1s ease-out both; }
@keyframes vp2-vide { from { height: calc(26% + 70% * .742); } }
.vp2-poids { left: 76cqw; top: 10cqw; display: grid; gap: .6cqw; }
.vp2-poids b { font-size: max(13px, 5.4cqw); font-weight: 850; color: #fff; white-space: nowrap; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.vp2-moins { font-size: max(10px, 3.4cqw); font-weight: 850; color: var(--vp-c); white-space: nowrap; }
.vp-on .vp2-moins { animation: vp2-moins 1.3s 3.2s cubic-bezier(.2, .9, .3, 1.2) both; }
@keyframes vp2-moins { 0% { opacity: 0; transform: translateY(2.5cqw) scale(.7); } 30% { opacity: 1; transform: scale(1.15); } 100% { opacity: 1; transform: none; } }
.vp2-trancheurs { left: 52cqw; top: 33cqw; width: 45cqw; display: flex; flex-direction: column; align-items: flex-start; gap: 1.6cqw; }
.vp2-oui, .vp2-bientot {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: .6cqw 1cqw;
  padding: 1cqw 2cqw; border-radius: 2.4cqw; font-size: max(8.5px, 2.5cqw); line-height: 1.25;
}
.vp2-oui { font-weight: 800; color: #fff; background: color-mix(in srgb, var(--vp-c) 18%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--vp-c) 75%, transparent); }
.vp2-oui svg { width: max(10px, 2.8cqw); height: max(10px, 2.8cqw); color: #4ade80; }
.vp2-bientot { color: rgba(255, 255, 255, .8); border: 1px dashed rgba(255, 255, 255, .32); }
.vp2-bientot em { display: inline-flex; align-items: center; gap: .7cqw; font-style: normal; font-weight: 800; color: var(--vp-c); }
.vp2-bientot em::before {
  content: ''; width: 1.3cqw; height: 1.3cqw; min-width: 5px; min-height: 5px; border-radius: 50%;
  background: var(--vp-c); animation: vp2-bat 1.6s ease-out infinite;
}
@keyframes vp2-bat { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--vp-c) 70%, transparent); } 100% { box-shadow: 0 0 0 1.6cqw transparent; } }
.vp-on .vp2-oui     { animation: vplus-pop .45s 4.3s both; }
.vp-on .vp2-bientot { animation: vplus-pop .45s 4.55s both; }

/* =======================================================================
   3. AJOUT — le code-barres, puis la photo de l'étiquette lue par l'IA
   ======================================================================= */
.vp3-tel {
  left: 6cqw; top: 3cqw; width: 30cqw; height: 54cqw;
  padding: 2.6cqw 2cqw 2.4cqw; border-radius: 4.6cqw;
  background: #0a0f20;
  box-shadow: inset 0 0 0 .55cqw #283150, inset 0 0 0 .8cqw #0a0f20, 0 2cqw 5cqw -1cqw rgba(0, 0, 0, .65);
}
.vp-on .vp3-tel { animation: vplus-glisse .6s .05s both; }
.vp3-onglets {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; text-align: center;
  padding: .4cqw 0 1.3cqw; font-size: max(6.5px, 1.85cqw); font-weight: 800; letter-spacing: -.01em; white-space: nowrap;
}
.vp3-o { align-self: end; white-space: normal; line-height: 1.1; overflow-wrap: anywhere; }
.vp3-o1 { color: rgba(255, 255, 255, .45); }
.vp3-o2 { color: #fff; }
.vp3-souligne {
  position: absolute; left: 8%; bottom: 0; width: 34%; height: .55cqw; border-radius: 1cqw;
  background: linear-gradient(90deg, var(--vp-c), var(--vp-c2)); transform: translateX(147%);
}
.vp-on .vp3-souligne { animation: vp3-souligne var(--vp-t) linear both; }
@keyframes vp3-souligne { 0%, 28% { transform: translateX(0); } 32%, 100% { transform: translateX(147%); } }
.vp-on .vp3-o1 { animation: vp3-o1 var(--vp-t) linear both; }
.vp-on .vp3-o2 { animation: vp3-o2 var(--vp-t) linear both; }
@keyframes vp3-o1 { 0%, 28% { color: #fff; } 32%, 100% { color: rgba(255, 255, 255, .45); } }
@keyframes vp3-o2 { 0%, 28% { color: rgba(255, 255, 255, .45); } 32%, 100% { color: #fff; } }
.vp3-ecran {
  position: relative; height: 43cqw; margin-top: 1.4cqw; overflow: hidden; border-radius: 2.6cqw;
  background: radial-gradient(80% 70% at 50% 40%, #233056, #0a0f20);
}
.vp3-ecran > * { position: absolute; }
.vp3-code {
  left: 3cqw; right: 3cqw; top: 13cqw; height: 14cqw; padding: 1.8cqw 2cqw;
  display: flex; gap: .45cqw; border-radius: 1cqw; background: #f8fafc; opacity: 0;
}
.vp3-code i { flex: var(--l) 1 0; background: #0f172a; border-radius: .15cqw; }
.vp-on .vp3-code { animation: vp3-code var(--vp-t) linear both; }
@keyframes vp3-code { 0%, 26% { opacity: 1; transform: none; } 31%, 100% { opacity: 0; transform: scale(.88); } }
.vp3-laser {
  left: 1.6cqw; right: 1.6cqw; top: 20cqw; height: .55cqw; border-radius: 1cqw;
  background: var(--vp-c2); box-shadow: 0 0 1.4cqw var(--vp-c2), 0 0 4cqw var(--vp-c2); opacity: 0;
}
.vp-on .vp3-laser { animation: vp3-laser var(--vp-t) linear both; }
@keyframes vp3-laser {
  0%   { opacity: 0; top: 13cqw; }
  3%   { opacity: 1; }
  9%   { top: 27cqw; }
  15%  { top: 13cqw; }
  19%  { top: 20cqw; opacity: 1; }
  21%, 100% { opacity: 0; top: 20cqw; }
}
.vp3-reconnu {
  left: 50%; top: 30cqw; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: .7cqw; white-space: nowrap;
  padding: .7cqw 1.6cqw; border-radius: 999px; font-size: max(7px, 1.8cqw); font-weight: 800;
  color: #052e16; background: #4ade80; opacity: 0;
}
.vp3-reconnu svg { width: max(8px, 2.2cqw); height: max(8px, 2.2cqw); }
.vp-on .vp3-reconnu { animation: vp3-reconnu var(--vp-t) linear both; }
@keyframes vp3-reconnu { 0%, 18% { opacity: 0; transform: translate(-50%, 1cqw); } 21%, 27% { opacity: 1; transform: translateX(-50%); } 31%, 100% { opacity: 0; transform: translateX(-50%); } }
.vp3-etiquette {
  left: 1.8cqw; right: 1.8cqw; top: 9cqw; height: 25cqw; padding: 2cqw 2cqw;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto 1fr; column-gap: 1.5cqw;
  border-radius: 1.4cqw; color: #0f172a; background: linear-gradient(#ffffff, #eef2f7);
  box-shadow: 0 1cqw 3cqw rgba(0, 0, 0, .45);
}
.vp3-etiquette b { font-size: max(9px, 3.3cqw); font-weight: 900; line-height: 1; color: #e65100; letter-spacing: .02em; }
.vp3-gamme { grid-column: 1; font-size: max(8.5px, 2.8cqw); font-weight: 800; margin-top: .6cqw; }
.vp3-carre { grid-column: 2; grid-row: 1 / span 2; width: 5.2cqw; height: 5.2cqw; border-radius: 1cqw; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.vp3-mini { grid-column: 1 / -1; align-self: end; font-family: var(--mono); font-size: max(6px, 1.55cqw); line-height: 1.25; color: #475569; }
.vp-on .vp3-etiquette { animation: vp3-etiquette var(--vp-t) linear both; }
@keyframes vp3-etiquette { 0%, 31% { opacity: 0; transform: scale(.9); } 36%, 100% { opacity: 1; transform: none; } }
.vp3-grille {
  left: 1.8cqw; right: 1.8cqw; top: 9cqw; height: 25cqw; border-radius: 1.4cqw; overflow: hidden; opacity: 0;
  background-image:
    linear-gradient(color-mix(in srgb, var(--vp-c) 55%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--vp-c) 55%, transparent) 1px, transparent 1px);
  background-size: 3cqw 3cqw;
  box-shadow: inset 0 0 0 .35cqw var(--vp-c);
}
.vp3-grille::after {
  content: ''; position: absolute; left: 0; right: 0; top: -40%; height: 40%;
  background: linear-gradient(transparent, color-mix(in srgb, var(--vp-c2) 60%, transparent), transparent);
}
.vp-on .vp3-grille { animation: vp3-grille var(--vp-t) linear both; }
.vp-on .vp3-grille::after { animation: vp3-balaye var(--vp-t) linear both; }
@keyframes vp3-grille { 0%, 39% { opacity: 0; } 41%, 54% { opacity: .9; } 58%, 100% { opacity: 0; } }
@keyframes vp3-balaye { 0%, 40% { transform: translateY(0); } 55%, 100% { transform: translateY(350%); } }
.vp3-viseur { inset: 5cqw 1.4cqw 5cqw; pointer-events: none; }
.vp3-viseur i { position: absolute; width: 3.4cqw; height: 3.4cqw; border: .5cqw solid rgba(255, 255, 255, .75); }
.vp3-viseur i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; border-radius: 1cqw 0 0 0; }
.vp3-viseur i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; border-radius: 0 1cqw 0 0; }
.vp3-viseur i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 1cqw; }
.vp3-viseur i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; border-radius: 0 0 1cqw 0; }
.vp3-flash { inset: 0; background: #fff; opacity: 0; }
.vp-on .vp3-flash { animation: vp3-flash var(--vp-t) linear both; }
@keyframes vp3-flash { 0%, 36% { opacity: 0; } 37% { opacity: .95; } 42%, 100% { opacity: 0; } }

.vp3-fiche { left: 42cqw; top: 5cqw; width: 54cqw; display: grid; gap: 1.5cqw; }
.vp3-ia {
  justify-self: start; display: inline-flex; align-items: center; gap: 1cqw; margin: 0 0 .4cqw;
  padding: .8cqw 2cqw; border-radius: 999px;
  font-size: max(8px, 2.2cqw); font-weight: 800; color: #fff; white-space: nowrap;
  background: linear-gradient(90deg, color-mix(in srgb, var(--vp-c) 45%, transparent), color-mix(in srgb, var(--vp-c2) 45%, transparent));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28), 0 0 3cqw color-mix(in srgb, var(--vp-c2) 40%, transparent);
}
.vp3-ia svg { width: max(9px, 2.6cqw); height: max(9px, 2.6cqw); fill: #fff; }
.vp-on .vp3-ia { animation: vp3-ia var(--vp-t) linear both; }
@keyframes vp3-ia { 0%, 41% { opacity: 0; transform: scale(.7); } 45% { opacity: 1; transform: scale(1.08); } 48%, 100% { opacity: 1; transform: none; } }
.vp3-champ {
  display: grid; grid-template-columns: 18cqw minmax(0, 1fr); align-items: center; gap: 1.6cqw;
  padding: 1.15cqw 2cqw; border-radius: 1.4cqw;
  background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09);
  font-size: max(8.5px, 2.4cqw);
}
.vp3-champ span { color: rgba(255, 255, 255, .6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vp3-champ b { display: inline-flex; align-items: center; gap: 1cqw; color: #fff; font-weight: 750; white-space: nowrap; overflow: hidden; }
.vp3-champ b i { flex: none; width: max(8px, 2.5cqw); height: max(8px, 2.5cqw); border-radius: 50%; background: var(--c); box-shadow: 0 0 0 .3cqw rgba(255, 255, 255, .2); }
.vp-on .vp3-champ   { animation: vp3-champ .45s ease-out both; animation-delay: calc(3.35s + var(--k) * .22s); }
.vp-on .vp3-champ b { animation: vplus-tape .5s ease-out both; animation-delay: calc(3.5s + var(--k) * .22s); }
@keyframes vp3-champ { from { opacity: 0; transform: translateX(3cqw); } }

/* =======================================================================
   4. RANGEMENT — le rayon à l'écran, le dégradé, les étiquettes
   ======================================================================= */
.vp4-meuble {
  --pas: 9.6cqw;
  left: 3cqw; top: 5cqw; width: 61cqw; height: 46cqw;
  border-radius: 1.6cqw;
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.vp4-meuble > * { position: absolute; }
.vp4-lettre {
  left: -1.6cqw; width: 3.6cqw; height: 3.6cqw; display: grid; place-items: center; border-radius: 50%;
  font-size: max(7px, 1.9cqw); font-weight: 900; color: #0b1022; background: var(--vp-c); z-index: 3;
}
.vp4-lettre.vp4-ra { top: 14.2cqw; }
.vp4-lettre.vp4-rb { top: 36.2cqw; }
.vp4-planche {
  left: 0; right: 0; height: 1.6cqw; border-radius: .5cqw;
  background: linear-gradient(#4b5070, #2c3048); box-shadow: 0 .6cqw 1cqw rgba(0, 0, 0, .45);
}
.vp4-planche.vp4-ra { top: 15.2cqw; }
.vp4-planche.vp4-rb { top: 37.2cqw; }
.vp4-bob, .vp4-vide { left: calc(3.6cqw + var(--x) * var(--pas)); width: 7.2cqw; height: 12.8cqw; }
.vp4-ra.vp4-bob, .vp4-ra.vp4-vide { top: 2.4cqw; }
.vp4-rb.vp4-bob, .vp4-rb.vp4-vide { top: 24.4cqw; }
.vp4-vide { border: 1px dashed rgba(255, 255, 255, .22); border-radius: 1cqw; }
.vp4-voyage { z-index: 4; }
.vp-on .vp4-trie { animation: vp4-tri 1.3s cubic-bezier(.55, 0, .25, 1) both; animation-delay: calc(3.05s + var(--x) * .05s); }
@keyframes vp4-tri {
  0%   { transform: translateX(calc((var(--de) - var(--x)) * var(--pas))); }
  22%  { transform: translateX(calc((var(--de) - var(--x)) * var(--pas))) translateY(-3cqw); }
  78%  { transform: translateY(-3cqw); }
  100% { transform: none; }
}
.vp-on .vp4-voyage { animation: vp4-voyage var(--vp-t) linear both; }
@keyframes vp4-voyage {
  0%, 7%  { transform: translate(calc(3 * var(--pas)), -22cqw); }
  11%     { transform: translate(calc(3 * var(--pas)), -25cqw) scale(1.1); filter: drop-shadow(0 2cqw 1.6cqw rgba(0, 0, 0, .55)); animation-timing-function: cubic-bezier(.45, 0, .3, 1); }
  24%     { transform: translate(0, -3.4cqw) scale(1.1); filter: drop-shadow(0 2cqw 1.6cqw rgba(0, 0, 0, .55)); }
  28%     { transform: none; filter: none; }
  30%     { transform: translateY(-.9cqw); }
  32%, 100% { transform: none; }
}
.vp-on .vp4-main { animation: vp4-main var(--vp-t) linear both; }
@keyframes vp4-main {
  0%   { opacity: 0; transform: translate(70cqw, 26cqw); }
  5%   { opacity: 1; transform: translate(58cqw, 13cqw); animation-timing-function: ease-out; }
  8%   { transform: translate(58cqw, 13cqw) scale(.82); }
  11%  { transform: translate(58cqw, 10cqw) scale(.82); animation-timing-function: cubic-bezier(.45, 0, .3, 1); }
  24%  { transform: translate(29cqw, 31.6cqw) scale(.82); }
  28%  { transform: translate(29cqw, 35cqw) scale(.82); }
  30%  { transform: translate(29cqw, 35cqw) scale(1); animation-timing-function: cubic-bezier(.45, 0, .3, 1); }
  36%  { transform: translate(79cqw, 9.5cqw); }
  37.5% { transform: translate(79cqw, 9.5cqw) scale(.8); }
  39%  { transform: translate(79cqw, 9.5cqw) scale(1); }
  56%  { transform: translate(80cqw, 10cqw); animation-timing-function: cubic-bezier(.45, 0, .3, 1); }
  60%  { transform: translate(77cqw, 25cqw); }
  62%  { transform: translate(77cqw, 25cqw) scale(.8); }
  64%  { transform: translate(77cqw, 25cqw) scale(1); opacity: 1; }
  74%, 100% { opacity: 0; transform: translate(88cqw, 34cqw); }
}
.vp4-bouton {
  left: 67cqw; top: 5cqw; width: 30cqw;
  display: flex; align-items: center; gap: 1cqw; padding: 1.3cqw 1.6cqw; border-radius: 1.6cqw;
  font-size: max(7.5px, 2.15cqw); font-weight: 800; line-height: 1.15; color: #fff;
  background: linear-gradient(135deg, color-mix(in srgb, var(--vp-c) 55%, transparent), color-mix(in srgb, var(--vp-c2) 35%, transparent));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25);
}
.vp4-bouton svg { flex: none; width: max(9px, 2.6cqw); height: max(9px, 2.6cqw); fill: #fff; }
.vp-on .vp4-bouton { animation: vplus-clic .5s 3s both; }
.vp4-accord {
  left: 67cqw; top: 15.5cqw; width: 30cqw;
  display: grid; gap: 1.1cqw; padding: 1.4cqw 1.6cqw; border-radius: 1.6cqw;
  font-size: max(7px, 1.9cqw); line-height: 1.3; color: rgba(255, 255, 255, .78);
  background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}
.vp4-accord b {
  justify-self: start; display: inline-flex; align-items: center; gap: .8cqw;
  padding: .7cqw 1.8cqw; border-radius: 999px; font-weight: 850; white-space: nowrap;
  color: #0b1022; background: var(--vp-c);
}
.vp4-accord b svg { width: max(8px, 2.2cqw); height: max(8px, 2.2cqw); color: #0b1022; }
.vp-on .vp4-accord   { animation: vplus-pop .5s 4.35s both; }
.vp-on .vp4-accord b { animation: vplus-clic .5s 4.95s both; }
.vp4-etiquettes {
  left: 67cqw; top: 35cqw; width: 30cqw; height: 21cqw; padding: 1.3cqw;
  display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 1cqw;
  border-radius: 1.2cqw; background: #f8fafc; transform: rotate(-3deg);
  box-shadow: 0 2cqw 4cqw -1cqw rgba(0, 0, 0, .7);
}
.vp4-etiq-titre {
  position: absolute; left: .4cqw; top: -3.6cqw;
  font-size: max(7px, 1.85cqw); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .72);
}
.vp4-etiq {
  display: flex; flex-direction: column; justify-content: center; min-width: 0;
  padding: .4cqw .8cqw; border-radius: .6cqw; border: 1px dashed #cbd5e1;
}
.vp4-etiq i { display: block; height: 2cqw; background: repeating-linear-gradient(90deg, #0f172a 0 .3cqw, transparent .3cqw .55cqw, #0f172a .55cqw .7cqw, transparent .7cqw 1.1cqw); }
.vp4-etiq em { margin-top: .4cqw; font-style: normal; font-family: var(--mono); font-size: max(5px, 1.3cqw); color: #0f172a; white-space: nowrap; overflow: hidden; }
.vp-on .vp4-etiquettes { animation: vp4-feuille .65s 5.5s cubic-bezier(.2, .9, .3, 1.15) both; }
@keyframes vp4-feuille { from { opacity: 0; transform: translateY(9cqw) rotate(6deg); } }
.vp-on .vp4-etiq { animation: vplus-pop .35s both; animation-delay: calc(5.85s + var(--k) * .1s); }

/* =======================================================================
   5. COÛT — le ticket du vrai coût, le prix conseillé, la rentabilité
   ======================================================================= */
.vp5-fente {
  left: 6cqw; top: 3.2cqw; width: 40cqw; height: 1.8cqw; z-index: 2; border-radius: 999px;
  background: #03050c; box-shadow: inset 0 .4cqw .8cqw #000, 0 0 0 .45cqw rgba(255, 255, 255, .09);
}
.vp5-caisse { left: 8cqw; top: 4.1cqw; width: 36cqw; height: 54cqw; overflow: hidden; }
.vp5-ticket {
  display: grid; gap: 1.25cqw; padding: 2.6cqw 2cqw 3cqw;
  font-family: var(--mono); font-size: max(7px, 2.15cqw); color: #1f2937;
  background: #fbfaf6; border-radius: 0 0 1.2cqw 1.2cqw;
  box-shadow: 0 2cqw 4cqw -1cqw rgba(0, 0, 0, .6);
}
.vp-on .vp5-ticket { animation: vp5-sort 1s .15s cubic-bezier(.3, .8, .3, 1) both; }
@keyframes vp5-sort { from { transform: translateY(-102%); } }
.vp5-ligne { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 1.2cqw; align-items: baseline; }
.vp5-ligne > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vp5-ligne b { font-weight: 800; white-space: nowrap; }
.vp-on .vp5-ligne { animation: vp5-ligne .4s ease-out both; animation-delay: calc(.75s + var(--k) * .3s); }
@keyframes vp5-ligne { from { opacity: 0; transform: translateX(-2cqw); } }
.vp5-ruban { grid-column: 1 / -1; display: flex; gap: .4cqw; height: 1.2cqw; margin-top: .7cqw; }
.vp5-ruban em { display: block; border-radius: .35cqw; transform-origin: left center; }
.vp5-ruban em:nth-child(1) { flex: 7; background: #a5b4fc; }
.vp5-ruban em:nth-child(2) { flex: 5; background: #f9a8d4; }
.vp5-ruban em:nth-child(3) { flex: 8; background: #818cf8; }
.vp5-ruban em:nth-child(4) { flex: 4; background: #c4b5fd; }
.vp-on .vp5-ruban em { animation: vp5-ruban .35s ease-out both; }
.vp-on .vp5-ruban em:nth-child(1) { animation-delay: 1.2s; }
.vp-on .vp5-ruban em:nth-child(2) { animation-delay: 1.32s; }
.vp-on .vp5-ruban em:nth-child(3) { animation-delay: 1.44s; }
.vp-on .vp5-ruban em:nth-child(4) { animation-delay: 1.56s; }
@keyframes vp5-ruban { from { transform: scaleX(0); } }
.vp5-tranches { grid-column: 1 / -1; margin-top: .3cqw; font-family: system-ui, sans-serif; font-size: max(6.5px, 1.6cqw); color: #6b7280; }
.vp5-total {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 2cqw;
  padding-top: 1.4cqw; border-top: 1px dashed #9ca3af;
  font-size: max(8.5px, 2.55cqw); font-weight: 850;
}
.vp5-total b { white-space: nowrap; }
.vp-on .vp5-total { animation: vp5-total .6s 2s ease-out both; }
@keyframes vp5-total { 0% { opacity: 0; } 40% { opacity: 1; background: color-mix(in srgb, var(--vp-c) 35%, transparent); } 100% { opacity: 1; background: transparent; } }
.vp5-prix {
  left: 50cqw; top: 5cqw; width: 46cqw;
  display: grid; gap: .7cqw; padding: 2.4cqw 3cqw; border-radius: 2.4cqw;
  background: linear-gradient(150deg, color-mix(in srgb, var(--vp-c) 32%, transparent), color-mix(in srgb, var(--vp-c2) 22%, transparent));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2), 0 2cqw 5cqw -2cqw color-mix(in srgb, var(--vp-c) 75%, transparent);
}
.vp5-prix-mot { font-size: max(8px, 2.2cqw); font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: rgba(255, 255, 255, .82); }
.vp5-prix-n { font-size: max(18px, 7.6cqw); font-weight: 900; line-height: 1; letter-spacing: -.02em; color: #fff; white-space: nowrap; font-variant-numeric: tabular-nums; }
.vp5-marge { justify-self: start; padding: .6cqw 1.6cqw; border-radius: 999px; font-size: max(8px, 2.1cqw); font-weight: 800; color: #fff; background: rgba(255, 255, 255, .16); white-space: nowrap; }
.vp-on .vp5-prix  { animation: vplus-pop .55s 2.4s both; }
.vp-on .vp5-marge { animation: vplus-pop .45s 3.4s both; }
.vp5-tags { left: 50cqw; top: 29.5cqw; display: flex; flex-wrap: wrap; gap: 1.4cqw; width: 46cqw; }
.vp5-tags span {
  display: inline-flex; align-items: center; gap: .8cqw; padding: .9cqw 1.8cqw; border-radius: 999px;
  font-size: max(8px, 2.2cqw); font-weight: 700; color: #fff; white-space: nowrap;
  background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
}
.vp5-tags svg { width: max(10px, 2.6cqw); height: max(10px, 2.6cqw); color: var(--vp-c); }
.vp-on .vp5-tags span { animation: vplus-pop .45s both; animation-delay: calc(3.8s + var(--k) * .2s); }
.vp5-renta {
  left: 50cqw; top: 38.5cqw; width: 46cqw; height: 18cqw;
  display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: auto 1fr; column-gap: 2.4cqw; align-items: end;
}
.vp5-renta-titre { grid-column: 1 / -1; align-self: start; font-size: max(7px, 1.85cqw); font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.vp5-barre { display: flex; flex-direction: column; align-items: stretch; }
.vp5-barre i {
  display: block; height: calc(var(--h) * 11cqw); border-radius: .9cqw .9cqw .25cqw .25cqw; transform-origin: bottom;
  background: linear-gradient(var(--vp-c), var(--vp-c2));
  box-shadow: 0 0 2cqw color-mix(in srgb, var(--vp-c) 35%, transparent);
}
.vp5-barre em { margin-top: .6cqw; text-align: center; font-style: normal; font-size: max(7px, 1.8cqw); font-weight: 700; color: rgba(255, 255, 255, .72); }
.vp-on .vp5-barre i { animation: vp5-barre .65s cubic-bezier(.2, .9, .3, 1.25) both; animation-delay: calc(4.3s + var(--k) * .15s); }
@keyframes vp5-barre { from { transform: scaleY(0); } }

/* =======================================================================
   6. FILAREADER — la bobine taguée, le bac, le suivi
   ======================================================================= */
.vp6-dial { left: 51cqw; top: 4cqw; width: 44cqw; height: 44cqw; }
.vp6-dial > * { position: absolute; }
.vp6-halo {
  inset: -7cqw; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--vp-c) 50%, transparent), transparent 62%);
}
.vp-on .vp6-halo { animation: vp6-halo 3s ease-in-out infinite; }
@keyframes vp6-halo { 0%, 100% { opacity: .55; transform: scale(.94); } 50% { opacity: 1; transform: scale(1.04); } }
.vp6-bague {
  inset: 0; border-radius: 50%;
  background: conic-gradient(#454a66, #22263a, #454a66, #22263a, #454a66, #22263a, #454a66);
  box-shadow: inset 0 0 0 .6cqw rgba(255, 255, 255, .07), 0 2.4cqw 5cqw rgba(0, 0, 0, .65);
}
.vp6-bague i {
  position: absolute; left: 50%; top: 1.1cqw; width: .5cqw; height: 1.9cqw; margin-left: -.25cqw; border-radius: .3cqw;
  background: rgba(255, 255, 255, .28); transform-origin: 50% 20.9cqw; transform: rotate(calc(var(--k) * 15deg));
}
.vp-on .vp6-bague { animation: vp6-tourne .8s 2.75s cubic-bezier(.45, 0, .2, 1) both; }
@keyframes vp6-tourne { from { transform: rotate(-60deg); } }
.vp6-ecran {
  inset: 4.6cqw; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 35%, #1d1846, #07061a 72%);
  box-shadow: inset 0 0 0 .45cqw #000, inset 0 0 3cqw rgba(124, 58, 237, .4);
}
.vp6-vue { grid-area: 1 / 1; display: flex; flex-direction: column; align-items: center; gap: .7cqw; text-align: center; color: #fff; z-index: 1; }
.vp6-v1, .vp6-v2 { opacity: 0; }
.vp-on .vp6-v1 { animation: vp6-v1 var(--vp-t) linear both; }
.vp-on .vp6-v2 { animation: vp6-v2 var(--vp-t) linear both; }
.vp-on .vp6-v3 { animation: vp6-v3 var(--vp-t) linear both; }
@keyframes vp6-v1 { 0%, 14% { opacity: 0; transform: scale(.85); } 17%, 31% { opacity: 1; transform: none; } 34%, 100% { opacity: 0; transform: scale(1.06); } }
@keyframes vp6-v2 { 0%, 34% { opacity: 0; transform: scale(.85); } 37%, 53% { opacity: 1; transform: none; } 56%, 100% { opacity: 0; transform: scale(1.06); } }
@keyframes vp6-v3 { 0%, 56% { opacity: 0; transform: scale(.85); } 59%, 100% { opacity: 1; transform: none; } }
.vp6-petit { display: inline-flex; align-items: center; gap: .6cqw; font-size: max(6.5px, 1.85cqw); font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: rgba(255, 255, 255, .72); white-space: nowrap; }
.vp6-petit svg { width: max(8px, 2cqw); height: max(8px, 2cqw); }
.vp6-violet { color: #c4b5fd; }
.vp6-moyen { font-size: max(8.5px, 2.9cqw); font-weight: 850; white-space: nowrap; }
.vp6-grand { font-size: max(12px, 5cqw); font-weight: 900; line-height: 1; white-space: nowrap; }
.vp6-bacs { position: relative; display: flex; gap: .8cqw; margin: .4cqw 0; }
.vp6-bacs i {
  display: grid; place-items: center; width: 4.2cqw; height: 4.2cqw; border-radius: 1cqw;
  background: var(--c); box-shadow: inset 0 0 0 .25cqw rgba(255, 255, 255, .3);
}
.vp6-bacs em { font-style: normal; font-size: max(6px, 1.7cqw); font-weight: 900; color: #fff; text-shadow: 0 0 .5cqw #000, 0 0 .5cqw #000; }
.vp6-curseur {
  position: absolute; left: -.6cqw; top: -.6cqw; width: 5.4cqw; height: 5.4cqw; border-radius: 1.3cqw;
  box-shadow: 0 0 0 .4cqw #fff, 0 0 2cqw #a78bfa; transform: translateX(5cqw);
}
.vp-on .vp6-curseur { animation: vp6-curseur var(--vp-t) linear both; }
@keyframes vp6-curseur { 0%, 39% { transform: translateX(0); } 44%, 100% { transform: translateX(5cqw); } }
.vp6-anneau { position: absolute; inset: .9cqw; width: calc(100% - 1.8cqw); height: calc(100% - 1.8cqw); transform: rotate(-90deg); }
.vp6-anneau circle { fill: none; stroke-width: 5; }
.vp6-anneau-fond { stroke: rgba(255, 255, 255, .08); }
.vp6-anneau-plein { stroke: var(--vp-c); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 76; filter: drop-shadow(0 0 1.2cqw var(--vp-c)); }
.vp-on .vp6-anneau-plein { animation: vp6-anneau 1.4s 4.6s ease-out both; }
@keyframes vp6-anneau { from { stroke-dashoffset: 100; } }
.vp6-geant { font-size: max(15px, 7.6cqw); font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.vp6-geant small { font-size: .45em; margin-left: .3cqw; color: #c4b5fd; }
.vp6-pastilles { display: flex; gap: .8cqw; margin-top: .3cqw; }
.vp6-pastilles i { width: 2.2cqw; height: 2.2cqw; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 .25cqw rgba(255, 255, 255, .22); }
.vp6-pastilles .vp6-sert { box-shadow: 0 0 0 .4cqw #fff; }
.vp6-reflet { inset: 0; border-radius: 50%; z-index: 2; pointer-events: none; background: linear-gradient(160deg, rgba(255, 255, 255, .15), transparent 42%); }
.vp6-ondes { left: 52cqw; top: 26cqw; width: 0; height: 0; z-index: 3; }
.vp6-ondes i { position: absolute; left: -5cqw; top: -5cqw; width: 10cqw; height: 10cqw; border-radius: 50%; border: .45cqw solid #c4b5fd; opacity: 0; }
.vp-on .vp6-ondes i { animation: vp6-onde 1.1s ease-out both; }
.vp-on .vp6-ondes i:nth-child(1) { animation-delay: 1.05s; }
.vp-on .vp6-ondes i:nth-child(2) { animation-delay: 1.3s; }
.vp-on .vp6-ondes i:nth-child(3) { animation-delay: 1.55s; }
@keyframes vp6-onde { from { opacity: .95; transform: scale(.3); } to { opacity: 0; transform: scale(2.2); } }
.vp6-bobine { left: 33cqw; top: 17cqw; width: 10cqw; height: 18cqw; z-index: 4; transform: rotate(-8deg); }
.vp6-puce {
  position: absolute; left: 50%; top: 50%; z-index: 3; width: 5cqw; height: 5cqw; margin: -2.5cqw 0 0 -2.5cqw;
  display: grid; place-items: center; border-radius: 50%; color: #fff; background: #7c3aed;
  box-shadow: 0 0 0 .5cqw rgba(196, 181, 253, .35), 0 0 3cqw #7c3aed;
}
.vp6-puce svg { width: 58%; height: 58%; }
.vp-on .vp6-bobine { animation: vp6-bobine 1.1s .2s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes vp6-bobine { from { opacity: 0; transform: translateX(-28cqw) rotate(-24deg); } }
.vp6-atouts { left: 4cqw; top: 5cqw; width: 34cqw; display: flex; flex-direction: column; align-items: flex-start; gap: 1.5cqw; }
.vp6-atouts span, .vp6-compat {
  display: inline-flex; align-items: center; gap: .9cqw; padding: .9cqw 1.8cqw; border-radius: 2.4cqw;
  font-size: max(8px, 2.2cqw); font-weight: 700; line-height: 1.25; color: #fff;
  background: rgba(124, 58, 237, .2); box-shadow: inset 0 0 0 1px rgba(167, 139, 250, .4);
}
.vp6-atouts svg { flex: none; width: max(10px, 2.6cqw); height: max(10px, 2.6cqw); color: #c4b5fd; }
.vp-on .vp6-atouts span { animation: vplus-pop .45s both; animation-delay: calc(5.3s + var(--k) * .25s); }
.vp6-compat { left: 4cqw; top: 47cqw; max-width: 44cqw; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); font-weight: 600; }
.vp6-compat b { font-weight: 850; }
.vp6-compat svg { flex: none; width: max(10px, 2.6cqw); height: max(10px, 2.6cqw); color: #4ade80; }
.vp-on .vp6-compat { animation: vplus-pop .45s 5.9s both; }

/* =======================================================================
   7. DONNÉES — d'où vient chaque couleur, les alertes, acheté / consommé
   ======================================================================= */
.vp7-teintes { left: 4cqw; top: 5cqw; width: 42cqw; display: grid; gap: 1.6cqw; }
.vp7-teinte {
  display: grid; grid-template-columns: 5.4cqw minmax(0, 1fr) auto; align-items: center; gap: 1.6cqw;
  padding: 1.2cqw 1.6cqw; border-radius: 1.6cqw;
  background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09);
}
.vp7-pastille { display: block; width: 5.4cqw; height: 5.4cqw; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 .3cqw rgba(255, 255, 255, .25); }
/* La convention du site : trait plein pour une teinte sûre, tirets pour
   une teinte lue sur une photo, pointillés pour une teinte déduite du nom. */
.vp7-src-photo .vp7-pastille { outline: .35cqw dashed rgba(255, 255, 255, .8); outline-offset: .35cqw; }
.vp7-src-nom .vp7-pastille   { outline: .35cqw dotted rgba(255, 255, 255, .8); outline-offset: .35cqw; }
.vp7-nom { font-size: max(9px, 2.5cqw); font-weight: 800; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vp7-source {
  display: inline-flex; align-items: center; gap: .6cqw; padding: .5cqw 1.3cqw; border-radius: 999px;
  font-style: normal; font-size: max(7px, 1.9cqw); font-weight: 800; white-space: nowrap;
  color: #fae8ff; background: color-mix(in srgb, var(--vp-c) 24%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--vp-c) 55%, transparent);
}
.vp7-source svg { width: max(8px, 2.1cqw); height: max(8px, 2.1cqw); }
.vp-on .vp7-teinte { animation: vp7-entre .45s ease-out both; animation-delay: calc(.3s + var(--k) * .22s); }
.vp-on .vp7-source { animation: vplus-pop .45s both; animation-delay: calc(.65s + var(--k) * .22s); }
@keyframes vp7-entre { from { opacity: 0; transform: translateX(-3cqw); } }
.vp7-alertes { left: 50cqw; top: 5cqw; width: 46cqw; display: grid; gap: 1.4cqw; }
.vp7-alerte {
  display: grid; grid-template-columns: 1.8cqw minmax(0, 1fr) auto; align-items: center; gap: 1.2cqw;
  padding: 1.15cqw 1.6cqw; border-radius: 1.4cqw;
  font-size: max(8px, 2.1cqw);
  background: rgba(251, 191, 36, .10); box-shadow: inset 0 0 0 1px rgba(251, 191, 36, .38);
}
/* L'ambre : une alerte est un état, c'est sa couleur sur tout le site. */
.vp7-alerte i { width: 1.8cqw; height: 1.8cqw; min-width: 6px; min-height: 6px; border-radius: 50%; background: #fbbf24; box-shadow: 0 0 1.4cqw #fbbf24; }
.vp7-alerte b { font-weight: 800; line-height: 1.15; color: #fde68a; }
.vp7-alerte span { color: rgba(255, 255, 255, .72); white-space: nowrap; font-variant-numeric: tabular-nums; }
.vp-on .vp7-alerte { animation: vp7-alerte .6s cubic-bezier(.2, .9, .3, 1.3) both; animation-delay: calc(1.8s + var(--k) * .45s); }
@keyframes vp7-alerte { 0% { opacity: 0; transform: translateX(7cqw); } 70% { transform: translateX(-.8cqw); } 100% { opacity: 1; transform: none; } }
.vp7-courbes {
  left: 50cqw; top: 30cqw; width: 46cqw; height: 26cqw; padding: 1.6cqw 2cqw;
  border-radius: 1.6cqw; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09);
}
/* Le dessin garde ses proportions (120 × 50) : avec un trait « non mis à
   l'échelle », Chrome calcule les tirets en pixels et la courbe ne se
   dessinait qu'à moitié. */
.vp7-courbes svg { width: 100%; height: auto; aspect-ratio: 120 / 50; overflow: visible; }
.vp7-courbes path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.vp7-axe { stroke: rgba(255, 255, 255, .16); stroke-width: .8; }
.vp7-achete { stroke: var(--vp-c2); stroke-width: 1.8; stroke-dasharray: 100; stroke-dashoffset: 0; }
.vp7-consomme { stroke: var(--vp-c); stroke-width: 2.4; stroke-dasharray: 100; stroke-dashoffset: 0; filter: drop-shadow(0 0 .8cqw var(--vp-c)); }
.vp-on .vp7-achete   { animation: vp7-trace 1.4s 3.2s ease-out both; }
.vp-on .vp7-consomme { animation: vp7-trace 1.5s 3.5s ease-out both; }
@keyframes vp7-trace { from { stroke-dashoffset: 100; } }
.vp7-legende { display: flex; flex-wrap: wrap; gap: .6cqw 3cqw; margin-top: 1.2cqw; font-size: max(7px, 1.9cqw); font-weight: 700; color: rgba(255, 255, 255, .78); }
.vp7-legende em { display: inline-flex; align-items: center; gap: .8cqw; font-style: normal; }
.vp7-legende em::before { content: ''; width: 3cqw; height: .55cqw; min-height: 2px; border-radius: 1cqw; }
.vp7-l-achete::before   { background: var(--vp-c2); }
.vp7-l-consomme::before { background: var(--vp-c); }
.vp-on .vp7-legende { animation: vplus-monte .5s 4.6s both; }

/* ---------------------------------------------------------------- calme
   Qui a demandé que rien ne bouge voit chaque scène sur son résultat. */
@media (prefers-reduced-motion: reduce) {
  .vplus *, .vplus *::before, .vplus *::after { animation: none !important; transition: none !important; }
}
