/* =========================================================
   Illustrations des cartes surprise (cadeau 1 & 2)
   Animations uniquement sur transform / opacity.
   ========================================================= */
.art { position: relative; height: 210px; overflow: hidden; border-radius: 30px 30px 0 0; }
.art svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.art-horse :is(.h-cloud, .h-sunglow, .h-bird, .h-bob, .h-shadow, .h-leg, .h-tail, .h-head, .h-blink, .h-pony, .h-big, .h-twinkle path),
.art-dinner :is(.d-flame, .d-halo, .d-glass, .d-spark, .d-stars circle),
.art :is(.h-rise, .d-rise) use { transform-box: fill-box; }

/* ---------- Cadeau 1 : balade à cheval ---------- */
.art-horse .h-cloud { animation: ah-drift 10s ease-in-out infinite alternate; }
.art-horse .h-c2 { animation-duration: 13s; animation-direction: alternate-reverse; }
@keyframes ah-drift { to { transform: translateX(22px); } }

.art-horse .h-sunglow { transform-origin: center; animation: ah-glow 3s ease-in-out infinite alternate; }
@keyframes ah-glow { to { transform: scale(.85); opacity: .7; } }

.art-horse .h-bird { animation: ah-bird 6s ease-in-out infinite alternate; }
@keyframes ah-bird { to { transform: translate(18px, -6px); } }

/* trot sur place */
.art-horse .h-bob { animation: ah-bob .5s ease-in-out infinite alternate; }
.art-horse .h-late { animation-delay: -.25s; }
@keyframes ah-bob { from { transform: translateY(0); } to { transform: translateY(-3.5px); } }

.art-horse .h-shadow { transform-origin: center; animation: ah-shadow .5s ease-in-out infinite alternate; }
@keyframes ah-shadow { to { transform: scaleX(.9); opacity: .25; } }

.art-horse .h-leg { transform-origin: 50% 8%; animation: ah-leg .5s ease-in-out infinite alternate; }
.art-horse .h-leg.b { animation-direction: alternate-reverse; }
.art-horse .h-late .h-leg { animation-delay: -.25s; }
@keyframes ah-leg { from { transform: rotate(-9deg); } to { transform: rotate(9deg); } }

.art-horse .h-tail { transform-origin: 92% 8%; animation: ah-tail 1s ease-in-out infinite alternate; }
@keyframes ah-tail { from { transform: rotate(-7deg); } to { transform: rotate(9deg); } }

.art-horse .h-head { transform-origin: 30% 95%; animation: ah-nod 1s ease-in-out infinite alternate; }
.art-horse .h-late .h-head { animation-delay: -.5s; }
@keyframes ah-nod { from { transform: rotate(-2deg); } to { transform: rotate(3deg); } }

.art-horse .h-blink { transform-origin: center; animation: ah-blink 4s infinite; }
.art-horse .h-late .h-blink { animation-delay: -1.7s; }
@keyframes ah-blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }

.art-horse .h-pony { transform-origin: 90% 10%; animation: ah-tail .5s ease-in-out infinite alternate; }

.art-horse .h-big { transform-origin: center; animation: a-beat 1.4s ease-in-out infinite; }
@keyframes a-beat { 0%, 100% { transform: scale(1); } 14% { transform: scale(1.2); } 28% { transform: scale(1); } 42% { transform: scale(1.12); } }

/* petits cœurs qui montent */
.art .h-rise use, .art .d-rise use { opacity: 0; transform-origin: center; animation: a-rise 3.3s ease-in infinite; }
.art .r2 { animation-delay: 1.1s !important; }
.art .r3 { animation-delay: 2.2s !important; }
@keyframes a-rise {
  0% { opacity: 0; transform: translate(0, 0) scale(.3); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx, 8px), -64px) scale(.75) rotate(14deg); }
}
.art .r2 { --dx: -12px; }
.art .r3 { --dx: 16px; }

.art-horse .h-twinkle path, .art-dinner .d-stars circle { transform-origin: center; animation: a-twinkle 2.2s ease-in-out infinite; }
.art-horse .h-twinkle .t2 { animation-delay: -1.1s; }
@keyframes a-twinkle { 0%, 100% { opacity: 0; transform: scale(.3) rotate(0); } 50% { opacity: 1; transform: scale(1) rotate(45deg); } }

/* ---------- Cadeau 2 : dîner aux chandelles ---------- */
.art-dinner .d-flame { transform-origin: 50% 100%; animation: ad-flicker .9s ease-in-out infinite alternate; }
.art-dinner .d-flame.c2 { animation-duration: 1.1s; animation-delay: -.4s; }
@keyframes ad-flicker {
  0% { transform: scale(1, 1) rotate(-3deg); }
  50% { transform: scale(.9, 1.1) rotate(2deg); }
  100% { transform: scale(1.06, .94) rotate(-1deg); }
}
.art-dinner .d-halo { transform-origin: center; animation: ad-halo 1.8s ease-in-out infinite alternate; }
.art-dinner .d-halo.c2 { animation-delay: -.9s; }
@keyframes ad-halo { to { opacity: .65; transform: scale(.88); } }

.art-dinner .d-bulbs circle { animation: ad-bulb 1.6s ease-in-out infinite alternate; }
.art-dinner .d-bulbs circle:nth-child(2n) { animation-delay: -.8s; }
.art-dinner .d-bulbs circle:nth-child(3n) { animation-delay: -.4s; }
@keyframes ad-bulb { from { opacity: .35; } to { opacity: 1; } }
.art-dinner .d-bokeh circle { animation: ad-bokeh 3s ease-in-out infinite alternate; }
@keyframes ad-bokeh { from { opacity: .08; } to { opacity: .26; } }
.art-dinner .d-bokeh circle:nth-child(2n) { animation-delay: -1.5s; }
.art-dinner .d-stars circle:nth-child(2n) { animation-delay: -.8s; }
.art-dinner .d-stars circle:nth-child(3n) { animation-delay: -1.5s; }

/* les verres trinquent (pivot sur le pied) */
.art-dinner .d-glass { transform-origin: 50% 100%; animation: ad-clinkL 2.6s ease-in-out infinite; }
.art-dinner .d-glass.gr { animation-name: ad-clinkR; }
@keyframes ad-clinkL { 0%, 30%, 100% { transform: rotate(-4deg); } 52%, 60% { transform: rotate(8.5deg); } 56% { transform: rotate(7deg); } }
@keyframes ad-clinkR { 0%, 30%, 100% { transform: rotate(4deg); } 52%, 60% { transform: rotate(-8.5deg); } 56% { transform: rotate(-7deg); } }

.art-dinner .d-spark { opacity: 0; transform-origin: center; animation: ad-spark 2.6s ease-out infinite; }
@keyframes ad-spark {
  0%, 50% { opacity: 0; transform: scale(.2) rotate(0); }
  56% { opacity: 1; transform: scale(1.15) rotate(20deg); }
  75%, 100% { opacity: 0; transform: scale(.6) rotate(45deg); }
}
.art-dinner .d-rise use { animation-duration: 2.6s; }
.art-dinner .r1 { animation-delay: 1.4s; }
.art-dinner .r2 { animation-delay: 1.65s !important; }
.art-dinner .r3 { animation-delay: 1.9s !important; }

@media (prefers-reduced-motion: reduce) {
  .art svg * { animation: none !important; }
  .art .h-rise use, .art .d-rise use { opacity: 0; }
  .art-dinner .d-spark { opacity: 1; }
}
