/**
 * hero.css
 * Section hero plein écran avec carrousel vidéo crossfade,
 * overlay gradient, texte centré et indicateur scroll.
 */

/* ── Conteneur hero ───────────────────────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #1A1A1A;
}

/* ── Image de fond hero ──────────────────────────────────────────────────── */
.hero__image-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Overlay gradient ─────────────────────────────────────────────────────── */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.5) 60%,
    rgba(0, 0, 0, 0.7) 100%
  );
}

/* ── Contenu texte ────────────────────────────────────────────────────────── */
.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-inline: var(--space-lg);
  max-width: 800px;
}

.hero__surtitle {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent-secondary);
  margin-bottom: var(--space-md);
}

.hero__title {
  font-size: var(--text-3xl);
  color: #FFFFFF;
  margin-bottom: var(--space-lg);
}

.hero__subtitle {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.8);
  font-weight: 400;
  margin-bottom: var(--space-2xl);
}

@media (min-width: 768px) {
  .hero__title {
    font-size: var(--text-5xl);
  }

  .hero__subtitle {
    font-size: var(--text-xl);
  }
}

@media (min-width: 1200px) {
  .hero__title {
    font-size: var(--text-6xl);
  }
}

/* ── Indicateur scroll ────────────────────────────────────────────────────── */
.hero__scroll-indicator {
  position: absolute;
  bottom: var(--space-2xl);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.4);
  position: relative;
  overflow: hidden;
}

.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-signature);
  animation: hero-scroll-pulse 2s ease-in-out infinite;
}

@keyframes hero-scroll-pulse {
  0%   { top: -100%; }
  50%  { top: 0; }
  100% { top: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__scroll-line::after {
    animation: none;
    top: 0;
  }
}
