/* InterFilm — intro + barre de progression */

.site-intro {
  position: fixed;
  inset: 0;
  z-index: 99999999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  background-color: #000;
  opacity: 1;
  transition: opacity 0.48s ease;
}

#gateLoader.site-intro {
  background: #000 !important;
  background-color: #000 !important;
}

.site-intro.is-hidden,
.site-intro.site-intro--out,
.site-intro.site-intro--handoff {
  opacity: 0;
  pointer-events: none;
}

.site-intro.is-hidden {
  display: none !important;
}

.site-intro-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  width: min(320px, 86vw);
  padding: 0 16px;
}

.site-intro-logo-img {
  width: min(200px, 46vw);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 36px rgba(155, 140, 248, 0.22));
  animation: siteIntroLogoPulse 2.4s ease-in-out infinite;
}

@keyframes siteIntroLogoPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.03); opacity: 0.92; }
}

.site-intro-progress {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.site-intro-progress-track {
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
}

.site-intro-progress-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #9b8cf8, #f77f00);
  box-shadow: 0 0 14px rgba(155, 140, 248, 0.45);
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-intro-progress-label {
  font-family: var(--font, 'Outfit', sans-serif);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(255, 255, 255, 0.52);
}

body.site-intro-active {
  overflow: hidden;
}

body.site-intro-active #mainNav,
body.site-intro-active #header {
  pointer-events: none;
}

body.site-intro-active #profileGate.profile-gate--ready,
body.site-intro-active #profileGate[style*="display: flex"] {
  pointer-events: auto !important;
}

html.watch-return-pending #mainHome,
html.watch-return-pending #listView,
html.watch-return-pending #top10View,
html.watch-return-pending #faqView,
html.watch-return-pending #studioView,
html.watch-return-pending #demandesView,
html.watch-return-pending #reviewsView,
html.watch-return-pending #catalogueView,
html.watch-return-pending #header,
html.watch-return-pending #profileGate,
html.watch-return-pending .mobile-bar,
html.watch-return-pending .site-footer,
html.watch-return-pending .mobile-bottom-bar {
  pointer-events: none;
}

html.watch-return-pending #gateLoader,
html.skip-site-intro #gateLoader {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

html.watch-return-pending #modalBg.open {
  visibility: visible !important;
}

html.watch-return-pending body {
  background: #07070d;
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .site-intro {
    transition: opacity 0.2s ease;
  }
  .site-intro-logo-img {
    animation: none;
  }
  .site-intro-progress-fill {
    transition: width 0.2s ease;
  }
}
