/* ═══════════════════════════════════════════════
   M-FORCE — HERO SLIDER (navigation verticale)
   Inspiré des sliders produits « éditoriaux » :
   thème couleur par slide, mot fantôme, orbite de
   gélules, révélations masquées.
   ═══════════════════════════════════════════════ */

.hs {
  position: relative;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  isolation: isolate;

  /* thème courant (piloté en JS) */
  --acc: #F2A81D;
  --acc-soft: rgba(242, 168, 29, 0.22);
  --acc-deep: rgba(242, 168, 29, 0.10);
}

/* ── vidéo de fond ──
   La source est réduite à de la luminance pure : on la reteinte ici avec
   l'accent de la slide (multiply → noir reste noir, lumière devient accent). */
.hs__video {
  position: absolute; inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  isolation: isolate;                 /* le blend reste dans ce conteneur */
  background: #000;
}
.hs__video video {
  position: absolute;
  top: 50%; left: 50%;
  min-width: 100%; min-height: 100%;
  width: auto; height: auto;
  transform: translate(-50%, -50%) scale(1.08) scaleX(-1);  /* rideau vers la droite */
  object-fit: cover;
  filter: contrast(1.12) brightness(1.15);
}
/* couche de teinte : colore la lumière du clip */
.hs__video-tint {
  position: absolute; inset: 0;
  background: var(--acc);
  mix-blend-mode: multiply;
  transition: background 1.1s ease;
}
/* vignette : ramène les bords au noir et protège la lisibilité du texte */
.hs__video-vignette {
  position: absolute; inset: 0;
  background:
    /* colonne de texte protégée à gauche, lueur libre à droite */
    linear-gradient(95deg, #000 4%, rgba(0, 0, 0, 0.88) 22%, rgba(0, 0, 0, 0.42) 44%, rgba(0, 0, 0, 0.05) 70%, rgba(0, 0, 0, 0.3) 100%),
    radial-gradient(130% 100% at 62% 55%, transparent 42%, rgba(0, 0, 0, 0.55) 100%);
}

/* ── ambiance ── */
.hs__ambient { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hs__ring {
  position: absolute;
  top: 50%; left: 62%;
  width: min(46vw, 620px); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 1px solid var(--acc-soft);
  border-radius: 50%;
  opacity: 0.5;
  animation: hsSpin 34s linear infinite;
  transition: border-color 1.1s ease;
}
.hs__ring::after {
  content: "";
  position: absolute; top: -4px; left: 50%;
  width: 7px; height: 7px;
  margin-left: -3.5px;
  border-radius: 50%;
  background: var(--acc);
  box-shadow: 0 0 14px var(--acc);
}
@keyframes hsSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }

/* ── mot fantôme ── */
.hs__ghost {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  pointer-events: none;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(7rem, 22vw, 22rem);
  line-height: 1;
  letter-spacing: -0.01em;
  color: rgba(244, 240, 230, 0.05);
  white-space: nowrap;
  user-select: none;
}

/* ── scène / slides ── */
.hs__stage { position: relative; z-index: 4; height: 100%; }
.hs__slide {
  position: absolute; inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: 2rem;
  padding: 7rem 4vw 6rem;
  max-width: 1440px;
  margin-inline: auto;
  visibility: hidden;
  pointer-events: none;
}
.hs__slide.is-active { visibility: visible; pointer-events: auto; }

/* ── copie ── */
.hs__copy { max-width: 33rem; }
.hs__eyebrow { overflow: hidden; margin-bottom: 1.1rem; }
.hs__eyebrow span { display: inline-block; color: var(--acc); letter-spacing: 0.24em; }

.hs__title {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: -0.02em;
  margin-bottom: 1.4rem;
}
.hs__title .l { display: block; overflow: hidden; padding-top: 0.12em; margin-top: -0.12em; }
.hs__title .l:first-child {
  font-size: clamp(2.7rem, 6.6vw, 5.9rem);
  color: var(--blanc);
}
.hs__title .l--sub {
  font-size: clamp(1.4rem, 3.1vw, 2.7rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--acc);
  transition: color 1.1s ease;
}

.hs__desc {
  max-width: 27rem;
  font-weight: 300;
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  line-height: 1.7;
  color: var(--gris);
}
.hs__badges {
  display: flex; flex-wrap: wrap; gap: 0.45rem;
  margin: 1.5rem 0 2rem;
}
.hs__badges span {
  padding: 0.42rem 0.8rem;
  border: 1px solid rgba(244, 240, 230, 0.17);
  border-radius: 999px;
  font-size: 0.58rem;
  color: rgba(244, 240, 230, 0.72);
}
.hs__buy { display: flex; align-items: center; gap: 1.8rem; flex-wrap: wrap; }
.hs__price {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.5rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--acc);
  transition: color 1.1s ease;
}
.hs__price em { font-style: normal; font-weight: 700; font-size: 1.2rem; }

