/* Accueil : effets généraux repris de l’essai « Mercury » (voir accueil-motion.js). */

/* Défilement doux Lenis : il remplace le scroll-behavior: smooth de landing.css. */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
/* Toujours « auto » avec Lenis : ScrollTrigger remonte en haut de page pour mesurer quand la fenêtre change de taille ;
   avec le scroll-behavior: smooth de landing.css, ce saut n’était pas instantané et faussait la position des blocs épinglés. */
html.lenis { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* Fonctionnalités : bloc fixe à l’écran (modules-scene.js pose .feat-live, ordinateur et tablette).
   Les cinq panneaux sont superposés dans un seul bloc épinglé sous la nav ; le défilement fait passer d’un module
   à l’autre (écran dévoilé de bas en haut, texte en cascade, bulles). Format du panneau inchangé. */
.feat-live .feature-scene { position: relative; }
.feat-live .feature-stack { position: relative; height: var(--feature-h); border-radius: 24px; clip-path: inset(0 round 24px); background: radial-gradient(ellipse at 85% 30%, #fff 0%, #fffaf0 35%, #efe5d1 100%); }
.feat-live .feature-panel { position: absolute; inset: 0; height: auto; min-height: 0; margin: 0; clip-path: none; background: transparent !important; }
/* Panneaux superposés : seul le panneau affiché reçoit les clics (sinon le dernier, invisible, couvrait les liens
   « Découvrir … » des autres modules). */
.feat-live .feature-panel { pointer-events: none; }
.feat-live .feature-panel.is-active { pointer-events: auto; }
.feat-live .feature-panel::before { opacity: 0; transition: opacity .6s ease; }
.feat-live .feature-panel.is-active::before { opacity: .045; }
.feat-live .feature-panel:not(:first-child)::after { display: none; }
.feat-live .feature-copy { visibility: hidden; }
.feat-live .feature-panel.is-active .feature-copy { visibility: visible; }
.feat-live .feature-visual { position: relative; }
/* Écart à droite : le socle du portable déborde de l’écran de 7 % de chaque côté, il ne doit pas être coupé par le bord du panneau. */
.feat-live .feature-fixed { position: absolute; top: 0; right: clamp(24px, 3vw, 44px); left: auto; height: 100%; padding-top: 0; }
.feat-live .feature-fixed .feature-image { background: transparent; }
.feat-live .feature-fixed .feature-image img { will-change: clip-path, opacity; }
/* Les onglets sont dans le bloc épinglé : plus de « sticky », sinon ils restent collés au bas du bloc après la scène. */
.feat-live .feature-nav { position: relative; top: auto; }

/* Titres révélés mot à mot : chaque mot glisse depuis sous sa ligne (marges pour accents et jambages). */
lx-w { display: inline-block; overflow: hidden; vertical-align: top; padding: .08em 0 .12em; margin: -.08em 0 -.12em; }
lx-wi { display: inline-block; will-change: transform; }

/* Boutons magnétiques (souris seulement). */
.is-magnetic { transition: translate .5s cubic-bezier(.2, .8, .2, 1); }
.nav-cta.is-magnetic { transition: background .25s, box-shadow .25s, transform .2s, translate .5s cubic-bezier(.2, .8, .2, 1); }

/* Halo doré qui suit le curseur sur les cartes. */
.spot { position: relative; isolation: isolate; }
.spot::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(201, 169, 110, .14), transparent 65%); opacity: 0; transition: opacity .4s ease; }
.spot:hover::after { opacity: 1; }
.audience-card.spot::after { z-index: 1; mix-blend-mode: screen; background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(201, 169, 110, .22), transparent 65%); }

@media (prefers-reduced-motion: reduce) {
  .is-magnetic { translate: none !important; }
}
