/*  vingtetun.css — un tapis de feutre dans la nuit du manoir, un sabot de
 *  six jeux, des jetons sans valeur, et rien qui ne tienne qu'à sa teinte.
 *
 *  ═══ LE JEU EST EN CANVAS, LES COMMANDES EN DOM ═══
 *
 *  Le tapis, le sabot, les cartes qui volent, les jetons empilés et les
 *  totaux sont peints par le script dans un seul canvas (`#vingtetun`).
 *  On n'y glisse rien : les décisions sont des BOUTONS (44 px), rangés en
 *  deux rangées — la mise (les cinq jetons, effacer, distribuer), puis
 *  tirer / rester / doubler / partager, l'assurance, la main suivante —
 *  fixées en bas sur un téléphone debout, à droite couché.
 *
 *  ═══ L'ÉTAT N'EST JAMAIS PORTÉ PAR LA SEULE COULEUR ═══
 *
 *  La main courante est cerclée d'or ; une main crevée est dite « crevée »
 *  et non pas seulement rouge ; le conseil de la stratégie de base est un
 *  mot ET un liseré sur le bouton ; les jetons diffèrent par la valeur
 *  écrite ET par la couleur. Les jetons `--vu-*` sont MESURÉS par le
 *  banc : 4,5:1 pour les textes, 3:1 pour les repères.
 */

:root {
  /*  Les six jetons communs aux salons récents, gardés tels quels. */
  --vu-nuit:     #1b1526;
  --vu-panneau:  #2a2338;
  --vu-liseré:   #6b5a90;
  --vu-texte:    #f0ead9;
  --vu-doux:     #c9c0dc;
  --vu-or:       #f0d68a;

  /*  Le tapis de feutre, et ce qu'on y trace. */
  --vu-tapis:    #1f4a36;
  --vu-tapis-b:  #173a2a;
  --vu-case:     #8fc4a4;   /* le pointillé d'une case vide, le mot sur le feutre (repère, 3:1) */
  --vu-aide:     #b9f0cc;
  --vu-rouge:    #ff6b5e;   /* « crevée » (repère, 3:1 sur le feutre) */
  --vu-cadre:    #4b3a63;
  --vu-cadre-b:  #2b2140;

  --vu-sur:    #7fd39a;
  --vu-alerte: #ef8a8a;
  --vu-bord:   #8a78b0;

  /*  Les jetons de mise (la valeur est écrite dessus en papier #f6efdf). */
  --vu-jeton-5:   #b03a30;
  --vu-jeton-10:  #2a5f9e;
  --vu-jeton-25:  #2b7a4f;
  --vu-jeton-50:  #96500f;
  --vu-jeton-100: #3a3a3a;

  /*  Les commandes, en couleurs opaques — reprises de la crapette, mesurées. */
  --vu-ctl:        #231b2d;
  --vu-ctl-vif:    #31293a;
  --vu-ctl-or:     #3d3033;
  --vu-ctl-or-vif: #4e413b;
}

/* ═══════════════════════════════════ LA BARRE, ET SES COMMANDES ═════════ */

.bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 8px clamp(10px, 2vw, 16px);
}
.sep { width: 1px; align-self: stretch; background: var(--vu-liseré); margin: 0 2px; }

.bar a {
  font-size: 13px; color: var(--vu-texte); text-decoration: none;
  border: 1px solid var(--vu-bord); border-radius: 8px;
  padding: 7px 11px;
  transition: background .16s, border-color .16s;
}
.bar a:hover { background: var(--vu-ctl-vif); border-color: var(--vu-or); }
.bar a:focus-visible { outline: 3px solid var(--vu-or); outline-offset: 2px; }

.bar button, .vu-outils button, .vu-groupe button, .vu-avis button {
  font-family: inherit; font-size: 13px; color: var(--vu-texte);
  background: var(--vu-ctl);
  border: 1px solid var(--vu-bord); border-radius: 8px;
  padding: 7px 11px; cursor: pointer; min-height: 40px;
  transition: background .16s, border-color .16s, transform .1s;
}
.bar button:hover:not(:disabled), .vu-outils button:hover:not(:disabled), .vu-groupe button:hover:not(:disabled), .vu-avis button:hover:not(:disabled) { background: var(--vu-ctl-vif); border-color: var(--vu-or); }
.vu-outils button:active:not(:disabled) { transform: translateY(1px); }
.bar button:focus-visible, .vu-outils button:focus-visible, .vu-groupe button:focus-visible, .vu-avis button:focus-visible { outline: 3px solid var(--vu-or); outline-offset: 2px; }
@media (pointer: coarse) { .bar button, .vu-outils button, .vu-groupe button, .vu-avis button { min-height: 44px; } }