.hs__cta {
  display: inline-flex; align-items: center; gap: 0.7rem;
  padding: 1.05rem 2rem;
  border: none;
  border-radius: 999px;
  background: var(--acc);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #000;
  position: relative;
  overflow: hidden;
  transition: background 1.1s ease, transform 0.25s, box-shadow 0.3s;
}
.hs__cta::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(101%);
  transition: transform 0.45s cubic-bezier(0.65, 0, 0.35, 1);
}
.hs__cta:hover::before { transform: translateY(0); }
.hs__cta:hover { transform: translateY(-2px); box-shadow: 0 12px 32px var(--acc-soft); }
.hs__cta span, .hs__cta i { position: relative; z-index: 1; }
.hs__cta i { font-style: normal; transition: transform 0.35s; }
.hs__cta:hover i { transform: translateX(5px); }

/* ── visuel ── */
.hs__visual {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  height: 100%;
}
.hs__bottle {
  width: auto;
  max-height: min(74svh, 620px);
  filter: drop-shadow(0 34px 60px rgba(0, 0, 0, 0.72));
  will-change: transform, opacity;
  backface-visibility: hidden;
}
.hs__title .l, .hs__eyebrow span, .hs__desc, .hs__badges span, .hs__buy, .hs__copy > .hs__cta {
  will-change: transform, opacity;
}
.hs__visual--duo { gap: 0; }
.hs__visual--duo .hs__bottle { max-height: min(58svh, 480px); }
.hs__bottle--l { transform: translateX(9%) rotate(-4deg); z-index: 2; }
.hs__bottle--r { transform: translateX(-9%) rotate(4deg); z-index: 1; }

/* ── navigation ── */
.hs__nav {
  position: absolute;
  right: 2.2rem; top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
}
.hs__arrow {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid rgba(244, 240, 230, 0.22);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  color: var(--blanc);
  font-size: 0.95rem;
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s, background 0.3s, transform 0.3s;
}
.hs__arrow:hover {
  border-color: var(--acc);
  color: var(--acc);
  transform: scale(1.08);
}
.hs__dots { display: flex; flex-direction: column; gap: 0.55rem; list-style: none; }
.hs__dots button {
  display: block;
  width: 2px; height: 26px;
  border: none; padding: 0;
  background: rgba(244, 240, 230, 0.22);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}
.hs__dots button::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--acc);
  transform: scaleY(0);
  transform-origin: top;
}
.hs__dots button[aria-current="true"]::after { transform: scaleY(var(--p, 0)); }
.hs__count { color: var(--gris); font-size: 0.6rem; letter-spacing: 0.14em; }
.hs__count b { color: var(--blanc); font-weight: 400; }

/* ── indice de scroll ── */
.hs__hint {
  position: absolute;
  left: 4vw; bottom: 2rem;
  z-index: 6;
  display: flex; align-items: center; gap: 0.8rem;
  color: var(--gris);
}
.hs__hint-line {
  display: block; width: 48px; height: 1px;
  background: var(--acc);
  transform-origin: left;
  animation: hsScrollLine 1.9s ease-in-out infinite;
}
@keyframes hsScrollLine {
  0%   { transform: scaleX(0); transform-origin: left; }
  45%  { transform: scaleX(1); transform-origin: left; }
  55%  { transform: scaleX(1); transform-origin: right; }
  100% { transform: scaleX(0); transform-origin: right; }
}

