/* ==========================================================================
   VARIANTE B · APPLICATION : « Juste les pièces dont vous avez besoin »
   Une planche d'autocollants (les modules). On en décolle un : il vole et se colle
   dans l'application, à l'ordinateur et sur le téléphone en même temps.
   Tout est préfixé vb-. L'application est dessinée à taille fixe (760 × 475 et 250 × 520)
   puis mise à l'échelle par le JS (--k), comme une vraie capture réduite.
   ========================================================================== */
.vb-sig:last-child { padding-bottom: calc(var(--biais) + 80px); }

.vb-atelier { position: relative; display: grid; grid-template-columns: 440px minmax(0, 1fr); gap: clamp(40px, 4.6vw, 84px); align-items: center; margin-top: clamp(40px, 5vw, 70px); }

/* ---------- la planche d'autocollants ---------- */
.vb-planche { position: relative; z-index: 5; min-width: 0; rotate: -1.2deg; }
/* l'ombre de la boîte est sur son corps (le papier découpé et le ruban) : la bulle d'aide garde la sienne, plus petite */
.vb-planche__corps { position: relative; filter: drop-shadow(10px 10px 0 var(--nuit)); }
.vb-planche__ruban { position: absolute; z-index: 2; top: -14px; right: -34px; width: 128px; height: auto; rotate: 38deg; pointer-events: none; user-select: none; }
.vb-planche__papier { padding: 34px 30px 28px; color: var(--blanc);
  background: radial-gradient(rgba(246, 246, 247, .07) 1.2px, transparent 1.7px) 0 0 / 12px 12px, var(--charbon);
  clip-path: polygon(0 1.2%, 6% 0, 14% .9%, 23% .2%, 31% 1.1%, 42% .3%, 55% 1%, 63% .2%, 74% .8%, 86% 0, 94% .9%, 100% .3%, 99.4% 22%, 100% 47%, 99.3% 71%, 100% 99%, 91% 99.5%, 80% 98.7%, 69% 100%, 57% 99%, 46% 99.7%, 34% 98.6%, 22% 99.8%, 11% 98.9%, 0 99.6%, .6% 74%, 0 51%, .7% 26%); }
.vb-planche__tete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.vb-planche__nom { margin: 0 0 0 -4px; font-size: 14px; rotate: -2deg; }
.vb-planche__consigne { margin: 14px 0 0; max-width: 38ch; font: 500 13px/1.5 var(--mono); color: var(--gris); }
.vb-consigne--doigt, .vb-consigne--bande { display: none; }
@media (max-width: 700px) { .vb-consigne--bande { display: inline; } }
@media (hover: none), (pointer: coarse) { .vb-consigne--souris { display: none; } .vb-consigne--doigt { display: inline; } }
.vb-planche__note { display: flex; align-items: flex-start; gap: 10px; margin: 26px 0 0; padding-top: 18px; border-top: 2px dashed rgba(246, 246, 247, .16); font: 500 13px/1.5 var(--mono); color: var(--gris); }
.vb-planche__note i { flex: none; margin-top: 1px; font-size: 18px; color: var(--jaune); }

/* recommencer : discret, le surlignage reste dans la largeur du texte */
.vb-reprendre { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 .35em; border: 0; border-radius: 2px; background: linear-gradient(var(--jaune), var(--jaune)) 0 calc(100% - 8px) / 100% 2px no-repeat; color: var(--blanc); font: 700 16px/1 var(--bouton); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; transition: background-size .2s var(--rapide), background-position .2s var(--rapide), color .15s; }
.vb-reprendre i { font-size: 17px; }
@media (hover: hover) { .vb-reprendre:is(:hover, :focus-visible) { background-size: 100% 100%; background-position: 0 0; color: var(--nuit); } }
.vb-reprendre:focus-visible { outline: 3px solid var(--blanc); outline-offset: 3px; }

