/* Video slider: surcharge uniquement le hero, sans changer le reste du site. */
.hero {
  background: #323c40;
  touch-action: pan-y;
}
.hero-media,
.hero-panel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-media { z-index: 0; pointer-events: none; }
.hero-panel {
  opacity: 0;
  visibility: hidden;
  transition: opacity 800ms ease, visibility 800ms;
}
.hero-panel.is-active { opacity: 1; visibility: visible; }
.hero-panel > .hero-poster,
.hero-panel > .hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--film-position, center);
}
.hero-panel > .hero-poster { z-index: 0; opacity: 1; }
.hero-panel > .hero-video {
  z-index: 1;
  opacity: 0;
  transition: opacity 600ms ease;
}
.hero-panel.has-frame > .hero-video { opacity: 1; }
.hero-shade {
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0,0,0,.3) 0%, transparent 27%),
    linear-gradient(90deg, rgba(0,0,0,.34), transparent 70%),
    linear-gradient(0deg, rgba(0,0,0,.54), transparent 54%);
}
.hero-copy { z-index: 2; bottom: 145px; }
.hero-controls {
  z-index: 3;
  bottom: 30px;
  min-height: 48px;
  gap: 24px;
}
.hero-copy h1 { text-shadow: 0 2px 20px rgba(0,0,0,.17); }
.hero-dots {
  display: flex;
  align-items: center;
  gap: 10px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.hero-dot {
  --progress: 0;
  position: relative;
  width: clamp(30px, 4.2vw, 60px);
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.hero-dot::before,
.hero-dot > span {
  content: "";
  position: absolute;
  top: 21px;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255,255,255,.38);
  border-radius: 2px;
}
.hero-dot > span {
  background: #fff;
  transform: scaleX(var(--progress));
  transform-origin: left;
}
.hero-dot[aria-pressed="true"]::before { background: rgba(255,255,255,.58); }
.hero-dot:hover::before { background: rgba(255,255,255,.78); }
.hero-dot:focus-visible,
.film-toggle:focus-visible,
.slide-controls button:focus-visible {
  outline: 2px solid white;
  outline-offset: 5px;
}
#videoToggle {
  min-height: 44px;
  min-width: 105px;
  justify-content: center;
  background: rgba(0,0,0,.13);
  backdrop-filter: blur(5px);
}
.film-toggle-icon { display: inline-block; width: 12px; height: 12px; }
.film-toggle[data-state="pause"] .film-toggle-icon {
  border-left: 3px solid currentColor;
  border-right: 3px solid currentColor;
  width: 10px;
}
.film-toggle[data-state="play"] .film-toggle-icon {
  width: 0;
  height: 0;
  border-left: 9px solid currentColor;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}
.film-toggle[data-state="retry"] .film-toggle-icon::before {
  content: "\21bb";
  display: block;
  font-size: 20px;
  line-height: 12px;
}
.hero-status {
  position: absolute;
  z-index: 3;
  bottom: 89px;
  right: 3.7vw;
  left: 3.7vw;
  margin: 0;
  text-align: right;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,.8);
  font-size: 12px;
  pointer-events: none;
}
.hero-status:empty { display: none; }
.hero.is-loading .hero-status::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 9px;
  border: 1px solid rgba(255,255,255,.3);
  border-top-color: white;
  border-radius: 50%;
  animation: film-loading .9s linear infinite;
}
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
@keyframes film-loading { to { transform: rotate(360deg); } }
@media (max-width: 700px) {
  .hero-panel > .hero-poster { object-position: 66% center; }
  .hero-controls { left: 6vw; right: 6vw; bottom: 24px; gap: 12px; }
  .hero-dots { bottom: 51px; gap: 8px; }
  .hero-dot { width: 34px; }
  .hero-copy { bottom: 178px; }
  .hero-copy h1 { font-size: clamp(37px, 10vw, 48px); }
  .hero-status { bottom: 128px; left: 6vw; right: 6vw; font-size: 11px; text-align: left; }
  .hero-shade {
    background:
      linear-gradient(180deg, rgba(0,0,0,.36), transparent 27%),
      linear-gradient(0deg, rgba(0,0,0,.64), rgba(0,0,0,.06) 78%);
  }
  .slide-controls { gap: 10px; }
  #videoToggle { font-size: 12px; padding: 10px 13px; }
}
@media (max-width: 360px) {
  #slideNumber { min-width: 48px; font-size: 11px; }
  .slide-controls { gap: 6px; }
  #videoToggle { min-width: 96px; }
}
@media (max-height: 540px) and (min-width: 700px) {
  .hero { min-height: 570px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-panel,
  .hero-panel > .hero-video { transition: none; }
  .hero.is-loading .hero-status::before { animation: none; }
}
