/* AUTOM8TE — animations du site avec GSAP (1er décembre 2026), voir motion.js.
   html.motion-wait est posé dans le <head> (sauf mouvements réduits ou effets en pause) :
   les éléments animés restent cachés le temps que motion.js prenne la main.
   Filet de sécurité : sans GSAP, ils réapparaissent seuls au bout de 2,5 s. */

@keyframes motion-failsafe { to { visibility: visible; } }
html.motion-wait #hero .hero3d-kicker,
html.motion-wait #hero .hero3d-title,
html.motion-wait #hero .hero3d-lead,
html.motion-wait #hero .hero3d-doors,
html.motion-wait .section-head,
html.motion-wait .reveal,
html.motion-wait .about-bio-media,
html.motion-wait .about-bio-copy,
html.motion-wait .res-hero-copy,
html.motion-wait .res-film,
html.motion-wait .res-toc,
html.motion-wait .res-card,
html.motion-wait .res-soon {
  visibility: hidden;
  animation: motion-failsafe 0s 2.5s forwards;
}

/* Pendant une animation GSAP, les transitions CSS de l'élément se taisent (sinon elles freinent le mouvement). */
.m-anim, .m-anim > * { transition: none !important; }

/* Lignes de titre révélées derrière un masque (SplitText). */
.m-line-mask { padding-bottom: .08em; margin-bottom: -.08em; }

/* Menu mobile : le texte des liens glisse dans un masque. */
html.motion-on .mobile-nav-links a { overflow: hidden; }
html.motion-on .mobile-nav-links a .m-nav-txt { display: inline-block; will-change: transform; }

/* Bouton magnétique piloté par GSAP : plus de transition CSS sur la position. */
html.motion-on .btn.magnetic { transition-property: background-color, border-color, color, box-shadow, filter, opacity; }
html.motion-on .btn.magnetic:hover { transform: none; }

/* Fenêtre « Votre demande » animée par GSAP : on coupe les apparitions CSS. */
.dm.dm-gsap .dm-step, .dm.dm-gsap .dm-done { animation: none; }
