/* ============================================================================
   Lumira — pages mediums.php & categorie.php
   (chargé via $page_css = 'mediums' — complète style.css, ne le remplace pas)
   ============================================================================ */

/* --------------------------------------------------------------------------
   En-tête du listing
   -------------------------------------------------------------------------- */

.listing-head {
  position: relative;
  padding: clamp(44px, 7vw, 84px) 0 clamp(8px, 2vw, 20px);
  overflow: hidden;
}

.listing-head::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto;
  height: 130%;
  background:
    radial-gradient(560px 300px at 28% 10%, rgba(109, 74, 255, 0.16), transparent 70%),
    radial-gradient(480px 260px at 76% 0%, rgba(212, 175, 106, 0.07), transparent 70%);
  pointer-events: none;
}

.listing-head__inner {
  position: relative;
  text-align: center;
  max-width: 760px;
}

.listing-head h1 {
  font-family: var(--font-display);
  font-weight: 420;
  font-size: clamp(2.1rem, 5vw, 3.1rem);
  line-height: 1.12;
  margin: 14px 0 12px;
}

.listing-head .lead {
  margin-inline: auto;
  max-width: 580px;
}

.dispo-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
  padding: 9px 18px;
  border: 1px solid rgba(95, 206, 155, 0.25);
  border-radius: 999px;
  background: rgba(95, 206, 155, 0.07);
  color: var(--text);
  font-size: 0.9rem;
}

.dispo-pill strong {
  color: var(--ok);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Filtres
   -------------------------------------------------------------------------- */

.listing-body { padding-top: clamp(20px, 3vw, 32px); }

.filters__row + .filters__row { margin-top: 18px; }

.filters__label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 550;
  margin-bottom: 10px;
}

.chips-row .chip { text-decoration: none; }

.chip .status-dot { width: 7px; height: 7px; }

/* --------------------------------------------------------------------------
   Barre de résultats + tri
   -------------------------------------------------------------------------- */

.listing-toolbar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px 28px;
  flex-wrap: wrap;
  margin: clamp(26px, 4vw, 38px) 0 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.listing-toolbar__count {
  font-size: 0.95rem;
  color: var(--muted);
}

.listing-toolbar__count strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--gold);
  font-weight: 500;
}

.sort {
  display: flex;
  align-items: baseline;
  gap: 4px 16px;
  flex-wrap: wrap;
}

.sort__label {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.sort__option {
  position: relative;
  font-size: 0.875rem;
  color: var(--muted);
  padding-bottom: 3px;
  transition: color var(--t-fast);
}

.sort__option:hover { color: var(--text); }

.sort__option.is-active {
  color: var(--gold);
}

.sort__option.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--gold-grad, var(--gold));
}

@media (max-width: 640px) {
  .sort {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    white-space: nowrap;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }
}

/* --------------------------------------------------------------------------
   État vide
   -------------------------------------------------------------------------- */

.empty-state {
  text-align: center;
  padding: clamp(48px, 8vw, 84px) 24px;
  border: 1px dashed rgba(168, 178, 230, 0.22);
  border-radius: var(--radius-lg);
  background: rgba(19, 24, 48, 0.35);
  max-width: 620px;
  margin-inline: auto;
}

.empty-state__star {
  display: block;
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 14px;
  text-shadow: 0 0 22px rgba(212, 175, 106, 0.5);
}

.empty-state h1,
.empty-state h2 {
  font-family: var(--font-display);
  font-weight: 450;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  margin-bottom: 10px;
}

.empty-state p {
  color: var(--muted);
  max-width: 440px;
  margin: 0 auto 24px;
}

.empty-state--404 { margin-block: clamp(20px, 5vw, 60px); }

/* --------------------------------------------------------------------------
   Micro-copy sous les grilles
   -------------------------------------------------------------------------- */

.listing-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: clamp(28px, 4vw, 40px);
  opacity: 0.85;
}

/* --------------------------------------------------------------------------
   Hero compact — page catégorie
   -------------------------------------------------------------------------- */

.cat-hero {
  position: relative;
  padding: clamp(40px, 6vw, 72px) 0 clamp(16px, 3vw, 28px);
  overflow: hidden;
}

.cat-hero::before {
  content: "";
  position: absolute;
  inset: -50% -20% auto;
  height: 150%;
  background:
    radial-gradient(620px 320px at 22% 0%, rgba(109, 74, 255, 0.17), transparent 70%),
    radial-gradient(420px 240px at 82% 10%, rgba(212, 175, 106, 0.06), transparent 70%);
  pointer-events: none;
}

.cat-hero__inner {
  position: relative;
  max-width: 720px;
}

.cat-hero__crumb {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 16px;
}

.cat-hero__crumb a {
  color: var(--muted);
  transition: color var(--t-fast);
}

.cat-hero__crumb a:hover { color: var(--gold); }

.cat-hero__crumb span { margin-inline: 6px; opacity: 0.6; }

.cat-hero h1 {
  font-family: var(--font-display);
  font-weight: 420;
  font-size: clamp(2rem, 4.6vw, 2.9rem);
  line-height: 1.12;
  margin-bottom: 12px;
}

.cat-hero .lead { max-width: 640px; }

.cat-hero__meta {
  display: flex;
  align-items: center;
  gap: 8px 12px;
  flex-wrap: wrap;
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--muted);
}

.cat-hero__meta strong {
  color: var(--text);
  font-weight: 600;
}

.cat-hero__meta .sep { opacity: 0.45; }

.cat-hero__dispo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cat-hero__dispo strong { color: var(--ok); }

/* --------------------------------------------------------------------------
   Sections basses — page catégorie
   -------------------------------------------------------------------------- */

.cat-autres {
  border-top: 1px solid var(--border);
  margin-top: clamp(24px, 4vw, 40px);
}

.cat-explore {
  border-top: 1px solid var(--border);
  margin-top: clamp(24px, 4vw, 40px);
  padding-bottom: clamp(56px, 8vw, 96px);
}

.cat-explore .section-title { margin-bottom: 18px; }
