/* ============================================================
   HERO CINÉMATIQUE — Sesse & Co
   Design system : --red #9B1B1B | --gold #B8934A | --cream #FEFCF8
   Polices : Cormorant Garamond (titres) + Jost (corps)
   ============================================================ */

/* ----------------------------------------------------------
   SECTION HERO
   ---------------------------------------------------------- */
.hero-cinema {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  background: #2C1810;
  display: flex;
  align-items: center;
}

/* ----------------------------------------------------------
   SLIDES — Conteneur et slides individuels
   ---------------------------------------------------------- */
.hero-slides {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-cinema-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s cubic-bezier(0.45, 0, 0.55, 1);
  will-change: opacity;
}

.hero-cinema-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-cinema-slide.previous {
  opacity: 0;
  z-index: 0;
}

.hero-cinema-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  /* Légère animation Ken Burns subtile */
  animation: kenBurns 20s ease-in-out infinite alternate;
}

/* Ken Burns discret — zoom très lent */
@keyframes kenBurns {
  0%   { transform: scale(1.00) translate(0%, 0%); }
  100% { transform: scale(1.06) translate(-1%, -1%); }
}

/* ----------------------------------------------------------
   OVERLAY DÉGRADÉ — Lisibilité du texte
   ---------------------------------------------------------- */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    /* Dégradé bas → haut pour le texte (fort en bas) */
    linear-gradient(
      to top,
      rgba(44, 24, 16, 0.80) 0%,
      rgba(44, 24, 16, 0.50) 35%,
      rgba(44, 24, 16, 0.15) 65%,
      transparent 100%
    ),
    /* Vignette latérale gauche pour le contenu */
    linear-gradient(
      to right,
      rgba(44, 24, 16, 0.60) 0%,
      rgba(44, 24, 16, 0.20) 50%,
      transparent 100%
    );
}

/* ----------------------------------------------------------
   CONTENU HERO — Positionnement centre-gauche
   ---------------------------------------------------------- */
.hero-content-cinema {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 6vw;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
  /* Légère décalage vers le bas du centre pour l'équilibre visuel */
  margin-top: 4vh;
}

/* Eyebrow — label discret au-dessus du titre */
.hero-eyebrow-cinema {
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: clamp(0.7rem, 1vw, 0.85rem);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(184, 147, 74, 0.9);
  display: flex;
  align-items: center;
  gap: 1rem;
  opacity: 0;
  animation: fadeUpIn 0.8s ease forwards 0.4s;
}

.hero-eyebrow-cinema::before {
  content: '';
  display: inline-block;
  width: 40px;
  height: 1px;
  background: #B8934A;
}

/* Titre H1 principal — Grand, Cinématique, Italic */
.hero-title-cinema {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(3.5rem, 7vw, 9rem);
  line-height: 1.0;
  color: #FFFFFF;
  margin: 0;
  letter-spacing: -0.01em;
}

/* Chaque mot animé individuellement */
.hero-title-cinema .word {
  display: block;
  opacity: 0;
  transform: translateY(30px);
  animation: wordReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-title-cinema .word:nth-child(1) { animation-delay: 0.6s; }
.hero-title-cinema .word:nth-child(2) { animation-delay: 0.85s; }
.hero-title-cinema .word:nth-child(3) { animation-delay: 1.10s; }

/* Accent doré sur le mot italique central */
.hero-title-cinema .word em {
  font-style: italic;
  color: rgba(184, 147, 74, 0.95);
}

/* Sous-titre */
.hero-subtitle-cinema {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: clamp(0.9rem, 1.3vw, 1.15rem);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.78);
  max-width: 520px;
  margin: 0;
  opacity: 0;
  animation: fadeUpIn 0.9s ease forwards 1.3s;
}

/* ----------------------------------------------------------
   BOUTONS CTA — Style luxe sur image sombre
   ---------------------------------------------------------- */
.hero-actions-cinema {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUpIn 0.9s ease forwards 1.55s;
}

.btn-cinema-primary {
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: #2C1810;
  background: #FFFFFF;
  border: 1.5px solid #FFFFFF;
  padding: 1rem 2.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}

.btn-cinema-primary:hover {
  background: #B8934A;
  border-color: #B8934A;
  color: #FFFFFF;
  transform: translateY(-2px);
}

.btn-cinema-outline {
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.88);
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  padding: 1rem 2.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}

.btn-cinema-outline:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.75);
  color: #FFFFFF;
  transform: translateY(-2px);
}

/* ----------------------------------------------------------
   STATS — Bande d'indicateurs en bas à gauche
   ---------------------------------------------------------- */
.hero-stats-cinema {
  display: flex;
  align-items: center;
  gap: 0;
  opacity: 0;
  animation: fadeUpIn 0.9s ease forwards 1.8s;
  margin-top: 0.5rem;
}

