/* Vote du public des Trophées. Reprend les variables et les classes du thème Afro Gala.
   Surcharges responsive EN FIN de fichier. */

/* --------------------------------------------------------------- En-tête */

.afg-vote-tete h1{margin-top:14px}
.afg-vote-tete .afg-texte{margin:18px 0 0}
.afg-vote-apercu{margin:24px 0 0;max-width:66ch;background:#fff;color:var(--noir);
  padding:14px 18px;font-size:15px;line-height:1.55}

/* ------------------------------------------------------------- Sommaire */

.afg-vote-sommaire{background:var(--creme);border-bottom:1px solid var(--bord)}
.afg-vote-sommaire ul{list-style:none;margin:0;padding:18px 0;display:flex;flex-wrap:wrap;gap:8px}
.afg-vote-sommaire a{display:inline-flex;align-items:center;gap:9px;min-height:40px;padding:8px 14px;
  background:#fff;border:1px solid var(--bord-3);color:var(--noir);
  font-size:13px;font-weight:500;letter-spacing:.04em;white-space:nowrap}
.afg-vote-sommaire a:hover{border-color:var(--noir);color:var(--noir)}
.afg-vote-coche{width:8px;height:8px;flex:0 0 auto;background:var(--bord-3)}
.afg-vote-sommaire a.est-fait{background:var(--noir);border-color:var(--noir);color:#fff}
.afg-vote-sommaire a.est-fait .afg-vote-coche{background:var(--accent)}

/* ----------------------------------------------------------- Catégories */

/* L'en-tête du site reste collé en haut : la catégorie visée s'arrête sous lui. */
.afg-vote-cat{scroll-margin-top:90px}
.afg-vote-champ{border:0;margin:0;padding:0;min-width:0}
/* Un legend flottant se comporte comme un bloc ordinaire dans tous les navigateurs. */
.afg-vote-legende{float:left;width:100%;padding:0;margin:0 0 clamp(22px,2.6vw,32px)}
.afg-vote-legende .afg-suptitre{display:block;margin-bottom:12px}
.afg-vote-nommes{clear:both;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
  gap:clamp(14px,1.6vw,22px);max-width:1180px}
.afg-vote-nommes>*{min-width:0}

/* --------------------------------------------------------------- Nommés */

.afg-nomme{position:relative;display:flex;flex-direction:column;background:#fff;
  border:1px solid var(--bord-2);color:var(--noir)}
label.afg-nomme{cursor:pointer}
/* Le bouton radio, invisible, couvre toute la carte : le clic tombe dessus, et le
   navigateur ne fait pas défiler la page pour montrer un bouton resté hors de l'écran. */
.afg-nomme-radio{position:absolute;inset:0;z-index:1;width:100%;height:100%;margin:0;opacity:0;cursor:pointer;
  -webkit-appearance:none;appearance:none}
.afg-nomme-radio:focus{outline:none}
.afg-vote.est-envoye .afg-nomme-radio{cursor:default}
.afg-nomme-visuel{display:block;aspect-ratio:4/5;background:var(--noir);overflow:hidden}
/* En attendant le visuel du nommé : un bandeau noir avec le trophée, pas une grande case vide. */
.afg-nomme-visuel:has(.afg-nomme-attente){aspect-ratio:5/2}
.afg-nomme-visuel picture{display:contents}
.afg-nomme-visuel img.afg-nomme-img{display:block;width:100%;height:100%;object-fit:cover}
.afg-nomme-attente{display:flex;align-items:center;justify-content:center;width:100%;height:100%}
.afg-nomme-attente img{width:54px;height:54px;object-fit:contain;opacity:.9}
.afg-nomme-corps{display:flex;flex-direction:column;gap:14px;padding:18px 20px 20px;flex:1 1 auto}
.afg-nomme-nom{font-size:clamp(16px,1.25vw,18px);font-weight:600;line-height:1.3;
  letter-spacing:.06em;text-transform:uppercase;overflow-wrap:anywhere}
.afg-nomme-etat{display:flex;align-items:center;gap:10px;margin-top:auto;
  font-size:12px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--gris)}
