/* Faire-P Digital — illustrations vectorielles : états et animations.
   Avant lecture (.is-play absent) les éléments sont repliés ; .is-static affiche l'illustration terminée (vignettes, cuisson).
   --t0 décale toute une scène dans la séquence d'ouverture, --d est le délai propre à chaque élément. */
.fa-grow { transform: scale(0); opacity: 0; }
.fa-draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.fa-fade { opacity: 0; }
.fa-rise { transform: translateY(14px); opacity: 0; }
.is-play .fa-grow, .is-visible .fa-grow { animation: fa-grow var(--fa-dur, .9s) cubic-bezier(.2, .8, .2, 1) calc(var(--t0, 0s) + var(--d, 0s)) both; }
.is-play .fa-draw, .is-visible .fa-draw { animation: fa-draw var(--fa-dur, 1.3s) cubic-bezier(.6, 0, .2, 1) calc(var(--t0, 0s) + var(--d, 0s)) both; }
.is-play .fa-fade, .is-visible .fa-fade { animation: fa-fade var(--fa-dur, 1s) ease calc(var(--t0, 0s) + var(--d, 0s)) both; }
.is-play .fa-rise, .is-visible .fa-rise { animation: fa-rise var(--fa-dur, 1s) cubic-bezier(.2, .8, .2, 1) calc(var(--t0, 0s) + var(--d, 0s)) both; }
@keyframes fa-grow { 0% { transform: scale(0) rotate(-16deg); opacity: 0; } 25% { opacity: 1; } 100% { transform: none; opacity: 1; } }
@keyframes fa-draw { to { stroke-dashoffset: 0; } }
@keyframes fa-fade { to { opacity: 1; } }
@keyframes fa-rise { to { transform: none; opacity: 1; } }
.is-static .fa-grow, .is-static .fa-rise { transform: none; opacity: 1; animation: none; }
.is-static .fa-draw { stroke-dashoffset: 0; animation: none; }
.is-static .fa-fade { opacity: 1; animation: none; }

/* Mouvements continus après l'entrée : rien ne reste figé, mais tout reste discret. */
.fa-sway { animation: fa-sway var(--sway-dur, 7s) ease-in-out var(--d, 0s) infinite alternate; transform-origin: var(--ox, 50%) var(--oy, 0%); }
.fa-float { animation: fa-float var(--sway-dur, 9s) ease-in-out var(--d, 0s) infinite alternate; }
.fa-twinkle { animation: fa-twinkle var(--sway-dur, 3s) ease-in-out var(--d, 0s) infinite; }
@keyframes fa-sway { from { transform: rotate(calc(var(--amp, 2deg) * -1)); } to { transform: rotate(var(--amp, 2deg)); } }
@keyframes fa-float { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(var(--dx, 0px), var(--dy, -10px), 0); } }
@keyframes fa-twinkle { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .fa-grow, .fa-rise { transform: none !important; opacity: 1 !important; animation: none !important; }
  .fa-draw { stroke-dashoffset: 0 !important; animation: none !important; }
  .fa-fade { opacity: 1 !important; animation: none !important; }
  .fa-sway, .fa-float, .fa-twinkle { animation: none !important; }
}
