/* Compléments pour l'accueil par catégories et la page catégorie.
   À charger APRÈS style.css */

.catalogue {
  width: 100%;
}

/* Bouton « Voir plus » sous chaque catégorie */
.voir-plus {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 3vh;
}

.aucun-jeu {
  margin: 0;
  color: #bdbdbd;
}

.erreur-jeux {
  margin: 0;
  color: #ffb4b4;
}

/* Page catégorie */
.retour-accueil {
  display: inline-block;
  margin-bottom: 1vh;
  color: #bdbdbd;
  text-decoration: none;
  font-size: 0.85rem;
}

.retour-accueil:hover {
  color: #ffffff;
}

.nb-jeux {
  color: #bdbdbd;
  font-size: 0.9rem;
  margin: 0 0 3vh;
}

.onglets {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  margin: 2vh 0 1vh;
}

.onglets a {
  color: #ffffff;
  text-decoration: none;
  border: 1px solid #bdbdbd;
  border-radius: 50px;
  padding: 8px 16px;
  font-size: 0.8rem;
  transition: background-color 0.2s;
}

.onglets a:hover,
.onglets a.actif {
  background-color: #616161;
}

/* ---------- Page d'un jeu (jeu.php) ---------- */

/* Pastille « rupture de stock » */
.pastille .ko::before {
  content: "✕";
  color: #ff6b6b;
  font-weight: 900;
  margin-right: 6px;
}

/* Sélecteur d'édition */
.choix-edition {
  margin: 0;
  width: 100%;
  display: flex;
  justify-content: center;
}

/* Édition unique (pas de choix possible) */
.edition-unique {
  margin: 0;
  font-size: 0.9rem;
  color: #ffffff;
  background: rgba(33, 33, 33, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 8px;
  padding: 1.7vh 1.4vw;
}

/* Bouton panier désactivé (stock à 0) */
.btn-panier:disabled {
  filter: grayscale(1);
  opacity: 0.5;
  cursor: not-allowed;
}

/* Tags qui ne sont pas des liens */
.tags .tag {
  color: #ffffff;
  border: 1px solid #bdbdbd;
  border-radius: 6px;
  padding: 7px 12px;
  font-size: 0.75rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 700px) {
  .onglets {
    gap: 8px;
    margin: 1.5vh 0;
  }

  .onglets a {
    padding: 8px 12px;
    font-size: 0.72rem;
  }

  .retour-accueil {
    margin-bottom: 1.5vh;
  }

  .nb-jeux {
    margin-bottom: 2vh;
  }

  .voir-plus {
    margin-top: 2vh;
  }

  .edition-unique {
    padding: 12px 14px;
  }

  .tags .tag {
    padding: 6px 10px;
  }
}