.afg-nomme-case{position:relative;width:24px;height:24px;flex:0 0 auto;border:2px solid var(--gris-clair);border-radius:50%;background:#fff}

.afg-nomme.est-choisi,.afg-nomme:has(.afg-nomme-radio:checked){outline:3px solid var(--accent);outline-offset:-3px}
.afg-nomme.est-choisi .afg-nomme-case,.afg-nomme:has(.afg-nomme-radio:checked) .afg-nomme-case{border-color:var(--accent);background:var(--accent)}
.afg-nomme.est-choisi .afg-nomme-case::after,.afg-nomme:has(.afg-nomme-radio:checked) .afg-nomme-case::after{
  content:"";position:absolute;left:6px;top:2px;width:6px;height:11px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}
.afg-nomme.est-choisi .afg-nomme-lib,.afg-nomme:has(.afg-nomme-radio:checked) .afg-nomme-lib{color:var(--accent)}
.afg-nomme:has(.afg-nomme-radio:focus-visible){outline:3px solid var(--noir);outline-offset:3px}
.afg-vote.est-envoye label.afg-nomme{cursor:default}

.afg-vote-retirer{display:inline-block;margin-top:18px;padding:6px 0;background:none;border:0;cursor:pointer;
  font-family:'Jost',system-ui,sans-serif;font-size:14px;color:var(--gris);text-decoration:underline;text-underline-offset:3px}
.afg-vote-retirer:hover{color:var(--noir)}
.afg-vote-retirer[hidden]{display:none}

/* ------------------------------------------------------ Dernière étape */

/* Calé à gauche comme le reste de la page : la largeur se limite sur les enfants, pas sur la trame. */
.afg-vote-fin-in>*{max-width:820px}
.afg-vote-fin-texte .afg-h2{margin-top:14px}
.afg-vote-fin-texte .afg-texte{margin:16px 0 0}
.afg-vote-recap{list-style:none;margin:24px 0 0;padding:0}
.afg-vote-recap:empty{display:none}
.afg-vote-recap li{display:flex;flex-direction:column;gap:4px;
  padding:12px 0;border-bottom:1px solid rgba(255,255,255,.16)}
.afg-vote-recap li:first-child{border-top:1px solid rgba(255,255,255,.16)}
.afg-vote-recap span{font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:var(--gris-pale)}
.afg-vote-recap strong{font-weight:600;letter-spacing:.04em;color:#fff}
.afg-vote-identite{margin-top:clamp(26px,3vw,36px)}
.afg-vote-identite .afg-vote-case{display:flex;align-items:flex-start;gap:12px;cursor:pointer;
  font-size:15px;line-height:1.5;letter-spacing:normal;text-transform:none;color:var(--gris-texte)}
.afg-vote-identite .afg-vote-case input{width:20px;height:20px;flex:0 0 auto;margin:2px 0 0;padding:0;accent-color:var(--accent)}
.afg-vote-identite button[hidden]{display:none}

/* ------------------------------------------------- Barre de progression */

.afg-vote-barre{position:fixed;left:0;right:0;bottom:0;z-index:80;background:var(--noir);color:#fff;
  border-top:1px solid rgba(255,255,255,.16)}
.afg-vote-barre-in{max-width:var(--shell);margin-inline:auto;padding:12px var(--gutter);
  display:flex;align-items:center;justify-content:space-between;gap:16px}
.afg-vote-compte{font-size:14px;letter-spacing:.04em}
.afg-vote-barre .afg-btn-plein{padding:13px 20px;min-height:46px;white-space:nowrap}

/* ------------------------------------------------------- Confirmation */

.afg-vote-merci>*{max-width:900px}
.afg-vote-bilan{list-style:none;margin:24px 0 0;padding:0}
.afg-vote-bilan li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 20px;align-items:baseline;
  padding:16px 0;border-bottom:1px solid var(--bord)}
.afg-vote-bilan li:first-child{border-top:1px solid var(--bord)}
.afg-vote-bilan-cat{grid-column:1 / -1;font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:var(--gris)}
.afg-vote-bilan strong{font-size:18px;font-weight:600;letter-spacing:.04em;text-transform:uppercase}
.afg-vote-bilan-etat{font-size:13px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:#1E5A28}
.afg-vote-bilan-refus .afg-vote-bilan-etat{color:var(--gris);text-transform:none;letter-spacing:normal;font-weight:400}
.afg-vote-autres{margin:28px 0 0}
.afg-vote-partage{margin-top:clamp(44px,5vw,64px)}
.afg-vote-partage .afg-btn-groupe{margin-top:24px}
.afg-vote-partage button{font-family:'Jost',system-ui,sans-serif;cursor:pointer;background:transparent}
.afg-vote-billet{margin:26px 0 0;color:var(--gris-texte)}

/* ----------------------------------------------------------- Responsive */

@media (max-width:900px){
  .afg-vote-nommes{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
  .afg-nomme-corps{padding:14px 14px 16px}
}

/* Téléphone : un nommé par ligne, vignette à gauche, jamais deux photos côte à côte. */
@media (max-width:600px){
  .afg-vote-sommaire ul{flex-wrap:nowrap;overflow-x:auto;padding:14px 0;margin-inline:calc(-1 * var(--gutter));
    padding-inline:var(--gutter);scrollbar-width:none}
  .afg-vote-sommaire ul::-webkit-scrollbar{display:none}
  .afg-vote-nommes{grid-template-columns:1fr;gap:10px}
  .afg-nomme{flex-direction:row;align-items:stretch}
  .afg-nomme-visuel{width:88px;flex:0 0 88px}
  .afg-nomme-visuel:has(.afg-nomme-attente){aspect-ratio:auto;width:64px;flex-basis:64px;min-height:64px}
  .afg-nomme-attente img{width:30px;height:30px}
  .afg-nomme-corps{flex-direction:row;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px}
  .afg-nomme-nom{font-size:15px;letter-spacing:.04em}
  .afg-nomme-etat{margin-top:0}
  .afg-nomme-lib{display:none}
  .afg-vote-barre-in{padding-block:10px}
  .afg-vote-compte{font-size:13px}
  .afg-vote-barre .afg-btn-plein{padding:12px 14px;font-size:11.5px}
  .afg-vote-bilan strong{font-size:16px}
  .afg-vote-bilan li{grid-template-columns:1fr}
}

@media (max-width:760px){
  .afg-vote-partage .afg-btn-groupe>button{width:100%}
}