/* les pièces : autocollants détourés à contour jaune */
.vb-pieces { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: 20px 18px; margin: 24px 0 0; padding: 6px 4px 8px 6px; list-style: none; }
.vb-pieces li { display: flex; }
.vb-piece { --rot: -2deg; position: relative; display: inline-flex; padding: 0; border: 0; border-radius: 999px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; rotate: var(--rot); transition: rotate .35s var(--claque); -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.vb-pieces li:nth-child(4n+2) .vb-piece { --rot: 2.5deg; }
.vb-pieces li:nth-child(4n+3) .vb-piece { --rot: -1deg; }
.vb-pieces li:nth-child(4n) .vb-piece { --rot: 3.5deg; }
.vb-pieces li:nth-child(5n) .vb-piece { --rot: -3.5deg; }
.vb-piece:focus-visible { --rot: 0deg; }
@media (hover: hover) { .vb-piece:hover { --rot: 0deg; } }
.vb-piece:focus-visible { outline: 3px solid var(--jaune); outline-offset: 10px; }
.vb-piece { user-select: none; -webkit-user-select: none; }
@media (hover: hover) and (pointer: fine) { .vb-piece[aria-pressed="false"] { cursor: grab; } }
.vb-auto { position: relative; display: inline-flex; align-items: center; gap: 9px; min-height: 50px; padding: 6px 16px 6px 6px; border-radius: 999px; color: var(--nuit);
  background: radial-gradient(rgba(23, 23, 26, .07) 1px, transparent 1.4px) 0 0 / 6px 6px, #fff;
  box-shadow: 0 0 0 4px var(--jaune), 0 0 0 6px var(--nuit), 7px 8px 0 6px rgba(0, 0, 0, .45); }
.vb-auto__icone { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--nuit); color: #fff; font-size: 21px; }
.vb-pieces li:nth-child(3n+2) .vb-auto__icone { background: var(--rouge); }
.vb-auto__nom { min-width: 0; max-width: 7.7em; font: 800 14px/1.02 var(--titre); letter-spacing: .03em; text-transform: uppercase; }

/* la trace laissée sur la planche quand la pièce est dans l'appli */
.vb-piece__trace { position: absolute; inset: -2px; display: flex; align-items: center; gap: 9px; padding: 6px 14px 6px 6px; border: 2px dashed rgba(246, 246, 247, .4); border-radius: 999px; color: rgba(246, 246, 247, .62); opacity: 0; transition: opacity .2s, border-color .15s, color .15s; }
.vb-piece__trace > i { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border: 2px dashed currentColor; border-radius: 50%; font-size: 15px; transition: background .15s, border-color .15s, color .15s; }
.vb-piece__trace b { min-width: 0; max-width: 7.7em; font: 800 14px/1.02 var(--titre); letter-spacing: .03em; text-transform: uppercase; }
.vb-piece[aria-pressed="true"] .vb-auto, .vb-piece.vb-piece--attente .vb-auto { opacity: 0; }
.vb-piece[aria-pressed="true"] .vb-piece__trace, .vb-piece.vb-piece--attente .vb-piece__trace { opacity: 1; }
@media (hover: hover) { .vb-piece[aria-pressed="true"]:is(:hover, :focus-visible) .vb-piece__trace { border-color: var(--rouge); color: #fff; } }
@media (hover: hover) { .vb-piece[aria-pressed="true"]:is(:hover, :focus-visible) .vb-piece__trace > i { border-style: solid; border-color: var(--rouge); background: var(--rouge); } }

/* ---------- la scène : ordinateur + téléphone ---------- */
.vb-scene { position: relative; min-width: 0; padding-top: 26px; }
.vb-compte { position: absolute; z-index: 4; top: 4px; left: clamp(12px, 3%, 34px); margin: 0; font-size: 15px; rotate: -2.5deg; }
.vb-compte b { display: inline-block; min-width: .75em; color: var(--jaune); text-align: center; font-variant-numeric: tabular-nums; }
.vb-appareils { --tw: clamp(168px, 15vw, 218px); position: relative; padding: 0 calc(var(--tw) - 34px) 30px 0; }
.vb-ordi { position: relative; z-index: 1; }
.vb-appareils::before { content: ""; position: absolute; inset: -18px -14px -6px -18px; border: 3px dashed var(--nuit); border-radius: 18px; opacity: 0; transition: opacity .2s, border-color .15s; pointer-events: none; }
.vb-atelier.est-glisse .vb-appareils::before { opacity: .45; }
.vb-atelier.est-dessus .vb-appareils::before { opacity: 1; border-color: var(--rouge); }
.vb-ordi__ecran { padding: clamp(8px, .9vw, 13px); border-radius: clamp(10px, 1.2vw, 18px) clamp(10px, 1.2vw, 18px) 4px 4px; background: var(--nuit); box-shadow: 14px 14px 0 var(--rouge); }
.vb-vitre { position: relative; overflow: hidden; }
.vb-ordi .vb-vitre { aspect-ratio: 760 / 475; border-radius: 5px; background: #F7F7F9; }
.vb-ordi__socle { position: relative; display: block; height: clamp(11px, 1.1vw, 16px); margin: 0 -4.5%; border-radius: 2px 2px 16px 16px / 2px 2px 12px 12px; background: var(--charbon); box-shadow: 14px 10px 0 var(--rouge); }
.vb-ordi__socle::before { content: ""; position: absolute; left: 50%; top: 0; width: 14%; height: 45%; margin-left: -7%; border-radius: 0 0 8px 8px; background: var(--nuit); }
.vb-tel { position: absolute; z-index: 2; right: 0; bottom: 0; width: var(--tw); rotate: 3deg; }
.vb-tel__cadre { padding: 7px; border-radius: 32px; background: var(--nuit); box-shadow: 10px 10px 0 var(--rouge); }
.vb-tel .vb-vitre { aspect-ratio: 250 / 520; border-radius: 25px; background: #fff; }

/* l'application, dessinée à sa taille réelle puis réduite */
.vb-app, .vb-mob { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; transform-origin: 0 0; scale: var(--k, 1); color: var(--nuit); font: 500 13px/1.3 'Funnel Sans', var(--titre); text-align: left; }
.vb-app { width: 760px; height: 475px; }
.vb-mob { width: 250px; height: 520px; background: #fff; }
.vb-app p, .vb-mob p { margin: 0; }

.vb-app__barre { flex: none; display: flex; align-items: center; gap: 7px; height: 30px; padding: 0 14px; background: #E9E9EE; }
.vb-app__barre > i { width: 10px; height: 10px; border-radius: 50%; background: #CDCDD4; }
.vb-app__barre > i:first-child { background: var(--rouge); }
.vb-app__url { margin: 0 auto; padding: 5px 46px; border-radius: 6px; background: #fff; font: 500 10.5px/1 var(--mono); letter-spacing: .04em; color: #6B6B73; }
.vb-app__tete { flex: none; display: flex; align-items: center; gap: 18px; height: 66px; padding: 0 16px; background: #fff; border-bottom: 1px solid #E6E6EB; }
.vb-marque { flex: none; display: flex; align-items: center; gap: 9px; font: 700 15px/1 'Funnel Display', 'Funnel Sans', sans-serif; }
.vb-marque__logo { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--nuit); color: var(--jaune); font-size: 18px; }
.vb-app__menu { display: flex; gap: 5px; min-width: 0; }
.vb-tuile { position: relative; flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: #F1F1F4; color: #4A4A52; font-size: 21px; cursor: pointer; transition: background .15s, color .15s; }
@media (hover: hover) { .vb-tuile:hover { background: #E4E4EA; } }
.vb-tuile.est-actif { background: var(--rouge); color: #fff; }
.vb-tuile.est-actif::after { content: ""; position: absolute; left: 50%; bottom: -12px; width: 18px; height: 3px; margin-left: -9px; border-radius: 2px; background: var(--rouge); }
.vb-app__moi { flex: none; display: grid; place-items: center; width: 32px; height: 32px; margin-left: auto; border-radius: 50%; background: var(--jaune); color: var(--nuit); font-size: 16px; }
.vb-app__vue { position: relative; flex: 1; min-height: 0; overflow: hidden; padding: 20px 24px; }

.vb-mob__ile { position: absolute; left: 50%; top: 9px; width: 72px; height: 21px; margin-left: -36px; border-radius: 12px; background: #000; }
.vb-mob__statut { flex: none; display: flex; align-items: center; justify-content: space-between; height: 38px; padding: 4px 22px 0 24px; font: 700 12px/1 'Funnel Sans', sans-serif; }
.vb-mob__statut span:last-child { display: flex; gap: 3px; font-size: 12px; }
.vb-mob__tete { flex: none; padding: 10px 16px 12px; }
.vb-mob__marque { font: 600 9px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #8C8C96; }
.vb-mob__nom { margin-top: 5px !important; overflow: hidden; font: 800 21px/1.08 'Funnel Display', 'Funnel Sans', sans-serif; letter-spacing: -.01em; white-space: nowrap; text-overflow: ellipsis; }
.vb-mob__vue { position: relative; flex: 1; min-height: 0; overflow: hidden; padding: 2px 14px 12px; background: #F7F7F9; }
.vb-mob__onglets { flex: none; display: flex; justify-content: space-around; height: 54px; padding: 7px 4px 0; border-top: 1px solid #E6E6EB; background: #fff; }
.vb-onglet { flex: 0 1 48px; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; color: #8C8C96; font: 600 8px/1 'Funnel Sans', sans-serif; cursor: pointer; }
.vb-onglet > i { position: relative; font-size: 21px; }
.vb-onglet > span { max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.vb-onglet.est-actif { color: var(--rouge); }
.vb-onglet__badge { position: absolute; top: -5px; right: -12px; min-width: 17px; height: 15px; padding: 0 4px; border-radius: 8px; background: var(--rouge); color: #fff; font: 700 9px/15px 'Funnel Sans', sans-serif; font-style: normal; text-align: center; }
.vb-mob__accueil { flex: none; display: grid; place-items: center; height: 16px; background: #fff; }
.vb-mob__accueil::before { content: ""; width: 84px; height: 4px; border-radius: 2px; background: var(--nuit); }

/* ---------- les écrans des modules ---------- */
.vb-v { display: flex; flex-direction: column; height: 100%; }
.vb-v__tete { flex: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.vb-v__nom { font: 800 23px/1 'Funnel Display', 'Funnel Sans', sans-serif; letter-spacing: -.01em; }
.vb-v__desc { margin-top: 6px !important; font-size: 12.5px; color: #6B6B73; }
.vb-v__corps { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; }
.vb-v--t .vb-v__corps { gap: 8px; }
.vb-bouton { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 8px; background: var(--nuit); color: #fff; font: 700 12.5px/1 'Funnel Sans', sans-serif; white-space: nowrap; }
.vb-bouton i { font-size: 14px; }
.vb-bouton--rouge { background: var(--rouge); }
.vb-bouton--large { width: 100%; height: 38px; }
.vb-b { display: block; width: var(--w, 60%); height: 7px; border-radius: 4px; background: #E3E3E9; }
.vb-b--fonce { height: 8px; background: #BDBDC6; }
.vb-b--clair { background: rgba(255, 255, 255, .3); }
.vb-b--gros { height: 12px; background: var(--nuit); }
.vb-lignes { display: grid; gap: 6px; min-width: 0; }
.vb-pas { display: inline-flex; align-items: center; gap: 4px; height: 21px; padding: 0 9px; border-radius: 999px; background: #EEEEF2; color: #55555D; font: 700 10.5px/1 'Funnel Sans', sans-serif; white-space: nowrap; }
.vb-pas i { font-size: 11px; }
.vb-pas--r { background: #FFE1EA; color: #C2003A; }
.vb-pas--j { background: var(--jaune); color: var(--nuit); }
.vb-pas--n { background: var(--nuit); color: #fff; }
.vb-c { background: #fff; border: 1px solid #E6E6EB; border-radius: 12px; }
.vb-c__titre { font: 700 12px/1 'Funnel Sans', sans-serif; color: #55555D; }
.vb-deux { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.vb-pile { display: grid; gap: 9px; align-content: start; min-width: 0; }
.vb-v--t .vb-pile { gap: 7px; }

/* clients */
.vb-recherche { display: flex; align-items: center; gap: 9px; height: 36px; padding: 0 12px; color: #8C8C96; font-size: 12px; }
.vb-rang { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 9px 12px; }
.vb-v--t .vb-rang { grid-template-columns: 30px minmax(0, 1fr) auto; gap: 9px; padding: 8px 9px; }
.vb-av { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #fff; font-size: 16px; }
.vb-v--t .vb-av { width: 30px; height: 30px; }
.vb-av--0 { background: var(--rouge); }
.vb-av--1 { background: var(--nuit); }
.vb-av--2 { background: #8C8C96; }
.vb-av--3 { background: var(--jaune); color: var(--nuit); }
.vb-doc-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: #F1F1F4; color: #4A4A52; font-size: 18px; }
.vb-v--t .vb-doc-ic { width: 30px; height: 30px; }

/* inventaire */
.vb-grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.vb-v--t .vb-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.vb-art { display: grid; gap: 9px; padding: 9px; }
.vb-art__img { display: grid; place-items: center; height: 64px; border-radius: 8px; background: #F1F1F4; color: #4A4A52; font-size: 28px; }
.vb-v--t .vb-art__img { height: 58px; }
.vb-art__ligne { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 21px; }
.vb-jauge { position: relative; display: block; height: 6px; overflow: hidden; border-radius: 3px; background: #EEEEF2; }
.vb-jauge::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p, 50%); border-radius: 3px; background: var(--nuit); animation: vb-remplit .9s .15s var(--rapide) both; }
.vb-jauge--bas::after { background: var(--rouge); }
@keyframes vb-remplit { from { width: 0; } }

/* feuilles de temps */
.vb-semaine, .vb-punch { padding: 14px; }
.vb-hist { display: flex; align-items: flex-end; gap: 12px; height: 168px; margin-top: 14px; }
.vb-v--t .vb-hist { height: 92px; gap: 10px; margin-top: 10px; }
.vb-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; }
.vb-col i { display: block; width: 100%; height: var(--h); border-radius: 6px 6px 3px 3px; background: var(--nuit); transform-origin: 50% 100%; animation: vb-monte .7s var(--claque) both; animation-delay: calc(var(--i) * 60ms + 120ms); }
.vb-col.est-auj i { background: repeating-linear-gradient(-45deg, var(--rouge) 0 5px, #FF4D82 5px 10px); }
.vb-col b { font: 700 10px/1 var(--mono); color: #8C8C96; }
@keyframes vb-monte { from { transform: scaleY(0); } }
.vb-punch { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; }
.vb-v--o .vb-punch { height: 100%; }
.vb-horloge { position: relative; width: 84px; height: 84px; border: 5px solid var(--nuit); border-radius: 50%; background: radial-gradient(circle, var(--nuit) 4px, transparent 4.5px), #fff; }
.vb-v--t .vb-horloge { width: 66px; height: 66px; border-width: 4px; }
.vb-horloge i { position: absolute; left: 50%; bottom: 50%; width: 4px; margin-left: -2px; border-radius: 2px; background: var(--nuit); transform-origin: 50% 100%; }
.vb-horloge__h { height: 22%; rotate: 70deg; }
.vb-horloge__m { height: 36%; background: var(--rouge) !important; animation: vb-tourne 8s linear infinite; }
@keyframes vb-tourne { to { rotate: 360deg; } }
.vb-en-cours { display: inline-flex; align-items: center; gap: 6px; font: 700 12px/1 'Funnel Sans', sans-serif; color: #C2003A; }
.vb-en-cours::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--rouge); animation: vb-pouls 1.4s ease-in-out infinite; }
@keyframes vb-pouls { 50% { opacity: .25; } }

/* soumissions et signature : le document */
.vb-doc { display: grid; gap: 9px; padding: 14px 16px 16px; box-shadow: 4px 4px 0 #E3E3E9; }
.vb-v--t .vb-doc { gap: 8px; padding: 12px; }
.vb-doc__tete { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 10px; margin-bottom: 2px; border-bottom: 2px solid var(--nuit); font: 700 12.5px/1.1 'Funnel Sans', sans-serif; }
.vb-doc__logo { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: var(--nuit); color: var(--jaune); font-size: 14px; }
.vb-doc__ligne, .vb-doc__total { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.vb-doc__total { padding-top: 10px; border-top: 1px dashed #CFCFD6; font: 800 12px/1 'Funnel Sans', sans-serif; }
.vb-doc .vb-b--prix { flex: none; width: 46px; }
.vb-doc__total .vb-b--prix { width: 64px; height: 10px; background: var(--nuit); }
.vb-sign { position: relative; height: 92px; margin-top: 6px; border: 1px dashed #CFCFD6; border-radius: 10px; background: #FAFAFB; }
.vb-v--t .vb-sign { height: 76px; }
.vb-sign svg { position: absolute; left: 14px; right: 14px; top: 8px; width: calc(100% - 28px); height: calc(100% - 34px); overflow: visible; }
.vb-sign path { fill: none; stroke: var(--nuit); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; animation: vb-trace 1.1s .2s cubic-bezier(.55, .1, .4, 1) both; }
@keyframes vb-trace { from { stroke-dashoffset: 1; } }
.vb-sign__ligne { position: absolute; left: 14px; right: 14px; bottom: 22px; height: 2px; background: var(--nuit); }
.vb-sign small { position: absolute; left: 14px; bottom: 7px; font: 600 8.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #8C8C96; }
.vb-signe { animation: vb-pop .45s 1.25s var(--claque) both; }
@keyframes vb-pop { from { transform: scale(0); } }
.vb-etapes { display: grid; gap: 14px; padding: 16px 14px; }
.vb-etape { display: flex; align-items: center; gap: 10px; font: 600 12.5px/1.2 'Funnel Sans', sans-serif; color: #55555D; }
.vb-etape__ic { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #F1F1F4; color: var(--nuit); font-size: 16px; }
.vb-etape.est-dernier { color: var(--nuit); }
.vb-etape.est-dernier .vb-etape__ic { background: var(--rouge); color: #fff; animation: vb-pop .45s 1.25s var(--claque) both; }

/* photos */
.vb-puces { display: flex; gap: 6px; }
.vb-photos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.vb-v--t .vb-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.vb-pho { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 9px; background: #DADAE1; }
.vb-pho__sol { position: absolute; inset: 42% -6% 0; background: #8C8C96; clip-path: polygon(0 100%, 0 62%, 26% 12%, 46% 48%, 66% 18%, 100% 72%, 100% 100%); }
.vb-pho__soleil { position: absolute; top: 16%; right: 18%; width: 17%; aspect-ratio: 1; border-radius: 50%; background: #fff; }
.vb-pho--1 { background: #F7F1B5; } .vb-pho--1 .vb-pho__sol { background: var(--nuit); }
.vb-pho--2 { background: #FFD3DF; } .vb-pho--2 .vb-pho__sol { background: var(--rouge); }
.vb-pho--3 { background: var(--charbon); } .vb-pho--3 .vb-pho__sol { background: #55555D; } .vb-pho--3 .vb-pho__soleil { background: var(--jaune); }
.vb-pho--4 { background: #ECECF0; } .vb-pho--4 .vb-pho__sol { background: #BDBDC6; }
.vb-pho.est-ok::after { content: ""; position: absolute; top: 7px; left: 7px; width: 20px; height: 20px; border: 2px solid #fff; border-radius: 50%; background: var(--rouge) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.vb-declencheur { position: absolute; left: 50%; bottom: 12px; display: grid; place-items: center; width: 50px; height: 50px; margin-left: -25px; border: 4px solid #fff; border-radius: 50%; background: var(--rouge); color: #fff; font-size: 22px; box-shadow: 0 0 0 2px var(--nuit); }

/* paiements */
.vb-cb { position: relative; display: grid; align-content: space-between; gap: 10px; aspect-ratio: 1.62; padding: 16px; border: 0; border-radius: 14px; background: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1.5px) 0 0 / 8px 8px, var(--nuit); color: #fff; box-shadow: 6px 6px 0 var(--rouge); }
.vb-v--t .vb-cb { aspect-ratio: 1.9; padding: 13px; box-shadow: 4px 4px 0 var(--rouge); }
.vb-cb__haut, .vb-cb__bas { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.vb-cb__haut i { font-size: 22px; color: var(--jaune); }
.vb-cb__puce { width: 34px; height: 25px; border-radius: 6px; background: var(--jaune); }
.vb-cb .vb-b { height: 8px; }
.vb-solde { display: grid; gap: 10px; padding: 13px 14px; }
.vb-jauge--large { height: 10px; border-radius: 5px; }
.vb-jauge--large::after { border-radius: 5px; background: var(--rouge); }

/* notifications */
.vb-avis { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; }
.vb-v--t .vb-avis { grid-template-columns: 32px minmax(0, 1fr) auto; gap: 9px; padding: 9px 10px 9px 8px; }
.vb-avis__ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--nuit); color: #fff; font-size: 18px; }
.vb-v--t .vb-avis__ic { width: 32px; height: 32px; font-size: 16px; }
.vb-avis:first-child .vb-avis__ic { background: var(--rouge); }
.vb-avis__txt { display: grid; gap: 3px; min-width: 0; }
.vb-avis__txt b { font: 700 13px/1.2 'Funnel Sans', sans-serif; }
.vb-v--t .vb-avis__txt b { font-size: 11.5px; }
.vb-avis__txt small { font: 500 11px/1.2 'Funnel Sans', sans-serif; color: #8C8C96; }
.vb-avis__point { width: 9px; height: 9px; border-radius: 50%; background: var(--rouge); }

/* carte et trajets */
.vb-carte { position: relative; overflow: hidden; min-height: 150px;
  background:
    linear-gradient(90deg, transparent 30%, #fff 30% 32.5%, transparent 32.5%),
    linear-gradient(0deg, transparent 57%, #fff 57% 60%, transparent 60%),
    linear-gradient(28deg, transparent 52%, #fff 52% 54%, transparent 54%),
    linear-gradient(-38deg, transparent 74%, #fff 74% 76%, transparent 76%),
    #ECEBE5; }
.vb-v--o .vb-carte { height: 100%; }
.vb-v--t .vb-carte { flex: 1; min-height: 0; }
.vb-carte__eau { position: absolute; right: -10%; top: -14%; width: 42%; height: 52%; border-radius: 46% 54% 60% 40%; background: #D3DEE4; }
.vb-carte__parc { position: absolute; left: 6%; top: 8%; width: 20%; height: 30%; border-radius: 10px; background: #DCE3D2; }
.vb-route { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.vb-route path { fill: none; stroke: var(--rouge); stroke-width: 1.4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; animation: vb-trace .9s .15s ease-in-out both; }
.vb-epingle { position: absolute; left: var(--x); top: var(--y); display: grid; place-items: center; width: 26px; height: 26px; margin: -31px 0 0 -13px; border: 2px solid #fff; border-radius: 50% 50% 50% 0; background: var(--nuit); rotate: -45deg; animation: vb-pop .45s var(--claque) both; animation-delay: var(--d); }
.vb-epingle b { rotate: 45deg; color: #fff; font: 800 11px/1 'Funnel Sans', sans-serif; }
.vb-epingle:last-child { background: var(--rouge); }
.vb-arrets { display: grid; gap: 12px; padding: 14px; }
.vb-arret { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.vb-arret__n { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--nuit); color: #fff; font: 800 11px/1 'Funnel Sans', sans-serif; }
.vb-arret.est-fait .vb-arret__n { background: #BDBDC6; }
.vb-prochain { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 10px; }
.vb-prochain .vb-bouton { height: 30px; padding: 0 10px; font-size: 11px; }

/* rapports */
.vb-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.vb-kpi { display: grid; gap: 9px; padding: 12px 14px; }
.vb-kpi__haut { display: flex; align-items: center; justify-content: space-between; color: #8C8C96; font-size: 17px; }
.vb-kpi__haut .ph-trend-up { color: var(--rouge); }
.vb-graphe { display: grid; gap: 10px; padding: 13px 14px; }
.vb-graph { display: flex; align-items: flex-end; gap: 7px; height: 150px; }
.vb-v--t .vb-graph { height: 120px; gap: 6px; }
.vb-graph i { flex: 1; height: var(--h); border-radius: 4px 4px 2px 2px; background: #CFCFD6; transform-origin: 50% 100%; animation: vb-monte .7s var(--claque) both; animation-delay: calc(var(--i) * 45ms + 100ms); }
.vb-graph i:last-child { background: var(--rouge); }
.vb-graph i:nth-last-child(2) { background: var(--nuit); }
.vb-beigne-c { display: grid; justify-items: center; gap: 12px; padding: 14px; }
.vb-v--t .vb-beigne-c { grid-template-columns: auto minmax(0, 1fr); align-items: center; justify-items: start; padding: 12px; }
.vb-beigne { display: block; width: 116px; aspect-ratio: 1; border-radius: 50%; background: conic-gradient(var(--rouge) 0 38%, var(--nuit) 0 66%, var(--jaune) 0 84%, #E3E3E9 0);
  -webkit-mask: radial-gradient(circle, transparent 45%, #000 46%); mask: radial-gradient(circle, transparent 45%, #000 46%); animation: vb-tour .9s .15s var(--rapide) both; }
.vb-v--t .vb-beigne { width: 76px; }
@keyframes vb-tour { from { transform: rotate(-120deg) scale(.6); opacity: 0; } }
.vb-legende { display: grid; gap: 6px; font: 600 11px/1 'Funnel Sans', sans-serif; color: #55555D; }
.vb-legende span { display: flex; align-items: center; gap: 6px; }
.vb-legende span::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: var(--c); }

/* vide */
.vb-vide { flex: 1; display: grid; place-content: center; justify-items: center; gap: 12px; text-align: center; color: #8C8C96; }
.vb-vide i { font-size: 44px; }
.vb-vide p { font: 600 15px/1.3 'Funnel Sans', sans-serif; }

/* ---------- le vol et le claquement ---------- */
.vb-vols { position: absolute; inset: 0; z-index: 20; pointer-events: none; }
.vb-vol { position: absolute; margin: 0; will-change: transform; }
.vb-vol.vb-auto { overflow: visible; }
.vb-vol .vb-auto__nom { flex: 0 1 auto; max-height: 2.1em; overflow: hidden; }
.vb-vol--mini { box-shadow: 0 0 0 3px var(--jaune), 0 0 0 5px var(--nuit); }
.vb-clac { position: absolute; display: grid; place-items: center; width: 108px; height: 86px; margin: -43px 0 0 -54px; }
.vb-clac img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.vb-clac b { position: relative; margin-top: -4px; color: var(--nuit); font: 900 italic 21px/1 var(--titre); letter-spacing: .02em; text-transform: uppercase; }
.vb-eclat { position: absolute; width: 16px; height: 5px; margin: -2.5px 0 0 -8px; border-radius: 3px; background: var(--jaune); box-shadow: 0 0 0 1.5px var(--nuit); }
.vb-eclat:nth-child(even) { background: var(--rouge); }

/* ---------- mouvement réduit : l'état final, sans animation ---------- */
.vb-reduit *, .vb-reduit *::before, .vb-reduit *::after { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  .vb-atelier *, .vb-atelier *::before, .vb-atelier *::after { animation: none !important; transition: none !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 1240px) {
  .vb-atelier { grid-template-columns: 400px minmax(0, 1fr); gap: 44px; }
  .vb-planche__papier { padding: 32px 24px 26px; }
  .vb-pieces { gap: 18px 14px; }
  .vb-auto { gap: 8px; padding-right: 14px; }
  .vb-auto__icone { width: 34px; height: 34px; font-size: 19px; }
  .vb-auto__nom, .vb-piece__trace b { font-size: 13px; }
  .vb-piece__trace { gap: 8px; }
  .vb-piece__trace > i { width: 32px; height: 32px; }
}
@media (max-width: 1060px) {
  .vb-atelier { grid-template-columns: minmax(0, 1fr); gap: 50px; }
  .vb-scene { order: -1; width: 100%; max-width: 820px; justify-self: center; }
  .vb-appareils { --tw: 200px; }
  .vb-planche { width: 100%; max-width: 820px; justify-self: center; }
  .vb-pieces { display: flex; flex-wrap: wrap; gap: 20px 18px; }
  .vb-planche { rotate: -.6deg; }
  .vb-planche__consigne { max-width: none; }
}
@media (max-width: 700px) {
  .vb-atelier { gap: 30px; margin-top: 34px; }
  .vb-scene { padding-top: 22px; }
  .vb-compte { left: 4px; font-size: 13px; }
  .vb-appareils { padding: 0 0 clamp(76px, 25vw, 112px) 0; }
  .vb-ordi { margin: 0 12px 0 10px; }
  .vb-ordi__ecran { padding: 6px; border-radius: 10px 10px 3px 3px; box-shadow: 8px 8px 0 var(--rouge); }
  .vb-ordi__socle { height: 9px; margin: 0 -3.5%; box-shadow: 8px 6px 0 var(--rouge); }
  .vb-tel { right: 8px; width: 38%; rotate: 4deg; }
  .vb-tel__cadre { padding: 5px; border-radius: 22px; box-shadow: 6px 6px 0 var(--rouge); }
  .vb-tel .vb-vitre { border-radius: 17px; }
  .vb-planche { rotate: none; }
  .vb-planche__papier { padding: 34px 18px 22px; }
  .vb-planche__ruban { width: 96px; top: -14px; right: -6px; rotate: 30deg; }
  .vb-planche__nom { font-size: 12.5px; }
  .vb-planche__tete { flex-wrap: nowrap; }
  .vb-reprendre { font-size: 15px; padding: 0 .2em; }
  .vb-planche__consigne { margin-top: 10px; font-size: 12.5px; }
  /* la planche devient une bande qu'on fait glisser du doigt */
  .vb-pieces { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-template-rows: auto auto; grid-auto-columns: max-content; gap: 18px 20px; margin: 14px -18px 0; padding: 14px 24px 20px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scroll-padding-inline: 24px; scrollbar-width: none; }
  .vb-pieces::-webkit-scrollbar { display: none; }
  .vb-pieces li { scroll-snap-align: start; }
  .vb-auto { min-height: 46px; padding: 5px 14px 5px 5px; gap: 8px; }
  .vb-auto__icone { width: 34px; height: 34px; font-size: 19px; }
  .vb-auto__nom, .vb-piece__trace b { max-width: 8.4em; font-size: 12.5px; }
  .vb-piece__trace > i { width: 32px; height: 32px; }
  .vb-planche__note { margin-top: 12px; padding-top: 14px; font-size: 12px; }
}

/* ---- la bulle d'aide : sous la boîte de pièces, la pointe vers le haut ; elle sautille et part dès qu'on touche à une pièce */
.vb-astuce { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 24px); width: max-content; margin: 0 auto; display: flex; align-items: center; gap: 8px; padding: 9px 13px 8px 11px; background: #fff; color: var(--nuit); border: 3px solid var(--nuit); border-radius: 12px;
  box-shadow: 3px 3px 0 var(--nuit); font: 900 clamp(12px, 1.1vw, 15px)/1.05 var(--titre); text-transform: uppercase; white-space: nowrap; rotate: 1.2deg; pointer-events: none;
  animation: vb-astuce 1.6s ease-in-out infinite; transition: opacity .3s, scale .3s; }
.vb-astuce::before, .vb-astuce::after { content: ""; position: absolute; left: 50%; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.vb-astuce::before { top: -16px; width: 20px; height: 16px; margin-left: -10px; background: var(--nuit); }
.vb-astuce::after { top: -9px; width: 13px; height: 11px; margin-left: -6.5px; background: #fff; }
.vb-astuce i { font-size: 1.6em; color: var(--rouge); }
.vb-astuce__haut { display: none; }
@keyframes vb-astuce { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
.vb-a-touche .vb-astuce { opacity: 0; scale: .6; animation: none; }
/* au doigt, sur la tablette : la pièce se prend sans faire défiler la page */
@media (pointer: coarse) and (min-width: 701px) { .vb-piece { touch-action: none; } }
@media (max-width: 1060px) {
  /* les appareils passent au-dessus de la boîte : la pièce se glisse vers le haut */
  .vb-astuce__loin { display: none; } .vb-astuce__haut { display: inline; }
}
@media (max-width: 700px) {
  /* sur téléphone : on prend une pièce en la glissant vers le haut, la bande défile de côté */
  .vb-piece { touch-action: pan-x; }
}
@media (prefers-reduced-motion: reduce) { .vb-astuce { animation: none; } }
