/* ==========================================================================
   LES CODES DE LA CLASSE (16/11/2026) — recherche par prénom, code en grand, « Copier ».
   Jetons --r-* uniquement (comme mes-classes.css) : aucune couleur écrite en dur.
   ========================================================================== */
.classes-codes { max-width: 760px; margin: 0 auto; }
.classes-codes[hidden] { display: none; }

.cc-ecran { display: flex; flex-direction: column; gap: 14px; }
.cc-choix { margin: 0; color: var(--r-texte-2); font-size: 0.95rem; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cc-choix select { font: inherit; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--r-bordure-forte); background: var(--r-surface-2); color: var(--r-texte); max-width: 100%; }

.cc-recherche { display: flex; flex-direction: column; gap: 6px; }
.cc-etiquette { color: var(--r-texte-2); font-size: 0.85rem; letter-spacing: 0.04em; }
.cc-recherche input {
  font: inherit; font-size: 1.15rem; padding: 14px 16px; border-radius: 16px;
  border: 2px solid var(--r-bordure-forte); background: var(--r-surface-2); color: var(--r-texte);
}
.cc-recherche input:focus { outline: none; border-color: var(--r-primaire); box-shadow: 0 0 0 3px var(--r-primaire-doux); }

.cc-liste { display: flex; flex-direction: column; gap: 12px; }
.cc-ligne {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 16px;
  padding: 14px 18px; border-radius: 20px; border: 1px solid var(--r-bordure);
  background: var(--r-surface); box-shadow: var(--r-ombre-1);
}
.cc-nom { margin: 0; font-family: var(--r-police-titre); font-size: 1.1rem; color: var(--r-texte); grid-column: 1 / -1; }
.cc-code {
  margin: 0; font-family: var(--r-police-mono, monospace); font-weight: 700; letter-spacing: 0.08em;
  font-size: clamp(1.6rem, 7vw, 2.6rem); color: var(--r-texte); overflow-wrap: anywhere;
}
.cc-boutons { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.cc-aucun, .cc-attente { margin: 0; color: var(--r-texte-2); }
.cc-ligne--sans { grid-template-columns: 1fr; }
.cc-pied { margin-top: 8px; }
.cc-pied .bouton { white-space: normal; text-align: left; }

@media (max-width: 560px) {
  .cc-ligne { grid-template-columns: 1fr; }
  .cc-boutons { justify-content: flex-start; }
}