.vu-outils button kbd {
  font: 11px/1 ui-monospace, Menlo, Consolas, monospace; color: var(--vu-doux);
  border: 1px solid var(--vu-bord); border-radius: 4px; padding: 1px 4px; margin-left: 2px;
}
.vu-outils button.gold { background: var(--vu-ctl-or); border-color: var(--vu-or); font-weight: bold; }
.vu-outils button.gold:hover:not(:disabled) { background: var(--vu-ctl-or-vif); }
/*  Le conseil du prof : un liseré d'or ET un mot dans le bandeau. */
.vu-outils button.conseil:not(:disabled) { border-color: var(--vu-or); box-shadow: inset 0 0 0 1px var(--vu-or); }
.vu-outils button.conseil:not(:disabled) .lib::after { content: ' ✓'; color: var(--vu-or); }
.bar button:disabled, .vu-outils button:disabled, .vu-groupe button:disabled {
  background: transparent; color: var(--vu-doux);
  border-style: dashed; cursor: not-allowed; font-weight: normal;
}
.vu-outils button[hidden], .vu-mises[hidden] { display: none; }

body.ludi-scene { background: var(--vu-nuit); color: var(--vu-texte); }
h1 { font-family: Fraunces, Georgia, 'Times New Roman', serif; letter-spacing: .3px; }

/* ─────────────────────────────────────────────────────── le bandeau d’état ── */

.etat {
  display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center;
  flex: 0 0 100%; box-sizing: border-box;
  margin: 0 auto 10px; max-width: 1100px; padding: 6px 14px;
  background: var(--vu-panneau); border: 1px solid var(--vu-liseré);
  border-radius: 10px; color: var(--vu-doux); font-size: .94rem;
}
.etat b { color: var(--vu-texte); font-variant-numeric: tabular-nums; }

.vu-jeton {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px 3px 4px; border-radius: 999px;
  background: var(--vu-ctl); border: 1px solid var(--vu-bord);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 1px 3px rgba(0, 0, 0, .45);
  color: var(--vu-doux); font-size: .88rem; white-space: nowrap;
}
.vu-jeton b { font-size: 1rem; min-width: 1.2em; text-align: center; }
.vu-jeton[hidden] { display: none; }
/*  Le compteur du prof : or ; alerte (ET un point) quand crever est plus probable que non. */
.vu-jeton-prof { border-color: var(--vu-or); }
.vu-jeton-prof.presse { border-color: var(--vu-alerte); }
.vu-jeton-prof.presse b { color: var(--vu-alerte); }
.vu-jeton-prof.presse b::after { content: ' ●'; font-size: .7em; }
.vu-ico {
  flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; box-sizing: border-box;
  display: inline-flex; align-items: center; justify-content: center;
  font: 700 12px/1 Georgia, 'Times New Roman', serif; font-style: normal; color: var(--vu-or);
  background: radial-gradient(circle at 35% 30%, #5a4a78, var(--vu-ctl-or) 70%);
  border: 1px solid var(--vu-or);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), inset 0 -2px 0 rgba(0, 0, 0, .35);
}

