/* Animations communes à leader-speaker.fr (chargées par toutes les pages, après leur style).
   Rien n'est épinglé, rien n'est caché si le script ne tourne pas : seule l'entrée du haut de
   page est en CSS pur, et elle finit toujours visible. */

/* Barre de lecture dorée, tout en haut */
#ls-progression { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 2000; pointer-events: none;
  background: linear-gradient(90deg, #a8842c, #e5c76b, #f6e7b0); transform-origin: 0 50%; transform: scaleX(0); }

/* Entrée du haut de page, élément par élément */
@keyframes ls-entree { from { opacity: 0; transform: translateY(26px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.hero .hero-content > *,
.hero > :not(.hero-content):not(.hero-vimeo-bg):not(.hero-overlay):not(.hero-glow) {
  animation: ls-entree 1.1s cubic-bezier(.2,.7,.2,1) both; }
.hero .hero-content > :nth-child(2), .hero > :nth-child(2) { animation-delay: .12s; }
.hero .hero-content > :nth-child(3), .hero > :nth-child(3) { animation-delay: .24s; }
.hero .hero-content > :nth-child(4), .hero > :nth-child(4) { animation-delay: .36s; }
.hero .hero-content > :nth-child(5), .hero > :nth-child(5) { animation-delay: .48s; }
.hero .hero-content > :nth-child(6), .hero > :nth-child(6) { animation-delay: .6s; }
.hero .hero-content > :nth-child(n+7), .hero > :nth-child(n+7) { animation-delay: .72s; }

/* Profondeur : le fond du haut de page glisse plus lentement que la page */
.hero-vimeo-bg, .hero-glow { translate: 0 var(--ls-profondeur, 0px); }

/* Apparition au défilement (classes posées par anim.js, seulement sous la ligne de flottaison) */
.ls-r { opacity: 0; transform: translateY(34px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.ls-r.ls-vu { opacity: 1; transform: none; }
.ls-r.ls-image { transform: translateY(34px) scale(.97); clip-path: inset(8% 0 8% 0); transition: opacity .9s, transform 1.2s cubic-bezier(.2,.7,.2,1), clip-path 1.2s cubic-bezier(.2,.7,.2,1); }
.ls-r.ls-image.ls-vu { transform: none; clip-path: inset(0 0 0 0); }
.ls-r.ls-titre { transform: translateY(24px); letter-spacing: .02em; transition: opacity 1s, transform 1s cubic-bezier(.2,.7,.2,1), letter-spacing 1.4s cubic-bezier(.2,.7,.2,1); }
.ls-r.ls-titre.ls-vu { letter-spacing: normal; }

@media (prefers-reduced-motion: reduce) {
  .hero .hero-content > *, .hero > * { animation: none !important; }
  .ls-r, .ls-r.ls-image, .ls-r.ls-titre { opacity: 1; transform: none; clip-path: none; transition: none; }
  .hero-vimeo-bg, .hero-glow { translate: none; }
}
