/* =============================== */
/*   COMPOSANTS – HÉRO FILM       */
/* =============================== */

/* Hero Wrapper (avec overlay gradient) */
.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%);
}

.hero-wrap .film-hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  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;
}

.hero-wrap .film-logo-wrap {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  /* 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-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));
}

.hero-wrap .crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #e0e7ff;
}

.hero-wrap .crumbs a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease;
  font-weight: 500;
}

.hero-wrap .crumbs a:hover {
  text-decoration: underline;
  color: #e0e7ff;
}

.hero-wrap .crumbs span {
  color: #cbd5e1;
}

.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;
}

.hero-wrap .film-submeta .meta-pill {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.hero-wrap .film-submeta .meta-pill:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.hero-wrap .film-submeta .meta-pill a {
  color: #fff;
  text-decoration: none;
}

.hero-wrap .film-submeta .meta-pill a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Film Hero (styles par défaut sans wrapper) */
.film-hero {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 40px;
    align-items: center;
    margin: 40px auto;
    max-width: 1100px;
    padding: 0 20px;
}

.film-hero .poster {
    flex-shrink: 0;
}

.film-hero .poster img {
    width: 220px;
    height: 330px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0,0,0,.25);
    display: block;
}

.film-hero .head {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.film-logo-wrap {
    margin-bottom: 8px;
}

.film-logo-wrap .film-logo {
    max-height: 120px;
    object-fit: contain;
}

.film-hero .film-hero-heading {
    position: relative;
    display: inline-block;
    padding: 12px 18px;
    background: linear-gradient(135deg, #0ea5e9 0%, #a855f7 100%);
    border-radius: 8px;
    color: white;
}

.film-hero.has-logo .film-title-text {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.2;
}

.film-hero.no-logo .film-title-text {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.1;
    color: #1f2d3d;
    text-shadow: 0 1px 2px rgba(0,0,0,.08);
}

.film-submeta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

@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: 780px) {
    .film-hero {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .film-hero .poster img {
        width: 160px;
        height: 240px;
    }

    .film-hero.no-logo .film-title-text {
        font-size: 1.8rem;
    }

    .film-submeta {
        gap: 8px;
    }

    .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-logo {
        max-height: 90px;
    }

    .hero-wrap .film-title {
        font-size: 1.6rem;
    }

    .hero-wrap .crumbs {
        justify-content: center;
    }
}

@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;
    }

    .hero-wrap .crumbs {
        font-size: 0.85rem;
    }

    .hero-wrap .meta-pill {
        font-size: 0.85rem;
        padding: 6px 10px;
    }
}