.vu-choix { display: inline-flex; gap: 8px; align-items: center; position: relative; margin-left: auto; }
.vu-options, .vu-tableau {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 30; min-width: 280px; max-width: min(92vw, 420px);
  display: flex; flex-direction: column; gap: 8px; padding: 10px 12px;
  background: var(--vu-panneau); border: 1px solid var(--vu-or); border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .5); color: var(--vu-texte); font-size: 14px;
  max-height: min(70vh, 560px); overflow: auto; text-align: left;
}
.vu-options[hidden], .vu-tableau[hidden] { display: none; }
.vu-options h4, .vu-tableau h4 { margin: 0 0 2px; font-size: 13px; color: var(--vu-or); text-transform: uppercase; letter-spacing: .04em; }
.vu-options .vu-option { display: flex; align-items: center; gap: 8px; cursor: pointer; min-height: 28px; }
.vu-options .vu-option input { accent-color: var(--vu-or); width: 18px; height: 18px; margin: 0; }
.vu-groupe { display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; }
.vu-groupe > span { color: var(--vu-doux); font-size: 13px; margin-right: 2px; min-width: 72px; }
.vu-groupe label { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; min-height: 28px; }
.vu-groupe label input { accent-color: var(--vu-or); width: 16px; height: 16px; margin: 0; }
.vu-groupe label:has(input:disabled) { color: var(--vu-doux); opacity: .7; cursor: not-allowed; }
.vu-groupe button { min-width: 40px; padding: 5px 9px; min-height: 36px; }
.vu-note { color: var(--vu-doux); font-size: 12.5px; font-style: italic; min-height: 1em; }
.vu-puce {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px; cursor: pointer;
  background: var(--vu-ctl-or); border: 1px solid var(--vu-or); color: var(--vu-texte);
  font: inherit; font-size: .92rem; font-weight: 600;
}
.vu-puce:hover { background: var(--vu-ctl-or-vif); }
.vu-puce:focus-visible { outline: 3px solid var(--vu-or); outline-offset: 2px; }
@media (pointer: coarse) { .vu-puce { min-height: 44px; } }
.vu-chevron { color: var(--vu-or); font-size: .8em; }

/*  ═══ LE TABLEAU DE LA STRATÉGIE DE BASE ═══ consultable, jamais imposé.
    Chaque case porte une lettre (T R D P) ET une teinte, et un title. */
.vu-tableau { min-width: min(92vw, 460px); max-width: min(96vw, 560px); }
.vu-tableau h5 { margin: 6px 0 2px; font-size: 13px; color: var(--vu-or); }
.vu-tableau p { margin: 0; font-size: 12.5px; color: var(--vu-doux); }
.vu-t-scroll { overflow-x: auto; max-width: 100%; }
.vu-t { border-collapse: collapse; font: 12px/1 ui-monospace, Menlo, Consolas, monospace; }
.vu-t th, .vu-t td { border: 1px solid var(--vu-liseré); padding: 3px 5px; text-align: center; min-width: 1.6em; }
.vu-t th { color: var(--vu-doux); font-weight: 600; background: var(--vu-ctl); }
.vu-t td { color: var(--vu-nuit); font-weight: 700; }
.vu-t td.vu-T { background: #e8a0a0; }
.vu-t td.vu-R { background: #f3d98a; }
.vu-t td.vu-D { background: #a9e0b8; }
.vu-t td.vu-P { background: #b9cdf2; }
.vu-t tr.ici th { color: var(--vu-or); }
.vu-t td.ici { outline: 3px solid var(--vu-or); outline-offset: -2px; }
.vu-legende-t { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--vu-doux); }
.vu-legende-t i { display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: middle; margin-right: 4px; font-style: normal; }

/*  ═══ LE MOT DU PROF ═══ une décision contraire à la stratégie de base :
    on maintient, ou l'on suit. */
.vu-avis {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 8;
  width: min(92%, 420px); box-sizing: border-box; padding: 12px 14px;
  background: var(--vu-panneau); border: 1px solid var(--vu-or); border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .6); color: var(--vu-texte); font: 14px/1.4 Georgia, 'Times New Roman', serif;
  display: flex; flex-direction: column; gap: 8px; text-align: left; line-height: 1.35;
}
.vu-avis[hidden] { display: none; }
.vu-avis b { color: var(--vu-or); }
.vu-avis .vu-avis-livre { color: var(--vu-doux); font-size: 13px; }
.vu-avis .vu-avis-boutons { display: flex; gap: 8px; flex-wrap: wrap; }
.vu-avis .vu-avis-boutons button { flex: 1 1 45%; min-height: 44px; font-weight: 700; }
.vu-avis .vu-avis-boutons button.gold { background: var(--vu-ctl-or); border-color: var(--vu-or); }

/*  ═══ LE VERDICT FLOTTE SUR LA LIGNE DES VOIX ═══ */
.vu-voix { position: relative; width: 100%; max-width: 100%; }
#verdict { display: none; }
#verdict:not(:empty) {
  display: flex; align-items: center; box-sizing: border-box;
  position: absolute; left: 0; top: 0; right: 0; bottom: 0; z-index: 6;
  padding: 5px 10px; border-radius: 9px; font-weight: 700; font-size: .9rem; line-height: 1.3;
  background: var(--vu-panneau); border: 1px solid var(--vu-or);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .55); overflow: hidden;
}
#verdict.bon   { color: var(--vu-sur); }
#verdict.tiede { color: var(--vu-or); }
#verdict.dur   { color: var(--vu-alerte); }

