/* Accueil : mouvements légers (halos qui dérivent, notifications de l'app, bandeau défilant,
   pastille qui pulse, sections qui apparaissent). Transform/opacity uniquement ; coupé si l'appareil
   demande moins d'animations. Aucun texte ni bouton modifié. */

body.opus-ui-v2 .landing-hero { position: relative; isolation: isolate; }

/* 1. Halos de couleur qui dérivent derrière le titre */
.landing-fx { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.landing-fx span { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .45; }
.landing-fx span:nth-child(1) { width: 380px; height: 380px; left: -80px; top: -60px; background: #b9a3ff; animation: landingDrift 18s ease-in-out infinite alternate; }
.landing-fx span:nth-child(2) { width: 300px; height: 300px; right: 8%; top: 30%; background: #ffc2b5; animation: landingDrift 22s ease-in-out infinite alternate-reverse; }
.landing-fx span:nth-child(3) { width: 240px; height: 240px; left: 35%; bottom: -80px; background: #a8e6d2; animation: landingDrift 26s ease-in-out infinite alternate; }

/* 2. Notifications de l'app qui flottent sur l'illustration */
.landing-hero-visual { position: relative; }
.landing-notifs { position: absolute; inset: 0; pointer-events: none; }
.landing-notif {
  position: absolute; display: grid; gap: 2px; max-width: 230px; padding: 10px 14px;
  font-size: .8rem; line-height: 1.3; text-align: left; color: var(--opus-tk-ink, #182033);
  background: rgba(255, 255, 255, .96); border: 1px solid rgba(24, 32, 51, .08); border-radius: 14px;
  box-shadow: 0 14px 30px rgba(24, 32, 51, .16); animation: landingBob 6s ease-in-out infinite;
}
.landing-notif b { font-size: .82rem; color: var(--opus-tk-violet, #6d3bff); }
.landing-notif span { color: var(--opus-tk-muted, #5d6275); }
.landing-notif--mission { left: -18px; top: 10%; }
.landing-notif--match { right: -14px; top: 42%; animation-delay: -2s; }
.landing-notif--match b { color: #1f9d57; }
.landing-notif--contrat { left: 8%; bottom: -14px; animation-delay: -4s; }
.landing-notif--contrat b { color: #e2541b; }

/* 3. Bandeau défilant des points forts */
.landing-marquee { overflow: hidden; padding: 14px 0; background: var(--opus-tk-violet, #6d3bff);
  -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
/* max-width: none : la règle anti-débordement globale (.landing *) écraserait sinon la piste et ses mots */
.landing-marquee-track { display: flex; gap: 40px; width: max-content; max-width: none !important; animation: landingScroll 38s linear infinite; }
.landing-marquee-track span { flex-shrink: 0; max-width: none !important; color: #fff; font-weight: 700; font-size: .95rem; white-space: nowrap; }
.landing-marquee-track span::before { content: "✦"; margin-right: 40px; opacity: .6; }

/* 4. Pastille « en ligne » qui pulse */
#landingHeroSubtitle::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 8px; vertical-align: middle;
  border-radius: 50%; background: #22b98a; box-shadow: 0 0 0 0 rgba(34, 185, 138, .6); animation: landingPulse 2s infinite; }

/* 5. Sections qui apparaissent au défilement (seulement si le script est actif) */
html.landing-reveal-ready .landing-section { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
html.landing-reveal-ready .landing-section.is-visible { opacity: 1; transform: none; }

@keyframes landingDrift { to { transform: translate(60px, 40px) scale(1.1); } }
@keyframes landingBob { 50% { transform: translateY(-10px); } }
@keyframes landingScroll { to { transform: translateX(-50%); } }
@keyframes landingPulse { 70% { box-shadow: 0 0 0 10px rgba(34, 185, 138, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 185, 138, 0); } }

@media (max-width: 768px) {
  .landing-notif { max-width: 190px; font-size: .74rem; padding: 8px 11px; }
  .landing-notif--mission { left: 4px; top: 4%; }
  .landing-notif--match { right: 4px; }
  .landing-notif--contrat { display: none; }
  .landing-fx span { filter: blur(48px); }
}

@media (prefers-reduced-motion: reduce) {
  .landing-fx span, .landing-notif, .landing-marquee-track, #landingHeroSubtitle::before { animation: none !important; }
  html.landing-reveal-ready .landing-section { opacity: 1; transform: none; transition: none; }
}
