/* GFC 17/11/2026 (Jimmy) — bloc de vote compact « JE LE CHOISIS » pour le PREMIER bloc « Vote favoris »
   (module gfcvotefavoris, bloc n° 1 : Thunder Cloud x Fumytech, catégories 5860 + 5859).
   Partie 1 = raccord au site (masque l'ancien bloc OUI / NON / urne / barre / étoiles de CE bloc seulement).
   Partie 2 = styles.css de Jimmy, tel quel. Les autres blocs de vote et les tuiles de vote ne sont pas touchés. */

/* ---------- 1. Raccord (bloc n° 1 uniquement) ---------- */
section#gfc-editions.gfcvf .gfc-carte > .gfc-question,
section#gfc-editions.gfcvf .gfc-carte > .gfc-precision,
section#gfc-editions.gfcvf .gfc-carte > .gfc-boutons,
section#gfc-editions.gfcvf .gfc-carte > .gfc-resultats,
section#gfc-editions.gfcvf .gfc-carte > .gfc-barre,
section#gfc-editions.gfcvf .gfc-carte > .gfc-note,
section#gfc-editions.gfcvf .gfc-carte > .gfc-total {
  display: none !important;
}

/* la carte n'a plus besoin de sa hauteur minimale (le bloc est plus court) */
section#gfc-editions.gfcvf .gfc-carte {
  min-height: 0 !important;
}

/* fin du vote : plus de bouton (la précision affiche « Vote terminé ») */
.gfc-vote-compact.gfc-vote-termine .gfc-vote-choix {
  display: none;
}

/* ---------- 2. styles.css de Jimmy (index.zip du 17/11/2026), inchangé ---------- */
/* Bloc isolé : aucune modification de l’image ni du titre produit. */
.gfc-vote-compact {
  width: 100%;
  margin: 14px auto 0;
  padding: 0;
  text-align: center;
  font-family: inherit;
}

.gfc-vote-compact,
.gfc-vote-compact * {
  box-sizing: border-box;
}

.gfc-vote-compact .gfc-vote-question {
  margin: 0;
  padding: 0;
  color: #ed8800;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
}

.gfc-vote-compact .gfc-vote-precision {
  margin: 4px 0 12px;
  padding: 0;
  color: #666;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
}

.gfc-vote-compact .gfc-vote-choix {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  max-width: 260px;
  min-height: 44px;
  margin: 0;
  padding: 10px 14px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(
    to bottom,
    #f8a000 0%,
    #ea840e 100%
  );
  box-shadow: 0 2px 5px rgb(0 0 0 / 10%);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  appearance: none;
}

.gfc-vote-compact .gfc-vote-choix svg {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  fill: currentColor;
}

@media (hover: hover) {
  .gfc-vote-compact .gfc-vote-choix:hover:not(:disabled) {
    filter: brightness(1.05);
  }
}

.gfc-vote-compact .gfc-vote-choix:focus-visible {
  outline: 3px solid #583600;
  outline-offset: 3px;
}

.gfc-vote-compact .gfc-vote-choix:disabled {
  cursor: default;
}

/* À ajouter uniquement après confirmation du vote par le serveur. */
.gfc-vote-compact .gfc-vote-choix.is-voted {
  box-shadow: inset 0 0 0 2px rgb(255 255 255 / 45%);
}

.gfc-vote-compact .gfc-vote-resultat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  color: #248b30;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.gfc-vote-compact .gfc-vote-resultat svg {
  flex: 0 0 27px;
  width: 27px;
  height: 27px;
  fill: currentColor;
}

.gfc-vote-compact .gfc-vote-nombre {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ---------- 3. 17/11/2026 version b (réponses de Jimmy) : bouton GRISÉ, non cliquable ----------
   après le vote (.is-voted, posé après le OK du serveur) et en « Bientôt disponible » (.gfc-vote-bientot) */
.gfc-vote-compact .gfc-vote-choix.is-voted,
.gfc-vote-compact .gfc-vote-choix.gfc-vote-bientot {
  background: #d6d6d6;
  box-shadow: none;
  color: #555;
  cursor: default;
  filter: none;
}

/* ---------- 4. 17/11/2026 version c (Jimmy : « réduis un peu l'espacement » entre le titre et la question) ----------
   Le vide venait de la marge basse du titre du module (24 px sur PC, prévue pour l'ancien bloc), qui l'emportait sur
   les 14 px de la maquette. Sur ce bloc : le titre n'a plus de marge basse, l'espace = marge haute du bloc compact
   (12 px sur PC au lieu de 24, 8 px sur mobile au lieu de 14). */
section#gfc-editions.gfcvf .gfc-carte > .gfc-produit {
  margin-bottom: 0 !important;
}
section#gfc-editions.gfcvf .gfc-carte > .gfc-vote-compact {
  margin-top: 12px;
}
@media (max-width: 600px) {
  section#gfc-editions.gfcvf .gfc-carte > .gfc-vote-compact {
    margin-top: 8px;
  }
}

