/* Hero Scroll Ctoutcom — chargé automatiquement par le thème enfant YOOtheme */

/* La classe ctc-hero-host doit être ajoutée à l’élément HTML dans l’onglet Advanced. */
.ctc-hero-host {
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
}

.ctc-hero-host > * { width: 100%; }

.ctc-video-scroll {
  position: relative;
  height: 450vh;
  background: #000;
}

.ctc-video-scroll__sticky {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100svh;
  overflow: hidden;
  background: #000;
}

.ctc-video-scroll__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity .25s ease;
}

.ctc-video-scroll.is-ready .ctc-video-scroll__media { opacity: 1; }
.ctc-video-scroll.has-error .ctc-video-scroll__media { display: none; }

.ctc-video-scroll__vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 12vw 5vw #000;
}

.ctc-video-scroll__hint {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  margin: 0;
  transform: translateX(-50%);
  color: rgba(255,255,255,.72);
  font: 600 .72rem/1.2 Inter,system-ui,sans-serif;
  letter-spacing: .18em;
  text-transform: uppercase;
  transition: opacity .3s ease;
}

.ctc-video-scroll.is-scrolling .ctc-video-scroll__hint { opacity: 0; }

@media (max-width: 700px) {
  .ctc-video-scroll { height: 330vh; }
  .ctc-video-scroll__vignette { box-shadow: inset 0 0 18vw 8vw #000; }
}

@media (prefers-reduced-motion: reduce) {
  .ctc-video-scroll { height: 100svh; }
  .ctc-video-scroll__hint { display: none; }
}