/* ─────────────────────────────────────────────────────────────── le plateau ── */

.plateau {
  display: flex; flex-wrap: wrap; gap: clamp(10px, 2vw, 20px);
  justify-content: center; align-items: flex-start; align-content: flex-start;
  margin: 0 auto; max-width: min(1500px, 98vw);
  min-height: var(--plateau, auto);
}
.vu-colonne { display: flex; flex-direction: column; gap: 8px; align-items: center; min-width: 0; max-width: 100%; position: relative; width: 100%; }

.vu-cadre {
  position: relative; box-sizing: border-box; max-width: 100%; overflow: hidden;
  display: inline-block; line-height: 0;
  padding: 6px; border-radius: 12px;
  background: linear-gradient(145deg, var(--vu-cadre), var(--vu-cadre-b));
  border: 2px solid var(--vu-liseré);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, .16),
    inset 0 -3px 0 rgba(0, 0, 0, .45),
    0 10px 28px rgba(0, 0, 0, .55);
  transition: box-shadow .2s;
}
.vu-cadre.refus { animation: vu-refus .3s ease; }
@keyframes vu-refus {
  0%, 100% { transform: translateX(0); }
  30% { transform: translateX(-4px); }
  70% { transform: translateX(4px); }
}
/*  Le canvas : rien ne s'y glisse, mais la page ne doit pas bouger sous le
    doigt qui touche le tapis. */
#vingtetun {
  display: block; border-radius: 8px; background: var(--vu-tapis);
  touch-action: none; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none;
}
#vingtetun:focus-visible { outline: 3px solid var(--vu-or); outline-offset: -3px; }

/*  ═══ L'ANNONCE TRAVERSE L'ÉCRAN ═══ (Blackjack !, le croupier crève, la fin) */
.vu-annonce {
  position: absolute; left: 0; right: 0; top: 40%; z-index: 5;
  transform: translateX(-100%); opacity: 0; pointer-events: none; text-align: center;
  font: 700 clamp(1.2rem, 4.2vw, 2rem)/1 Fraunces, Georgia, 'Times New Roman', serif; color: var(--vu-or);
  letter-spacing: .04em; text-shadow: 0 0 16px rgba(0, 0, 0, .9), 0 2px 0 var(--vu-cadre-b);
  padding: 10px 0; line-height: 1;
  background: linear-gradient(90deg, rgba(27, 21, 38, 0), rgba(27, 21, 38, .94) 12%, rgba(27, 21, 38, .94) 88%, rgba(27, 21, 38, 0));
  border-top: 1px solid var(--vu-or); border-bottom: 1px solid var(--vu-or);
}
.vu-annonce.dur { color: var(--vu-alerte); border-color: var(--vu-alerte); }
.vu-annonce.on { animation: vu-annonce 1.6s linear forwards; }
@keyframes vu-annonce {
  0%      { opacity: 0; transform: translateX(-100%); animation-timing-function: cubic-bezier(.2, .8, .3, 1); }
  18%     { opacity: 1; transform: translateX(0); }
  82%     { opacity: 1; transform: translateX(0); animation-timing-function: cubic-bezier(.6, 0, .8, .4); }
  100%    { opacity: 0; transform: translateX(100%); }
}

