/* Scènes animées : en bas à droite, au-dessus du site, sans bloquer les clics */
.k3sc { position: fixed; right: 18px; bottom: 0; width: 240px; height: 240px; z-index: 9993; pointer-events: none; opacity: 0; transition: opacity .4s ease; }
.k3sc.play { opacity: 1; }
.k3sc svg { width: 100%; height: 100%; display: block; overflow: visible; }
@media (max-width: 849px) { .k3sc { width: 140px; height: 140px; right: 6px; bottom: 76px; } }

/* Noël : le Père Noël sort de la cheminée, fait coucou et redescend */
.k3sc-santa { transform: translateY(110px); }
.k3sc-noel.play .k3sc-santa { animation: k3sc-santa 9s ease-in-out both; }
@keyframes k3sc-santa { 0% { transform: translateY(110px); } 12% { transform: translateY(-6px); } 16%, 62% { transform: translateY(0); } 74%, 100% { transform: translateY(110px); } }
.k3sc-arm { transform-origin: 144px 116px; }
.k3sc-noel.play .k3sc-arm { animation: k3sc-wave .55s ease-in-out 1.5s 7 alternate; }
@keyframes k3sc-wave { from { transform: rotate(-14deg); } to { transform: rotate(18deg); } }
.k3sc-bubble { opacity: 0; transform-origin: 90px 64px; }
.k3sc-noel.play .k3sc-bubble { animation: k3sc-pop 9s ease both; }
@keyframes k3sc-pop { 0%, 18% { opacity: 0; transform: scale(.4); } 24%, 60% { opacity: 1; transform: scale(1); } 66%, 100% { opacity: 0; transform: scale(.6); } }
.k3sc-smoke circle { opacity: 0; }
.k3sc-noel.play .k3sc-smoke circle { animation: k3sc-smoke 2.6s ease-out 6.6s both; }
.k3sc-noel.play .k3sc-smoke circle:nth-child(2) { animation-delay: 6.9s; }
.k3sc-noel.play .k3sc-smoke circle:nth-child(3) { animation-delay: 7.2s; }
@keyframes k3sc-smoke { 0% { opacity: 0; transform: translateY(14px) scale(.5); } 30% { opacity: .9; } 100% { opacity: 0; transform: translateY(-36px) scale(1.4); } }

/* Pâques : un lapin traverse en sautillant et laisse un œuf */
.k3sc-paques { width: 100vw; right: 0; max-width: none; }
.k3sc-paques svg { width: 240px; margin-left: auto; }
.k3sc-rabbit { transform: translate(230px, 182px); }
.k3sc-paques.play .k3sc-rabbit { animation: k3sc-run 8s linear both; }
@keyframes k3sc-run { 0% { transform: translate(230px, 182px) scaleX(-1); } 45%, 55% { transform: translate(92px, 182px) scaleX(-1); } 100% { transform: translate(-60px, 182px) scaleX(-1); } }
.k3sc-paques.play .k3sc-hop { animation: k3sc-hop .5s ease-in-out infinite alternate; }
@keyframes k3sc-hop { from { transform: translateY(0); } to { transform: translateY(-16px); } }
.k3sc-egg { opacity: 0; }
.k3sc-paques.play .k3sc-egg { animation: k3sc-egg 8s ease both; }
@keyframes k3sc-egg { 0%, 44% { opacity: 0; transform: translateY(-14px); } 50%, 90% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; } }

/* Halloween : un fantôme sort de la citrouille, salue et disparaît */
.k3sc-ghost { transform: translateY(70px); opacity: 0; }
.k3sc-halloween.play .k3sc-ghost { animation: k3sc-ghost 8s ease-in-out both; }
@keyframes k3sc-ghost { 0% { transform: translateY(70px); opacity: 0; } 18% { transform: translateY(-50px); opacity: .95; } 30%, 60% { transform: translateY(-58px); opacity: .95; } 45% { transform: translateY(-46px); } 80%, 100% { transform: translateY(-110px); opacity: 0; } }
.k3sc-garm { transform-origin: 128px 146px; }
.k3sc-halloween.play .k3sc-garm { animation: k3sc-wave .5s ease-in-out 2s 6 alternate; }
.k3sc-halloween.play .k3sc-glow { animation: k3sc-glow 1.2s ease-in-out infinite alternate; }
@keyframes k3sc-glow { from { fill: #FFD54F; } to { fill: #FFF3B0; } }

/* Saint-Valentin, fêtes des mères et des pères : un cadeau s'ouvre */
.k3sc-lid { transform-origin: 152px 116px; }
.k3sc-cadeau.play .k3sc-lid { animation: k3sc-lid 6.5s ease both; }
@keyframes k3sc-lid { 0%, 8% { transform: none; } 12% { transform: translateY(-4px) rotate(-4deg); } 16% { transform: none; } 22% { transform: translate(26px, -40px) rotate(28deg); } 70% { transform: translate(26px, -40px) rotate(28deg); } 82%, 100% { transform: none; } }
.k3sc-cadeau.play .k3sc-box { animation: k3sc-shake 6.5s ease both; transform-origin: 100px 192px; }
@keyframes k3sc-shake { 0%, 4% { transform: none; } 6% { transform: rotate(-4deg); } 8% { transform: rotate(4deg); } 10% { transform: rotate(-3deg); } 12%, 100% { transform: none; } }
.k3sc-p { opacity: 0; }
.k3sc-cadeau.play .k3sc-p { animation: k3sc-fly 3.4s ease-out both; animation-delay: calc(1.3s + var(--dl)); }
@keyframes k3sc-fly { 0% { opacity: 0; translate: 0 0; } 12% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; translate: var(--dx) var(--dy); } }
