/* Repris de l'appli (www/css/style.css) par outils/copier-ressources.py : ne pas modifier ici. */
/* ---- États des mascottes ---- */
.mascot *{transform-box:view-box}
.mascot .eyes,.mascot .mouth,.mascot .brows,.mascot .sweat,.mascot .sparkle{opacity:0;transition:opacity .15s}
.mascot.happy .e-open,.mascot.happy .m-smile{opacity:1}
.mascot.surprised .e-wide,.mascot.surprised .m-o,.mascot.surprised .b-up{opacity:1}
.mascot.covering .e-squeeze,.mascot.covering .m-wavy,.mascot.covering .b-worry,.mascot.covering .sweat{opacity:1}
.mascot.calm .e-closed,.mascot.calm .m-blow{opacity:1}
.mascot.joy .e-joy,.mascot.joy .m-joy,.mascot.joy .sparkle{opacity:1}
.mascot .m-all{transform-origin:150px 300px}
.mascot .m-body{transform-origin:150px 320px;animation:breathe 3.2s ease-in-out infinite}
@keyframes breathe{50%{transform:scale(1.02,.985)}}
.mascot .blink{transform-origin:150px 178px;animation:blink 5s infinite}
@keyframes blink{0%,93%,100%{transform:scaleY(1)}96%{transform:scaleY(.1)}}
.mascot .paw{transform:var(--rest);transition:transform .45s cubic-bezier(.3,1.5,.5,1)}
.mascot.covering .paw{transform:none}
.mascot .ear{transition:transform .45s cubic-bezier(.3,1.6,.5,1)}
.mascot.happy .ear.l,.mascot.calm .ear.l{animation:swayL 4s ease-in-out infinite}
.mascot.happy .ear.r,.mascot.calm .ear.r{animation:swayR 4s ease-in-out infinite}
@keyframes swayL{50%{transform:rotate(-6deg)}}
@keyframes swayR{50%{transform:rotate(6deg)}}
.mascot.surprised .m-all{animation:hop .5s ease-out}
@keyframes hop{40%{transform:translateY(-14px)}}
.mascot.joy .m-all{animation:joyhop .7s ease-in-out infinite}
@keyframes joyhop{50%{transform:translateY(-12px) rotate(-2deg)}}
.mascot.covering .m-all{animation:shiver .35s ease-in-out infinite}
@keyframes shiver{25%{transform:translateX(-2px)}75%{transform:translateX(2px)}}
.mascot .sweat{animation:drip 1.2s ease-in infinite}
@keyframes drip{60%{transform:translateY(8px)}}
.mascot.sp-bunny.surprised .ear.l{transform:rotate(-4deg) scaleY(1.1)}
.mascot.sp-bunny.surprised .ear.r{transform:rotate(4deg) scaleY(1.1)}
.mascot.sp-bunny.covering .ear.l{transform:rotate(-74deg) scaleY(.88)}
.mascot.sp-bunny.covering .ear.r{transform:rotate(74deg) scaleY(.88)}
.mascot.sp-owl.surprised .ear{transform:scaleY(1.25)}
.mascot.sp-owl.covering .ear{transform:scaleY(.4)}
.mascot.sp-bear.surprised .ear{transform:scale(1.15)}
.mascot.sp-bear.covering .ear{transform:scale(.85)}

/* ---- Nouvelles mascottes : réactions propres à chaque espèce ---- */
.mascot.sp-panda.surprised .ear,.mascot.sp-elephant.surprised .ear,.mascot.sp-dragon.surprised .ear{transform:scale(1.12)}
.mascot.sp-panda.covering .ear{transform:scale(.85)}
.mascot.sp-elephant.covering .ear{transform:scale(.8)}
.mascot.sp-chick.surprised .tuft{transform:scaleY(1.35)}
.mascot.sp-chick.covering .tuft{transform:scaleY(.6)}
.mascot.sp-fox.surprised .ear,.mascot.sp-cat.surprised .ear,.mascot.sp-wolf.surprised .ear{transform:scaleY(1.15)}
.mascot.sp-fox.covering .ear.l,.mascot.sp-cat.covering .ear.l,.mascot.sp-wolf.covering .ear.l{transform:rotate(-28deg) scaleY(.7)}
.mascot.sp-fox.covering .ear.r,.mascot.sp-cat.covering .ear.r,.mascot.sp-wolf.covering .ear.r{transform:rotate(28deg) scaleY(.7)}
.mascot.sp-axolotl.surprised .ear{transform:scale(1.2)}
.mascot.sp-axolotl.covering .ear{transform:scale(.6)}
.mascot.sp-dragon.covering .ear{transform:rotate(-10deg) scale(.85)}
.mascot .spikes{transition:transform .4s cubic-bezier(.3,1.6,.5,1)}
.mascot.sp-dino.surprised .spikes{transform:translateY(-8px) scaleY(1.2)}
.mascot.sp-dino.covering .spikes{transform:scaleY(.6)}
.mascot.sp-robot .ear{transition:transform .3s}
.mascot.sp-robot.surprised .ear{transform:scaleY(1.15)}
.mascot .ant{transition:fill .3s}
.mascot.sp-robot.surprised .ant{fill:#ffa62b}
.mascot.sp-robot.covering .ant{fill:#ff5a5f;animation:antblink .6s steps(2) infinite}
.mascot.sp-robot.calm .ant{fill:#7cc8ff}
.mascot.sp-robot.joy .ant{fill:#ffd23f}
@keyframes antblink{50%{opacity:.4}}
/* Yeux clairs (panda) et écran (robot) */
.mascot.eyes-light .e-open ellipse{fill:#fff}
.mascot.eyes-light .e-open .hl{fill:#3b2f6b}
.mascot.eyes-light .e-squeeze path,.mascot.eyes-light .e-closed path,.mascot.eyes-light .e-joy path{stroke:#fff}
.mascot.eyes-screen .e-open ellipse{fill:#6ff6ff}
.mascot.eyes-screen .e-squeeze path,.mascot.eyes-screen .e-closed path,.mascot.eyes-screen .e-joy path,.mascot.eyes-screen .brows path{stroke:#6ff6ff}
.mascot.eyes-screen .mouth path,.mascot.eyes-screen .mouth ellipse,.mascot.eyes-screen .mouth circle{fill:#6ff6ff;stroke:#6ff6ff}
.mascot.eyes-screen .m-wavy path{fill:none}
.mascot.eyes-screen .tongue{fill:#28335a!important;stroke:none!important}
