/* ═══════════════════════════════════════════════════════════════════
   stages.css — Vitrine publique Stages & Événements
   Mobile-first · breakpoints : 640px · 1024px
   Exclusivement des var(--x) de tokens.css — 0 hex inline
   ═══════════════════════════════════════════════════════════════════ */

/* ──────────────────────────────────────────────────────────────────
   HERO  — centré, respire
   ────────────────────────────────────────────────────────────────── */
.stages-hero {
  padding: 64px 0 56px;
}

.stages-hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.stages-hero .page-hero-desc {
  max-width: 520px;
  margin-left: 0;
  margin-right: 0;
  font-size: 16px;
}

.stages-hero .page-hero-stats {
  margin-top: 8px;
  justify-content: flex-start;
}

/* ──────────────────────────────────────────────────────────────────
   SECTION LISTE
   ────────────────────────────────────────────────────────────────── */
.stages-section {
  padding: 48px 0 80px;
  background: var(--cream);
}

/* En-tête de section */
.stages-section-header {
  text-align: left;
  margin-bottom: 36px;
}

.stages-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}

.stages-section-title {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 6px;
}

.stages-section-count {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.stages-grid {
  display: grid;
  gap: 20px;
  max-width: 860px;
  margin: 0;
}

/* ──────────────────────────────────────────────────────────────────
   CARTE STAGE
   ────────────────────────────────────────────────────────────────── */
.stage-card {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.stage-card:hover {
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--green) 25%, transparent);
}

.stage-card--complet {
  opacity: .75;
}

.stage-card--passe {
  opacity: .55;
  filter: grayscale(40%);
  background: var(--cream);
}

.stage-card--passe:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--border);
}

.stage-card--passe .stage-card-title {
  color: var(--muted);
}

.stage-card--passe .stage-card-date {
  color: var(--muted);
}

.stg-cat-badge--passe {
  color: #6b7280;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
}

.stage-card-past-label {
  display: inline-block;
  padding: 11px 20px;
  background: #f3f4f6;
  color: #9ca3af;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid #e5e7eb;
  white-space: nowrap;
}

.stages-past-sep {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 0 4px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}

.stage-card-body {
  flex: 1;
  min-width: 0;
}

.stage-card-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.stage-card-title {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  line-height: 1.25;
}

/* ── Badge catégorie ── */
.stg-cat-badge {
  font-size: 11px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 2px 9px;
  white-space: nowrap;
}

.stg-cat-badge--stage {
  color: var(--green-dark);
  background: var(--green-pale);
  border: 1px solid color-mix(in srgb, var(--green) 20%, transparent);
}

.stg-cat-badge--competition {
  color: #1a4fa8;
  background: #e8f0fe;
  border: 1px solid #c5d9fb;
}

.stg-cat-badge--evenement {
  color: #6a1b9a;
  background: #f3e5ff;
  border: 1px solid #d9b3f5;
}

/* ── Date ── */
.stage-card-date {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--gold);
  font-weight: 500;
  margin: 0 0 6px;
}

.stage-card-date svg {
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
}

/* ── Détails (âge, tarif, places) ── */
.stage-card-meta {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

.stage-card-meta strong {
  color: var(--ink);
  font-weight: 600;
}

.stage-card-meta .meta-places {
  color: var(--green);
  font-weight: 500;
}

.stage-card-meta .meta-complet {
  color: #c0392b;
  font-weight: 600;
}

/* ── Action ── */
.stage-card-action {
  flex-shrink: 0;
}

.stage-card-full-label {
  display: inline-block;
  padding: 11px 20px;
  background: var(--cream);
  color: var(--muted);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border);
}

/* ──────────────────────────────────────────────────────────────────
   ÉTAT VIDE
   ────────────────────────────────────────────────────────────────── */
.stages-empty {
  text-align: center;
  padding: 64px 20px;
  color: var(--muted);
}

.stages-empty-title {
  font-family: var(--font-title);
  font-size: 20px;
  color: var(--ink);
  margin: 0 0 10px;
}

.stages-empty-desc {
  font-size: 14px;
  margin: 0;
}

.stages-empty-desc a {
  color: var(--green);
  text-decoration: none;
}

.stages-empty-desc a:hover {
  text-decoration: underline;
}

/* ──────────────────────────────────────────────────────────────────
   RESPONSIVE
   ────────────────────────────────────────────────────────────────── */
@media (max-width: 639px) {
  .stage-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
  }

  .stage-card-action {
    width: 100%;
  }

  .stage-card-action .btn,
  .stage-card-full-label {
    width: 100%;
    text-align: center;
  }
}
