/* ==========================================================================
   HERO SEQUENCE — séquence d'images pilotée par l'interaction (Apple-style)
   Tout est préfixé .hero-seq : n'impacte AUCUNE autre partie du site.
   Aucune dépendance. 100% statique (Hostinger).
   ========================================================================== */

.hero-seq {
  position: relative;
  width: 100%;
  height: 100svh;                         /* un seul écran : le pin est géré en JS */
  height: calc(var(--vh, 1vh) * 100);     /* fallback + anti "saut" barre d'adresse */
  margin: 0;
  background: var(--bg-primary, #5e4074); /* couleur de fond du SITE (suit le thème) */
  color: #fff;
  overflow: hidden;
}

/* Scène plein écran (canvas + texte) */
.hero-seq__sticky {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Le canvas couvre toujours toute la largeur/hauteur ; le cadrage (cover/contain)
   est calculé À L'INTÉRIEUR du canvas par drawImage (voir le JS). */
.hero-seq__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
  background: var(--bg-primary, #5e4074);
}

/* Voile LOCALISÉ derrière le texte (n'assombrit pas les bandes = couleur du site) */
.hero-seq__scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(closest-side at 50% 46%, rgba(0,0,0,.34), rgba(0,0,0,0) 72%);
}

/* Contenu texte du Hero, au-dessus du canvas */
.hero-seq__content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(20px, 6vw, 80px);
  gap: clamp(14px, 2vw, 22px);
  will-change: opacity, transform;        /* fondu/translate pilotés en JS (compositor) */
}

.hero-seq__eyebrow {
  margin: 0;
  font-size: clamp(.72rem, 1.1vw, .9rem);
  letter-spacing: .42em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255,255,255,.78);
}
.hero-seq__title {
  margin: 0;
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -.02em;
  font-size: clamp(2.6rem, 8vw, 6.5rem);
  text-shadow: 0 2px 40px rgba(0,0,0,.35);
}
.hero-seq__subtitle {
  margin: 0;
  max-width: 42ch;
  font-size: clamp(1rem, 1.7vw, 1.35rem);
  line-height: 1.5;
  color: rgba(255,255,255,.85);
  font-weight: 400;
}
.hero-seq__actions {
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 8px;
}
.hero-seq__btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 30px; border-radius: 999px; font-size: 1rem; font-weight: 600;
  text-decoration: none; transition: transform .25s ease, background .25s ease;
}
.hero-seq__btn--primary { background: #fff; color: #000; }
.hero-seq__btn--primary:hover { transform: translateY(-2px); }
.hero-seq__btn--ghost {
  background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.35);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.hero-seq__btn--ghost:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }

/* Indicateur de scroll (disparaît dès la première interaction) */
.hero-seq__hint {
  position: absolute; left: 50%; bottom: clamp(18px, 4vh, 42px);
  transform: translateX(-50%); z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: .72rem; letter-spacing: .28em; text-transform: uppercase;
  color: rgba(255,255,255,.7); transition: opacity .4s ease;
}
.hero-seq__hint span {
  width: 1px; height: 34px;
  background: linear-gradient(rgba(255,255,255,0), rgba(255,255,255,.9));
  animation: hero-seq-pulse 1.8s ease-in-out infinite;
}
@keyframes hero-seq-pulse { 0%,100%{transform:scaleY(.4);opacity:.4} 50%{transform:scaleY(1);opacity:1} }

/* Barre de préchargement fine, masquée une fois tout chargé */
.hero-seq__loader {
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px; z-index: 4;
  background: rgba(255,255,255,.12); transition: opacity .5s ease;
}
.hero-seq__loader-bar { height: 100%; width: 0%; background: #fff; transition: width .12s linear; }
.hero-seq.is-ready .hero-seq__loader { opacity: 0; }

/* prefers-reduced-motion : pas de capture de geste, image fixe */
@media (prefers-reduced-motion: reduce) {
  .hero-seq__hint { display: none; }
}

/* ==========================================================================
   INTÉGRATION SITE LAHBABI
   - Le Hero passe au-dessus du #particle-canvas (z-index:0).
   - Le texte du Hero reste clair et lisible par-dessus les frames, dans les
     deux thèmes (clair/sombre). On NE touche pas .neon-text (reste cyan).
   - On réutilise les classes premium du site (hero-name, hero-role, etc.).
   ========================================================================== */
.hero-seq { z-index: 1; }

.hero-seq .hero-content {
  position: relative;
  z-index: 3;
  max-width: 60rem;
  padding: 0 1.5rem;
  text-align: center;
}
.hero-seq .hero-name-white { color: #fff; }
.hero-seq .hero-role     { color: rgba(255, 255, 255, .82); }
.hero-seq .hero-tagline  { color: rgba(255, 255, 255, .88); white-space: pre-line; }
.hero-seq .hero-ctas     { margin-bottom: 1.75rem; }
.hero-seq .social-link {
  color: rgba(255, 255, 255, .85);
  border-color: rgba(255, 255, 255, .30);
}
.hero-seq .social-link:hover { color: #fff; border-color: rgba(255, 255, 255, .6); }

/* Nom du Hero : toujours sur une seule ligne, centré, jamais coupé en plein mot.
   (scopé .hero-seq : n'affecte rien d'autre ; le JS ajuste la taille pour que ça rentre) */
.hero-seq .hero-name { white-space: nowrap; }
.hero-seq .hero-name .neon-text,
.hero-seq .hero-name-white {
  display: block;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
  text-align: center;
}
