/* ══════════════════════════════════════════════════════════════
   WINEIA — Hero cinématique V3 + section téléchargement
   ══════════════════════════════════════════════════════════════ */

/* ══ HERO STACK ══ */
.hero-stack {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
}

/* ══ HERO SECTION — épinglée par GSAP pendant le scroll-scrub ══ */
.hero-cinematic {
  position: relative;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  z-index: 5;
  background: #0d0007; /* canvas sombre derrière la séquence d'images */
}

/* ── Canvas séquence d'images (scroll-scrub) ── */
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
  pointer-events: none;
}

/* ══ HERO INTRO — section dédiée AVANT la vidéo (titre rotatif) ══ */
#hero-intro {
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.45);
  --font-body: 'Plus Jakarta Sans', sans-serif;

  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  z-index: 6;
  background: #0d0007;
  padding: 0 24px;
  text-align: center;
  overflow: hidden;
}

/* ── Badge "Disponible maintenant" ── */
#badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(180, 0, 0, 0.15);
  border: 1px solid rgba(200, 0, 0, 0.4);
  border-radius: 999px;
  padding: 6px 16px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: #E53030;
  text-transform: uppercase;
  pointer-events: auto;
}

.dot {
  width: 7px;
  height: 7px;
  background: #E53030;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}

/* ── Titre principal ── */
#hero-title {
  font-family: var(--font-title);
  font-size: clamp(52px, 9vw, 116px);
  font-weight: 500;
  color: var(--text);
  line-height: 1.05;
  text-align: center;
  letter-spacing: -0.02em;
  margin: 0;
  text-shadow: 0 2px 30px rgba(0,0,0,0.35);
}

/* ── Word switcher ── */
#word-switcher {
  display: block;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;            /* large : la phrase la plus longue tient sur 1 ligne */
  height: 1.25em;
  overflow: hidden;        /* clip vertical pour la rotation */
  white-space: nowrap;
}

.word {
  font-style: italic;
  font-weight: 700;
  color: var(--text);
  position: absolute;
  left: 0;
  right: 0;
  text-align: center;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.word.active {
  opacity: 1;
  transform: translateY(0);
}

.word.exit {
  opacity: 0;
  transform: translateY(-40px);
}

/* ── Scroll cue ── */
#scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  animation: bob 2.4s ease-in-out infinite;
}

.arrow-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}

/* ══ SECTION 2 ══ */
.section-2 {
  position: relative;
  z-index: 4;
  background: #fff;
  margin-top: 0;
  padding-top: 0;
}

/* ══ NAV — header fixe, VISIBLE en permanence (y compris pendant le hero) ══ */
nav {
  transition: opacity 0.4s ease;
}

/* ══ CHAT WIDGET — masqué pendant la hero phase ══ */
body.hero-phase #wineia-launcher,
body.hero-phase #wineia-window,
body.hero-phase #wineia-popup,
body.hero-phase #wineia-badge {
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

/* (ancienne section QR sombre supprimée — la section téléchargement est
   désormais blanche, voir .sdl-* dans index.html / styles.css) */

/* ══ RESPONSIVE MOBILE ══ */
@media (max-width: 768px) {
  /* (styles hero-intro retirés) */
}

/* ══ ACCESSIBILITÉ ══ */
@media (prefers-reduced-motion: reduce) {
  .hero-cinematic {
    position: relative;
    height: auto;
    min-height: 100vh;
  }
  .dot { animation: none; }
}