/* ── responsive ── */
@media (max-width: 900px) {
  .hs { min-height: 100svh; }
  .hs__slide {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
    text-align: center;
    padding: max(4.4rem, env(safe-area-inset-top) + 3.4rem) 1.2rem
             max(5.2rem, env(safe-area-inset-bottom) + 4.4rem);
    gap: 0.4rem;
  }
  .hs__copy { max-width: 100%; order: 2; }
  /* le visuel occupe toute la rangée et reste centré ;
     la largeur est bornée pour que la paire tienne dans la colonne */
  .hs__visual { order: 1; align-items: center; min-width: 0; min-height: 0; width: 100%; padding-bottom: 0.4rem; }
  .hs__bottle { max-height: min(100%, 48svh); max-width: 82%; width: auto; }
  .hs__visual--duo { gap: 0; }
  .hs__visual--duo .hs__bottle { max-height: min(100%, 42svh); max-width: 55%; }
  .hs__eyebrow { margin-bottom: 0.7rem; font-size: 0.56rem; letter-spacing: 0.18em; }
  .hs__title { margin-bottom: 0.9rem; }
  .hs__title .l:first-child { font-size: clamp(2.4rem, 13vw, 3.6rem); }
  .hs__title .l--sub { font-size: clamp(1.1rem, 5.4vw, 1.6rem); }
  .hs__desc { margin-inline: auto; font-size: 0.9rem; line-height: 1.6; max-width: 30rem; }
  .hs__badges, .hs__buy { justify-content: center; }
  .hs__badges { margin: 0.9rem 0 1.1rem; gap: 0.35rem; }
  .hs__badges span { font-size: 0.5rem; padding: 0.34rem 0.62rem; }
  .hs__buy { gap: 1rem; flex-direction: column; }
  .hs__price { font-size: 2.2rem; }
  /* CTA pleine largeur : cible tactile confortable */
  .hs__cta { width: 100%; justify-content: center; padding: 1.1rem 1.4rem; }

  /* navigation en bas, cibles tactiles 44px */
  .hs__nav {
    right: auto; left: 50%; top: auto;
    bottom: max(0.8rem, env(safe-area-inset-bottom));
    transform: translateX(-50%);
    flex-direction: row;
    gap: 0.7rem;
  }
  .hs__arrow { width: 44px; height: 44px; }
  .hs__dots { flex-direction: row; gap: 0; }
  .hs__dots li { display: flex; }
  .hs__dots button {
    width: 34px; height: 44px;          /* zone tactile */
    background: none;
    position: relative;
    display: grid; place-items: center;
  }
  .hs__dots button::before {            /* trait visible */
    content: "";
    width: 22px; height: 2px;
    background: rgba(244, 240, 230, 0.28);
  }
  .hs__dots button::after {
    width: 22px; height: 2px;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scaleX(0);
    transform-origin: left;
    inset: auto;
  }
  .hs__dots button[aria-current="true"]::after { transform: translate(-50%, -50%) scaleX(var(--p, 0)); }
  .hs__count { font-size: 0.55rem; }
  .hs__hint { display: none; }
  .hs__ghost { font-size: 30vw; opacity: 0.85; }
}

/* écrans très courts (paysage / petits téléphones) */
@media (max-width: 900px) and (max-height: 700px) {
  .hs__bottle { max-height: min(100%, 34svh); }
  .hs__visual--duo .hs__bottle { max-height: min(100%, 28svh); }
  .hs__desc { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hs__ring, .hs__hint-line { animation: none !important; }
}

/* ── aigle en filigrane, teinté par la slide ── */
.hs__eagle {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-52%, -52%);
  width: min(78vw, 1000px);
  z-index: 1;
  pointer-events: none;
  user-select: none;
  color: var(--acc);
  opacity: 0.09;
  transition: color 1.1s ease;
}
.hs__eagle svg { width: 100%; height: auto; display: block; }

@media (max-width: 900px) {
  .hs__eagle { width: 128vw; opacity: 0.07; }
}
