/* ============================================================
   SÉRIE TV — Page détail (SérieTV2.php)
   Hérite de film-hero.css mais avec blur background unique
   ============================================================ */

/* ============================================================
   HÉRO WRAPPER — Container avec blur background
   ============================================================ */

.hero-wrap {
  position: relative;
  margin: 40px auto;
  max-width: 1100px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, 
    rgba(30, 58, 138, 0.1) 0%, 
    rgba(15, 23, 42, 0.2) 100%);
}

/* ============================================================
   HÉRO — Override film-hero.css pour SérieTV2
   ============================================================ */

.hero-wrap .film-hero {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 100%;
  padding: 40px;
  gap: 32px;
  color: #fff;
}

.hero-wrap .film-hero .poster img {
  width: 240px;
  height: 360px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.hero-wrap .film-hero .head {
  gap: 12px;
}

/* Fil d'Ariane */
.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #e0e7ff;
}

.crumbs a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease;
  font-weight: 500;
}

.crumbs a:hover {
  text-decoration: underline;
  color: #e0e7ff;
}

.crumbs span {
  color: #cbd5e1;
}

/* Logo wrapper — align avec film-hero.css */
.hero-wrap .film-logo-wrap {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin: 12px 0 4px;
  /* Fond blanc semi-transparent pour la lisibilité */
  background: rgba(255, 255, 255, 0.92);
  padding: 14px 32px;
  border-radius: 10px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15),
              0 2px 8px rgba(0, 0, 0, 0.1);
}

.hero-wrap .film-logo {
  max-height: 110px;
  /* Ombre légère pour la profondeur */
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Titre */
.hero-wrap .film-title {
  margin: 0;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #ffffff;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.6);
}

.hero-wrap .film-title .eyebrow {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 8px;
  opacity: 1;
}

/* Métadonnées */
.hero-wrap .film-submeta {
  margin-top: 12px;
}

.hero-wrap .meta-pill {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 0.9rem;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-weight: 600;
  transition: all 0.2s ease;
}

.hero-wrap .meta-pill:hover {
  background: rgba(255, 255, 255, 0.35);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.hero-wrap .meta-pill a {
  color: #fff;
  text-decoration: none;
}

.hero-wrap .meta-pill a:hover {
  color: #fff;
  text-decoration: underline;
}

/* ============================================================
   SECTIONS CONTENU
   ============================================================ */

.section {
  margin: 40px auto;
  max-width: 1100px;
  padding: 0 20px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.3rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #0f172a;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
  padding: 0;
  border: none;
}

.section-title img {
  width: 24px;
  height: 24px;
  opacity: 0.8;
}

/* ============================================================
   SYNOPSIS
   ============================================================ */

.serie-synopsis {
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  border-left: 4px solid #0ea5e9;
  border-radius: 12px;
  padding: 24px 28px;
  color: #374151;
  line-height: 1.7;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid #e5e7eb;
}

.serie-synopsis p {
  margin: 0;
  font-size: 0.95rem;
}

/* ============================================================
   GRILLE DES SAISONS
   ============================================================ */

.serie-seasons {
  background: #ffffff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid #f0f0f0;
}

.film-affiches-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  max-width: 100%;
}

.film-affiche-link {
  text-decoration: none;
  color: inherit;
  transition: none;
}

.film-affiche {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), 
              box-shadow 0.2s ease,
              border-color 0.2s ease;
}

.film-affiche:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: #0ea5e9;
  box-shadow: 0 12px 24px rgba(14, 165, 233, 0.2);
}

.film-affiche img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: linear-gradient(135deg, #f0f4f8 0%, #e8eef7 100%);
  flex-shrink: 0;
  transition: filter 0.2s ease;
}

.film-affiche:hover img {
  filter: brightness(1.05);
}

.film-affiche h3 {
  margin: 0;
  padding: 14px 12px;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  height: auto;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #fafafe 0%, #f5f7fb 100%);
  color: #1e293b;
  border-top: 1px solid #e5e7eb;
  word-break: break-word;
}

/* Pas de résultat */
.no-result {
  text-align: center;
  padding: 40px 20px;
  color: #6b7280;
  font-size: 1rem;
  background: #f9fafb;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

/* ============================================================
   BOUTON RETOUR
   ============================================================ */

.back-link {
  text-align: center;
  margin: 40px auto;
  max-width: 1100px;
  padding: 32px 20px 0;
}

.back-link .btn-etape {
  padding: 12px 28px !important;
  border-radius: 10px !important;
  border: none !important;
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%) !important;
  color: #fff !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
  transition: transform 0.12s ease, box-shadow 0.2s ease, filter 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.back-link .btn-etape:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
  filter: brightness(1.05);
}

.back-link .btn-etape:active {
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .hero-wrap .film-hero {
    gap: 24px;
    padding: 32px;
  }

  .hero-wrap .film-hero .poster img {
    width: 200px;
    height: 300px;
  }

  .hero-wrap .film-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .hero-wrap {
    margin: 24px auto;
  }

  .hero-wrap .film-hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    padding: 28px;
  }

  .hero-wrap .film-hero .poster img {
    width: 200px;
    height: 300px;
  }

  .hero-wrap .film-hero .head {
    align-items: center;
  }

  .crumbs {
    justify-content: center;
  }

  .hero-wrap .film-logo {
    max-height: 90px;
  }

  .hero-wrap .film-title {
    font-size: 1.6rem;
  }

  .section-title {
    font-size: 1.2rem;
  }

  .film-affiches-container {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
  }

  .serie-seasons {
    padding: 24px;
  }
}

@media (max-width: 520px) {
  .hero-wrap {
    margin: 16px auto;
    border-radius: 12px;
  }

  .hero-wrap .film-hero {
    gap: 16px;
    padding: 20px;
  }

  .hero-wrap .film-hero .poster img {
    width: 160px;
    height: 240px;
  }

  .hero-wrap .film-logo {
    max-height: 80px;
  }

  .hero-wrap .film-title {
    font-size: 1.4rem;
  }

  .hero-wrap .film-title .eyebrow {
    font-size: 0.75rem;
    margin-bottom: 6px;
  }

  .crumbs {
    font-size: 0.85rem;
  }

  .hero-wrap .meta-pill {
    font-size: 0.85rem;
    padding: 6px 10px;
  }

  .section {
    margin: 28px auto;
    padding: 0 16px;
  }

  .section-title {
    font-size: 1rem;
    margin-bottom: 12px;
  }

  .film-affiches-container {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
  }

  .film-affiche {
    min-height: 260px;
  }

  .serie-seasons {
    padding: 16px;
  }

  .back-link {
    padding: 20px 16px 0;
  }

  .back-link .btn-etape {
    font-size: 0.85rem !important;
    padding: 10px 20px !important;
  }
}
