/* =====================================================================================
   hn-humanova · mêmes effets que les autres pages de Mathieu (hn-animations), adaptés au tunnel Humanova
   - barre de progression de lecture sous le bandeau ;
   - photos des sections : dévoilement (balayage + montée + flou → net), arrivée alternée gauche / droite ;
   - légère inclinaison 3D des photos au survol (souris) ; onde au clic sur les boutons.
   Désactivé si prefers-reduced-motion, sans JavaScript, ou si IntersectionObserver manque.
   ===================================================================================== */
:root{--hn-ease:cubic-bezier(.16,1,.3,1);--hn-soft:cubic-bezier(.22,.61,.36,1);--hn-dur:1250ms;--hn-rise:90px}
@media (max-width:799px){:root{--hn-rise:56px}}
.slide .media{overflow:hidden}
html.hn-js [data-hn-reveal]{
  opacity:0;transform:translate3d(var(--hn-x,0px),var(--hn-rise),0) scale(.9);
  filter:blur(10px) saturate(.8);clip-path:inset(0 0 30% 0);
  transition:opacity .85s var(--hn-soft) var(--hn-delay,0ms),transform var(--hn-dur) var(--hn-ease) var(--hn-delay,0ms),
    filter .95s var(--hn-soft) var(--hn-delay,0ms),clip-path 1.15s var(--hn-ease) var(--hn-delay,0ms);
  will-change:transform,opacity,filter,clip-path}
html.hn-js [data-hn-reveal][data-hn-in]{opacity:1;transform:none;filter:none;clip-path:inset(0 0 0 0)}
html.hn-js [data-hn-reveal][data-hn-done]{clip-path:none;will-change:auto;transition:transform .7s var(--hn-ease)}
html.hn-js .slide .media img{transition:transform .7s var(--hn-ease)}
.hn-ripple{position:absolute;z-index:1;border-radius:50%;pointer-events:none;width:24px;height:24px;margin:-12px 0 0 -12px;
  background:rgba(255,255,255,.45);animation:hn-ripple .65s var(--hn-soft) forwards}
.btn.ghost .hn-ripple{background:rgba(106,43,217,.22)}
@keyframes hn-ripple{from{transform:scale(0);opacity:1}to{transform:scale(22);opacity:0}}
.hn-progress{position:absolute;left:0;right:0;bottom:-1px;height:3px;transform-origin:0 50%;transform:scaleX(var(--hn-p,0));
  background:linear-gradient(90deg,#5b249e,#3b6ff5 60%,#c9973a);opacity:0;transition:opacity .3s;pointer-events:none}
html.hn-js .hn-progress{opacity:1}

/* Entrée « cinéma » du grand visuel du haut (comme le premier visuel des autres pages) */
@keyframes hn-hero{from{transform:scale(1.07);filter:saturate(.8) brightness(1.06)}to{transform:none;filter:none}}
html.hn-js.hn-play .hero .hero-img{transform-origin:50% 30%;animation:hn-hero 1.8s var(--hn-ease) backwards}
/* Boutons : montée à l'entrée + élévation au survol (comme les autres pages) */
html.hn-js [data-hn-btn]{opacity:0;transform:translate3d(0,34px,0) scale(.94);
  transition:opacity .7s var(--hn-soft) var(--hn-delay,0ms),transform .9s var(--hn-ease) var(--hn-delay,0ms)}
html.hn-js [data-hn-btn][data-hn-in]{opacity:1;transform:none}
html.hn-js [data-hn-btn][data-hn-done]{transition:transform .35s var(--hn-ease),box-shadow .35s var(--hn-ease)}
@media (hover:hover) and (pointer:fine){
  html.hn-js [data-hn-btn][data-hn-done]:hover{transform:translate3d(0,-5px,0);box-shadow:0 22px 34px -16px rgba(74,20,184,.5),0 0 0 5px rgba(106,43,217,.1)}
}
.gift{overflow-x:clip}

/* Photos vivantes : zoom lent qui « respire » + parallaxe au défilement (propriétés scale / translate,
   indépendantes de l'apparition et de l'inclinaison au survol) */
@keyframes hn-breathe{from{scale:1.14}to{scale:1.24}}
html.hn-js .slide .media img,html.hn-js .gift .covers img{will-change:translate}
html.hn-js .slide .media img{scale:1.14;translate:0 var(--hn-py,0px);animation:hn-breathe 12s ease-in-out infinite alternate}
html.hn-js .slide:nth-of-type(even) .media img{animation-delay:-6s}
/* Couvertures du guide : flottement doux en décalé */
@keyframes hn-float{from{translate:0 0}to{translate:0 -12px}}
html.hn-js .gift .covers img{animation:hn-float 3.6s ease-in-out infinite alternate}
html.hn-js .gift .covers img:nth-child(2){animation-delay:-.9s}
html.hn-js .gift .covers img:nth-child(3){animation-delay:-1.8s}
html.hn-js .gift .covers img:nth-child(4){animation-delay:-2.7s}
@media (prefers-reduced-motion:reduce){
  html.hn-js [data-hn-reveal],html.hn-js [data-hn-btn]{opacity:1!important;transform:none!important;filter:none!important;clip-path:none!important;transition:none!important}
  .hn-ripple,.hn-progress{display:none}
  html.hn-js.hn-play .hero .hero-img{animation:none}
  html.hn-js .slide .media img,html.hn-js .gift .covers img{animation:none;scale:none;translate:none}
}
