/* Introduction vidéo — première visite (layout vitrine uniquement) */

/* Couverture noire immédiate (avant parse du markup / JS) — retirée avec .site-intro-armed */
html.site-intro-armed::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  width: 100%;
  height: 100%;
  height: 100dvh;
  background: #000;
  pointer-events: none;
}

.site-intro {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  background: #000;
  overflow: hidden;
  opacity: 1;
  transition: opacity 400ms ease;
}

.site-intro.is-leaving {
  opacity: 0;
  pointer-events: none;
}

/* Sans JS / non armé : jamais visible (progressive enhancement) */
.site-intro[hidden] {
  display: none !important;
}

.site-intro__video {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: #000;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
}

.site-intro__skip {
  position: absolute;
  z-index: 2;
  right: max(1rem, env(safe-area-inset-right, 0px));
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  margin: 0;
  padding: 0.55rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.45);
  color: rgba(248, 250, 252, 0.92);
  font-family: var(--font-body, "Manrope", ui-sans-serif, system-ui, sans-serif);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.01em;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.site-intro__skip:hover {
  background: rgba(15, 23, 42, 0.72);
  border-color: rgba(103, 232, 249, 0.45);
  color: #fff;
}

.site-intro__skip:focus {
  outline: none;
}

.site-intro__skip:focus-visible {
  outline: 2px solid rgb(103, 232, 249);
  outline-offset: 3px;
  border-color: rgba(103, 232, 249, 0.7);
}

@media (prefers-reduced-motion: reduce) {
  .site-intro {
    transition: none;
  }
}
