/* =====================================================
   hero-slider.css — Slider héro + espace pub
   Regarde Movie
===================================================== */

/* =====================================================
   BANNIÈRE PUBLICITAIRE (style AlloCiné)
===================================================== */
.pub-banner {
  width: 100%;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  margin-top: 64px; /* Compense le header fixe */
}

.pub-banner-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 970px;
  height: 250px;
  position: relative;
  overflow: hidden;
}

.pub-banner img {
    display: block;
    margin: 0 auto;
    max-width: 970px; /* Taille maximale de votre image */
    width: 100%;      /* S'adapte si l'écran est plus petit */
}

.pub-label {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.pub-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding-top: 10px;
}

.pub-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 2px;
  color: var(--text-muted);
  opacity: 0.4;
}

.pub-text {
  font-size: 0.78rem;
  color: var(--text-muted);
  opacity: 0.5;
}

/* =====================================================
   CONTENEUR PRINCIPAL DU SLIDER
   Réduit par rapport à l'original
===================================================== */
.hero-slider {
  position: relative;
  width: 100%;
  height: 52vh;           /* Réduit : était 85vh */
  min-height: 320px;      /* Réduit : était 520px */
  max-height: 520px;      /* Réduit : était 860px */
  overflow: hidden;
  background: #000;
  /* PAS de margin-top ici — c'est la pub-banner qui compense le header */
}

/* =====================================================
   SLIDES
===================================================== */
.hero-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

.hero-slide.leaving {
  opacity: 0;
  z-index: 1;
}

/* =====================================================
   BACKGROUND
===================================================== */
.hero-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 20%;
  background-repeat: no-repeat;
  transform: scale(1.04);
  transition: transform 6s ease;
  z-index: 0;
}

.hero-slide.active .hero-slide-bg {
  transform: scale(1.0);
}

/* =====================================================
   DÉGRADÉS
===================================================== */
.hero-slide-gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to right, rgba(8,8,8,0.90) 0%, rgba(8,8,8,0.55) 45%, rgba(8,8,8,0.1) 75%, transparent 100%),
    linear-gradient(to bottom, transparent 30%, rgba(8,8,8,0.45) 70%, var(--bg) 100%);
}

[data-theme="light"] .hero-slide-gradient {
  background:
    linear-gradient(to right, rgba(247,247,247,0.97) 0%, rgba(247,247,247,0.75) 45%, rgba(247,247,247,0.2) 75%, transparent 100%),
    linear-gradient(to bottom, transparent 30%, rgba(247,247,247,0.55) 70%, var(--bg) 100%);
}

/* =====================================================
   CONTENU (texte + poster)
   Réduit les paddings pour le slider compact
===================================================== */
.hero-slide-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5% 60px;   /* Réduit le padding bas */
  max-width: 1400px;
  margin: 0 auto;
  left: 0; right: 0;
  gap: 32px;
}

.hero-slide-inner {
  flex: 1;
  max-width: 500px;     /* Légèrement réduit */
  animation: heroSlideIn 0.8s ease both;
}

.hero-slide.active .hero-slide-inner {
  animation: heroSlideIn 0.8s ease both;
}

@keyframes heroSlideIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Méta */
.hero-slide-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;  /* Réduit */
}

.hero-genre-tag {
  background: rgba(229,9,20,0.15);
  border: 1px solid rgba(229,9,20,0.35);
  color: #ff8080;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 50px;
}
[data-theme="light"] .hero-genre-tag { color: #c0392b; }

.hero-year {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 3px 10px;
  background: rgba(255,255,255,0.06);
  border-radius: 50px;
}
[data-theme="light"] .hero-year { background: rgba(0,0,0,0.06); }

/* Titre — plus petit */
.hero-slide-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.6rem);   /* Réduit */
  line-height: 1.05;
  letter-spacing: 1px;
  color: var(--text);
  margin-bottom: 10px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.5);
}
[data-theme="light"] .hero-slide-title { text-shadow: none; }

/* Synopsis — tronqué à 1 ligne sur petit slider */
.hero-slide-overview {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-dim);
  margin-bottom: 20px;
  max-width: 420px;
  display: -webkit-box;
  -webkit-line-clamp: 2;      /* Max 2 lignes */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Boutons */
.hero-slide-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.hero-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--accent);
  color: #fff;
  padding: 10px 22px;     /* Légèrement réduit */
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
}
.hero-btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(229,9,20,0.4);
}

.hero-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--text);
  padding: 10px 18px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  white-space: nowrap;
}
.hero-btn-secondary:hover {
  background: rgba(255,255,255,0.18);
  transform: translateY(-2px);
}
.hero-btn-secondary.in-list {
  background: rgba(34,197,94,0.15);
  border-color: rgba(34,197,94,0.4);
  color: #22c55e;
}
[data-theme="light"] .hero-btn-secondary {
  background: rgba(0,0,0,0.07);
  border-color: rgba(0,0,0,0.2);
  color: #111;
}

/* =====================================================
   POSTER (colonne droite) — plus petit
===================================================== */
.hero-slide-poster {
  flex-shrink: 0;
  width: 140px;           /* Réduit : était 200px */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.08);
  transform: perspective(800px) rotateY(-6deg);
  transition: transform 0.4s ease;
}
.hero-slide-poster:hover {
  transform: perspective(800px) rotateY(0deg) translateY(-4px);
}
.hero-slide-poster img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  display: block;
}

/* =====================================================
   FLÈCHES
===================================================== */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  width: 40px; height: 40px;  /* Réduit */
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, opacity 0.2s;
  opacity: 0.6;
}
.hero-arrow:hover {
  background: rgba(229,9,20,0.8);
  opacity: 1;
  transform: translateY(-50%) scale(1.08);
}
.hero-arrow--prev { left: 14px; }
.hero-arrow--next { right: 14px; }

/* =====================================================
   DOTS
===================================================== */
.hero-dots {
  position: absolute;
  bottom: 16px;           /* Remonté */
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 6px;
  align-items: center;
}

.hero-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: none;
  cursor: pointer;
  transition: background 0.3s, width 0.3s, border-radius 0.3s;
  padding: 0;
}
.hero-dot.active {
  background: var(--accent);
  width: 20px;
  border-radius: 4px;
}
.hero-dot:hover:not(.active) { background: rgba(255,255,255,0.65); }

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 900px) {
  .hero-slider    { height: 44vh; min-height: 280px; }
  .hero-slide-poster { display: none; }
  .hero-slide-content { padding: 0 5% 60px; }
  .pub-banner-inner { height: 70px; }
}

@media (max-width: 600px) {
  .hero-slider    { height: 40vh; min-height: 260px; }
  .pub-banner     { padding: 8px 16px; }
  .pub-banner-inner { width: 100%; height: 70px; }
  .hero-slide-gradient {
    background:
      linear-gradient(to bottom, rgba(8,8,8,0.2) 0%, rgba(8,8,8,0.6) 50%, var(--bg) 100%),
      linear-gradient(to right, rgba(8,8,8,0.7) 0%, transparent 100%);
  }
  .hero-slide-content { align-items: flex-end; padding: 0 5% 60px; }
  .hero-slide-overview { display: none; }
  .hero-slide-title { font-size: 1.4rem; }
  .hero-arrow { display: none; }
}
