/*
 * core-motion.css — CSS du kit mouvement de WRC (public/js/nx-motion.js : tracer, remplir, compter, glisser), copié sous lock par
 * scripts/sync-core-motion.mjs (source et commit : core-motion.lock.json). Liée AVANT leur feuille de famille par les pages qui
 * bougent (counters et build de héros) — une famille charge le kit, elle ne le recopie jamais. Ne rien écrire hors de la région :
 * une adaptation de famille va dans la feuille de la famille. Garde de performance : html:not(.perf-lite) et prefers-reduced-motion.
 */

/* @core-motion:begin — extrait de EllieAnth/nexus-core par scripts/sync-core-motion.mjs (préfixes : core-motion.lock.json). NE PAS ÉDITER ICI : --write. */
/* ── assets/styles/ssg-pages.css · bloc de fin de feuille « ── Kit mouvement » ── */
/* ── Kit mouvement — « la donnée arrive sous tes yeux » (lot 1 tier list, partagé depuis le lot B, 2026-10-15)
   docs/second-brain/plan-mouvement-whaou-2026-10-15.md · JS : assets/scripts/ui/nx-motion.js (à CHARGER, jamais
   recopier). Quatre verbes : TRACER (.nx-trace icône SVG · .nx-stroke un tracé, pathLength="1"), REMPLIR
   (.nx-fill, scaleX), COMPTER (.nx-count, rouleaux nx-odo en transform), GLISSER ([data-nx-glide], FLIP en JS).
   .nx-trace/.nx-fill sont liés au défilement sous @supports, sauf .nx-timed (une fois, en temps, par le script).
   Les états de départ (.nx-m-pre) ne sont posés QUE par le script : sans JS, sous mouvement réduit ou
   html.perf-lite, la page est complète. */
.nx-trace { overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nx-trace path, .nx-trace line, .nx-trace polyline, .nx-stroke { stroke-dasharray: 1; stroke-dashoffset: 0; }
.nx-m-pre.nx-trace path, .nx-m-pre.nx-trace line, .nx-m-pre.nx-trace polyline, .nx-m-pre .nx-stroke, .nx-m-pre.nx-stroke { stroke-dashoffset: 1; }
.nx-m-pre .nx-fade, .nx-m-pre [data-nx-at], [data-nx-glide].nx-m-pre > * { opacity: 0; }
.nx-fill { transform-origin: 0 50%; }
.nx-m-pre.nx-fill { transform: scaleX(0); }
.nx-count { font-variant-numeric: tabular-nums; }
nx-num { white-space: nowrap; }
nx-odo { position: relative; display: inline-block; clip-path: inset(0); }
nx-ph { visibility: hidden; }
nx-st { position: absolute; left: 0; top: 0; width: 100%; text-align: center; white-space: pre; }
/* L4a : bloc de page hors écran (IntersectionObserver de nx-motion.js) → animations CSS en pause */
.nx-m-off, .nx-m-off *, .nx-m-off::before, .nx-m-off::after, .nx-m-off *::before, .nx-m-off *::after { animation-play-state: paused !important; }
@keyframes nxTrace { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes nxFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    html:not(.perf-lite) .nx-trace:not(.nx-timed) path, html:not(.perf-lite) .nx-trace:not(.nx-timed) line, html:not(.perf-lite) .nx-trace:not(.nx-timed) polyline {
      animation: nxTrace linear both; animation-timeline: view(); animation-range: entry 20% cover 40%; }
    html:not(.perf-lite) .nx-fill:not(.nx-timed) { animation: nxFill linear both; animation-timeline: view(); animation-range: entry 15% cover 40%; }
  }
}
/* @core-motion:end */