.hero-stat-cinema {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 2rem;
}

.hero-stat-cinema:first-child {
  padding-left: 0;
}

.hero-stat-cinema strong {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  line-height: 1;
  color: #FFFFFF;
  letter-spacing: -0.02em;
}

.hero-stat-cinema span {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 0.3rem;
}

/* Séparateur doré vertical entre les stats */
.hero-stat-divider-cinema {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, rgba(184, 147, 74, 0.6), transparent);
  flex-shrink: 0;
}

/* ----------------------------------------------------------
   INDICATEURS DE SLIDE — Traits dorés en bas à droite
   ---------------------------------------------------------- */
.hero-slide-indicators {
  position: absolute;
  bottom: 3rem;
  right: 5vw;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: flex-end;
  opacity: 0;
  animation: fadeIn 0.8s ease forwards 2s;
}

.slide-dot {
  display: block;
  width: 28px;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.28);
  transition: width 0.4s ease, background 0.4s ease;
  cursor: pointer;
  border-radius: 0;
  position: relative;
  overflow: hidden;
}

.slide-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #B8934A;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.slide-dot.active {
  width: 48px;
  background: rgba(255, 255, 255, 0.15);
}

.slide-dot.active::after {
  transform: scaleX(1);
}

/* Numérotation de slide */
.slide-counter {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.4);
  opacity: 0;
  animation: fadeIn 0.8s ease forwards 2s;
}

.slide-counter .current {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

/* ----------------------------------------------------------
   SCROLL INDICATOR — Bas de page
   ---------------------------------------------------------- */
.hero-cinema .scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 5vw;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeIn 1s ease forwards 2.2s;
}

.hero-cinema .scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.7), rgba(184,147,74,0.3));
  animation: scrollPulse 2s ease-in-out infinite;
  transform-origin: top;
}

.hero-cinema .scroll-indicator span {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  writing-mode: vertical-lr;
  margin-top: 0.4rem;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.5; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(0.85); }
}

/* ----------------------------------------------------------
   ANIMATIONS GLOBALES
   ---------------------------------------------------------- */
@keyframes wordReveal {
  0%   { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0);    }
}

@keyframes fadeUpIn {
  0%   { opacity: 0; transform: translateY(18px); }
  100% { opacity: 1; transform: translateY(0);    }
}

@keyframes fadeIn {
  0%   { opacity: 0; }
  100% { opacity: 1; }
}

/* ----------------------------------------------------------
   RESPONSIVE MOBILE
   ---------------------------------------------------------- */
@media (max-width: 768px) {
  .hero-cinema {
    height: 100svh;
    min-height: 580px;
    align-items: flex-end;
    padding-bottom: 6rem;
  }

  .hero-content-cinema {
    padding: 0 1.5rem;
    gap: 1.5rem;
    margin-top: 0;
    align-items: center;
    text-align: center;
  }

  .hero-eyebrow-cinema {
    justify-content: center;
  }

  .hero-eyebrow-cinema::before {
    display: none;
  }

  .hero-title-cinema {
    font-size: clamp(2.8rem, 12vw, 5rem);
    text-align: center;
  }

  .hero-subtitle-cinema {
    font-size: 0.9rem;
    text-align: center;
    max-width: 100%;
  }

  .hero-actions-cinema {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 0.9rem;
  }

  .btn-cinema-primary,
  .btn-cinema-outline {
    width: 100%;
    justify-content: center;
    padding: 0.9rem 1.5rem;
  }

  .hero-stats-cinema {
    justify-content: center;
  }

  .hero-stat-cinema {
    padding: 0 1.25rem;
    align-items: center;
  }

  .hero-stat-cinema:first-child {
    padding-left: 1.25rem;
  }

  .hero-slide-indicators {
    bottom: 1.5rem;
    right: 1.5rem;
    flex-direction: row;
    align-items: center;
  }

  .slide-dot {
    width: 20px;
    height: 1.5px;
  }

  .slide-dot.active {
    width: 36px;
  }

  .hero-cinema .scroll-indicator {
    display: none;
  }

  .slide-counter {
    bottom: 1.5rem;
  }

  .hero-overlay {
    background:
      linear-gradient(
        to top,
        rgba(44, 24, 16, 0.90) 0%,
        rgba(44, 24, 16, 0.55) 40%,
        rgba(44, 24, 16, 0.20) 70%,
        transparent 100%
      );
  }
}

@media (max-width: 480px) {
  .hero-title-cinema {
    font-size: clamp(2.4rem, 14vw, 4rem);
  }

  .hero-stats-cinema {
    gap: 0;
  }

  .hero-stat-cinema {
    padding: 0 0.9rem;
  }

  .hero-stat-cinema:first-child {
    padding-left: 0.9rem;
  }
}
