
.video-hotspots__sticky-wrap {
  position: sticky;
  top: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 4rem;
}


.video-hotspots__heading {
  max-width: 62rem;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  z-index: 25;
  pointer-events: auto;
  max-height: 400px;
  overflow: hidden;
  transition: opacity 0.5s ease, transform 0.5s ease, max-height 0.5s ease, margin-bottom 0.5s ease;
}

.video-hotspots__tag {
  background-color: transparent;
  margin: 0;
}

.video-hotspots__description {
  color: var(--greyscale-grey-900, #090a0c);
  text-align: center;
  font-family: "Archia", sans-serif;
  font-size: var(--space-48, 48px);
  font-style: normal;
  font-weight: 500;
  line-height: 100%;
  letter-spacing: -1.92px;
  margin: 0;
}

.video-hotspots__stage-wrapper {
  position: relative;
  width: 100%;
}


.video-hotspots__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
}

.video-hotspots__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-hotspots__video--overlay {
  z-index: 4;
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.video-hotspots__video--main {
  z-index: 3;
  opacity: 1;
  transition: opacity 0.45s ease;
}

.video-hotspots__video--main.js-video-hotspots-main-lottie,
.video-hotspots__video--schema.js-video-hotspots-schema-lottie,
.video-hotspots__video--tertiary.js-video-hotspots-tertiary-lottie {
  overflow: hidden;
  will-change: contents;
}

.video-hotspots__video--main.js-video-hotspots-main-lottie {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.video-hotspots__video--main.js-video-hotspots-main-lottie.is-loaded {
  opacity: 1;
}

.video-hotspots__video--main.js-video-hotspots-main-lottie svg,
.video-hotspots__video--main.js-video-hotspots-main-lottie canvas,
.video-hotspots__video--main.js-video-hotspots-main-lottie dotlottie-player,
.video-hotspots__video--schema.js-video-hotspots-schema-lottie svg,
.video-hotspots__video--schema.js-video-hotspots-schema-lottie canvas,
.video-hotspots__video--schema.js-video-hotspots-schema-lottie dotlottie-player,
.video-hotspots__video--tertiary.js-video-hotspots-tertiary-lottie svg,
.video-hotspots__video--tertiary.js-video-hotspots-tertiary-lottie canvas,
.video-hotspots__video--tertiary.js-video-hotspots-tertiary-lottie dotlottie-player {
  width: 100%;
  height: 100%;
  display: block;
}

.video-hotspots__video--schema {
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.video-hotspots__video--schema.is-active {
  opacity: 1;
}

.video-hotspots__video--tertiary {
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.video-hotspots__video--tertiary.is-active {
  opacity: 1;
}

.video-hotspots__center-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-hotspots__center-icon svg,
.video-hotspots__center-icon img {
  display: block;
  max-width: 100%;
  height: auto;
}

.video-hotspots__stage.is-tertiary-active .video-hotspots__center-icon {
  opacity: 1;
}

.video-hotspots__stage.is-tertiary-active .video-hotspots__video--main {
  opacity: 0.7;
}

.video-hotspots__stage.is-ended .video-hotspots__video--main {
  opacity: 1;
}

.video-hotspots__video--overlay.is-active {
  opacity: 0.72;
}

.video-hotspots__overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.video-hotspots__stage.is-ended .video-hotspots__overlay {
  opacity: 1;
  pointer-events: auto;
}

.video-hotspots__stage.is-hotspots-visible .video-hotspots__overlay {
  opacity: 1;
  pointer-events: auto;
}

.video-hotspots__item {
  position: absolute;
  z-index: 21;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #fffefa;
  text-decoration: none;
  cursor: pointer;
  pointer-events: auto;
  width: 64px;
  height: 64px;
  transform: translate(-50%, -50%);
}

.video-hotspots__hover-icon {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transform: scale(1);
  transform-origin: center;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.video-hotspots__hover-icon img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  filter: url(#vhp-pink-icon);
}

.video-hotspots__hover-icon--canvas img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1440px;
  height: 886px;
  object-fit: none;
  transform: translate(-50%, -50%);
}

.video-hotspots__item:not(.video-hotspots__item--label):hover .video-hotspots__hover-icon,
.video-hotspots__item:not(.video-hotspots__item--label).is-peer-hovered .video-hotspots__hover-icon {
  opacity: 1;
  transform: scale(1.25);
}

.video-hotspots__icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, background 0.25s ease;
}

.video-hotspots__icon-img {
  object-fit: contain;
  transition: opacity 0.25s ease;
}

.video-hotspots__icon-img--hover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.video-hotspots__item:hover .video-hotspots__icon-img--hover {
  opacity: 1;
}

.video-hotspots__item:hover .video-hotspots__icon-img:not(.video-hotspots__icon-img--hover) {
  opacity: 0;
}

.video-hotspots__icon-fallback {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 999px;
  background: #fffefa;
}

.video-hotspots__label {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1;
  color: #fffefa;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
}

/* ── Inline SVG icons ── */
.video-hotspots__icon-svg {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.video-hotspots__icon-svg svg {
  display: block;
  width: 100%;
  height: 100%;
}

.video-hotspots__item:hover .video-hotspots__icon-svg svg path,
.video-hotspots__item:hover .video-hotspots__icon-svg svg circle,
.video-hotspots__item:hover .video-hotspots__icon-svg svg rect,
.video-hotspots__item:hover .video-hotspots__icon-svg svg polyline,
.video-hotspots__item:hover .video-hotspots__icon-svg svg polygon,
.video-hotspots__item:hover .video-hotspots__icon-svg svg ellipse {
  fill: var(--primary-pink-500, #D9306B);
  transition: fill 0.25s ease;
}

.video-hotspots__item:hover .video-hotspots__label {
  color: var(--primary-pink-500, #D9306B);
}

/* Hide Lottie arrows — navigation labels are replaced by HTML overlays. */
.video-hotspots__video--main image[href*="img_0"] {
  display: none;
}

.js-video-hotspots-main-lottie image[data-hotspot-index] {
  transform-box: fill-box;
  transform-origin: center;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.js-video-hotspots-main-lottie image[data-hotspot-index].is-hotspot-active {
  filter: url(#vhp-pink-icon);
  transform: scale(1.25);
}

/* ── Label overlays (HTML text replacing lottie SVG labels) ── */
.video-hotspots__item--label {
  width: auto;
  height: auto;
  transform: translate(0, -50%);
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  color: rgba(17, 24, 33, 0.4);
  font-size: 20px;
  font-weight: 500;
  font-family: "Fustat", sans-serif;
  text-decoration: none;
}

.video-hotspots__item--label .video-hotspots__nav-arrow {
  width: 0;
  height: 24px;
  opacity: 0;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  transition: width 0.2s ease, opacity 0.2s ease;
}

.video-hotspots__item--label .video-hotspots__nav-arrow svg {
  width: 24px;
  height: 24px;
}

.video-hotspots__item--label:hover,
.video-hotspots__item--label.is-peer-hovered {
  color: var(--primary-pink-500, #D9306B);
}

.video-hotspots__item--label:hover .video-hotspots__nav-arrow,
.video-hotspots__item--label.is-peer-hovered .video-hotspots__nav-arrow {
  width: 24px;
  opacity: 1;
}

/* ── Lottie-only mode ── */
.video-hotspots--lottie .video-hotspots__sticky-wrap {
  position: static;
  min-height: auto;
}

.video-hotspots--lottie .video-hotspots__stage {
  aspect-ratio: 1440 / 886;
  position: relative;
}

.video-hotspots__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2.5rem;
  margin-top: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease 0.3s;
}

.video-hotspots__stage.is-hotspots-visible ~ .video-hotspots__nav {
  opacity: 1;
  pointer-events: auto;
}

/* ── Side panels ── */
.video-hotspots__side-panels {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3%;
  pointer-events: none;
  z-index: 30;
}

.video-hotspots__side-panel--left {
  width: 28%;
  display: flex;
  flex-direction: column;
  gap: 96px;
  pointer-events: auto;
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.video-hotspots__left-column {
  flex: 1;
  min-width: 0;
}

.video-hotspots__stage.is-hotspots-visible ~ .video-hotspots__side-panels .video-hotspots__side-panel--left {
  opacity: 1;
  transform: translateX(0);
}

.video-hotspots__left-title {
  color: var(--greyscale-grey-900, #090a0c);
  font-family: "Archia", sans-serif;
  font-size: var(--space-24, 32px);
  font-weight: 500;
  line-height: 120%;
  letter-spacing: -0.48px;
  margin: 0 0 0.75rem;
}

.video-hotspots__left-description {
  color: var(--greyscale-grey-700, #3a3a38);
  font-size: 20px;
  font-weight: 400;
  line-height: 150%;
  margin: 0;
}

.video-hotspots__side-panel--right {
  width: 18%;
  pointer-events: auto;
  opacity: 0;
  transform: translateX(16px);
  transition: opacity 0.5s ease 0.1s, transform 0.5s ease 0.1s;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Espacement spécial entre les panels */
.video-hotspots__side-panel--right .video-hotspots__nav-link:nth-child(1) {
  margin-top: 0;
}

.video-hotspots__nav .video-hotspots__nav-link:nth-child(1) {
  margin-top: 0;
}

.video-hotspots__stage.is-hotspots-visible ~ .video-hotspots__side-panels .video-hotspots__side-panel--right {
  opacity: 1;
  transform: translateX(0);
}

/* Nav links */
.video-hotspots__nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--greyscale-grey-500, #747472);
  font-size: var(--space-20, 20px);
  font-style: normal;
  font-weight: 500;
  line-height: 100%;
  text-decoration: none;
  transition: color 0.2s ease;
}

.video-hotspots__nav-arrow,
.video-hotspots__nav-icon {
  width: 0;
  height: 20px;
  flex-shrink: 0;
  opacity: 0;
  overflow: hidden;
  transition: width 0.2s ease, opacity 0.2s ease;
}

.video-hotspots__nav-icon {
  object-fit: contain;
}

.video-hotspots__nav-link:hover,
.video-hotspots__nav-link.is-active {
  color: var(--primary-pink-500, #D9306B);
}

.video-hotspots__nav-link:hover .video-hotspots__nav-arrow,
.video-hotspots__nav-link.is-active .video-hotspots__nav-arrow,
.video-hotspots__nav-link:hover .video-hotspots__nav-icon,
.video-hotspots__nav-link.is-active .video-hotspots__nav-icon {
  width: 20px;
  opacity: 1;
}

/* Mobile panels: hidden on desktop */
.video-hotspots__mobile-panel {
  display: none;
}

.video-hotspots__mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}


@media (max-width: 768px) {
  .js-video-hotspots-section {
    height: auto !important;
  }

  .video-hotspots__sticky-wrap {
    position: static;
    min-height: auto;
    padding-top: 2rem;
  }

  .video-hotspots__description {
    font-size: 28px;
    letter-spacing: -0.5px;
  }

  /* Vertical stack: top panel → animation → bottom panel */
  .video-hotspots__stage-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 40px;
  }

  .video-hotspots__stage {
    aspect-ratio: 1 / 2 !important;
    border-radius: 10px;
  }

  .js-video-hotspots-main-lottie svg {
    height: 35rem !important;
  }

  /* Masque le groupe SVG contenant les labels "SI Vente / SI Ops" sur mobile */
  .js-video-hotspots-main-lottie svg > g > g:nth-child(5) {
    opacity: 0;
  }

  /* Hide desktop side panels */
  .video-hotspots__side-panels {
    display: none;
  }

  /* Show mobile panels */
  .video-hotspots__mobile-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
  }

  /* Hotspots 48x48px on mobile */
  .video-hotspots__item {
    width: 48px;
    height: 48px;
  }

  .video-hotspots__icon-wrap {
    width: 48px;
    height: 48px;
  }

  .video-hotspots__label {
    display: none;
  }

  /* Label overlays — cachés sur mobile */
  .video-hotspots__item--label {
    display: none;
  }

  /* Cache tout le texte du lottie desktop sur mobile */
  .js-video-hotspots-main-lottie svg text {
    display: none !important;
  }

  /* Mobile nav panel — colonne sous l'animation */
  .video-hotspots__mobile-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .video-hotspots__mobile-group + .video-hotspots__mobile-group {
    margin-top: 1.5rem;
  }

  .video-hotspots__item--label .video-hotspots__nav-arrow {
    height: 14px;
  }

  .video-hotspots__item--label .video-hotspots__nav-arrow svg {
    width: 14px;
    height: 14px;
  }

  .video-hotspots__item--label:hover .video-hotspots__nav-arrow,
  .video-hotspots__item--label.is-peer-hovered .video-hotspots__nav-arrow {
    width: 14px;
  }

  /* Positions mobiles personnalisées via data-attributes */
  .video-hotspots__item[data-x-mobile] {
    left: var(--hotspot-x-mobile) !important;
  }

  .video-hotspots__item[data-y-mobile] {
    top: var(--hotspot-y-mobile) !important;
  }
}

@media (min-width: 769px) and (max-width: 1199px) {
  .video-hotspots__side-panel--left {
    width: 24%;
    gap: 1rem;
  }

  .video-hotspots__side-panel--right {
    width: 15%;
  }

  .video-hotspots__nav-link {
    font-size: var(--space-16, 16px);
  }

  .video-hotspots__left-title {
    font-size: var(--space-20, 20px);
  }
}

.js-video-hotspots-main-lottie [role="textbox"] {
    display: none !important;
    pointer-events: none !important;
}
