/* ================================================================
   JOCEOFFICE HERO — hero.css v1.1
   Fond couleur, image ou vidéo. Overlay. Texte lettre par lettre.
   ================================================================ */

/* ── Wrapper : hauteur = durée scroll ── */
.joco-hero-wrap {
  position: relative;
  width: 100%;
}

/* ── Zone sticky ── */
.jh-sticky {
  position: sticky;
  top: 0;
  width: 100%;
  height: var(--jh-height, 100vh);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
  /* background-color/image injectés inline par PHP */
  transition: background-color 0.4s;
}

/* ── Vidéo de fond ── */
.jh-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  pointer-events: none;
}

/* ── Overlay (couleur + opacité gérées inline) ── */
.jh-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* ── Contenu texte (au-dessus de la vidéo/overlay) ── */
.jh-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: var(--jh-pad, clamp(20px, 5vw, 80px));
  padding-top: max(var(--jh-pad, 40px), var(--joco-header-h, 60px));
}

/* ── Texte cinétique ── */
.jh-text {
  font-family: var(--joco-font, 'Helvetica Neue', Helvetica, Arial, sans-serif);
  font-size: var(--jh-fs, clamp(36px, 7vw, 88px));
  font-weight: var(--jh-fw, 400);
  letter-spacing: var(--jh-ls, -0.035em);
  line-height: var(--jh-lh, 1.1);
  text-align: var(--jh-align, left);
  color: transparent;
  margin: 0;
}

/* ── Caractère éteint ── */
.jh-char {
  display: inline;
  opacity: var(--jh-opacity-dim, 0.08);
  color: var(--jh-color, var(--joco-b, #0a0a0a));
  transition: opacity 0.06s linear;
  will-change: opacity;
}
.jh-char.lit { opacity: 1; }
.jh-space    { display: inline; color: transparent; }

/* ── Indicateur scroll ── */
.jh-hint {
  position: absolute;
  bottom: clamp(20px, 4vh, 40px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-family: var(--joco-mono, 'Courier New', monospace);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--jh-color, currentColor);
  opacity: 0.4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
  animation: jh-float 2.4s ease-in-out infinite;
}
.jh-hint::after {
  content: '';
  width: 1px;
  height: 32px;
  background: currentColor;
  opacity: 0.5;
}
@keyframes jh-float {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(7px); }
}
