/* L'onglet « Votes » de l'ordinateur de bord (votes-ui.mjs ; étape 5, piste survie, sous-tâche 8 e2 ; brief 05-votes-brief.md § 4, V-A
   choisie le 08/11). Les valeurs sont celles du rendu validé dans le jeu (8 e0b, classes .v8-* de la recette) : cartes de verre au liseré
   turquoise, la frise des voix (pleine turquoise, hachurée corail, creuse ; le mot double toujours la teinte), puces et boutons à trait de
   1 px (jamais un aplat), cibles de 44 px. Aucune transition ni animation ; aucune action au survol. */
.computer-section[data-section="votes"] { font-size: 12px; line-height: 1.5; }
.computer-section[data-section="votes"] [hidden] { display: none !important; }

.votes-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; }
.votes-sec::after { content: ""; flex: 1; height: 1px; background: rgb(224 201 143 / 45%); }
.votes-indispo { margin: 14px 16px 4px; color: #dfe7da; font-size: 13px; text-align: center; }

/* Une carte par vote ouvert ; celle qui attend la voix du lecteur porte le liseré épais. */
.votes-liste { display: grid; gap: 10px; padding: 0 14px; }
.votes-carte { display: grid; gap: 5px; padding: 11px 14px 12px 17px; border: 1px solid rgb(150 214 228 / 22%); border-radius: 6px; background: rgb(14 32 35 / 46%); box-shadow: inset 2px 0 rgb(143 227 245 / 38%); }
.votes-carte[data-attend="true"] { border-color: rgb(143 227 245 / 42%); box-shadow: inset 4px 0 var(--computer-cyan); }
.votes-tete { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 6px; }
.votes-titre { display: grid; gap: 5px; min-width: 0; margin: 0; font: inherit; }
.votes-sujet { justify-self: start; padding-bottom: 3px; border-bottom: 1px solid rgb(224 201 143 / 55%); color: var(--computer-gold); font-size: 10px; letter-spacing: 3.2px; text-transform: uppercase; }
.votes-prop { display: grid; margin: 2px 0 0; font: 400 16px/1.3 Georgia, serif; color: #f1e9d8; }
.votes-carte[data-repliee="true"] .votes-prop { margin: 0; font: 13px/1.5 var(--font-ui, system-ui, sans-serif); color: #e9ede0; }
.votes-replier { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 6px; color: #cfd9cf; background: transparent; cursor: pointer; }
.votes-carte[data-repliee="false"] .votes-replier svg { transform: rotate(180deg); }
.votes-corps { display: grid; gap: 5px; }
.votes-meta, .votes-gris { margin: 0; color: #a9b9ad; font-size: 11px; line-height: 1.45; }

/* La frise des voix : un segment par membre qui vote, 10 px de haut, 3 px d'écart ; aria-hidden, le compte écrit la double. */
.votes-frise { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 3px; height: 10px; margin: 5px 0 2px; }
.votes-frise-mini { height: 8px; width: 120px; margin: 0; }
.votes-seg { position: relative; box-sizing: border-box; border: 1px solid rgb(180 205 183 / 50%); border-radius: 2px; }
.votes-seg-oui { background: #8fe3f5; border-color: #8fe3f5; }
.votes-seg-non { border-color: #f0b6a3; background: repeating-linear-gradient(135deg, #f0b6a3 0 1.5px, transparent 1.5px 4.5px); }
.votes-seg-requis::after { content: ""; position: absolute; right: -3px; top: -4px; bottom: -4px; width: 2px; background: #e0c98f; }
.votes-compte { margin: 0; color: #e9ede0; font-size: 13px; }

/* La voix : deux puces d'un seul choix (la choisie : trait turquoise de 2 px et « ✓ »), puis « Voter » à trait fin sur la même rangée. */
.votes-voix-titre { margin: 6px 0 0; color: #dfe7da; font-size: 12px; }
.votes-voix { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.votes-puces { display: flex; gap: 8px; }
.votes-puce { min-height: 44px; min-width: 88px; padding: 0 16px; border: 1px solid rgb(150 214 228 / 45%); border-radius: 999px; color: #dff6fb; background: transparent; font: 600 12px var(--font-ui, system-ui, sans-serif); cursor: pointer; }
.votes-puce[aria-checked="true"] { border: 2px solid var(--computer-cyan); color: #f2fdff; }
.votes-voter { min-height: 44px; margin-left: auto; 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; }
.votes-puce[aria-disabled="true"], .votes-voter[aria-disabled="true"], .votes-proposer[aria-disabled="true"] { opacity: .45; cursor: default; }
.votes-carte[aria-busy="true"] .votes-voter { opacity: .45; }
.votes-aide, .votes-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.votes-refus { margin: 2px 0 0; color: #f0b6a3; font-size: 12px; }

/* La carte repliée : « Votre voix : oui » et la frise réduite. */
.votes-resume { display: flex; align-items: center; gap: 10px; color: #cfd9cf; font-size: 12px; }

/* « En vigueur » : une rangée par sujet, sa ligne d'action de 44 px. */
.votes-vigueur { margin: 0 14px; border: 1px solid rgb(150 214 228 / 22%); border-radius: 6px; background: rgb(14 32 35 / 46%); }
.votes-regle { display: grid; gap: 3px; padding: 11px 14px 6px; }
.votes-regle + .votes-regle { border-top: 1px solid rgb(180 205 183 / 16%); }
.votes-regle-titre { margin: 0; font: 400 15px/1.3 Georgia, serif; color: #f1e9d8; }
.votes-regle p { margin: 0; color: #e9ede0; font-size: 12px; }
.votes-regle .votes-avenir { color: var(--computer-cyan); }
.votes-action { display: flex; justify-content: flex-end; align-items: center; min-height: 44px; }
.votes-raison { color: #a9b9ad; font-size: 11px; }
.votes-proposer { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 4px 0 12px; border: 0; border-radius: 6px; color: #dff6fb; background: transparent; font: 600 12px var(--font-ui, system-ui, sans-serif); cursor: pointer; }
.votes-proposer-icone { display: grid; place-items: center; }

/* « Derniers votes » : le dernier résultat de chaque sujet. */
.votes-derniers { display: grid; gap: 10px; }
.votes-clos { display: grid; gap: 3px; margin: 0 14px; padding: 11px 14px 12px 17px; border: 1px solid rgb(150 214 228 / 18%); border-radius: 6px; background: rgb(14 32 35 / 30%); }
.votes-clos-titre { margin: 0; font: 400 15px/1.3 Georgia, serif; color: #f1e9d8; }
.votes-clos-etat { font: 12px var(--font-ui, system-ui, sans-serif); color: #a9b9ad; }
.votes-clos p { margin: 0; color: #e9ede0; font-size: 12px; }
.votes-pied { margin: 14px 14px 0; color: #a9b9ad; font-size: 11px; font-style: italic; }

/* Aucun vote ouvert. */
.votes-vide { display: grid; justify-items: center; gap: 6px; margin: 14px 16px 4px; text-align: center; }
.votes-vide p { margin: 0; }
.votes-vide-titre { color: #dfe7da; font-size: 13px; }
.votes-vide-note { color: #a9b9ad; font-size: 11px; font-style: italic; }

/* Sous 360 px de large (Q129) : des puces de 64 px, 44 px de haut gardés, pour que « Voter » reste sur leur rangée. */
@media (max-width: 359px) {
  .votes-puce { min-width: 64px; padding: 0 12px; }
  .votes-voix, .votes-puces { gap: 6px; }
}
/* Rien ne bouge : ni la frise, ni le repli d'une carte. */
@media (prefers-reduced-motion: reduce) {
  .computer-section[data-section="votes"], .computer-section[data-section="votes"] * { transition: none; animation: none; }
}
