/* En-tête immersif des pages mariage (vidéo de fond, titre, bouton, note Google).
   Copie des règles de l'en-tête de film-de-mariage.css, pour les pages photo qui
   ne chargent pas cette feuille. Modifier les deux si l'en-tête évolue. */

html:has(.film-hero-immersive),
body:has(.film-hero-immersive) {
  padding-top: 0 !important;
}

.fondvideo-mariage {
  display: block;
  width: 100%;
  height: min(980px, 72vw);
  object-fit: cover;
  opacity: 0.82;
  filter: drop-shadow(0 0 10px rgba(83, 15, 255, 0.26));
}

[data-theme="dark"] .fondvideo-mariage {
  opacity: 0.22;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.28));
}

.film-hero-immersive {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100svh;
  height: 100svh;
  margin-top: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.film-hero-immersive .fondvideo-mariage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.94;
  filter: none;
}

.film-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 4, 28, 0.22), rgba(10, 4, 28, 0.34)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0));
  z-index: 1;
}

.film-hero-content {
  position: relative;
  z-index: 2;
  width: min(100%, 1400px);
  margin: 0 auto;
  min-height: 100%;
  height: 100%;
  padding: clamp(3rem, 8vw, 6rem) clamp(1.25rem, 4vw, 3rem);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

.film-hero-text {
  flex: 0 1 1100px;
  text-align: center;
  padding: 0;
}

.film-hero-text .textotete {
  margin: 0;
  color: #ffffff;
  text-shadow: 0 10px 34px rgba(0, 0, 0, 0.28);
}

.film-hero-text .gradient-text-2 {
  color: #f5e9ff;
  -webkit-text-fill-color: currentColor;
  text-shadow: 0 10px 30px rgba(121, 90, 207, 0.25);
}

.film-scroll-indicator {
  position: absolute;
  left: 50%;
  right: auto;
  top: auto;
  bottom: clamp(22px, 4vw, 40px);
  z-index: 3;
  margin: 0;
  width: 72px;
  height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background-image: none;
  opacity: 0.88;
  transform: translateX(-50%);
  transition: transform 0.25s ease, opacity 0.25s ease, filter 0.25s ease;
}

.film-scroll-indicator:hover {
  transform: translateX(-50%) translateY(4px);
  opacity: 1;
  filter: none;
}

.film-scroll-indicator.flashing-color {
  filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.42));
}

.hero-scroll-arrow {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.32));
}

.hero-scroll-arrow::before {
  content: "";
  width: 1px;
  height: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.92));
  opacity: 0.78;
}

.hero-scroll-chevron {
  width: 18px;
  height: 18px;
  border-right: 2px solid rgba(255, 255, 255, 0.96);
  border-bottom: 2px solid rgba(255, 255, 255, 0.96);
  transform: rotate(45deg);
  animation: heroScrollChevron 2s ease-in-out infinite;
}

.hero-scroll-chevron-delay {
  margin-top: -10px;
  opacity: 0.62;
  animation-delay: 0.2s;
}

@keyframes heroScrollChevron {
  0% {
    transform: rotate(45deg) translate(-2px, -2px);
    opacity: 0;
  }
  30% {
    opacity: 0.92;
  }
  60% {
    opacity: 1;
  }
  100% {
    transform: rotate(45deg) translate(8px, 8px);
    opacity: 0;
  }
}

[data-theme="dark"] .film-hero-overlay {
  background:
    linear-gradient(180deg, rgba(4, 0, 15, 0.42), rgba(4, 0, 15, 0.56)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
}

[data-theme="dark"] .film-scroll-indicator {
  opacity: 0.82;
}

@media (max-width: 1157px) {
  .film-hero-immersive {
    height: min(82svh, max(380px, 70vw));
    min-height: min(82svh, max(380px, 70vw));
  }
}

@media (max-width: 700px) {
  .film-hero-immersive {
    height: 700px;
  }

  .film-hero-content {
    padding: 1.8rem 1rem 2.2rem;
  }

  .film-scroll-indicator {
    width: 64px;
    height: 64px;
    bottom: 18px;
  }
}

/* Arrivée depuis le bouton d'en-tête : le lien « galerie complète » pulse
   trois fois pour montrer comment voir un mariage en entier. */
.wedding-reference-gallery__conversion a.is-spotlight {
  animation: weddingGallerySpotlight 1.3s ease-in-out 3;
}

@keyframes weddingGallerySpotlight {
  0%, 100% { box-shadow: 0 0 0 0 rgba(156, 79, 225, 0); transform: scale(1); }
  50% { box-shadow: 0 0 0 10px rgba(156, 79, 225, 0.28), 0 12px 30px rgba(109, 74, 255, 0.35); transform: scale(1.05); }
}

@media (prefers-reduced-motion: reduce) {
  .wedding-reference-gallery__conversion a.is-spotlight {
    animation: none;
    outline: 3px solid #9c4fe1;
    outline-offset: 3px;
  }
}