/*  ═══ LES COMMANDES ═══ deux rangées : la mise, puis les décisions. */
.vu-bas { display: flex; flex-direction: column; gap: 6px; align-items: center; max-width: 100%; }
.vu-mises, .vu-outils { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: 100%; }
.vu-outils button { min-width: 44px; min-height: 44px; font-size: 1rem; font-weight: 700; padding: 6px 12px; }
.vu-outils button .lib { font-size: .8rem; font-weight: 400; }
.vu-outils button .ico { font-size: 1.15rem; }
/*  Les jetons de mise : ronds, la valeur écrite, la couleur du jeton peint. */
.vu-mises button.vu-mise {
  width: 48px; height: 48px; min-width: 48px; min-height: 48px; padding: 0; border-radius: 50%;
  border: 3px dashed #f6efdf; color: #f6efdf; font-weight: 800; font-size: .95rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .5), inset 0 0 0 3px rgba(0, 0, 0, .25);
}
.vu-mises button.vu-mise[data-jeton="5"]   { background: var(--vu-jeton-5); }
.vu-mises button.vu-mise[data-jeton="10"]  { background: var(--vu-jeton-10); }
.vu-mises button.vu-mise[data-jeton="25"]  { background: var(--vu-jeton-25); }
.vu-mises button.vu-mise[data-jeton="50"]  { background: var(--vu-jeton-50); }
.vu-mises button.vu-mise[data-jeton="100"] { background: var(--vu-jeton-100); }
.vu-mises button.vu-mise:hover:not(:disabled) { border-style: solid; border-color: var(--vu-or); background-color: var(--vu-ctl-or-vif); }
.vu-mises button.vu-mise:disabled { opacity: .45; background: var(--vu-ctl); color: var(--vu-doux); border-color: var(--vu-bord); }

.vu-dit {
  box-sizing: border-box; width: 100%; max-width: 100%; min-height: 2.6em;
  padding: 5px 10px; border-radius: 9px;
  background: var(--vu-panneau); border: 1px dashed var(--vu-bord);
  color: var(--vu-doux); font: 13.5px/1.35 Georgia, 'Times New Roman', serif;
  transition: border-color .3s, color .3s;
}
.vu-dit b { color: var(--vu-or); font-weight: 700; margin-right: 4px; }
.vu-dit.skelet b { color: var(--vu-doux); }
.vu-dit.on { border-style: solid; border-color: var(--vu-or); color: var(--vu-texte); }
.vu-dit.on.skelet { border-color: var(--vu-doux); }

.vu-legende { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .84rem; color: var(--vu-doux); justify-content: center; }
.vu-legende span { display: inline-flex; align-items: center; gap: 7px; }
.vu-legende i { flex: 0 0 auto; width: 14px; height: 14px; border-radius: 3px; box-sizing: border-box; display: inline-block; font-style: normal; }
.vu-legende i.vu-leg-or { border: 2px solid var(--vu-or); }
.vu-legende i.vu-leg-rouge { background: var(--vu-rouge); border: 2px solid var(--vu-rouge); }
.vu-legende kbd {
  font: 11px/1 ui-monospace, Menlo, Consolas, monospace; color: var(--vu-doux);
  border: 1px solid var(--vu-bord); border-radius: 4px; padding: 1px 4px;
}

@media (min-width: 1081px) {
  .vu-voix, .vu-legende { max-width: calc(100vw - 360px); }
}
@media (max-width: 1500px) {
  .etat { gap: 6px 8px; padding: 6px 10px; }
  .vu-jeton { padding: 3px 8px 3px 3px; }
  .vu-jeton .vu-lib { display: none; }
  .vu-outils button kbd { display: none; }
}
@media (max-height: 860px) {
  .vu-legende { display: none; }
}

.lb-sur .lb-sep { display: inline-block; }

/* ─────────────────────────────────────────────────────────── petits écrans ── */

