/* Le bulletin d'un vote, la fiche de l'onglet Votes (bulletin-ui.mjs ; étape 5, piste survie, sous-tâche 8 e3 ; brief 05-votes-brief.md § 5).
   Les valeurs sont celles du rendu validé dans le jeu (8 e0b, classes .v8-* de la recette) : intitulés dorés à filet, rangées d'un seul
   choix de 44 px (le rond, le mot, « En vigueur » en mots), le pas à pas aux boutons ronds de 44 px (Q119), le pied collant et opaque (à
   96 %, les rangées transparaissaient dessous), les boutons à trait de 1 px (jamais un aplat ; armé, la teinte légère). Sous 360 px de
   large, le bouton armé dit « Confirmer » seul (Q127). Aucune transition ni animation ; aucune action au survol. */
.bulletin [hidden] { display: none !important; }

/* Un volet : son intitulé (doré, petites capitales espacées, filet), puis ses rangées. */
.bulletin-sec { display: flex; align-items: center; gap: 10px; margin: 14px 14px 8px; color: var(--computer-gold); font-size: 10px; letter-spacing: 2.4px; text-transform: uppercase; }
.bulletin-sec::after { content: ""; flex: 1; height: 1px; background: rgb(224 201 143 / 45%); }
.bulletin-groupe { display: grid; padding: 0 0 4px; }
.bulletin-radio {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 0 14px; border: 0; color: #e9ede0; background: transparent;
  font: 13px/1.5 var(--font-ui, system-ui, sans-serif); text-align: left; cursor: pointer;
}
.bulletin-rond { flex: none; box-sizing: border-box; width: 18px; height: 18px; border: 1.5px solid #a9b9ad; border-radius: 50%; }
.bulletin-radio[aria-checked="true"] .bulletin-rond { border-color: var(--computer-cyan); background: radial-gradient(circle, var(--computer-cyan) 0 4px, transparent 4.5px); }
.bulletin-radio[aria-disabled="true"] { cursor: default; }
.bulletin-vig { margin-left: auto; color: var(--computer-cyan); font-size: 11px; }
/* Le cadre du focus (celui des boutons de l'ordinateur) : à l'intérieur des rangées pleine largeur, que la rubrique rognerait au-dehors ;
   autour de la valeur du pas à pas, un `div` que la règle des boutons ne couvre pas. */
.computer-section[data-section="votes"] .bulletin-radio:focus-visible { outline: 2px solid #add3be; outline-offset: -3px; }
.computer-section[data-section="votes"] .bulletin-val:focus-visible { outline: 2px solid #add3be; outline-offset: 3px; border-radius: 4px; }

/* Le pas à pas : « − », la valeur en Georgia avec « places par jour » dessous, « + » ; grisé quand « Aucune limite » est choisie. */
.bulletin-pas { display: flex; align-items: center; gap: 14px; padding: 2px 14px 8px 44px; }
.bulletin-pas-bouton {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid rgb(150 214 228 / 45%); border-radius: 50%;
  color: #dff6fb; background: transparent; font: 400 20px/1 var(--font-ui, system-ui, sans-serif); cursor: pointer;
}
.bulletin-pas-bouton[aria-disabled="true"] { opacity: .4; cursor: default; }
.bulletin-val { display: grid; justify-items: center; min-width: 64px; }
.bulletin-n { font: 400 28px/1.1 Georgia, serif; color: #f1e9d8; }
.bulletin-unite { color: #a9b9ad; font-size: 11px; }
.bulletin-pas[data-eteint="true"] .bulletin-val { opacity: .4; }

/* Le pied, collant au bas de la rubrique et opaque (le fond du panneau, plein), sous un filet doré. */
.bulletin-pied {
  position: sticky; bottom: -12px; display: grid; gap: 7px; margin: 12px 0 -12px; padding: 12px 14px 14px;
  border-top: 1px solid rgb(224 201 143 / 55%); background: rgb(17 33 33);
}
.bulletin-recap { margin: 0; color: #e9ede0; font-size: 12px; }
.bulletin-avert { margin: 0; color: #a9b9ad; font-size: 11px; }
.bulletin-refus { margin: 0; color: #f0b6a3; font-size: 12px; }
.bulletin-boutons { display: flex; justify-content: flex-end; align-items: center; gap: 8px; flex-wrap: wrap; }
.bulletin-trait {
  min-height: 44px; padding: 0 16px; border: 1px solid rgb(150 214 228 / 45%); border-radius: 6px; color: #dff6fb; background: transparent;
  font: 600 12px var(--font-ui, system-ui, sans-serif); white-space: nowrap; cursor: pointer;
}
.bulletin-trait[aria-disabled="true"] { opacity: .45; cursor: default; }
.bulletin-trait.is-armed { border-color: var(--computer-cyan); color: #f2fdff; background: rgb(143 227 245 / 16%); box-shadow: 0 0 0 1px var(--computer-cyan) inset; }

/* Le bouton armé porte deux mots ; « Confirmer » seul sous 360 px de large, pour qu'« Annuler » tienne sur sa ligne (Q127). */
.bulletin-court { display: none; }
@media (max-width: 359px) {
  .bulletin-long { display: none; }
  .bulletin-court { display: inline; }
}
/* Rien ne bouge : ni l'armement, ni le pas à pas. */
@media (prefers-reduced-motion: reduce) {
  .bulletin, .bulletin * { transition: none; animation: none; }
}
