/* V758 — Séquence cinématique d'ouverture (Avion -> Escalier -> Andy & Émilie -> Westfalia) + Effet Hero */

.lme-cinema-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: #0b1520;
  overflow: hidden;
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  user-select: none;
  -webkit-user-select: none;
}

.lme-cinema-overlay.is-exiting {
  opacity: 0;
  transform: scale(1.035);
  pointer-events: none;
}

.lme-cinema-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.lme-cinema-letterbox-top,
.lme-cinema-letterbox-bottom {
  position: absolute;
  left: 0;
  right: 0;
  height: clamp(22px, 5vh, 52px);
  background: linear-gradient(to bottom, rgba(7, 12, 18, 0.94), rgba(7, 12, 18, 0.65));
  pointer-events: none;
  z-index: 2;
}

.lme-cinema-letterbox-top {
  top: 0;
}

.lme-cinema-letterbox-bottom {
  bottom: 0;
  background: linear-gradient(to top, rgba(7, 12, 18, 0.95), rgba(7, 12, 18, 0.65));
}

.lme-cinema-brand {
  position: absolute;
  top: clamp(64px, 14vh, 130px);
  left: 50%;
  transform: translate(-50%, 14px);
  text-align: center;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  width: min(92vw, 680px);
}

.lme-cinema-brand.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}


.lme-cinema-brand-logo {
  width: clamp(54px, 8vw, 76px);
  height: clamp(54px, 8vw, 76px);
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(240, 194, 139, 0.72);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.55);
  margin: 0 auto 12px;
  display: block;
}

.lme-cinema-brand-kicker {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-size: clamp(10px, 1.3vw, 12px);
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #f0c28b;
  margin-bottom: 8px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.lme-cinema-brand-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(32px, 5.4vw, 62px);
  font-weight: 600;
  line-height: 1.02;
  color: #fffaf2;
  letter-spacing: 0.01em;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.55);
}

.lme-cinema-caption {
  position: absolute;
  left: clamp(18px, 4vw, 48px);
  bottom: clamp(34px, 7vh, 72px);
  z-index: 4;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(11, 21, 32, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #f8f2e8;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-size: clamp(11px, 1.4vw, 13px);
  font-weight: 500;
  letter-spacing: 0.03em;
}

.lme-cinema-caption-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e8a266;
  box-shadow: 0 0 10px rgba(232, 162, 102, 0.9);
  animation: lmeCinemaPulse 1.6s ease-in-out infinite;
}

.lme-cinema-skip {
  position: absolute;
  right: clamp(18px, 4vw, 48px);
  bottom: clamp(34px, 7vh, 72px);
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(14, 24, 36, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fffaf2;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.lme-cinema-skip:hover {
  background: rgba(217, 132, 82, 0.88);
  border-color: rgba(255, 255, 255, 0.55);
  transform: translateY(-1px);
}

.lme-cinema-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #c86d44, #f2be7e);
  z-index: 6;
  box-shadow: 0 0 10px rgba(242, 190, 126, 0.7);
}

@keyframes lmeCinemaPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}

/* --- Effet d'ouverture du Hero #lme695KudanilHero --- */
#lme695KudanilHero,
main .hero {
  position: relative;
  overflow: hidden;
  --lme-mx: 0px;
  --lme-my: 0px;
  --lme-scroll: 0px;
}

#lme695KudanilHero .lme695-kudanil-hero-bg {
  transform-origin: center center;
  will-change: transform, filter;
  transform: scale(1.10);
  filter: saturate(1.06) brightness(0.95);
  transition: transform 2.4s cubic-bezier(0.16, 1, 0.3, 1), filter 1.8s ease;
}

#lme695KudanilHero.lme-hero-opening-active .lme695-kudanil-hero-bg {
  transform: translate3d(var(--lme-mx), calc(var(--lme-my) + var(--lme-scroll)), 0) scale(1.02);
  filter: saturate(1.03) brightness(1);
}

.lme-hero-horizon-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 72%, rgba(255, 196, 128, 0.32), transparent 54%),
    radial-gradient(circle at 80% 24%, rgba(56, 146, 152, 0.24), transparent 50%);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  transition: opacity 1.5s ease 0.15s;
}

#lme695KudanilHero.lme-hero-opening-active .lme-hero-horizon-glow,
main .hero.lme-hero-opening-active .lme-hero-horizon-glow {
  opacity: 1;
}

html.lme-cinema-will-play #lme695KudanilHero:not(.lme-hero-opening-active) .lme695-kudanil-eyebrow,
html.lme-cinema-will-play #lme695KudanilHero:not(.lme-hero-opening-active) .lme695-kudanil-title,
html.lme-cinema-will-play #lme695KudanilHero:not(.lme-hero-opening-active) .lme695-kudanil-lead,
html.lme-cinema-will-play #lme695KudanilHero:not(.lme-hero-opening-active) .lme695-kudanil-actions,
html.lme-cinema-will-play #lme695KudanilHero:not(.lme-hero-opening-active) .lme695-kudanil-pillars-strip {
  opacity: 0;
  transform: translateY(20px);
}
#lme695KudanilHero .lme695-kudanil-eyebrow,
#lme695KudanilHero .lme695-kudanil-title,
#lme695KudanilHero .lme695-kudanil-lead,
#lme695KudanilHero .lme695-kudanil-actions,
#lme695KudanilHero .lme695-kudanil-pillars-strip {
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

#lme695KudanilHero.lme-hero-opening-active .lme695-kudanil-eyebrow {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
}

#lme695KudanilHero.lme-hero-opening-active .lme695-kudanil-title {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.22s;
}

#lme695KudanilHero.lme-hero-opening-active .lme695-kudanil-lead {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.34s;
}

#lme695KudanilHero.lme-hero-opening-active .lme695-kudanil-actions {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.46s;
}

#lme695KudanilHero.lme-hero-opening-active .lme695-kudanil-pillars-strip {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.56s;
}

.lme-hero-hud {
  position: absolute;
  right: 24px;
  top: 24px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(15, 25, 35, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.65s ease 0.5s, transform 0.65s ease 0.5s, background 0.2s ease;
}

.lme-hero-hud:hover {
  background: rgba(200, 109, 68, 0.85);
}

#lme695KudanilHero.lme-hero-opening-active .lme-hero-hud,
main .hero.lme-hero-opening-active .lme-hero-hud {
  opacity: 1;
  transform: translateY(0);
}

.lme-hero-hud-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f5b971;
  box-shadow: 0 0 10px rgba(245, 185, 113, 0.9);
  animation: lmeCinemaPulse 2s ease-in-out infinite;
}

@media (max-width: 820px) {
  #lme695KudanilHero {
    padding-top: 68px !important;
  }
  .lme-hero-hud {
    right: 12px;
    top: 12px;
    font-size: 10px;
    padding: 5px 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lme-cinema-overlay {
    display: none !important;
  }
  #lme695KudanilHero .lme695-kudanil-hero-bg,
  #lme695KudanilHero .lme695-kudanil-eyebrow,
  #lme695KudanilHero .lme695-kudanil-title,
  #lme695KudanilHero .lme695-kudanil-lead,
  #lme695KudanilHero .lme695-kudanil-actions,
  #lme695KudanilHero .lme695-kudanil-pillars-strip,
  .lme-hero-hud {
    transition: none !important;
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

.lme-replay-intro-btn {
  border: 1px solid rgba(255, 230, 191, 0.4);
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  border-radius: 999px;
  padding: 4px 11px;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}
.lme-replay-intro-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}