@media (max-width: 640px), (max-height: 480px) {
  h1 { font-size: 1.05rem; margin: 4px 0 4px; }
  .bar { display: none; }
  .etat { font-size: 13px; gap: 3px 5px; padding: 3px 6px 3px; margin-bottom: 4px; }
  .vu-jeton { padding: 1px 6px 1px 2px; font-size: 12px; gap: 3px; }
  .vu-jeton .vu-lib { display: none; }
  .vu-jeton b { font-size: 13px; min-width: 0; }
  .vu-ico { width: 18px; height: 18px; font-size: 10px; }
  #jeton-meilleur, #jeton-sabot { display: none; }
  .vu-choix { margin-left: 0; }
  .vu-puce#variantes { max-width: min(40vw, 200px); }
  .vu-puce#variantes #titre-variante { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
  .vu-puce#options, .vu-puce#strategie { padding-left: 8px; padding-right: 8px; }
  .vu-options, .vu-tableau { right: auto; left: 0; min-width: min(92vw, 340px); }
  .vu-legende { display: none; }
  .plateau { gap: 4px; max-width: none; width: calc(100% + 16px); margin-left: -8px; }
  .vu-colonne { width: 100%; gap: 4px; }
  .vu-cadre { padding: 2px; border-radius: 8px; }
  .vu-dit {
    max-width: calc(100vw - 8px); font-size: 12px; line-height: 1.25;
    min-height: 0; height: calc(2 * 1.25em + 8px); padding: 4px 8px; overflow: hidden;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  }
  .vu-voix { max-width: calc(100vw - 8px); }
  #verdict:not(:empty) { font-size: 12px; padding: 4px 8px; }
  .vu-dit, #verdict:not(:empty) { padding-right: 112px; }
  .vu-mises button.vu-mise { width: 44px; height: 44px; min-width: 44px; min-height: 44px; font-size: .85rem; }
}
@media (max-width: 640px) and (orientation: portrait) {
  /*  Les commandes fixées en bas : la mise sur une rangée, les décisions
      sur une grille de quatre, 44 px chacune. */
  .vu-bas {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
    gap: 4px; padding: 5px 6px calc(5px + env(safe-area-inset-bottom));
    background: var(--vu-panneau); border-top: 1px solid var(--vu-liseré); box-shadow: 0 -6px 18px rgba(0, 0, 0, .5);
  }
  .vu-mises { gap: 4px; }
  .vu-outils { display: grid; grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); gap: 4px; width: 100%; }
  .vu-outils button { min-width: 0; padding: 4px 2px; font-size: 1rem; }
  .vu-outils button .lib { font-size: .7rem; }
  body.ludi-scene { padding-bottom: var(--vu-bas-h, 110px); }
  #ludiPlein { bottom: calc(var(--vu-bas-h, 110px) + 8px) !important; }
}

/*  ═══ LE TÉLÉPHONE TOURNÉ ═══ le bandeau à gauche, le tapis au centre,
    les commandes à droite en colonne. */
@media (max-height: 480px) and (orientation: landscape) {
  h1 { display: none; }
  .plateau {
    display: grid; grid-template-columns: 180px auto 96px;
    grid-template-areas: "etat cadre outils" "dit cadre outils"; column-gap: 6px; row-gap: 4px;
    align-items: start; justify-content: center; width: calc(100% + 16px); margin-left: -8px;
  }
  .etat {
    grid-area: etat; margin: 0; max-width: none; padding: 4px 6px; gap: 4px;
    flex-wrap: wrap; align-content: start;
  }
  .etat .vu-choix { width: 100%; flex-wrap: wrap; gap: 4px; }
  .etat .vu-puce#variantes { max-width: 100%; }
  .vu-options, .vu-tableau { left: 0; right: auto; }
  .vu-colonne { display: contents; }
  .vu-cadre { grid-area: cadre; justify-self: center; }
  /*  Le bouton ☰ du bandeau flotte dans le coin haut droit : la colonne
      des commandes commence sous lui. */
  .vu-bas { grid-area: outils; align-self: start; align-items: stretch; position: static; gap: 4px; width: 96px; margin-top: 48px; }
  .vu-mises { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
  .vu-mises button.vu-mise { width: 44px; height: 44px; min-width: 44px; min-height: 44px; font-size: .8rem; }
  .vu-outils { display: grid; grid-template-columns: 1fr; gap: 4px; width: 100%; }
  .vu-outils button { min-width: 0; width: 100%; padding: 4px 2px; }
  .vu-outils button .lib { display: none; }
  .vu-voix { grid-area: dit; width: auto; max-width: none; align-self: stretch; }
  .vu-dit { width: auto; max-width: none; min-height: 0; height: 100%; -webkit-line-clamp: 8; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .vu-cadre.refus { animation: none; }
  .vu-annonce.on { animation: none; opacity: 1; transform: none; }
  .vu-cadre, .bar button, .bar a, .vu-dit { transition: none; }
}

.bar .vu-option { display: inline-flex; align-items: center; gap: 5px; color: var(--vu-doux); font-size: 13px; cursor: pointer; white-space: nowrap; }
.bar .vu-option input { accent-color: var(--vu-or); width: 16px; height: 16px; margin: 0; }
