/* ============================================================
   EMISSIONS — PAGE CATALOGUE
   ============================================================ */

:root {
  --em-wrap: min(1200px, calc(100% - 40px));
}

/* ══ HERO ═══════════════════════════════════════════════════ */
.em-hero {
  position: relative;
  overflow: hidden; /* repli pour les navigateurs sans `clip` */
  overflow: clip;
  padding: 80px 0 72px;
}
.em-hero::before {
  content: '';
  position: absolute;
  inset: -40px;
  background: url('https://media.webradio91fm.fr/assets/content/backgrounds/1000013080.jpeg') center / cover no-repeat;
  filter: blur(10px);
  transform: scale(1.06);
  z-index: 0;
}
.em-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(8, 14, 30, 0.62);
  z-index: 1;
}
.em-hero-inner {
  position: relative;
  z-index: 2;
  width: var(--em-wrap);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.em-h1 {
  margin: 0 0 18px;
  font-size: clamp(3.6rem, 10vw, 7rem);
  font-weight: 900;
  font-style: italic;
  line-height: .92;
  letter-spacing: -.04em;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, .85);
}
.em-hero-sub {
  margin: 0;
  font-size: clamp(14px, 2vw, 16px);
  color: rgba(255, 255, 255, .6);
  line-height: 1.5;
}
.em-hero-sub strong { color: #fff; font-weight: 700; }

/* ══ CATALOGUE ═══════════════════════════════════════════════ */
.em-catalog { padding: 40px 0 80px; }
.em-wrap { width: var(--em-wrap); margin: 0 auto; }

/* ══ FILTRES ═════════════════════════════════════════════════ */
.em-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.em-pill {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1.5px solid rgba(0, 0, 0, .12);
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
  font-family: var(--font);
}
.em-pill:hover { border-color: var(--brand); color: var(--brand); }
.em-pill.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.em-count {
  margin-left: auto;
  font-size: 13px;
  font-weight: 600;
  color: rgba(0, 0, 0, .35);
}

/* ══ GRILLE — 4 colonnes sur grand écran ════════════════════ */
.em-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

/* ══ CARD ════════════════════════════════════════════════════ */
.em-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 5;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  background-color: #12131e;
  background-size: cover;
  background-position: center;
  transition: transform .22s ease, box-shadow .22s ease;
}
.em-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .18);
  will-change: transform;
}

/* Glass sur l'illustration */
.em-card-glass {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 20, .35);
  backdrop-filter: blur(6px) saturate(1.1);
  -webkit-backdrop-filter: blur(6px) saturate(1.1);
  z-index: 1;
}

/* Badge catégorie — haut gauche */
.em-card-cat {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  background: var(--brand);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
}

/* Logo centré dans la carte */
.em-card-logo-wrap {
  position: absolute;
  inset: 0;
  bottom: 60px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.em-card-logo {
  width: 70%;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .55);
  transition: transform .22s ease;
}
.em-card:hover .em-card-logo { transform: scale(1.05); }

/* Initiales fallback */
.em-card-initials {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: var(--show-color, var(--brand));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
  font-style: italic;
  color: #fff;
}

/* Titre + slogan en overlay bas */
.em-card-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 16px 12px 12px;
  background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.85) 100%);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.em-card-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.em-card-slogan {
  margin: 0;
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, .65);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ══ EMPTY ═══════════════════════════════════════════════════ */
.em-empty { text-align: center; padding: 80px 0; opacity: .5; }
.em-empty-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 24px;
  background: var(--brand);
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  opacity: 1;
}

/* ══ RESPONSIVE ══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .em-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .em-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .em-card-title { font-size: 13px; }
  .em-card-slogan { display: none; }
  /* backdrop-filter trop lourd sur mobile — on le désactive */
  .em-card-glass {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(10, 10, 20, .55);
  }
}

@media (max-width: 380px) {
  .em-grid { grid-template-columns: repeat(1, 1fr); }
}
