/* =========================================================
   ANIMATION D'ARRIVÉE — gabarit V2 « Moderne » (skin-moderne)
   CSS seul, ~1,2 s, aucune dépendance. Chargé après skin-moderne.css.
   - La photo s'éclaire et se pose (zoom léger) : transform/filter uniquement,
     elle n'est jamais masquée -> pas d'impact sur le LCP.
   - Logo qui « pop », en-tête qui descend, titre qui monte,
     « où il fait bon grandir » qui se réchauffe (blanc -> doré).
   - Le formulaire arrive en dernier mais reste utilisable tout de suite.
   - Désactivée si l'utilisateur a demandé moins d'animations.
   Utilisé uniquement par la page d'accueil (site/index.html), après l'intro « le câlin ».
   Pour la retirer : supprimer le <link> vers ce fichier dans site/index.html.
   ========================================================= */
@media (prefers-reduced-motion:no-preference){
  /* Photo : s'éclaire et se pose */
  .m-hero__bg{animation:inLight 1.3s ease-out both}
  .m-hero__bg img{transform-origin:60% 45%;animation:inZoom 2s cubic-bezier(.16,1,.3,1) both}

  /* En-tête */
  .skin-moderne .topbar__logo{animation:inPop .75s cubic-bezier(.34,1.56,.64,1) .12s both}
  .skin-moderne .topbar__right>*{animation:inDown .6s cubic-bezier(.16,1,.3,1) both}
  .skin-moderne .topbar__right>:nth-child(1){animation-delay:.28s}
  .skin-moderne .topbar__right>:nth-child(2){animation-delay:.36s}
  .skin-moderne .topbar__right>:nth-child(3){animation-delay:.44s}

  /* Texte du hero, en cascade */
  .m-kicker{animation:inUp .7s cubic-bezier(.16,1,.3,1) .15s both}
  .m-hero h1{animation:inUp .8s cubic-bezier(.16,1,.3,1) .22s both}
  .m-hero h1 em{animation:inWarm 1.1s ease-out .5s both}
  .m-lead{animation:inUp .8s cubic-bezier(.16,1,.3,1) .42s both}
  .m-badges li{animation:inUp .6s cubic-bezier(.16,1,.3,1) both}
  .m-badges li:nth-child(1){animation-delay:.56s}
  .m-badges li:nth-child(2){animation-delay:.63s}
  .m-badges li:nth-child(3){animation-delay:.70s}
  .m-badges li:nth-child(4){animation-delay:.77s}

  /* Formulaire : glisse et se pose avec un petit rebond */
  .skin-moderne .m-hero .form-card{animation:inCard .9s cubic-bezier(.22,1.25,.36,1) .32s both}
}

@keyframes inLight{from{filter:brightness(.5) saturate(.75)}to{filter:none}}
@keyframes inZoom{from{transform:scale(1.1)}to{transform:none}}
@keyframes inPop{0%{opacity:0;transform:scale(.55) rotate(-8deg)}60%{opacity:1}100%{opacity:1;transform:none}}
@keyframes inDown{from{opacity:0;transform:translateY(-14px)}to{opacity:1;transform:none}}
@keyframes inUp{from{opacity:0;transform:translateY(22px)}to{opacity:1;transform:none}}
@keyframes inWarm{
  0%{color:#fff;text-shadow:0 2px 24px rgba(0,0,0,.3)}
  55%{color:#ffd39a;text-shadow:0 0 28px rgba(255,190,110,.75),0 2px 24px rgba(0,0,0,.3)}
  100%{color:#ffd39a;text-shadow:0 2px 24px rgba(0,0,0,.3)}
}
@keyframes inCard{from{opacity:0;transform:translateY(48px) scale(.97)}to{opacity:1;transform:none}}
