/* Studio Lananas — l’ananas animé hors du grand ananas de l’accueil : figures des pages de
   services (figure.js) et écran du bureau de la section À propos (bureau.js).
   Le conteneur porte .ananas-vivant ; .is-allume joue l’arrivée (l’ananas naît de la partie
   du service, puis sa touche « métier » s’anime) ; .is-pulse fait réagir la touche. */

.ananas-vivant .ec,
.ananas-vivant .touche,
.ananas-vivant .touche * {
  transform-box: fill-box;
  transform-origin: center;
}
.ananas-vivant .fe { transform-box: view-box; }
.ananas-vivant .reflet { display: none; }

/* arrivée : l’ananas naît de la partie du service (ordre et départ calculés par ananas.js),
   puis la touche s’anime */
.ananas-vivant.is-allume .ec { animation: ec-pose-fig 1000ms cubic-bezier(0.2, 0.9, 0.25, 1.15) both; animation-delay: calc(var(--d) + 150ms); }
.ananas-vivant.is-allume .fe { animation: fe-pousse-fig 900ms cubic-bezier(0.2, 0.9, 0.3, 1.3) both; animation-delay: var(--d); }
@keyframes ec-pose-fig { 0% { opacity: 0; transform: translate(var(--ox), var(--oy)) rotate(var(--rot)) scale(0.3); } }
@keyframes fe-pousse-fig { 0% { opacity: 0; transform: rotate(var(--ouvre)) scale(0); } }

@keyframes t-pop { 0% { opacity: 0; transform: scale(0); } 60% { transform: scale(1.3); } }
@keyframes t-like { 0% { opacity: 0; transform: scale(0); } 45% { transform: scale(1.7); } 70% { transform: scale(0.9); } }
@keyframes t-bat { 30% { transform: scale(1.4); } 60% { transform: scale(0.94); } }
@keyframes t-sonne { 20% { transform: rotate(16deg) scale(1.15); } 40% { transform: rotate(-13deg) scale(1.15); } 60% { transform: rotate(8deg); } 80% { transform: rotate(-4deg); } }
@keyframes t-ouvre { 0% { opacity: 0; transform: translateY(14px) scale(0.9); } }
@keyframes t-fondu { 0% { opacity: 0; } }
@keyframes t-trace { from { stroke-dasharray: 1; stroke-dashoffset: 1; } to { stroke-dasharray: 1; stroke-dashoffset: 0; } }

/* sites : la fenêtre s’ouvre, l’ananas se pose dedans, les trois points s’allument */
.ananas-vivant.is-allume .t-fenetre { animation: t-ouvre 700ms var(--ease) both; }
.ananas-vivant.is-allume .t-point { animation: t-pop 500ms ease both; animation-delay: calc(650ms + var(--i) * 120ms); }
.ananas-vivant.is-pulse .t-point { animation: t-bat 600ms ease both; animation-delay: calc(var(--i) * 120ms); }
/* réseaux sociaux : les icônes arrivent, puis le j’aime */
.ananas-vivant.is-allume .t-icone { animation: t-pop 500ms ease both; animation-delay: calc(2100ms + var(--i) * 130ms); }
.ananas-vivant.is-allume .t-coeur { animation: t-like 800ms ease both; animation-delay: 2650ms; }
.ananas-vivant.is-pulse .t-coeur { animation: t-bat 700ms ease both; }
/* identité : les feuilles de droite se tracent, puis les points et les poignées */
.ananas-vivant.is-allume .fe--trace { animation: none; }
.ananas-vivant.is-allume .t-trace { animation: t-trace 1200ms ease-in-out both; animation-delay: calc(var(--d) - 200ms); }
.ananas-vivant.is-allume .t-ancre { animation: t-pop 450ms ease both; animation-delay: calc(1900ms + var(--i) * 110ms); }
.ananas-vivant.is-allume .t-poignee { animation: t-fondu 500ms ease both; animation-delay: 2300ms; }
.ananas-vivant.is-pulse .t-ancre { animation: t-bat 600ms ease both; animation-delay: calc(var(--i) * 90ms); }
/* vidéo : le bouton lecture apparaît, il grossit au survol */
.ananas-vivant .t-play { transition: transform 450ms var(--ease); }
.ananas-vivant.is-allume .t-play { animation: t-pop 650ms cubic-bezier(0.2, 0.9, 0.3, 1.3) both; animation-delay: 1900ms; }
.ananas-vivant.is-pulse .t-play { transform: scale(1.22); }
/* applications : l’icône grandit, puis la notification arrive et sonne */
.ananas-vivant.is-allume .t-icone-fond { animation: t-ouvre 700ms var(--ease) both; }
.ananas-vivant.is-allume .t-pastille { animation: t-like 700ms ease 2250ms both, t-sonne 700ms ease 2950ms; }
.ananas-vivant.is-pulse .t-pastille { animation: t-sonne 700ms ease both; }