/* ---------- 5. 17/11/2026 version d ----------
   (Raph, version d) le raccord était limité à body.cat-5860 — restriction ANNULÉE en version e (voir partie 6).
   (Jimmy) libellé « JE VOTE POUR LUI ! » : toujours sur une ligne ; sur mobile (cartes de 180 px) police et marges
   intérieures légèrement réduites pour que ça tienne. */
.gfc-vote-compact .gfc-vote-choix .gfc-vote-libelle {
  white-space: nowrap;
}
@media (max-width: 600px) {
  .gfc-vote-compact .gfc-vote-choix {
    gap: 6px;
    padding: 10px 6px;
    font-size: 12px;
  }
  .gfc-vote-compact .gfc-vote-choix svg {
    flex-basis: 18px;
    width: 18px;
    height: 18px;
  }
}

/* ---------- 6. 17/11/2026 version e (Raph : « le modèle de Jimmy pour TOUS les votes favoris, dans Sample aussi ») ----------
   Les règles de raccord (parties 1 et 4) visent maintenant le conteneur du module (section#gfc-editions.gfcvf), sans numéro
   de bloc ni restriction de catégorie : tous les blocs, toutes les pages. Les tuiles de vote classiques ne sont pas visées. */

/* ---------- 7. 17/11/2026 version f (Raph : « lorsqu'on vote, laisse la pop-up commentaire qu'on regarde en interne ») ----------
   Pop-up commentaire ouverte par « JE VOTE POUR LUI ! » : mêmes textes et même enregistrement (ps_voting.comment, lu au BO
   dans Out of stock > Liste des votes) que la pop-up « JE VOTE » des tuiles de vote. Posée directement dans <body>,
   au-dessus de tout (en-tête collant, menu, chat), centrée, défilable sur petit écran. */
.gfc-vote-pop {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, .45);
  box-sizing: border-box;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.gfc-vote-pop[hidden] {
  display: none;
}
.gfc-vote-pop,
.gfc-vote-pop * {
  box-sizing: border-box;
}
.gfc-vote-pop .gfc-vote-pop-carte {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 100%;
  margin: auto;
  padding: 26px 28px 24px;
  overflow: auto;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .25);
  color: #000;
  font-family: 'Lato', Arial, sans-serif;
  text-align: center;
  letter-spacing: normal;
}
.gfc-vote-pop .gfc-vote-pop-fermer {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 36px;
  height: 36px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  color: #777;
  font-size: 28px;
  font-weight: 400;
  line-height: 36px;
  cursor: pointer;
}
.gfc-vote-pop .gfc-vote-pop-fermer:hover {
  color: #000;
}
.gfc-vote-pop .gfc-vote-pop-produit {
  margin: 0 30px 10px;
  padding: 0;
  color: #000;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}
.gfc-vote-pop .gfc-vote-pop-titre {
  margin: 0 0 12px;
  padding: 0;
  color: #f7941d;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
}
.gfc-vote-pop .gfc-vote-pop-info {
  margin: 0 0 10px;
  padding: 0;
  color: #000;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.35;
}
.gfc-vote-pop .gfc-vote-pop-label {
  display: block;
  margin: 16px 0 6px;
  padding: 0;
  color: #000;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
}
.gfc-vote-pop .gfc-vote-pop-texte {
  display: block;
  width: 100%;
  height: auto;
  min-height: 110px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #f7f7f7;
  color: #000;
  font-family: inherit;
  font-size: 16px; /* 16 px : pas de zoom automatique sur iPhone */
  line-height: 1.35;
  resize: vertical;
}
.gfc-vote-pop .gfc-vote-pop-texte:focus {
  border-color: #ed8800;
  outline: 0;
}
.gfc-vote-pop .gfc-vote-pop-valider {
  display: block;
  width: 100%;
  max-width: 280px;
  min-height: 46px;
  margin: 18px auto 0;
  padding: 12px 14px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(to bottom, #f8a000 0%, #ea840e 100%);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}
.gfc-vote-pop .gfc-vote-pop-valider:disabled {
  opacity: .6;
  cursor: default;
}
@media (max-width: 600px) {
  .gfc-vote-pop {
    padding: 10px;
  }
  .gfc-vote-pop .gfc-vote-pop-carte {
    padding: 22px 16px 18px;
  }
  .gfc-vote-pop .gfc-vote-pop-titre {
    font-size: 17px;
  }
  .gfc-vote-pop .gfc-vote-pop-info {
    font-size: 14px;
  }
  .gfc-vote-pop .gfc-vote-pop-label {
    font-size: 14px;
  }
  .gfc-vote-pop .gfc-vote-pop-texte {
    min-height: 90px;
  }
}

/* ---------- 8. 17/11/2026 version g : CSS identique à la version f (seul le JS change : fermer la pop-up annule le vote). ---------- */
