/* ============================================================
   LES MURS — le baromètre (27/11/2026)
   ------------------------------------------------------------
   Une feuille À PART, comme mu-trous.css : `mu.css` n'est pas touchée.
   Même famille que le sondage (polices Outfit et Manrope, halos qui
   dérivent, entrées à ressort), en plus coloré : les visages vivent.

   ⚠️ TOUT CE QUI SE PROJETTE EST EN `em` (§7.70), et la scène tient dans
      le corps de l'écran (flex, `min-height: 0`) : rien ne déborde, du
      1920 au téléphone.
   ⚠️ LE SENS NE REPOSE JAMAIS SUR LA SEULE COULEUR : chaque visage a son
      libellé, chaque barre son nombre, l'aiguille sa moyenne écrite.
   ⚠️ LE BLOC `prefers-reduced-motion` EST LE DERNIER DE CETTE FEUILLE ;
      `.bv-calme` fige un visage (listes, pilotage).
   ============================================================ */

/* ============================================================
   LES VISAGES
   ============================================================ */
.bv-visage { display: block; width: 100%; height: auto; overflow: visible; }
.bv-trait { fill: none; stroke: #2a1d3d; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.bv-epais { stroke-width: 4.2; }
.bv-visage text { font-family: 'Mu Manrope', system-ui, sans-serif; font-weight: 900; fill: #6c63ff; }
.bv-visage .bv-interro { fill: #7c3aed; }
.bv-corps, .bv-yeux, .bv-bouche, .bv-pile, .bv-biceps, .bv-eclair, .bv-etoile, .bv-z, .bv-interro,
.bv-ampoule, .bv-rayons, .bv-aureole, .bv-feuille, .bv-tourne, .bv-baille, .bv-scintille, .bv-larme,
.bv-goutte, .bv-points, .bv-rai { transform-box: fill-box; transform-origin: center; }

@media (prefers-reduced-motion: no-preference) {
  .bv-visage:not(.bv-calme) .bv-corps { animation: bv-flotte 3.2s ease-in-out infinite alternate; }
  .bv-n1:not(.bv-calme) .bv-corps { animation-duration: 4.2s; }
  .bv-visage:not(.bv-calme) .bv-yeux { animation: bv-cligne 4.6s infinite; }
  .bv-n2:not(.bv-calme) .bv-yeux { animation-delay: .8s; }
  .bv-n4:not(.bv-calme) .bv-yeux { animation-delay: 1.7s; }
  .bv-n5:not(.bv-calme) .bv-yeux { animation-delay: 2.4s; }
  .bv-visage:not(.bv-calme) .bv-larme { animation: bv-larme 1.8s ease-in infinite; }
  .bv-visage:not(.bv-calme) .bv-goutte { animation: bv-goutte 2.2s ease-in infinite; }
  .bv-visage:not(.bv-calme) .bv-scintille { animation: bv-scintille 1.6s ease-in-out infinite alternate; }
  .bv-visage:not(.bv-calme) .bv-tourne { animation: bv-tourne 1.6s linear infinite; }
  .bv-visage:not(.bv-calme) .bv-baille { animation: bv-baille 2.6s ease-in-out infinite; }
  .bv-visage:not(.bv-calme) .bv-z { animation: bv-z 2.6s ease-in infinite; animation-delay: calc(var(--k) * .55s); opacity: 0; }
  .bv-visage:not(.bv-calme) .bv-pile.bv-alerte { animation: bv-alerte .9s steps(2, jump-none) infinite; }
  .bv-visage:not(.bv-calme) .bv-cran { animation: bv-cran .5s backwards cubic-bezier(.34,1.56,.64,1); animation-delay: calc(var(--k) * .12s); }
  .bv-visage:not(.bv-calme) .bv-eclair { animation: bv-eclair 1.3s ease-in-out infinite; }
  .bv-visage:not(.bv-calme) .bv-biceps { animation: bv-biceps 1.1s ease-in-out infinite alternate; }
  .bv-visage:not(.bv-calme) .bv-etoile.on { animation: bv-etoile 1.8s ease-in-out infinite; animation-delay: calc(var(--k) * .18s); }
  .bv-visage:not(.bv-calme) .bv-aureole { animation: bv-aureole 2.6s ease-in-out infinite alternate; }
  .bv-visage:not(.bv-calme) .bv-feuille { animation: bv-feuille 3s ease-in-out infinite alternate; }
  .bv-visage:not(.bv-calme) .bv-interro { animation: bv-interro 1.4s ease-in-out infinite alternate; }
  .bv-visage:not(.bv-calme) .bv-points { animation: bv-scintille 1.2s ease-in-out infinite alternate; }
  .bv-visage:not(.bv-calme) .bv-ampoule.on { animation: bv-lampe 1.4s ease-in-out infinite alternate; }
  .bv-visage:not(.bv-calme) .bv-rai { animation: bv-scintille .9s ease-in-out infinite alternate; }
  .bv-visage:not(.bv-calme) .bv-rayons { animation: bv-tourne 9s linear infinite; }
  .bv-visage:not(.bv-calme) .bv-d2 { animation-delay: .45s; }
  .bv-visage:not(.bv-calme) .bv-d3 { animation-delay: .9s; }
  .bv-tremble:not(.bv-calme) .bv-corps { animation: bv-tremble .28s linear infinite; }
  .bv-dodeline:not(.bv-calme) .bv-corps { animation: bv-dodeline 3s ease-in-out infinite; }
  .bv-vacille:not(.bv-calme) .bv-corps { animation: bv-vacille 2.2s ease-in-out infinite; }
  .bv-saute:not(.bv-calme) .bv-corps { animation: bv-saute 1s cubic-bezier(.3,.7,.4,1) infinite; }
  .bv-affaisse:not(.bv-calme) .bv-corps { animation: bv-affaisse 3s ease-in-out infinite; }
}
@keyframes bv-flotte { from { transform: translateY(-2%); } to { transform: translateY(2%); } }
@keyframes bv-cligne { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes bv-larme { 0% { transform: translateY(0) scale(.6); opacity: 0; } 20% { opacity: 1; transform: translateY(0) scale(1); }
  100% { transform: translateY(28px) scale(.9); opacity: 0; } }
@keyframes bv-goutte { 0%, 30% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }
@keyframes bv-scintille { from { transform: scale(.75) rotate(-8deg); opacity: .7; } to { transform: scale(1.12) rotate(8deg); opacity: 1; } }
@keyframes bv-tourne { to { transform: rotate(360deg); } }
@keyframes bv-baille { 0%, 15%, 100% { transform: scaleY(.45); } 45%, 70% { transform: scaleY(1.15); } }
@keyframes bv-z { 0% { transform: translate(0, 6px) scale(.5); opacity: 0; } 25% { opacity: 1; }
  100% { transform: translate(8px, -14px) scale(1.15); opacity: 0; } }
@keyframes bv-alerte { 50% { opacity: .25; } }
@keyframes bv-cran { from { transform: scaleY(0); } }
@keyframes bv-eclair { 0%, 40%, 100% { opacity: 1; transform: scale(1); } 20% { opacity: .2; transform: scale(.85); } 60% { transform: scale(1.18); } }
@keyframes bv-biceps { from { transform: rotate(-6deg) scale(.96); } to { transform: rotate(6deg) scale(1.06); } }
@keyframes bv-etoile { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.22) rotate(12deg); } }
@keyframes bv-aureole { from { transform: translateY(0) scaleX(1); } to { transform: translateY(-4px) scaleX(1.08); } }
@keyframes bv-feuille { from { transform: rotate(-12deg) translateY(0); } to { transform: rotate(10deg) translateY(4px); } }
@keyframes bv-interro { from { transform: translateY(0) rotate(-10deg); } to { transform: translateY(-5px) rotate(12deg); } }
@keyframes bv-lampe { from { filter: drop-shadow(0 0 0 #ffe14d); } to { filter: drop-shadow(0 0 6px #ffd000); } }
@keyframes bv-tremble { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-1.2px); } 75% { transform: translateX(1.2px); } }
@keyframes bv-dodeline { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(5deg) translateY(2px); } }
@keyframes bv-vacille { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
@keyframes bv-saute { 0%, 100% { transform: translateY(0) scale(1, 1); } 30% { transform: translateY(-7%) scale(.97, 1.03); }
  55% { transform: translateY(0) scale(1.04, .96); } }
@keyframes bv-affaisse { 0%, 100% { transform: translateY(0) scaleY(1); } 50% { transform: translateY(3%) scaleY(.95); } }

/* ============================================================
   LE TABLEAU PROJETÉ
   ============================================================ */
.mu-ecran[data-outil="barometre"] .mu-ecran-corps { padding: .5em 1.2em .7em; align-items: stretch; justify-content: flex-start; }
.bv-scene { position: relative; isolation: isolate; width: 100%; height: 100%; min-height: 0;
  display: flex; flex-direction: column; align-items: center; gap: .55em;
  font-family: 'Mu Outfit', system-ui, sans-serif; overflow: hidden;
  border-radius: 1.4em; background: rgba(255,255,255,.7); padding: .7em 1em .9em;
  box-shadow: 0 1.2em 3em -1.2em rgba(26,20,48,.22); }
.bv-scene .mu-sd-halo.a { background: #fde68a; }
.bv-scene .mu-sd-halo.b { background: #a7f3d0; }
.bv-attente-t { margin: auto; font-size: 1.4em; font-weight: 800; color: var(--mu-gris); }

.bv-nav { flex: 0 0 auto; display: flex; align-items: center; gap: .45em; flex-wrap: wrap; justify-content: center; }
.bv-chip { font-weight: 800; color: var(--mu-t); background: #fff; border: 1px solid color-mix(in srgb, var(--mu-t) 30%, #fff);
  border-radius: 999px; padding: .15em .85em; font-size: .95em; }
.bv-chip-n { color: var(--mu-encre); }
.bv-chip-n:empty { display: none; }
.bv-pt { width: .7em; height: .7em; border-radius: 50%; background: color-mix(in srgb, var(--mu-t) 22%, #fff); transition: transform .3s, background .3s; }
.bv-pt.on { background: var(--mu-t); transform: scale(1.35); }

.bv-q { flex: 0 0 auto; display: flex; align-items: center; gap: .45em; max-width: 100%;
  font-size: 1.7em; font-weight: 800; color: var(--mu-encre); text-align: center; line-height: 1.15;
  animation: mu-sd-entre .5s cubic-bezier(.2,.9,.3,1.2) both; }
.bv-q-ico { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 1.5em; height: 1.5em;
  border-radius: .5em; background: color-mix(in srgb, var(--mu-t) 14%, #fff); font-size: .85em; }

/* --- les résultats d'une question --- */
.bv-milieu { flex: 1 1 auto; min-height: 0; width: 100%; max-width: 92em; display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 1.6em; align-items: stretch; }
.bv-jauge { position: relative; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.bv-cadran { width: 100%; max-height: 100%; height: auto; display: block; overflow: visible; }
.bv-jauge > .bv-cadran { flex: 1 1 0; min-height: 4em; width: 100%; max-width: 36em; }
.bv-secteur { animation: bv-secteur .55s backwards cubic-bezier(.34,1.56,.64,1); animation-delay: calc(var(--k) * .09s); }
@keyframes bv-secteur { from { opacity: 0; stroke-width: 2; } }
.bv-aiguille { transform-box: view-box; transform-origin: 110px 112px; transform: rotate(var(--a, -90deg));
  transition: transform 1.5s cubic-bezier(.34,1.7,.5,1); }
.bv-jauge-v { flex: 0 0 auto; width: 4.4em; height: 4.4em; margin-top: .15em;
  filter: drop-shadow(0 .3em .4em rgba(26,20,48,.18)); pointer-events: none; }
.bv-jauge-v:empty { display: none; }
.bv-jauge-v.arrive { animation: bv-pop .6s cubic-bezier(.2,.9,.3,1.5); }
@keyframes bv-pop { 0% { transform: scale(.3); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }
.bv-moy { flex: 0 0 auto; margin-top: .2em; font-family: 'Mu Manrope', system-ui, sans-serif; font-weight: 800; font-size: 1.15em; color: var(--mu-gris); min-height: 1.3em; }

.bv-cols { min-height: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .7em; align-items: stretch; }
.bv-col { min-height: 0; display: flex; flex-direction: column; align-items: center; gap: .25em;
  animation: mu-sd-entre .5s calc(.25s + var(--i) * .08s) cubic-bezier(.2,.9,.3,1.2) both; }
.bv-col-n { flex: 0 0 auto; font-family: 'Mu Manrope', system-ui, sans-serif; font-weight: 800; font-size: 1.6em; color: var(--f); line-height: 1; }
.bv-col-n.pop { animation: mu-pop .5s cubic-bezier(.2,.9,.3,1.4); }
.bv-col-piste { flex: 1 1 auto; min-height: 1em; width: 62%; display: flex; align-items: flex-end;
  background: rgba(26,20,48,.05); border-radius: .7em; overflow: hidden; }
.bv-col-piste i { display: block; width: 100%; height: 0; border-radius: .7em .7em .35em .35em;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 65%, #fff), var(--c));
  box-shadow: inset 0 .2em 0 rgba(255,255,255,.5);
  transition: height 1.2s cubic-bezier(.34,1.45,.64,1); }
.bv-col.top .bv-col-piste i { box-shadow: 0 0 1em color-mix(in srgb, var(--c) 70%, transparent), inset 0 .2em 0 rgba(255,255,255,.5); }
.bv-col-v { flex: 0 0 auto; width: 4.2em; height: 4.2em; }
.bv-col.top .bv-col-v { animation: bv-hop 1.6s ease-in-out infinite; }
@keyframes bv-hop { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-.35em) scale(1.08); } }
.bv-col-l { flex: 0 0 auto; font-size: .82em; font-weight: 700; color: var(--mu-gris); text-align: center; line-height: 1.1; min-height: 2.2em; }

.bv-bilan { flex: 0 0 auto; --bc: var(--mu-t); font-size: 1.6em; font-weight: 800; color: var(--bc); text-align: center;
  background: color-mix(in srgb, var(--bc) 10%, #fff); border-radius: 999px; padding: .25em 1.1em; max-width: 100%; }
.bv-bilan.neuf { animation: bv-bilan .7s cubic-bezier(.2,.9,.3,1.4); }
@keyframes bv-bilan { from { opacity: 0; transform: translateY(.5em) scale(.9); } }

/* --- caché --- */
.bv-cache { flex: 1 1 auto; min-height: 0; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6em; }
.bv-rang { display: flex; gap: 1.4em; justify-content: center; flex-wrap: nowrap; max-width: 100%; }
.bv-rang-v { width: 6.4em; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: .2em;
  animation: mu-sd-entre .55s calc(var(--i) * .1s) cubic-bezier(.2,.9,.3,1.3) both; }
.bv-rang-v .bv-visage { width: 100%; }
.bv-rang-l { font-size: .85em; font-weight: 700; color: var(--mu-gris); text-align: center; line-height: 1.1; }
.bv-compte { justify-content: center; }
.bv-note { margin: 0; font-weight: 700; color: var(--mu-gris); text-align: center; }

/* --- tout voir --- */
.bv-grille { flex: 1 1 auto; min-height: 0; width: 100%; display: grid; gap: .8em;
  grid-template-columns: repeat(auto-fit, minmax(13em, 1fr)); grid-auto-rows: minmax(0, 1fr); }
.bv-grille.n1 { grid-template-columns: minmax(0, 30em); justify-content: center; }
.bv-grille.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bv-grille.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bv-grille.n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bv-grille.n5, .bv-grille.n6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bv-grille.n7, .bv-grille.n8 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bv-carte { min-height: 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: .3em;
  background: #fff; border-radius: 1.1em; padding: .6em .8em; box-shadow: 0 .6em 1.6em -.9em rgba(26,20,48,.3);
  border: 1px solid var(--mu-bord); overflow: hidden;
  animation: mu-sd-entre .5s calc(var(--i) * .08s) cubic-bezier(.2,.9,.3,1.2) both; }
.bv-carte-q { flex: 0 0 auto; display: flex; gap: .4em; align-items: center; font-weight: 800; font-size: .95em; line-height: 1.15;
  text-align: center; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.bv-carte-q .bv-q-ico { margin-right: .3em; }
.bv-jauge.mini { flex: 1 1 0; min-height: 0; width: 100%; flex-direction: row; gap: .5em; }
.bv-jauge.mini .bv-cadran { flex: 0 1 auto; height: 100%; width: auto; min-width: 0; max-width: 70%; min-height: 0; }
.bv-jauge.mini .bv-jauge-v { width: 3.6em; height: 3.6em; margin: 0; align-self: center; }
.bv-carte-b { flex: 0 0 auto; font-weight: 800; font-size: .9em; color: var(--mu-encre); text-align: center; line-height: 1.15; min-height: 2.3em; }
.bv-carte.cache .bv-carte-b { color: var(--mu-gris); }
.bv-empile { flex: 0 0 auto; display: flex; width: 100%; height: .6em; border-radius: 999px; overflow: hidden; background: rgba(26,20,48,.06); }
.bv-empile i { display: block; flex: 0 0 0; flex-grow: 0; flex-basis: 0; transition: flex-grow 1.1s cubic-bezier(.34,1.3,.64,1); }
.bv-empile.petit { height: .45rem; margin-top: .3rem; }
.bv-carte-n { flex: 0 0 auto; font-size: .8em; font-weight: 700; color: var(--mu-gris); }

/* La bulle qui monte quand une réponse arrive */
.bv-bulle { position: absolute; bottom: -1em; font-size: 2em; pointer-events: none; z-index: 3;
  animation: bv-bulle 2.4s cubic-bezier(.3,.6,.5,1) forwards; }
@keyframes bv-bulle { 0% { transform: translateY(0) scale(.4); opacity: 0; } 15% { opacity: 1; transform: translateY(-1em) scale(1); }
  100% { transform: translateY(-9em) scale(1.1) rotate(12deg); opacity: 0; } }

/* L'écran étroit (fenêtre réduite, téléphone) : la jauge au-dessus des barres. */
@media (max-aspect-ratio: 4/5) {
  .bv-milieu { display: flex; flex-direction: column; gap: .5em; }
  .bv-jauge { flex: 1 1 0; min-height: 0; }
  .bv-cols { flex: 1.2 1 0; min-height: 0; }
  .bv-jauge > .bv-cadran { min-height: 0; }
  .bv-jauge-v { width: 2.6em; height: 2.6em; }
  .bv-moy { font-size: .9em; min-height: 0; }
  .bv-carte-n, .bv-empile { display: none; }
  .bv-carte { padding: .4em .5em; }
  .bv-rang { gap: .4em; }
  .bv-q { font-size: 1.3em; }
  .bv-bilan { font-size: 1.15em; border-radius: 1em; }
  .bv-grille { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .bv-col-v { width: 2.4em; height: 2.4em; }
  .bv-col-l { font-size: .7em; }
}

/* ============================================================
   LE TÉLÉPHONE DE L'ÉLÈVE
   ============================================================ */
.bvt { font-family: 'Mu Outfit', system-ui, sans-serif; }
.bvt-prog { display: flex; align-items: center; justify-content: center; gap: .45rem; margin: .2rem 0 .7rem; }
.bvt-pt { width: 40px; height: 40px; min-height: 40px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--mu-t) 35%, #fff);
  background: #fff; padding: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-weight: 800; font-size: .85rem; color: var(--mu-t); }
.bvt-pt.on { border-color: var(--mu-t); box-shadow: 0 0 0 3px color-mix(in srgb, var(--mu-t) 25%, transparent); }
.bvt-pt .bv-visage { width: 30px; height: 30px; }
.bvt-num { text-align: center; color: var(--mu-gris); font-weight: 700; font-size: .9rem; margin: 0; }
.bvt-q { text-align: center; font-size: 1.3rem; font-weight: 800; line-height: 1.2; margin: .25rem 0 .8rem;
  animation: mu-sd-entre .4s cubic-bezier(.2,.9,.3,1.2) both; }
.bvt-faces { display: grid; gap: .55rem; }
.bvt-f { --c: #ccc; position: relative; display: flex; align-items: center; gap: .8rem; width: 100%; min-height: 72px; padding: .35rem .9rem .35rem .45rem;
  border: 0; border-radius: 20px; cursor: pointer; text-align: left; font: inherit; font-weight: 800; font-size: 1.08rem;
  color: var(--mu-encre); background: color-mix(in srgb, var(--c) 16%, #fff);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--c) 45%, transparent), 0 .45rem 1rem -.7rem var(--c);
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, opacity .2s ease;
  animation: mu-sd-entre .42s calc(var(--i) * .06s) cubic-bezier(.2,.9,.3,1.25) both; }
.bvt-f:active { transform: scale(.97); }
.bvt-f .bvt-v { flex: 0 0 64px; width: 64px; height: 64px; }
.bvt-f.choisi { background: color-mix(in srgb, var(--c) 45%, #fff); box-shadow: inset 0 0 0 3px var(--f, var(--c)), 0 .6rem 1.4rem -.6rem var(--c); }
.bvt-f.choisi .bvt-v { animation: bvt-reagit .7s cubic-bezier(.2,.9,.3,1.5); }
.bvt-f.choisi::after { content: '✓'; position: absolute; right: .8rem; top: 50%; transform: translateY(-50%);
  width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--f, var(--c)); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem; animation: mu-pop .45s cubic-bezier(.2,.9,.3,1.4); }
.bvt-faces.a-choisi .bvt-f:not(.choisi) { opacity: .62; }
.bvt-faces.passe .bvt-f:not(.choisi) { opacity: .35; transform: scale(.97); }
.bvt-dit { text-align: center; font-weight: 800; color: var(--mu-t); margin: .5rem 0 0; animation: mu-pop .45s cubic-bezier(.2,.9,.3,1.4); }
/* ⚠️ LES PETITS ÉCRANS (320×568, tour 1) : les cinq visages ET les boutons
   tiennent sans défiler. */
@media (max-height: 680px) {
  .mu-tel .mu-haut { padding-top: .35rem; padding-bottom: .35rem; }
  .mu-tel-corps { padding-top: .5rem; }
  .mu-tel-corps > h1#q { font-size: .95rem; margin: 0 0 .2rem; color: var(--mu-gris); }
  .bvt-prog { margin: 0 0 .3rem; }
  .bvt-num { font-size: .8rem; }
  .bvt-q { font-size: 1.1rem; margin: .1rem 0 .45rem; }
  .bvt-faces { gap: .35rem; }
  .bvt-f { min-height: 56px; padding-top: .2rem; padding-bottom: .2rem; font-size: 1rem; }
  .bvt-f .bvt-v { flex-basis: 50px; width: 50px; height: 50px; }
  .bvt-nav { margin-top: .55rem; }
  .bvt-nav .mu-b { min-height: 40px; padding: .45rem .9rem; }
}
@media (max-height: 680px) {
  .bvt-fin { padding: .7rem .8rem; }
  .bvt-soleil { width: 56px; height: 56px; }
  .bvt-fin h2 { font-size: 1.15rem; }
  .bvt-recap { gap: .3rem; margin-top: .5rem; }
  .bvt-r { min-height: 44px; padding: .2rem .5rem; }
  .bvt-r .bv-visage { flex-basis: 34px; width: 34px; height: 34px; }
  .bvt-r b { font-size: .86rem; }
}
@media (max-height: 680px) {
  .bvt-fin > .mu-aide { font-size: .8rem; margin: .2rem 0; }
  .bvt-r small { font-size: .78rem; }
}
@media (max-height: 600px) {
  .bvt-f { min-height: 50px; }
  .bvt-f .bvt-v { flex-basis: 44px; width: 44px; height: 44px; }
  .mu-tel-corps > h1#q { display: none; }
}
.bvt-f[disabled] { cursor: default; }
@keyframes bvt-reagit { 0% { transform: scale(1); } 30% { transform: scale(1.3) rotate(-10deg); } 60% { transform: scale(.92) rotate(6deg); } 100% { transform: scale(1); } }
.bvt-eclats { position: absolute; left: 32px; top: 50%; width: 0; height: 0; pointer-events: none; }
.bvt-eclats i { position: absolute; width: 8px; height: 8px; border-radius: 50%; left: -4px; top: -4px;
  animation: bvt-eclat .7s ease-out forwards; }
@keyframes bvt-eclat { to { transform: translate(var(--x), var(--y)) scale(.3); opacity: 0; } }
.bvt-nav { display: flex; justify-content: space-between; gap: .6rem; margin-top: 1rem; }
.bvt-fin { text-align: center; background: #fff; border-radius: 22px; padding: 1.1rem 1rem; box-shadow: var(--mu-ombre);
  animation: mu-sd-entre .45s cubic-bezier(.2,.9,.3,1.2) both; }
.bvt-fin h2 { margin: .3rem 0 .2rem; font-size: 1.35rem; }
.bvt-soleil { width: 84px; height: 84px; margin: 0 auto; }
.bvt-recap { display: grid; gap: .45rem; margin: .9rem 0 .3rem; text-align: left; }
.bvt-r { display: flex; align-items: center; gap: .7rem; width: 100%; padding: .35rem .6rem; border-radius: 14px; border: 0; cursor: pointer;
  background: var(--mu-t-pale); font: inherit; text-align: left; min-height: 52px; }
.bvt-r .bv-visage { flex: 0 0 42px; width: 42px; height: 42px; }
.bvt-r span { flex: 1 1 auto; min-width: 0; }
.bvt-r b { display: block; font-size: .95rem; line-height: 1.15; }
.bvt-r small { color: var(--mu-gris); font-weight: 700; }
.bvt-r.manque { background: #fff7ed; box-shadow: inset 0 0 0 2px #fdba74; }
.bvt-r-ico { flex: 0 0 42px; font-size: 1.6rem; text-align: center; }
.bvt-soin { margin: .3rem 0; padding: .5rem .7rem; border-radius: 12px; background: #eef2ff; color: #3730a3; font-weight: 700; }
.bvt-r em { font-style: normal; color: var(--mu-t); font-weight: 800; font-size: .85rem; white-space: nowrap; }
.bvt-prenom { background: #fff; border-radius: 22px; padding: 1.1rem 1rem; box-shadow: var(--mu-ombre); text-align: center; }
.bvt-prenom input { width: 100%; font: inherit; font-size: 1.15rem; padding: .8rem 1rem; border-radius: 14px; border: 2px solid var(--mu-bord); margin: .6rem 0; }
.bvt-bandeau { text-align: center; font-weight: 800; border-radius: 14px; padding: .6rem .8rem; margin-bottom: .8rem; background: #fffbeb; color: #92400e; }

/* ============================================================
   LE PILOTAGE (téléphone du Maître)
   ============================================================ */
.bvp-g { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; margin: .6rem 0 .8rem; }
/* La barre de pilotage reste sous le pouce quand on fait défiler (tour 1). */
/* ⚠️ FIXÉE EN BAS DE L'ÉCRAN, sous le pouce, quelle que soit la page (tour 3). */
.bvp-colle { position: fixed; left: .5rem; right: .5rem; bottom: .5rem; z-index: 20; max-width: 31rem; margin: 0 auto;
  justify-content: center; background: rgba(255,255,255,.97); padding: .45rem; border-radius: 16px;
  box-shadow: 0 .4rem 1.4rem -.4rem rgba(26,20,48,.45), 0 0 0 1px var(--mu-bord); }
.bvp { padding-bottom: 1rem; }
body:has(.bvp-colle) { padding-bottom: 5.5rem; }
.bvp-rv { font-size: .75rem; font-weight: 800; color: #15803d; background: #f0fdf4; border-radius: 999px; padding: .05rem .45rem; white-space: nowrap; }
.bv-cache-ico { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; font-size: 1.8em; opacity: .7; }
.bvt-f[disabled] { opacity: .45; filter: grayscale(.7); }
.bvp-colle .mu-b { padding: .55rem .75rem; min-width: 48px; min-height: 48px; }
.bvp-ou { font-weight: 800; color: var(--mu-t); min-width: 3.4rem; text-align: center; white-space: nowrap; }
.bvp-colle .mu-b { white-space: nowrap; }
.bvp-case input { width: 1.35rem; height: 1.35rem; flex: 0 0 auto; }
.bvp-liste { display: grid; gap: .55rem; margin-bottom: .9rem; }
.bvp-l { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .65rem; padding: .5rem .6rem; border-radius: 14px; border: 1px solid var(--mu-bord); background: #fff; }
.bvp-l.on { border-color: var(--mu-t); box-shadow: 0 0 0 2px color-mix(in srgb, var(--mu-t) 25%, transparent); }
.bvp-v { flex: 0 0 46px; width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; }
.bvp-vide { font-size: 1.6rem; opacity: .5; }
.bvp-t { flex: 1 1 11rem; min-width: 0; }
.bvp-t .bv-empile { display: flex; }
.bvp-t b { display: block; font-size: .95rem; line-height: 1.2; }
.bvp-t small { display: block; color: var(--mu-gris); font-weight: 600; line-height: 1.25; margin-top: .1rem; }
.bvp-l .mu-b { flex: 0 0 auto; margin-left: auto; padding: .5rem .7rem; font-size: .88rem; }
.bvp-noms { margin: .6rem 0; }
.bvp-noms summary { cursor: pointer; font-weight: 700; }
.bvp-nom { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .3rem 0; border-bottom: 1px solid var(--mu-bord); }
.bvp-nom > span { display: flex; gap: .2rem; align-items: center; flex-wrap: wrap; }
.bvp-rien { display: inline-block; width: 28px; text-align: center; color: var(--mu-gris); }
.bvp-nom-t { font-size: .78rem; color: var(--mu-gris); }
.bvp-nom-t .bvp-rien { font-weight: 800; }
.bv-aiguille.vide { opacity: .18; }
.bv-chip-k { color: var(--mu-gris); font-weight: 700; font-size: .8em; border-style: dashed; }

/* ============================================================
   LE FORMULAIRE (boîte à outils)
   ============================================================ */
.bvf-liste { display: grid; gap: .45rem; margin: .3rem 0 .6rem; }
.bvf-l { margin: 0; display: flex; align-items: center; gap: .6rem; padding: .45rem .7rem; border: 1px solid var(--mu-bord); border-radius: 14px; background: #fff;
  cursor: pointer; transition: border-color .15s, background .15s; }
.bvf-l:has(input:checked) { border-color: var(--mu-t); background: color-mix(in srgb, var(--mu-t) 7%, #fff); }
.bvf-l input[type=checkbox] { width: 1.25rem; height: 1.25rem; flex: 0 0 auto; accent-color: var(--mu-t); }
.bvf-l .bvf-q { flex: 1 1 12rem; min-width: 0; font-weight: 600; }
.bvf-l .bvf-q small { display: block; color: var(--mu-gris); font-weight: 600; font-size: .8rem; }
.bvf-faces { display: flex; gap: 2px; flex: 0 0 auto; }
.bvf-faces .bv-visage { width: 26px; height: 26px; }
.bvf-perso { margin: 0; display: flex; gap: .45rem; align-items: center; flex-wrap: wrap; padding: .45rem .6rem; border: 1px dashed var(--mu-t); border-radius: 14px; background: #fff; }
.bvf-perso input[type=text] { flex: 1 1 14rem; min-width: 0; }
.bvf-perso select { flex: 0 1 12rem; width: auto; }
.bvf-perso .bvf-faces { flex-basis: 100%; }
.bvf-nv { flex-basis: 100%; }
.bvf-nv summary { cursor: pointer; font-weight: 700; color: var(--mu-t); font-size: .9rem; }
.bvf-nv input { display: block; width: 100%; margin-top: .3rem; }
.bvf-compte { font-weight: 800; color: var(--mu-t); }
@media (max-width: 520px) { .bvf-faces .bv-visage { width: 20px; height: 20px; } }

/* La vignette de la boîte à outils : l'aiguille qui balance, les visages qui sautent. */
.mu-v-barometre .ai { transform-box: view-box; transform-origin: 80px 70px; }
.mu-v-barometre .vf { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .mu-v-barometre .ai { animation: bv-v-aiguille 3.6s cubic-bezier(.34,1.5,.5,1) infinite; }
  .mu-v-barometre .vf { animation: bv-v-face 3.6s ease-in-out infinite; animation-delay: var(--d); }
}
@keyframes bv-v-aiguille { 0%, 100% { transform: rotate(-60deg); } 35% { transform: rotate(48deg); } 65% { transform: rotate(20deg); } }
@keyframes bv-v-face { 0%, 100% { transform: translateY(0); } 15% { transform: translateY(-5px) scale(1.12); } 30% { transform: translateY(0); } }

/* ============================================================
   LE MOUVEMENT RÉDUIT — LE DERNIER BLOC
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .bv-visage *, .bv-scene *, .bvt *, .mu-v-barometre * { animation: none !important; transition: none !important; }
}

/* Une fenêtre de tableau étroite (moins de 700 px) n'affiche pas la barre de
   contrôles : elle mangerait toute la place, et l'on pilote alors au téléphone. */
@media (max-width: 700px) {
  .mu-ecran[data-outil="barometre"] #pilotage { display: none !important; }
}
