/* ============================================
   OVERRIDES v6zc — 4 bugs P0 + responsive polish
   ============================================ */

/* Bug 2 — Loader doit se cacher après 3s */
.loader, #loader {
  animation: fadeOutLoader 0.6s ease 3s forwards !important;
  pointer-events: none;
}
@keyframes fadeOutLoader {
  to { opacity: 0; visibility: hidden; display: none; }
}

/* Bug 3 — "On parle ?" sous nav fixed */
.contact h2, .contact .lead, #contact h2 {
  padding-top: clamp(60px, 12vw, 100px) !important;
  margin-top: 24px !important;
  position: relative;
  z-index: 5;
}

/* Bug 4 — Glow titres manifeste qui bleed sous nav */
.manifeste h2, .manifeste .lead, .pillar h3, .manifesto-line {
  filter: none !important;
  text-shadow: 0 2px 12px rgba(0,0,0,0.65) !important;
}
.manifeste, #manifeste {
  isolation: isolate;
  contain: layout style;
}
</content>
</invoke>

/* Bug 1 — Vidéo R&Z autoplay forcé + preload */
.serie video, .rz-video, #rz-teaser {
  preload: auto !important;
}
video[autoplay] {
  pointer-events: none;
}

/* Mobile responsive polish — viewport-safe */
@media (max-width: 767px) {
  body { overflow-x: hidden; }
  html { max-width: 100vw; }

  /* Nav touch targets */
  .top-nav a, .nav-links a, .sound-toggle {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 10px 12px;
  }

  /* Hero anti-overflow */
  .hero h1, .hero .typo-massive {
    overflow-wrap: break-word;
    word-break: keep-all;
    max-width: 100vw;
  }

  /* Sections padding cohérent */
  section { padding-left: 16px; padding-right: 16px; }
}

@media (max-width: 390px) {
  .hero h1 { font-size: clamp(54px, 15vw, 96px) !important; }
}
