/* ═══════════════════════════════════════════════════
   Scroll-driven Video — Apple-style frame animation
   Section scroll-story avec canvas video + bulles texte
   ═══════════════════════════════════════════════════ */

/* Canvas positionne en fond de la section pinnee */
.scroll-video-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* La section doit etre relative pour le positionnement */
.scroll-story {
  overflow: hidden;
}

/* --- Bulles de texte glassmorphism --- */
.scroll-video-bubble {
  position: absolute;
  top: 50%;
  transform: translateY(0);
  z-index: 2;
  max-width: 440px;
  padding: 32px 36px;
  background: rgba(42, 42, 65, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(205, 175, 118, 0.2);
  border-radius: 20px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(205, 175, 118, 0.08) inset;
  opacity: 0;
  transition: opacity 0.1s ease-out;
  will-change: opacity, transform;
  pointer-events: none;
}

/* Positionnement alterne gauche/droite */
.scroll-video-bubble.bubble-left {
  left: 8%;
  margin-top: -80px;
}

.scroll-video-bubble.bubble-right {
  right: 8%;
  margin-top: -80px;
}

/* Quand visible, autoriser les clics (pour le CTA) */
.scroll-video-bubble[style*="opacity: 1"],
.scroll-video-bubble[style*="opacity:1"] {
  pointer-events: auto;
}

/* --- Contenu des bulles --- */
.scroll-video-bubble-num {
  font-family: var(--hb-font-body, 'Inter', sans-serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--hb-gold, #CDAF76);
  margin-bottom: 12px;
  opacity: 0.85;
}

.scroll-video-bubble-title {
  font-family: var(--hb-font-title, 'Lora', serif);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 700;
  color: var(--hb-white, #fff);
  margin: 0 0 14px;
  line-height: 1.3;
}

.scroll-video-bubble-text {
  font-family: var(--hb-font-body, 'Inter', sans-serif);
  font-size: clamp(0.88rem, 1.3vw, 1rem);
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.65;
  margin: 0;
}

.scroll-video-bubble-cta {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.scroll-video-bubble-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(205, 175, 118, 0.35);
}

/* --- Progress bar visible par-dessus le canvas --- */
.scroll-story .story-progress {
  z-index: 3;
}

/* --- Responsive large ecrans --- */
@media (min-width: 1400px) {
  .scroll-video-bubble.bubble-left {
    left: 12%;
  }
  .scroll-video-bubble.bubble-right {
    right: 12%;
  }
  .scroll-video-bubble {
    max-width: 480px;
    padding: 36px 40px;
  }
}

/* Sur tablette paysage */
@media (min-width: 992px) and (max-width: 1199px) {
  .scroll-video-bubble {
    max-width: 380px;
    padding: 24px 28px;
  }
  .scroll-video-bubble.bubble-left {
    left: 5%;
  }
  .scroll-video-bubble.bubble-right {
    right: 5%;
  }
}

/* --- Masquer sur mobile (la section scroll-story elle-meme est cachee) --- */
@media (max-width: 991px) {
  .scroll-video-canvas,
  .scroll-video-bubble {
    display: none !important;
  }
}
