/* Mouvement commun à l'accueil, à l'espace parents, à la base de connaissances et à la page contact (motion.js).
   L'ouverture entre au chargement (CSS seul) : textes l'un après l'autre, orbite qui tourne lentement. Plus bas, motion.js
   ajoute .pn-reveal aux blocs encore hors de l'écran puis .is-visible quand ils arrivent : rien n'est caché sans script ni
   pour un bloc déjà à l'écran. Seules l'opacité, translate, scale et rotate bougent, en remplissage arrière : survols et
   mise en page restent tels quels ; la réduction des animations (theme.css) arrête tout et .pn-reveal s'affiche. */

/* Ouverture */
:is(.pn-hero-copy, .pn-kb-hero-copy) > * { animation: pn-rise .8s cubic-bezier(.2, .75, .25, 1) backwards; }
:is(.pn-hero-copy, .pn-kb-hero-copy) > :nth-child(2) { animation-delay: .08s; }
:is(.pn-hero-copy, .pn-kb-hero-copy) > :nth-child(3) { animation-delay: .2s; }
:is(.pn-hero-copy, .pn-kb-hero-copy) > :nth-child(4) { animation-delay: .3s; }
:is(.pn-hero-copy, .pn-kb-hero-copy) > :nth-child(n + 5) { animation-delay: .42s; }
.pn-interior .pn-hero h1 em { display: inline-block; animation: pn-rise .7s cubic-bezier(.2, .75, .25, 1) .5s backwards; }
.pn-kicker > span { animation: pn-dot 2.6s ease-in-out 1.2s infinite; }
.pn-orbit { animation: pn-fade 1.4s ease .1s backwards; }
.pn-orbit::after { animation: pn-spin 80s linear infinite; }
.pn-strip i { display: inline-block; animation: pn-twinkle 3.2s ease-in-out infinite; }
.pn-strip i:nth-of-type(2n) { animation-delay: 1.1s; }
.pn-strip i:nth-of-type(3n) { animation-delay: 2s; }
.pn-final > span { animation: pn-twinkle 3.6s ease-in-out infinite; }

/* Apparition au défilement */
.pn-reveal:not(.is-visible) { opacity: 0; }
.pn-reveal.is-visible { animation: pn-rise .8s cubic-bezier(.2, .75, .25, 1) var(--reveal-delay, 0s) backwards; }
@media (prefers-reduced-motion: reduce) { .pn-reveal:not(.is-visible) { opacity: 1; } }
@media print { .pn-reveal:not(.is-visible) { opacity: 1; } }

@keyframes pn-rise { from { opacity: 0; translate: 0 26px; } }
@keyframes pn-fade { from { opacity: 0; } }
@keyframes pn-slide { from { opacity: 0; translate: 18px 0; } }
@keyframes pn-pop { from { opacity: 0; scale: .4; } }
@keyframes pn-stamp { from { opacity: 0; scale: 1.9; } }
@keyframes pn-draw { from { scale: 0 1; } }
@keyframes pn-switch { from { translate: -14px 0; } }
@keyframes pn-twinkle { 50% { opacity: .3; scale: .7; } }
@keyframes pn-dot { 50% { opacity: .45; scale: .6; } }
@keyframes pn-spin { to { rotate: 1turn; } }
