/* ============================================================
   LS Academy — Lot C : design system (complète wireframe.css)
   Composants CDC §14.3 manquants + les 8 états obligatoires :
   normal · survol · focus clavier · actif · désactivé ·
   chargement · succès · erreur.
   Univers (règle E4) : le fluo --acid reste LA couleur d'action
   partout ; l'univers Joueurs n'ajoute que halo --att-halo et
   tags jaunes. Jamais de bouton jaune.
   ============================================================ */
@import url("wireframe.7cbbfd5e56a0.css");

/* ---------- États boutons (complète .btn) */
.btn:active { transform: translateY(0); box-shadow: none; }
.btn[disabled], .btn.is-disabled {
  background: var(--surface2); color: var(--muted2);
  border-color: transparent; cursor: not-allowed;
  box-shadow: none; transform: none; pointer-events: none;
}
.btn.is-loading {
  color: transparent; position: relative; pointer-events: none;
}
.btn.is-loading::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(10,13,11,.35); border-top-color: #0a0d0b;
  animation: ds-spin .7s linear infinite;
}
.btn-ghost.is-loading::after { border-color: rgba(255,255,255,.25); border-top-color: var(--acid); }
@keyframes ds-spin { to { transform: rotate(360deg); } }
.btn.is-success { background: var(--acid-dim); color: #0a0d0b; pointer-events: none; }
.btn.is-success::before { content: "✓ "; }

/* ---------- États champs (complète .field) */
.field.success input, .field.success select, .field.success textarea { border-color: var(--acid-dim); }
.field.success .msg { color: var(--acid-dim); font-size: 12.5px; margin-top: 5px; }
.field input[disabled], .field select[disabled], .field textarea[disabled] {
  opacity: .45; cursor: not-allowed; background: var(--surface);
}
.field.loading { position: relative; }
.field.loading::after {
  content: ""; position: absolute; right: 14px; top: 38px;
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--border-neutral); border-top-color: var(--acid);
  animation: ds-spin .7s linear infinite;
}

/* ---------- Alertes (info / succès / erreur / attente) */
.alert {
  display: flex; gap: 12px; align-items: flex-start;
  border-radius: 12px; padding: 14px 18px; font-size: 14.5px;
  border: 1px solid var(--border-neutral); background: var(--surface);
  color: var(--txt); margin: 14px 0;
}
.alert::before { font-weight: 800; }
.alert-info::before { content: "i"; color: var(--acid); }
.alert-success { border-color: var(--border-acid); }
.alert-success::before { content: "✓"; color: var(--acid); }
.alert-error { border-color: rgba(255,107,94,.4); }
.alert-error::before { content: "!"; color: #ff6b5e; }
.alert-wait::before { content: "…"; color: var(--muted); }

/* ---------- Filtres (page liste programmes §7.1) */
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.filters select {
  background: var(--surface2); color: var(--txt); font: inherit; font-size: 14px;
  border: 1px solid var(--border-neutral); border-radius: var(--r-pill);
  padding: 9px 16px;
}
.chip {
  border: 1px solid var(--border-neutral); border-radius: var(--r-pill);
  background: transparent; color: var(--muted); font: inherit; font-size: 13.5px;
  font-weight: 600; padding: 8px 16px; cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
}
.chip:hover { border-color: var(--border-acid); color: var(--txt); }
.chip[aria-pressed="true"], .chip.active {
  background: var(--acid); border-color: var(--acid); color: #0a0d0b;
}
.chip:focus-visible { outline: 2px solid var(--acid); outline-offset: 2px; }
.chip[disabled] { opacity: .4; cursor: not-allowed; }

/* ---------- Breadcrumb (§16.1 fil d'Ariane) */
.breadcrumb { font-size: 13px; color: var(--muted2); display: flex; gap: 8px; flex-wrap: wrap; padding: 18px 0; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--acid); }
.breadcrumb li { list-style: none; display: flex; gap: 8px; }
.breadcrumb li + li::before { content: "/"; color: var(--muted2); }
.breadcrumb [aria-current="page"] { color: var(--txt); }

/* ---------- Pagination (§11.3 galerie) */
.pagination { display: flex; gap: 8px; justify-content: center; padding: 26px 0; }
.pagination a, .pagination span {
  min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; border: 1px solid var(--border-neutral); font-size: 14px; font-weight: 600;
  color: var(--muted); transition: border-color .2s, color .2s;
}
.pagination a:hover { border-color: var(--border-acid); color: var(--txt); }
.pagination [aria-current="page"] { background: var(--acid); border-color: var(--acid); color: #0a0d0b; }
.pagination .disabled { opacity: .4; pointer-events: none; }

/* ---------- Galerie (§11.3 : progressive, jamais lourde) */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery .media-ph { min-height: 140px; border-radius: 12px; }
.gallery figure { position: relative; margin: 0; }
.gallery figcaption { position: absolute; bottom: 8px; left: 10px; font-size: 11.5px; color: var(--muted); }

/* ---------- Modale vidéo (§11.1 : teaser complet avec son) */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(7,9,8,.88);
  display: none; align-items: center; justify-content: center; z-index: 100;
  padding: var(--pad);
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--surface); border: 1px solid var(--border-acid);
  border-radius: var(--r); width: min(880px, 100%); padding: 18px;
}
.modal .modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.modal .modal-close {
  background: none; border: 1px solid var(--border-neutral); color: var(--txt);
  border-radius: 50%; width: 36px; height: 36px; cursor: pointer; font-size: 16px;
}
.modal .modal-close:hover { border-color: var(--acid); color: var(--acid); }
.modal .media-ph { min-height: 380px; }
.modal .modal-note { font-size: 12.5px; color: var(--muted2); margin-top: 10px; }

/* ---------- Skeleton / chargement de zone */
.skeleton {
  border-radius: 12px; min-height: 18px;
  background: linear-gradient(90deg, var(--surface2) 25%, var(--surface) 50%, var(--surface2) 75%);
  background-size: 200% 100%; animation: ds-shimmer 1.4s infinite;
}
@keyframes ds-shimmer { to { background-position: -200% 0; } }

/* ---------- Carte résultat / parcours (§11.2) */
.card-result .meta { display: flex; gap: 10px; align-items: center; font-size: 12.5px; color: var(--muted2); margin-top: 12px; }
.card-result .type { color: var(--acid-dim); text-transform: uppercase; letter-spacing: .1em; font-weight: 700; font-size: 11.5px; }

/* ---------- Grille de référence + breakpoints (déclinaison lot C)
   360  : 1 colonne, pad 20, burger, filtres empilés
   768  : 2 colonnes, footer 2 col, filtres en ligne
   1024 : 3 colonnes, nav complète
   1440 : wrap plafonné à 1200 (--wrap-max), 4 colonnes max      */
@media (max-width: 1024px) and (min-width: 901px) {
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) and (min-width: 601px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .filters { flex-direction: column; align-items: stretch; }
  .filters select { width: 100%; }
}

/* ---------- Préférences utilisateur (WCAG 2.2) */
@media (prefers-reduced-motion: reduce) {
  .reveal, .btn, .card, .chip { transition: none !important; animation: none !important; }
  .skeleton, .btn.is-loading::after, .field.loading::after { animation: none !important; }
}
