/* Petit BAC — éditeur de catégories (accueil multijoueur, réglage du solo, grille à imprimer) */
.cats-editeur {
  max-width: 600px;
  margin: 0 auto 18px;
  text-align: left;
}
.cats-repli {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}
.cats-repli > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 14px;
  cursor: pointer;
  list-style: none;
  font-size: 0.88rem;
  color: #cbd5e1;
}
.cats-repli > summary::-webkit-details-marker { display: none; }
.cats-resume { flex: 1; line-height: 1.4; }
.cats-modifier { flex: none; font-weight: 700; color: var(--color-accent); text-decoration: underline; }
.cats-repli[open] .cats-modifier { display: none; }
.cats-corps { padding: 4px 14px 14px; }

.cats-themes, .cats-actives, .cats-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 12px;
}
.cat-theme {
  font-family: 'Inter', sans-serif;
  min-height: 44px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 700;
  color: #cbd5e1;
  cursor: pointer;
}
.cat-theme:hover { border-color: rgba(110, 231, 183, 0.5); }
.cat-theme.actif { background: rgba(52, 211, 153, 0.16); border-color: var(--color-mid); color: var(--color-accent); }
.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 0 2px 0 14px;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.4);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #e2e8f0;
}
/* La croix : petite à l'œil, mais 44 px de zone à toucher */
.cat-suppr {
  width: 40px;
  height: 44px;
  padding: 0;
  background: none;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  line-height: 1;
  color: #94a3b8;
  cursor: pointer;
}
.cat-suppr:hover { color: #fca5a5; }
.cat-sugg {
  font-family: 'Inter', sans-serif;
  min-height: 44px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  font-size: 0.84rem;
  color: #94a3b8;
  cursor: pointer;
}
.cat-sugg:hover { border-color: rgba(110, 231, 183, 0.5); color: #e2e8f0; background: rgba(52, 211, 153, 0.08); }
.cats-ajout { display: flex; gap: 8px; justify-content: center; margin-bottom: 8px; }
.cats-ajout[hidden] { display: none; }
.cats-input {
  font-family: 'Inter', sans-serif;
  flex: 1;
  max-width: 280px;
  min-height: 44px;
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  font-size: 1rem;
  color: #e2e8f0;
  outline: none;
}
.cats-input:focus { border-color: rgba(110, 231, 183, 0.6); }
.cats-input:disabled { opacity: 0.5; cursor: not-allowed; }
.cats-btn-ajouter {
  font-family: 'Inter', sans-serif;
  min-height: 44px;
  padding: 9px 16px;
  background: rgba(52, 211, 153, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.4);
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #6ee7b7;
  cursor: pointer;
}
.cats-btn-ajouter:hover { background: rgba(52, 211, 153, 0.25); }
.cats-btn-ajouter:disabled { opacity: 0.5; cursor: not-allowed; }
.cats-hint { margin: 0; text-align: center; font-size: 0.8rem; color: #94a3b8; }
.cats-hint.erreur { color: #fca5a5; }
@media (max-width: 480px) {
  .cats-ajout { flex-direction: column; align-items: stretch; }
  .cats-input { max-width: none; }
}
