/* Recap · index · le personnage allongé sur le bord supérieur de la carte post-it (page Accueil) */
/* Il est enfant de .pi : il suit donc exactement l'inclinaison, l'entrée et l'ombre de la carte. */
.pi-boy { position: absolute; z-index: 2; right: 5%; bottom: calc(100% - 2px); width: 68%; pointer-events: none; }
.pi-boy img { position: relative; z-index: 1; display: block; width: 100%; height: auto; user-select: none; -webkit-user-drag: none;
  transform-origin: 50% 100%;
  /* ombre propre : douce et proche (il est posé sur le bord) + légère ombre portée vers la carte */
  filter: drop-shadow(0 2px 1.5px rgba(10,30,20,.30)) drop-shadow(0 5px 4px rgba(10,30,20,.16));
  animation: pi-breathe 4.2s ease-in-out infinite; }
/* ombre de contact : ellipse floue centrée sur l'arête de la carte, plus sombre sous le corps (noyau) */
.pi-ground { position: absolute; z-index: 0; left: -2%; right: -2%; bottom: -7px; height: 13px; border-radius: 50%;
  background: radial-gradient(ellipse at 50% 50%, rgba(10,30,20,.50) 0, rgba(10,30,20,.28) 45%, rgba(10,30,20,0) 74%);
  filter: blur(2.5px); }
.pi-ground::before { content: ""; position: absolute; left: 14%; right: 10%; top: 30%; bottom: 30%; border-radius: 50%;
  background: radial-gradient(ellipse at 50% 50%, rgba(10,30,20,.55) 0, rgba(10,30,20,0) 72%); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .pi-ground { background: radial-gradient(ellipse at 50% 50%, rgba(0,0,0,.72) 0, rgba(0,0,0,.42) 45%, rgba(0,0,0,0) 74%); }
  :root:not([data-theme="light"]) .pi-ground::before { background: radial-gradient(ellipse at 50% 50%, rgba(0,0,0,.8) 0, rgba(0,0,0,0) 72%); }
  :root:not([data-theme="light"]) .pi-boy img { filter: drop-shadow(0 2px 1.5px rgba(0,0,0,.5)) drop-shadow(0 5px 4px rgba(0,0,0,.3)); }
}
:root[data-theme="dark"] .pi-ground { background: radial-gradient(ellipse at 50% 50%, rgba(0,0,0,.72) 0, rgba(0,0,0,.42) 45%, rgba(0,0,0,0) 74%); }
:root[data-theme="dark"] .pi-ground::before { background: radial-gradient(ellipse at 50% 50%, rgba(0,0,0,.8) 0, rgba(0,0,0,0) 72%); }
:root[data-theme="dark"] .pi-boy img { filter: drop-shadow(0 2px 1.5px rgba(0,0,0,.5)) drop-shadow(0 5px 4px rgba(0,0,0,.3)); }

/* respiration très légère, en continu */
@keyframes pi-breathe { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(1.02); } }
/* entrée : il se laisse tomber sur la carte juste après qu'elle se pose, et son ombre apparaît à l'impact */
.js .pi.enter .pi-boy img { animation: pi-boy-drop .8s cubic-bezier(.34, 1.45, .64, 1) .95s both; }
.js .pi.enter .pi-ground { animation: pi-ground-in .8s ease .95s both; }
@keyframes pi-boy-drop { from { opacity: 0; transform: translateY(-48px) rotate(-3deg); } to { opacity: 1; transform: none; } }
@keyframes pi-ground-in { 0% { opacity: 0; transform: scaleX(.45); } 55% { opacity: 0; transform: scaleX(.6); } 100% { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .pi-boy img, .js .pi.enter .pi-boy img, .js .pi.enter .pi-ground { animation: none !important; transform: none; opacity: 1; } }
