/* Big M — Vote des Box : trajet animé au défilement, puis vote.
   Couleurs et polices de la charte (tokens du thème bigm-child), avec repli sans le thème. */

.bv {
  --bv-ink: var(--ink, #2b1406);
  --bv-muted: var(--muted, #6b4a3a);
  --bv-bg: var(--bg, #faf8f5);
  --bv-tile: var(--tile, #f2ede7);
  --bv-card: var(--card, #fff);
  --bv-orange: var(--orange, #fa5c19);
  --bv-btn: var(--btn, #c8400a);
  --bv-yellow: var(--yellow, #ffc21a);
  --bv-titres: var(--font-display, "Fredoka", "Arial Rounded MT Bold", ui-rounded, system-ui, sans-serif);
  --bv-texte: var(--font-text, "Figtree", ui-sans-serif, system-ui, sans-serif);
  --bv-mer: #d9eaf2;
  --bv-haut: 100px;   /* place de l'en-tête collant du site */
  --bv-bas: 22px;     /* place de la barre d'onglets sur mobile */
  --bv-van: clamp(128px, 34vw, 190px);   /* largeur du van */
  --bv-g: calc(var(--bv-van) / 10);      /* unité des gags : un dixième du van */
  color: var(--bv-ink);
  font-family: var(--bv-texte);
}
@media (max-width: 760px) { .bv { --bv-haut: 92px; --bv-bas: calc(104px + env(safe-area-inset-bottom, 0px)); } }
.bv *, .bv *::before, .bv *::after { box-sizing: border-box; }
.bv p { margin: 0; }
/* Un bloc masqué par le script le reste, même s'il est en flex ou en grille. */
.bv [hidden] { display: none !important; }
.bv-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- trajet ---------- */
/* 40 secondes de ligne de temps (trajet.js), que le défilement fait avancer. */
.bv-trajet { position: relative; height: 780vh; background: var(--bv-mer); }
/* Déjà vu, ou animations réduites : la page s'ouvre sur le vote. */
.bv-vu .bv-trajet { display: none; }
@media (prefers-reduced-motion: reduce) { .bv-trajet { display: none; } }

.bv-scene { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; isolation: isolate; background: var(--bv-mer); }
.bv-carte { position: absolute; inset: 0; width: 100%; height: 100%; display: block; --bv-u: 1; }
.bv-carte__voisins { fill: #efe8df; stroke: #d8cdc0; stroke-width: 1px; vector-effect: non-scaling-stroke; }
.bv-fondu__0 { stop-color: #d9eaf2; stop-opacity: 0; }
.bv-fondu__1 { stop-color: #d9eaf2; stop-opacity: 1; }
.bv-carte__france { fill: #fffdf8; stroke: #c9b6a3; stroke-width: 1.5px; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.bv-carte__lacs { fill: #a9d4e8; }
.bv-mont { fill: #c3ccd6; stroke: #a9b4c0; stroke-width: 1px; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.bv-mont__neige { fill: #fff; }
/* Sommets : --k est la taille de chacun, --bv-m la correction du zoom posée par le script. */
.bv-carte__sommets use { transform: scale(calc(var(--k, 1) * var(--bv-m, 1))); }
.bv-carte__route { fill: none; stroke: #2b1406; stroke-opacity: .28; stroke-width: calc(var(--bv-u) * 3px); stroke-linecap: round; stroke-dasharray: calc(var(--bv-u) * 1px) calc(var(--bv-u) * 9px); }
.bv-carte__fait { fill: none; stroke: var(--bv-orange); stroke-width: calc(var(--bv-u) * 5px); stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1000; stroke-dashoffset: 1000; }

/* Bords de la scène adoucis : l'en-tête en haut, les textes en bas restent lisibles. */
.bv-scene::before, .bv-scene::after { content: ""; position: absolute; left: 0; right: 0; z-index: 2; pointer-events: none; }
.bv-scene::before { top: 0; height: 170px; background: linear-gradient(#d9eaf2 20%, rgba(217, 234, 242, 0)); }
.bv-scene::after { bottom: 0; height: 46%; background: linear-gradient(rgba(217, 234, 242, 0), rgba(217, 234, 242, .92) 62%); }

/* Repères (étiquettes placées par le script). */
.bv-reperes { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.bv-repere { position: absolute; left: 0; top: 0; font: 600 14px/1.1 var(--bv-titres); white-space: nowrap; opacity: 0; transition: opacity .3s ease; will-change: transform; }
.bv-repere.is-vu { opacity: 1; }
.bv-repere__in { position: relative; display: flex; align-items: center; gap: 7px; transition: transform .45s cubic-bezier(.22, 1, .36, 1); }
.bv-repere__pt { flex: 0 0 auto; width: 12px; height: 12px; margin: -6px 0 -6px -6px; border-radius: 50%; background: var(--bv-ink); box-shadow: 0 0 0 3px #fff; display: grid; place-items: center; }
.bv-repere__nom { padding: 4px 9px; border-radius: 999px; background: rgba(255, 255, 255, .92); box-shadow: 0 1px 0 rgba(43, 20, 6, .08), 0 6px 14px -8px rgba(43, 20, 6, .4); }
/* Paris : la tour Eiffel dans une pastille. */
.bv-repere--depart .bv-repere__pt { width: 26px; height: 26px; margin: -13px 0 -13px -13px; color: var(--bv-yellow); }
.bv-repere--depart .bv-repere__pt svg { width: 17px; height: 17px; }
.bv-repere--passage { font-size: 12px; color: var(--bv-muted); }
.bv-repere--passage .bv-repere__pt { width: 8px; height: 8px; margin: -4px 0 -4px -4px; background: var(--bv-muted); box-shadow: 0 0 0 2px #fff; }
.bv-repere--ville { font-size: 11px; font-weight: 500; color: #7d6455; }
.bv-repere--ville .bv-repere__in { gap: 4px; }
.bv-repere--ville .bv-repere__pt { width: 5px; height: 5px; margin: -2.5px 0 -2.5px -2.5px; background: #a8958a; box-shadow: none; }
.bv-repere--ville .bv-repere__nom { padding: 0; background: none; box-shadow: none; text-shadow: 0 0 3px #fffdf9, 0 0 3px #fffdf9, 0 0 6px #fffdf9; }
.bv-repere--bigm .bv-repere__pt { width: 44px; height: 44px; margin: -22px 0 -22px -22px; background: #fff; box-shadow: 0 0 0 3px var(--bv-orange), 0 10px 22px -8px rgba(43, 20, 6, .5); overflow: hidden; }
.bv-repere--bigm .bv-repere__pt img { width: 34px; height: 34px; object-fit: contain; }
.bv-repere--bigm .bv-repere__nom { background: var(--bv-orange); color: #fff; font-size: 15px; }
.bv-repere--arrivee .bv-repere__pt { width: 34px; height: 34px; margin: -17px 0 -17px -17px; background: var(--bv-ink); color: var(--bv-yellow); box-shadow: 0 0 0 3px #fff; }
.bv-repere--arrivee .bv-repere__pt svg { width: 18px; height: 18px; }
.bv-repere--arrivee .bv-repere__nom { background: var(--bv-ink); color: #fff; font-size: 15px; }
/* Vue d'ensemble : Chambéry et Tignes sont voisins, leurs noms partent chacun de son côté. */
.bv-repere--bigm.is-loin .bv-repere__nom { position: absolute; right: calc(100% + 30px); top: 0; transform: translateY(-50%); }
.bv-repere--arrivee.is-loin .bv-repere__nom { position: absolute; left: 0; top: 24px; transform: translateX(-50%); }
/* Le van est sur le repère : le repère se range sous lui. */
.bv-repere--depart.is-sous .bv-repere__in { transform: translate(-50%, calc(var(--bv-van) * .2 + 24px)); }
.bv-repere--bigm.is-sous .bv-repere__in { transform: translate(calc(-50% + 11px), calc(var(--bv-van) * .2 + 40px)); }
.bv-repere--arrivee.is-sous .bv-repere__in { transform: translate(calc(-50% + 8px), calc(var(--bv-van) * .2 + 36px)); }

/* Le van. */
.bv-van { position: absolute; left: 0; top: 0; z-index: 3; width: var(--bv-van); margin: 0; pointer-events: none; will-change: transform; }
/* Pivot sur la roue avant : quand la roue arrière s'en va, c'est l'arrière qui tombe. */
.bv-van__caisse { position: relative; z-index: 2; transform: translate(-50%, -62%); transform-origin: 74.5% 96%; filter: drop-shadow(0 8px 10px rgba(43, 20, 6, .22)); pointer-events: auto; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.bv-van__svg { display: block; width: 100%; height: auto; overflow: visible; }
.bv-van__colis { position: absolute; left: 0; top: 0; z-index: 3; width: 0; height: 0; }
.bv-van__colis img { position: absolute; left: 0; top: 0; width: clamp(54px, 15vw, 78px); max-width: none; height: auto; margin: 0; transform: translate(-50%, -50%) scale(0); filter: drop-shadow(0 8px 10px rgba(43, 20, 6, .3)); will-change: transform; }

/* Neige (de plus en plus dense en approchant des Alpes). */
.bv-neige { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; overflow: hidden; }
.bv-neige i { position: absolute; top: -12px; width: 7px; height: 7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px rgba(160, 190, 210, .35); animation: bv-flocon 9s linear infinite; }
.bv-neige i:nth-child(3n) { width: 5px; height: 5px; animation-duration: 12s; }
.bv-neige i:nth-child(4n) { width: 10px; height: 10px; animation-duration: 7.5s; }
.bv-neige i:nth-child(1) { left: 3%; animation-delay: -1s; } .bv-neige i:nth-child(2) { left: 9%; animation-delay: -6s; }
.bv-neige i:nth-child(3) { left: 14%; animation-delay: -3s; } .bv-neige i:nth-child(4) { left: 19%; animation-delay: -8s; }
.bv-neige i:nth-child(5) { left: 24%; animation-delay: -2s; } .bv-neige i:nth-child(6) { left: 29%; animation-delay: -5s; }
.bv-neige i:nth-child(7) { left: 33%; animation-delay: -7s; } .bv-neige i:nth-child(8) { left: 38%; animation-delay: -1.5s; }
.bv-neige i:nth-child(9) { left: 42%; animation-delay: -4s; } .bv-neige i:nth-child(10) { left: 47%; animation-delay: -9s; }
.bv-neige i:nth-child(11) { left: 51%; animation-delay: -2.5s; } .bv-neige i:nth-child(12) { left: 56%; animation-delay: -6.5s; }
.bv-neige i:nth-child(13) { left: 60%; animation-delay: -.5s; } .bv-neige i:nth-child(14) { left: 64%; animation-delay: -3.5s; }
.bv-neige i:nth-child(15) { left: 68%; animation-delay: -7.5s; } .bv-neige i:nth-child(16) { left: 72%; animation-delay: -5.5s; }
.bv-neige i:nth-child(17) { left: 76%; animation-delay: -1.2s; } .bv-neige i:nth-child(18) { left: 80%; animation-delay: -8.5s; }
.bv-neige i:nth-child(19) { left: 84%; animation-delay: -4.5s; } .bv-neige i:nth-child(20) { left: 88%; animation-delay: -2.2s; }
.bv-neige i:nth-child(21) { left: 92%; animation-delay: -6.2s; } .bv-neige i:nth-child(22) { left: 96%; animation-delay: -3.2s; }
.bv-neige i:nth-child(23) { left: 6%; animation-delay: -10s; } .bv-neige i:nth-child(24) { left: 36%; animation-delay: -11s; }
.bv-neige i:nth-child(25) { left: 58%; animation-delay: -10.5s; } .bv-neige i:nth-child(26) { left: 86%; animation-delay: -11.5s; }
@keyframes bv-flocon { to { transform: translate(34px, 108vh); } }

/* Bandeau du haut : logos, fil du trajet, kilomètres. */
.bv-hud { position: absolute; left: 0; right: 0; top: var(--bv-haut); z-index: 6; display: flex; flex-direction: column; align-items: center; gap: 10px; padding-inline: 16px; pointer-events: none; }
.bv-logos { display: flex; align-items: center; justify-content: center; gap: 12px; font: 600 20px/1 var(--bv-titres); color: var(--bv-ink); }
.bv-logos img { width: 56px; height: 56px; object-fit: contain; }
.bv-logos .bv-logos__campagne { width: auto; height: clamp(64px, 11vw, 92px); max-width: 100%; }
.bv-logos--hud { gap: 8px; font-size: 16px; }
.bv-logos--hud img { width: 40px; height: 40px; }
.bv-logos--hud .bv-logos__campagne { width: auto; height: 46px; }
.bv-hud__trajet { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .94); box-shadow: 0 0 0 1px rgba(43, 20, 6, .06), 0 10px 24px -14px rgba(43, 20, 6, .45); font: 600 14px/1 var(--bv-titres); }
.bv-hud__fil { position: relative; width: clamp(70px, 22vw, 180px); height: 6px; border-radius: 3px; background: var(--bv-tile); overflow: hidden; }
.bv-hud__fil i { position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(0); background: var(--bv-orange); border-radius: 3px; }
.bv-hud__trajet b { min-width: 68px; text-align: right; font-variant-numeric: tabular-nums; color: var(--bv-btn); }

/* Étapes : une carte de texte à la fois, en bas. */
/* « .bv » devant : le thème remet à zéro le padding des listes qui portent une classe. */
.bv .bv-etapes { position: absolute; left: 0; right: 0; bottom: var(--bv-bas); z-index: 6; display: grid; margin: 0; padding: 0 16px; list-style: none; justify-items: center; }
.bv-etape { grid-area: 1 / 1; align-self: end; width: min(100%, 460px); padding: 18px 20px 20px; border-radius: 24px; background: rgba(255, 255, 255, .96); box-shadow: 0 0 0 1px rgba(43, 20, 6, .06), 0 22px 44px -22px rgba(43, 20, 6, .5); opacity: 0; visibility: hidden; }
/* L'apparition est jouée par la ligne de temps (trajet.js) ; la classe ne règle que la visibilité (liens, lecteurs d'écran). */
.bv-etape.is-la { opacity: 1; visibility: visible; }
.bv-etape .bv-etape__sur { font: 600 12px/1 var(--bv-titres); letter-spacing: .08em; text-transform: uppercase; color: var(--bv-btn); }
.bv-etape .bv-etape__titre { margin-top: 6px; font: 600 clamp(22px, 5.4vw, 28px)/1.1 var(--bv-titres); color: var(--bv-ink); }
.bv-etape p + p { margin-top: 8px; }
.bv-etape p { font-size: 15.5px; line-height: 1.45; color: var(--bv-muted); }
.bv-etape__lien { color: var(--bv-btn); font-weight: 600; text-underline-offset: 3px; }
.bv-etape .bv-btn { margin-top: 4px; }
.bv-defile { display: flex; align-items: center; gap: 8px; margin-top: 12px !important; font: 600 14px/1 var(--bv-titres) !important; color: var(--bv-ink) !important; }
.bv-defile svg { width: 20px; height: 20px; animation: bv-descend 1.4s ease-in-out infinite; }
.bv-etape .bv-astuce { margin-top: 4px; font-size: 13.5px; }
@keyframes bv-descend { 50% { transform: translateY(5px); } }

.bv-passer { position: absolute; right: 14px; top: calc(var(--bv-haut) + 2px); z-index: 7; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px; background: rgba(255, 255, 255, .94); box-shadow: 0 0 0 1px rgba(43, 20, 6, .08); color: var(--bv-ink); font: 600 14px/1 var(--bv-titres); text-decoration: none; }
.bv-passer svg { width: 16px; height: 16px; }
.bv-passer:hover { background: #fff; color: var(--bv-btn); }
@media (max-width: 760px) {
  .bv-hud { align-items: flex-start; }
  .bv-logos--hud { display: none; }
  .bv-hud__trajet { padding: 8px 12px; font-size: 13px; gap: 8px; }
  .bv-hud__trajet b { min-width: 60px; }
}
@media (min-width: 900px) {
  .bv .bv-etapes { justify-items: start; padding-left: max(32px, calc((100vw - 1240px) / 2 + 24px)); bottom: 48px; }
  .bv-scene::after { height: 30%; }
  .bv-passer { right: max(24px, calc((100vw - 1240px) / 2 + 24px)); }
}

/* ---------- gags du trajet (animés par la ligne de temps) ---------- */
.bv-gags { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.bv-gags > * { position: absolute; }
/* La roue qui s'échappe : posée sur l'essieu arrière, invisible tant qu'elle tient. */
.bv-roue-folle { z-index: 3; left: calc(var(--bv-g) * -3.044); top: calc(var(--bv-g) * .242); width: calc(var(--bv-g) * 1.36); height: calc(var(--bv-g) * 1.36); opacity: 0; }
.bv-roue-folle svg { display: block; width: 100%; height: 100%; }
.bv-fumee { z-index: 1; left: calc(var(--bv-g) * -3.2); top: calc(var(--bv-g) * .6); }
.bv-fumee i { position: absolute; left: 0; top: 0; width: calc(var(--bv-g) * 1.1); height: calc(var(--bv-g) * 1.1); margin: calc(var(--bv-g) * -.55); border-radius: 50%; background: radial-gradient(closest-side, #d9d1c8 45%, rgba(217, 209, 200, 0)); opacity: 0; }
.bv-triangle { z-index: 1; left: calc(var(--bv-g) * -8.2); top: calc(var(--bv-g) * -.1); width: calc(var(--bv-g) * 1.9); transform-origin: 50% 100%; }
.bv-triangle svg { display: block; width: 100%; height: auto; }
/* Bulles : paroles en blanc, onomatopées en jaune. */
.bv-bulle { z-index: 5; left: calc(var(--bv-g) * .4); bottom: calc(var(--bv-g) * 3.9); padding: .42em .8em; border-radius: 1em 1em 1em .25em; background: #fff; color: var(--bv-ink); font: 600 clamp(13px, calc(var(--bv-g) * .95), 18px)/1.15 var(--bv-titres); white-space: nowrap; box-shadow: 0 0 0 2px var(--bv-ink), 0 8px 16px -8px rgba(43, 20, 6, .5); transform-origin: 0 100%; opacity: 0; pointer-events: none; }
.bv-bulle--cri { padding: .3em .7em; border-radius: .5em; background: var(--bv-yellow); font-size: clamp(15px, calc(var(--bv-g) * 1.15), 22px); letter-spacing: .02em; text-transform: uppercase; }
/* Au départ, le van est tout en haut de la carte : la bulle se met devant lui, pas au-dessus. */
.bv-bulle[data-bv-bulle="depart"] { left: calc(var(--bv-g) * 5.4); bottom: calc(var(--bv-g) * 1.1); transform-origin: 0 50%; border-radius: 1em 1em 1em .25em; }
.bv-bulle[data-bv-bulle="psch"], .bv-bulle[data-bv-bulle="clac"] { left: auto; right: calc(var(--bv-g) * 4.7); bottom: calc(var(--bv-g) * 1.5); transform-origin: 100% 100%; border-radius: .5em; }
/* Réponse à un toucher (van, vache, marmotte). */
.bv-clic { position: absolute; z-index: 6; left: calc(var(--bv-g) * 2.2); bottom: calc(var(--bv-g) * 5.6); padding: .3em .7em; border-radius: .5em; background: var(--bv-orange); color: #fff; font: 600 clamp(15px, calc(var(--bv-g) * 1.1), 20px)/1.15 var(--bv-titres); text-transform: uppercase; white-space: nowrap; box-shadow: 0 0 0 2px var(--bv-ink); opacity: 0; pointer-events: none; }
.is-clic > .bv-clic, .is-clic > .bv-gags > .bv-clic { animation: bv-clic .9s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes bv-clic { 0% { opacity: 0; transform: scale(.2) rotate(-12deg); } 22% { opacity: 1; transform: scale(1.08) rotate(4deg); } 70% { opacity: 1; transform: scale(1) rotate(-3deg); } 100% { opacity: 0; transform: scale(.9) translateY(-14px); } }
.bv-van.is-clic .bv-van__svg { animation: bv-saut .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes bv-saut { 0%, 100% { transform: none; } 35% { transform: translateY(-9px) rotate(-2deg); } 70% { transform: translateY(1px); } }

/* La vache charolaise et la marmotte : posées sur la carte, comme les repères. */
.bv-vache, .bv-marmotte { position: absolute; left: 0; top: 0; opacity: 0; pointer-events: auto; cursor: pointer; will-change: transform; -webkit-tap-highlight-color: transparent; }
.bv-vache__in { position: absolute; left: calc(var(--bv-g) * -3.1); top: calc(var(--bv-g) * -4.25); width: calc(var(--bv-g) * 6.2); }
.bv-vache__in svg, .bv-marmotte__in svg { display: block; width: 100%; height: auto; overflow: visible; }
.bv-vache .bv-bulle, .bv-vache .bv-clic { position: absolute; left: auto; right: calc(var(--bv-g) * .2); bottom: calc(var(--bv-g) * 4.7); transform-origin: 100% 100%; }
.bv-vache.is-clic .bv-vache__in svg, .bv-marmotte.is-clic .bv-marmotte__in svg { animation: bv-secoue .5s ease-in-out; }
@keyframes bv-secoue { 0%, 100% { transform: none; } 25% { transform: rotate(-5deg); } 60% { transform: rotate(4deg); } }
.bv-marmotte__in { position: absolute; left: calc(var(--bv-g) * -1.9); top: calc(var(--bv-g) * -3.5); width: calc(var(--bv-g) * 3.8); }
.bv-marmotte__in svg { overflow: hidden; }
.bv-marmotte .bv-bulle, .bv-marmotte .bv-clic { position: absolute; left: calc(var(--bv-g) * 1.2); bottom: calc(var(--bv-g) * 3.1); }

/* ---------- arrivée : la piste de Tignes ---------- */
.bv-piste { position: absolute; inset: 0; z-index: 4; overflow: hidden; visibility: hidden; pointer-events: none; --bv-horizon: 30%; --bv-sk: 56px; }
.bv-scene.is-pret .bv-piste { visibility: visible; }
.bv-piste > * { position: absolute; }
.bv-piste__ciel { inset: 0; background: linear-gradient(#a9d8f0, #e3f3fb 55%); }
.bv-piste__monts { left: 0; top: calc(var(--bv-horizon) - 21vh); width: 100%; height: 24vh; }
.bv-piste__pente { left: 0; top: calc(var(--bv-horizon) - 2.5vh); width: 100%; height: calc(100% - var(--bv-horizon) + 2.5vh); }
.bv-piste__traces { inset: 0; width: 100%; height: 100%; }
.bv-piste__traces path { fill: none; stroke: #c7dfec; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.bv-sapin { width: calc(var(--bv-sk) * .62); margin: calc(var(--bv-sk) * -.9) 0 0 calc(var(--bv-sk) * -.31); }
.bv-sapin svg, .bv-porte svg { display: block; width: 100%; height: auto; }
.bv-porte { width: calc(var(--bv-sk) * .36); margin: calc(var(--bv-sk) * -.6) 0 0 calc(var(--bv-sk) * -.07); }
.bv-porte--r { color: #e5422e; }
.bv-porte--b { color: #2f7fc1; }
.bv-piste__van { width: calc(var(--bv-van) * .62); margin: calc(var(--bv-van) * -.3) 0 0 calc(var(--bv-van) * -.31); filter: drop-shadow(0 5px 6px rgba(43, 20, 6, .2)); }
.bv .bv-piste__panneau { margin: calc(var(--bv-van) * -.52) 0 0 calc(var(--bv-van) * -.3); padding: 4px 9px; border-radius: 7px; background: var(--bv-ink); color: #fff; font: 600 12px/1.1 var(--bv-titres); white-space: nowrap; }
.bv .bv-banniere { z-index: 3000; margin: 0; padding: 0 14px; border-left: 4px solid var(--bv-ink); border-right: 4px solid var(--bv-ink); white-space: nowrap; }
.bv-banniere span { display: block; padding: 9px 18px; border-radius: 6px; background: var(--bv-orange); color: #fff; font: 600 clamp(17px, 4.6vw, 26px)/1 var(--bv-titres); letter-spacing: .03em; text-transform: uppercase; box-shadow: 0 0 0 2px var(--bv-ink), 0 10px 18px -10px rgba(43, 20, 6, .6); }
/* Un skieur : le script place ses pieds (translate), puis le penche et le grossit (dedans). */
.bv-skieur { left: 0; top: 0; opacity: 0; pointer-events: auto; cursor: pointer; will-change: transform; -webkit-tap-highlight-color: transparent; }
.bv-skieur__in { position: absolute; left: calc(var(--bv-sk) * -.5); top: calc(var(--bv-sk) * -1.45); width: var(--bv-sk); transform-origin: 50% 95%; }
.bv-skieur__svg { display: block; width: 100%; height: auto; overflow: visible; }
.bv-skieur.is-clic .bv-skieur__svg { animation: bv-bond .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes bv-bond { 0%, 100% { transform: none; } 40% { transform: translateY(-34%) rotate(-8deg); } }
.bv-skieur__nom { position: absolute; left: 0; top: 5px; padding: 2px 7px; border-radius: 999px; background: #fff; color: var(--bv-ink); font: 600 11px/1.3 var(--bv-titres); white-space: nowrap; box-shadow: 0 0 0 1px rgba(43, 20, 6, .12); opacity: 0; }
.bv-pouf { z-index: 2500; width: calc(var(--bv-sk) * 1.3); height: calc(var(--bv-sk) * .9); margin: calc(var(--bv-sk) * -.7) 0 0 calc(var(--bv-sk) * -.65); border-radius: 50%; background: radial-gradient(closest-side, #fff 55%, rgba(255, 255, 255, 0)); opacity: 0; }
.bv-piste > .bv-bulle { z-index: 3000; left: auto; bottom: auto; transform-origin: 50% 100%; margin-left: calc(var(--bv-sk) * -.2); }

/* ---------- la même scène en vidéo (HyperFrames, ops/vote/film) ---------- */
.bv--film { --bv-haut: 26px; --bv-bas: 26px; --bv-van: 150px; }
.bv--film .bv-trajet { height: auto; }
.bv--film .bv-scene { position: relative; width: 100%; height: 100%; }
.bv--film .bv-passer, .bv--film .bv-defile, .bv--film .bv-astuce { display: none; }
.bv--film .bv-van__caisse, .bv--film .bv-vache, .bv--film .bv-marmotte, .bv--film .bv-skieur { cursor: default; }
/* En vidéo, chaque image est calculée à part : pas d'animation sans fin ni de transition (horloge du navigateur). */
.bv--film .bv-neige i { animation-iteration-count: 6; animation-fill-mode: both; }
.bv--film *, .bv--film *::before, .bv--film *::after { transition: none !important; }
.bv--film .bv-hud { align-items: center; }
.bv--film .bv-logos--hud { display: flex; }
.bv--film .bv-logos--hud .bv-logos__campagne { height: 54px; }
.bv .bv--film .bv-etapes, .bv--film.bv .bv-etapes { bottom: var(--bv-bas); padding: 0 16px; justify-items: center; }

/* ---------- écran d'attente : flyer et compte à rebours avant l'ouverture ---------- */
.bv--attente { background: linear-gradient(#cfe6f2, var(--bv-bg) 62%); }
.bv-attente { position: relative; max-width: 1120px; margin-inline: auto; padding: clamp(20px, 4vw, 44px) clamp(16px, 3vw, 32px) clamp(48px, 7vw, 84px); text-align: center; overflow: hidden; isolation: isolate; }
.bv-neige--attente { z-index: -1; opacity: .9; }
/* Le flyer de la campagne (format 2:1), aussi au-dessus du titre du vote. */
.bv-flyer { margin: 0 auto; max-width: 1040px; width: 100%; border-radius: clamp(16px, 2.6vw, 28px); overflow: hidden; background: var(--bv-tile); box-shadow: 0 0 0 1px rgba(43, 20, 6, .06), 0 26px 50px -28px rgba(43, 20, 6, .6); }
.bv-flyer img { display: block; width: 100%; height: auto; border-radius: 0; }
.bv-vote__entete .bv-flyer { width: min(100%, 880px); max-width: none; margin-bottom: 10px; }
/* Écran d'attente : le flyer laisse la place au compte à rebours, visible sans défiler. */
.bv-attente .bv-flyer { max-width: min(1040px, max(480px, calc((100vh - 470px) * 2))); }
.bv .bv-attente__sur { margin-top: clamp(20px, 3.4vw, 34px); font: 600 13px/1.2 var(--bv-titres); letter-spacing: .08em; text-transform: uppercase; color: var(--bv-btn); }
.bv-attente__titre { margin: 8px 0 0; font: 600 clamp(32px, 6.4vw, 54px)/1.04 var(--bv-titres); color: var(--bv-ink); text-wrap: balance; }
.bv-rebours { margin-top: clamp(18px, 3vw, 28px); }
.bv .bv-rebours__sur { font: 600 clamp(15px, 2.2vw, 18px)/1.2 var(--bv-titres); color: var(--bv-muted); }
.bv-rebours__cases { display: flex; justify-content: center; gap: clamp(8px, 2.2vw, 16px); margin-top: 12px; }
.bv-rebours__case { flex: 0 1 124px; min-width: 0; padding: clamp(12px, 2.4vw, 18px) 4px clamp(10px, 2vw, 14px); border-radius: 20px; background: var(--bv-ink); color: #fff; box-shadow: 0 16px 30px -18px rgba(43, 20, 6, .8); }
.bv-rebours__case > b { display: block; font: 600 clamp(34px, 9.6vw, 66px)/1 var(--bv-titres); font-variant-numeric: tabular-nums; color: var(--bv-yellow); }
.bv-rebours__case > span { display: block; margin-top: 6px; font: 600 clamp(10px, 2.6vw, 13px)/1 var(--bv-titres); letter-spacing: .08em; text-transform: uppercase; color: #fff; }
/* Dernière minute : les secondes battent. */
.is-bientot .bv-rebours__case:last-child { background: var(--bv-btn); animation: bv-bat 1s ease-in-out infinite; }
.is-bientot .bv-rebours__case:last-child > b { color: #fff; }
@keyframes bv-bat { 50% { transform: scale(1.06); } }
/* Le van attend, moteur en marche, sur une route qui défile. */
.bv-rebours__route { position: relative; height: calc(var(--bv-van) * .56); max-width: 560px; margin: clamp(16px, 3vw, 26px) auto 0; border-bottom: 6px solid rgba(43, 20, 6, .16); border-radius: 0 0 3px 3px; }
.bv-rebours__route::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: repeating-linear-gradient(90deg, #fff 0 22px, transparent 22px 44px); animation: bv-route .7s linear infinite; }
@keyframes bv-route { to { background-position: -44px 0; } }
.bv-rebours__van { position: absolute; left: 50%; bottom: -3px; width: var(--bv-van); margin-left: calc(var(--bv-van) / -2); animation: bv-moteur .34s ease-in-out infinite alternate; }
@keyframes bv-moteur { to { transform: translateY(-1.5px) rotate(-.4deg); } }
.bv-rebours__van i { position: absolute; left: -2%; bottom: 14%; width: 12px; height: 12px; border-radius: 50%; background: #cfc6bc; opacity: 0; animation: bv-pot 1.8s ease-out infinite; }
.bv-rebours__van i:nth-child(2) { animation-delay: .6s; }
.bv-rebours__van i:nth-child(3) { animation-delay: 1.2s; }
@keyframes bv-pot { 0% { opacity: .8; transform: none; } 100% { opacity: 0; transform: translate(-34px, -20px) scale(2.2); } }
/* À zéro, le van démarre et la page se recharge sur le trajet. */
.is-parti .bv-rebours__van { animation: bv-depart .9s cubic-bezier(.5, 0, .9, .4) forwards; }
@keyframes bv-depart { to { transform: translateX(120vw); } }
.bv .bv-attente__date { margin-top: clamp(18px, 3vw, 26px); font: 500 clamp(17px, 2.6vw, 21px)/1.3 var(--bv-titres); color: var(--bv-ink); }
.bv-attente__date strong { font-weight: 600; color: var(--bv-btn); }
.bv .bv-attente__texte { max-width: 620px; margin: 10px auto 0; font-size: clamp(15.5px, 2.2vw, 17px); line-height: 1.5; color: var(--bv-muted); text-wrap: pretty; }
.bv .bv-apercu { margin: 0; padding: 10px 16px; background: var(--bv-yellow); color: var(--bv-ink); font: 600 14px/1.35 var(--bv-titres); text-align: center; }
@media (prefers-reduced-motion: reduce) {
  .bv-rebours__route::after, .bv-rebours__van, .bv-rebours__van i, .is-bientot .bv-rebours__case:last-child, .is-parti .bv-rebours__van { animation: none; }
  .bv-neige--attente { display: none; }
}

/* ---------- vote ---------- */
.bv-vote { position: relative; max-width: 1240px; margin-inline: auto; padding: clamp(36px, 6vw, 72px) clamp(16px, 3vw, 32px) clamp(48px, 7vw, 88px); scroll-margin-top: 80px; }
.bv-vote__entete { display: grid; justify-items: center; gap: 12px; text-align: center; max-width: 760px; margin-inline: auto; }
.bv .bv-vote__titre { margin: 4px 0 0; font: 600 clamp(30px, 6.4vw, 54px)/1.04 var(--bv-titres); letter-spacing: -.01em; color: var(--bv-ink); text-wrap: balance; }
.bv-vote__accroche { font-size: clamp(16px, 2.2vw, 19px); line-height: 1.5; color: var(--bv-muted); text-wrap: pretty; }
.bv-vote__parcours { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 10px; font: 600 14px/1 var(--bv-titres); color: var(--bv-muted); }
.bv-vote__parcours span { display: inline-flex; align-items: center; gap: 10px; }
.bv-vote__parcours span + span::before { content: ""; width: 22px; height: 2px; border-radius: 1px; background: repeating-linear-gradient(90deg, currentColor 0 4px, transparent 4px 8px); opacity: .6; }
.bv-compte { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 12px; margin-top: 6px !important; padding: 10px 18px; border-radius: 999px; background: var(--bv-ink); color: #fff; font: 600 15px/1.2 var(--bv-titres); }
.bv-compte__reste { color: var(--bv-yellow); font-variant-numeric: tabular-nums; }
.bv-compte__reste:empty { display: none; }
.bv-lien { appearance: none; border: 0; background: none; padding: 10px 6px; min-height: 44px; color: var(--bv-btn); font: 600 15px/1 var(--bv-titres); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.bv-lien:hover { color: var(--bv-ink); background: none; }

.bv-gagnant { max-width: 760px; margin: 28px auto 0; padding: 22px 24px; border-radius: 24px; background: var(--bv-yellow); color: var(--bv-ink); text-align: center; }
.bv-gagnant__sur { font: 600 13px/1 var(--bv-titres); letter-spacing: .08em; text-transform: uppercase; }
.bv-gagnant__titre { margin-top: 8px !important; font: 600 clamp(22px, 4.4vw, 32px)/1.15 var(--bv-titres); text-wrap: balance; }
.bv-message { min-height: 1.5em; margin-top: 18px !important; text-align: center; font-weight: 600; color: var(--bv-btn); }
.bv-message:empty { min-height: 0; margin-top: 0 !important; }

.bv-boxes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: clamp(14px, 2vw, 22px); margin: clamp(24px, 4vw, 40px) 0 0; padding: 0; list-style: none; }
.bv-box { position: relative; display: flex; flex-direction: column; border-radius: 28px; background: var(--bv-card); box-shadow: 0 0 0 1px rgba(43, 20, 6, .07), 0 18px 40px -26px rgba(43, 20, 6, .45); transition: transform .35s cubic-bezier(.22, 1, .36, 1), box-shadow .3s ease; }
@media (hover: hover) and (pointer: fine) { .bv-box:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px rgba(43, 20, 6, .07), 0 26px 48px -26px rgba(43, 20, 6, .55); } }
.bv-box.is-choix { box-shadow: 0 0 0 3px var(--bv-orange), 0 22px 44px -24px rgba(250, 92, 25, .6); }
.bv-box.is-gagnant { box-shadow: 0 0 0 4px var(--bv-yellow), 0 24px 48px -22px rgba(255, 194, 26, .8); }
.bv-box__visuel { position: relative; margin: 10px 10px 0; padding: 14px; border-radius: 20px; background: radial-gradient(circle at 50% 62%, #fff3e6 0, #fde9d6 46%, var(--bv-tile) 100%); }
.bv-box__visuel img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 14px 16px rgba(43, 20, 6, .22)); transition: transform .5s cubic-bezier(.22, 1, .36, 1); }
@media (hover: hover) and (pointer: fine) { .bv-box:hover .bv-box__visuel img { transform: scale(1.04) rotate(-1.5deg); } }
.bv-box__badge { position: absolute; z-index: 1; top: -10px; left: 50%; transform: translateX(-50%); padding: 7px 14px; border-radius: 999px; background: var(--bv-btn); color: #fff; font: 600 13px/1 var(--bv-titres); white-space: nowrap; box-shadow: 0 8px 16px -8px rgba(43, 20, 6, .5); }
.bv-box.is-gagnant .bv-box__badge { background: var(--bv-yellow); color: var(--bv-ink); }
.bv-box__corps { display: flex; flex-direction: column; flex: 1; gap: 12px; padding: 16px 18px 18px; }
.bv .bv-box__nom { margin: 0; font: 600 24px/1.1 var(--bv-titres); color: var(--bv-ink); }
.bv-box__texte { font-size: 15px; line-height: 1.45; color: var(--bv-muted); }

/* Influenceur : photo ronde, nom, réseaux. */
.bv-inf { display: grid; grid-template-columns: 48px 1fr; align-items: center; gap: 4px 12px; padding: 10px 12px; border-radius: 18px; background: var(--bv-tile); }
.bv-inf__photo { grid-row: span 2; width: 48px; height: 48px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--bv-orange); }
.bv-inf__photo--vide { display: grid; place-items: center; background: var(--bv-ink); color: var(--bv-yellow); font: 600 17px/1 var(--bv-titres); }
.bv-inf__nom { font-size: 15px; line-height: 1.2; }
.bv-inf__nom span { display: block; font-size: 12px; color: var(--bv-muted); }
.bv-inf__nom strong { font: 600 17px/1.2 var(--bv-titres); overflow-wrap: anywhere; }
.bv-inf:not(:has(.bv-inf__liens)) .bv-inf__photo { grid-row: auto; }
.bv-inf__liens { display: flex; gap: 6px; margin-left: -8px !important; }
.bv-reseau { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--bv-ink); transition: background-color .2s ease, color .2s ease, transform .3s cubic-bezier(.34, 1.56, .64, 1); }
.bv-reseau svg { width: 22px; height: 22px; }
.bv-reseau:hover { background: var(--bv-ink); color: #fff; transform: translateY(-2px); }

.bv-box__action { margin-top: auto; }
.bv .bv-btn { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 50px; padding: 0 22px; border: 0; border-radius: 12px; background: var(--bv-btn); color: #fff; font: 600 17px/1.1 var(--bv-titres); text-decoration: none; cursor: pointer; }
.bv .bv-btn:hover { background: var(--btn-hover, #a93506); color: #fff; }
.bv .bv-btn[disabled] { opacity: .6; cursor: progress; }
.bv .bv-btn--contour { width: auto; background: transparent; color: var(--bv-ink); box-shadow: inset 0 0 0 2px var(--bv-ink); }
.bv .bv-btn--contour:hover { background: var(--bv-ink); color: #fff; }
.bv-etape .bv-btn { width: auto; }
.bv-box__confirmer { display: grid; gap: 2px; justify-items: center; }
.bv-box__confirmer .bv-btn { background: var(--bv-ink); }
.bv-box__confirmer .bv-btn:hover { background: #000; }

.bv-box__resultat { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px; margin-top: auto; }
.bv-barre { height: 12px; border-radius: 6px; background: var(--bv-tile); overflow: hidden; }
.bv-barre i { display: block; height: 100%; width: 0; border-radius: 6px; background: var(--bv-orange); transition: width .9s cubic-bezier(.22, 1, .36, 1); }
.bv-box.is-gagnant .bv-barre i { background: var(--bv-yellow); }
.bv-box__resultat strong { font: 600 22px/1 var(--bv-titres); font-variant-numeric: tabular-nums; }
.bv-box__resultat span:last-child { grid-column: 1 / -1; font-size: 13px; color: var(--bv-muted); }

.bv-total, .bv-partage { margin-top: 22px !important; text-align: center; }
.bv-total { font: 600 16px/1.3 var(--bv-titres); color: var(--bv-muted); }
.bv-suivre { margin-top: 28px !important; text-align: center; }
.bv-suivre a { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px; border-radius: 999px; background: #fffc00; color: #111; font: 600 16px/1.1 var(--bv-titres); text-decoration: none; }
.bv-suivre a:hover { background: #111; color: #fffc00; }
.bv-suivre svg { width: 24px; height: 24px; flex: 0 0 auto; }
.bv-mentions { max-width: 820px; margin: 30px auto 0 !important; text-align: center; font-size: 12px; line-height: 1.5; color: var(--bv-muted); }

.bv :focus-visible { outline: 3px solid var(--bv-ink); outline-offset: 3px; border-radius: 8px; }
.bv-box__confirmer .bv-btn:focus-visible, .bv-compte :focus-visible { outline-color: var(--bv-orange); }
@media (prefers-reduced-motion: reduce) {
  .bv-barre i, .bv-box, .bv-box__visuel img, .bv-reseau { transition: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .bv-etape, .bv-hud__trajet, .bv-passer, .bv-repere__nom { background: #fff; }
}
