/* =====================================================
   LUMI — l'étincelle à humeurs (components/lumi_logo)
   Dessin et animations d'Aladin (lumi-moods.html, 13/10/2026). L'humeur se change par l'attribut
   data-mood : idle · thinking · writing · happy · angry ; les animations ne jouent que sur .is-animated.
   ===================================================== */
.lumi-logo { overflow: visible; display: inline-block; vertical-align: middle; }
.lumi-logo-inline { margin-right: .35rem; margin-top: -.15rem; }
.lumi-logo g, .lumi-logo path, .lumi-logo circle { transform-box: fill-box; }
.lumi-logo .body, .lumi-logo .core, .lumi-logo .cheek,
.lumi-logo .limb-o, .lumi-logo .limb-i, .lumi-logo .fist { transition: fill .4s, stroke .4s, opacity .4s; }

/* bras */
.lumi-logo .limb   { fill: none; stroke-linecap: round; }
.lumi-logo .limb-o { stroke: #f0b83c; stroke-width: 5.6; }
.lumi-logo .limb-i { stroke: #ffd76a; stroke-width: 3.4; }
.lumi-logo .fist   { fill: #ffd76a; stroke: #f0b83c; stroke-width: 1.1; }

/* éléments alternatifs cachés par défaut */
.lumi-logo .alt { display: none; }

/* ---------- NORMAL ---------- */
.lumi-logo.is-animated .bob      { transform-origin: 50% 100%; animation: lumi-breathe 2.8s ease-in-out infinite; }
.lumi-logo.is-animated .flick    { transform-origin: 50% 100%; animation: lumi-flick 1.1s ease-in-out infinite; }
.lumi-logo.is-animated .blink    { transform-origin: 50% 50%;  animation: lumi-blink 4.2s ease-in-out infinite; }
.lumi-logo.is-animated .look     { animation: lumi-glance 6s ease-in-out infinite; }
.lumi-logo.is-animated .arm-r-idle { transform-origin: 0% 0%; animation: lumi-wave 5s ease-in-out infinite; }
@keyframes lumi-breathe { 0%, 100% { transform: translateY(0) scale(1, 1); } 50% { transform: translateY(-2px) scale(.985, 1.02); } }
@keyframes lumi-flick   { 0%, 100% { transform: scaleY(1) skewX(0); } 35% { transform: scaleY(1.04) skewX(-1.5deg); } 70% { transform: scaleY(.97) skewX(1.5deg); } }
@keyframes lumi-blink   { 0%, 90%, 100% { transform: scaleY(1); } 93% { transform: scaleY(.1); } 96% { transform: scaleY(1); } 97.5% { transform: scaleY(.1); } }
@keyframes lumi-glance  { 0%, 40%, 85%, 100% { transform: translate(0, 0); } 45%, 60% { transform: translate(-1px, 0); } 65%, 80% { transform: translate(1px, -.3px); } }
@keyframes lumi-wave    { 0%, 68%, 100% { transform: rotate(0); } 73% { transform: rotate(-75deg); } 78% { transform: rotate(-45deg); } 83% { transform: rotate(-75deg); } 88% { transform: rotate(-45deg); } 93% { transform: rotate(-75deg); } }

/* ---------- RÉFLÉCHIT ---------- */
.lumi-logo[data-mood="thinking"] .arm-r-idle,
.lumi-logo[data-mood="thinking"] .m-smile { display: none; }
.lumi-logo[data-mood="thinking"] .arm-think,
.lumi-logo[data-mood="thinking"] .brow-think,
.lumi-logo[data-mood="thinking"] .m-think,
.lumi-logo[data-mood="thinking"] .fx-think { display: inline; }
.lumi-logo.is-animated[data-mood="thinking"] .bob   { animation: lumi-think-tilt 3.6s ease-in-out infinite; }
.lumi-logo.is-animated[data-mood="thinking"] .flick { animation-duration: 1.9s; }
.lumi-logo.is-animated[data-mood="thinking"] .look  { animation: lumi-think-look 3.6s ease-in-out infinite; }
.lumi-logo.is-animated[data-mood="thinking"] .brow-think { transform-origin: 50% 100%; animation: lumi-think-brow 3.6s ease-in-out infinite; }
.lumi-logo.is-animated[data-mood="thinking"] .arm-think  { animation: lumi-think-tap 1.6s ease-in-out infinite; }
.lumi-logo.is-animated[data-mood="thinking"] .t-dot1 { transform-origin: 50% 50%; animation: lumi-t-dot1 2.6s ease-out infinite; }
.lumi-logo.is-animated[data-mood="thinking"] .t-dot2 { transform-origin: 50% 50%; animation: lumi-t-dot2 2.6s ease-out infinite; }
.lumi-logo.is-animated[data-mood="thinking"] .t-q    { transform-origin: 50% 100%; animation: lumi-t-q 2.6s ease-out infinite; }
@keyframes lumi-think-tilt { 0%, 100% { transform: rotate(0) translateY(0); } 50% { transform: rotate(-6deg) translateY(-1px); } }
@keyframes lumi-think-look { 0%, 100% { transform: translate(1.4px, -1.5px); } 45%, 55% { transform: translate(-1.2px, -1.7px); } }
@keyframes lumi-think-brow { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1px); } }
@keyframes lumi-think-tap  { 0%, 30%, 50%, 100% { transform: translateY(0); } 40%, 60% { transform: translateY(-.9px); } }
@keyframes lumi-t-dot1 { 0% { opacity: 0; transform: scale(0); } 10%, 80% { opacity: 1; transform: scale(1); } 92%, 100% { opacity: 0; transform: scale(.6); } }
@keyframes lumi-t-dot2 { 0%, 12% { opacity: 0; transform: scale(0); } 22%, 80% { opacity: 1; transform: scale(1); } 92%, 100% { opacity: 0; transform: scale(.6); } }
@keyframes lumi-t-q    { 0%, 24% { opacity: 0; transform: scale(0) rotate(0); } 34% { opacity: 1; transform: scale(1.25) rotate(-12deg); } 44% { transform: scale(.95) rotate(10deg); } 54% { transform: scale(1) rotate(-5deg); } 64%, 80% { opacity: 1; transform: scale(1) rotate(0); } 92%, 100% { opacity: 0; transform: scale(.6); } }

/* ---------- ÉCRIT ---------- */
.lumi-logo[data-mood="writing"] .arm-r-idle,
.lumi-logo[data-mood="writing"] .m-smile { display: none; }
.lumi-logo[data-mood="writing"] .arm-write,
.lumi-logo[data-mood="writing"] .m-focus,
.lumi-logo[data-mood="writing"] .fx-write { display: inline; }
.lumi-logo.is-animated[data-mood="writing"] .bob       { animation: lumi-write-nod 1.2s ease-in-out infinite; }
.lumi-logo.is-animated[data-mood="writing"] .look      { animation: lumi-write-look 3s linear infinite; }
.lumi-logo.is-animated[data-mood="writing"] .arm-write { animation: lumi-write-hand 3s linear infinite; }
.lumi-logo.is-animated[data-mood="writing"] .ink-1     { animation: lumi-ink-1 3s linear infinite; }
.lumi-logo.is-animated[data-mood="writing"] .ink-2     { animation: lumi-ink-2 3s linear infinite; }
.lumi-logo.is-animated[data-mood="writing"] .tongue    { transform-origin: 0% 0%; animation: lumi-tongue 1.2s ease-in-out infinite; }
@keyframes lumi-write-nod  { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(1px) rotate(2deg); } }
@keyframes lumi-write-look { 0% { transform: translate(-.4px, 1.6px); } 40% { transform: translate(1.6px, 1.6px); } 45% { transform: translate(-.4px, 1.9px); } 85% { transform: translate(1.6px, 1.9px); } 100% { transform: translate(-.4px, 1.6px); } }
@keyframes lumi-write-hand {
  0%   { transform: translate(-5.5px, 0); }
  10%  { transform: translate(-3px, -.7px); }
  20%  { transform: translate(-.5px, 0); }
  30%  { transform: translate(2px, -.7px); }
  40%  { transform: translate(4.5px, 0); }
  45%  { transform: translate(-5.5px, 2.5px); }
  55%  { transform: translate(-3px, 1.8px); }
  65%  { transform: translate(-.5px, 2.5px); }
  75%  { transform: translate(2px, 1.8px); }
  85%  { transform: translate(4.5px, 2.5px); }
  92%  { transform: translate(-1px, -2px); }
  100% { transform: translate(-5.5px, 0); }
}
@keyframes lumi-ink-1 { 0% { stroke-dashoffset: 1; opacity: 1; } 40% { stroke-dashoffset: 0; } 90% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes lumi-ink-2 { 0%, 45% { stroke-dashoffset: 1; opacity: 1; } 85% { stroke-dashoffset: 0; } 90% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes lumi-tongue { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(.6px, .3px); } }

/* ---------- CONTENT ---------- */
.lumi-logo[data-mood="happy"] .eyes,
.lumi-logo[data-mood="happy"] .m-smile,
.lumi-logo[data-mood="happy"] .arm-l-idle,
.lumi-logo[data-mood="happy"] .arm-r-idle { display: none; }
.lumi-logo[data-mood="happy"] .eyes-happy,
.lumi-logo[data-mood="happy"] .m-open,
.lumi-logo[data-mood="happy"] .arms-happy,
.lumi-logo[data-mood="happy"] .fx-happy { display: inline; }
.lumi-logo.is-animated[data-mood="happy"] .bob   { animation: lumi-hop .8s ease-in-out infinite; }
.lumi-logo.is-animated[data-mood="happy"] .cheek { transform-origin: 50% 50%; animation: lumi-blush .8s ease-in-out infinite; }
.lumi-logo.is-animated[data-mood="happy"] .arm-hl { transform-origin: 100% 100%; animation: lumi-cheer-l .4s ease-in-out infinite alternate; }
.lumi-logo.is-animated[data-mood="happy"] .arm-hr { transform-origin: 0% 100%;   animation: lumi-cheer-r .4s ease-in-out infinite alternate; }
.lumi-logo.is-animated[data-mood="happy"] .heart { transform-origin: 50% 50%; animation: lumi-heart 2s ease-out infinite; }
.lumi-logo.is-animated[data-mood="happy"] .heart-2 { animation-delay: 1s; }
.lumi-logo.is-animated[data-mood="happy"] .star  { transform-origin: 50% 50%; animation: lumi-twinkle 1.4s ease-in-out infinite; }
.lumi-logo.is-animated[data-mood="happy"] .star-2 { animation-delay: .7s; }
@keyframes lumi-hop     { 0%, 100% { transform: translateY(0) scale(1.06, .94); } 18% { transform: translateY(-1px) scale(.95, 1.07); } 45% { transform: translateY(-5px) scale(.98, 1.03); } 75% { transform: translateY(0) scale(1.04, .96); } }
@keyframes lumi-blush   { 0%, 100% { opacity: .65; transform: scale(1); } 50% { opacity: .95; transform: scale(1.15); } }
@keyframes lumi-cheer-l { from { transform: rotate(-12deg); } to { transform: rotate(10deg); } }
@keyframes lumi-cheer-r { from { transform: rotate(12deg); }  to { transform: rotate(-10deg); } }
@keyframes lumi-heart   { 0% { opacity: 0; transform: translateY(4px) scale(.2); } 20% { opacity: 1; transform: translateY(0) scale(1.15); } 30% { transform: translateY(-1px) scale(1); } 100% { opacity: 0; transform: translateY(-11px) scale(.85) rotate(-10deg); } }
@keyframes lumi-twinkle { 0%, 100% { opacity: 0; transform: scale(0) rotate(0); } 50% { opacity: 1; transform: scale(1) rotate(45deg); } }

/* ---------- ÉNERVÉ ---------- */
.lumi-logo[data-mood="angry"] .eyes,
.lumi-logo[data-mood="angry"] .m-smile,
.lumi-logo[data-mood="angry"] .arm-l-idle,
.lumi-logo[data-mood="angry"] .arm-r-idle { display: none; }
.lumi-logo[data-mood="angry"] .eyes-angry,
.lumi-logo[data-mood="angry"] .brows-angry,
.lumi-logo[data-mood="angry"] .m-grit,
.lumi-logo[data-mood="angry"] .arms-angry,
.lumi-logo[data-mood="angry"] .fx-angry { display: inline; }
.lumi-logo[data-mood="angry"] .body   { fill: #ff8a5c; stroke: #e0472f; }
.lumi-logo[data-mood="angry"] .core   { fill: #ffd2b8; }
.lumi-logo[data-mood="angry"] .cheek  { fill: #ff4f3f; opacity: .55; }
.lumi-logo[data-mood="angry"] .limb-o { stroke: #e0472f; }
.lumi-logo[data-mood="angry"] .limb-i { stroke: #ff8a5c; }
.lumi-logo[data-mood="angry"] .fist   { fill: #ff8a5c; stroke: #e0472f; }
.lumi-logo.is-animated[data-mood="angry"] .bob    { animation: lumi-shake .22s linear infinite; }
.lumi-logo.is-animated[data-mood="angry"] .flick  { animation: lumi-rage .35s ease-in-out infinite; }
.lumi-logo.is-animated[data-mood="angry"] .arm-al { animation: lumi-pump .3s ease-in-out infinite alternate; }
.lumi-logo.is-animated[data-mood="angry"] .arm-ar { animation: lumi-pump .3s ease-in-out infinite alternate-reverse; }
.lumi-logo.is-animated[data-mood="angry"] .brows-angry { animation: lumi-brow-twitch 1.5s ease-in-out infinite; }
.lumi-logo.is-animated[data-mood="angry"] .anger  { transform-origin: 50% 50%; animation: lumi-anger .5s ease-in-out infinite; }
.lumi-logo.is-animated[data-mood="angry"] .puff   { transform-origin: 50% 50%; animation: lumi-steam 1.1s ease-out infinite; }
.lumi-logo.is-animated[data-mood="angry"] .puff-2 { animation-delay: .35s; }
.lumi-logo.is-animated[data-mood="angry"] .puff-3 { animation-delay: .7s; }
@keyframes lumi-shake { 0%, 50%, 100% { transform: translateX(0); } 25% { transform: translateX(-1.2px); } 75% { transform: translateX(1.2px); } }
@keyframes lumi-rage  { 0%, 100% { transform: scaleY(1.02) skewX(0); } 30% { transform: scaleY(1.12) skewX(-3deg); } 65% { transform: scaleY(.98) skewX(3deg); } }
@keyframes lumi-pump  { from { transform: translateY(0); } to { transform: translateY(-2px); } }
@keyframes lumi-brow-twitch { 0%, 80%, 100% { transform: translateY(0); } 85%, 95% { transform: translateY(.8px); } 90% { transform: translateY(-.3px); } }
@keyframes lumi-anger { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.3); } }
@keyframes lumi-steam { 0% { opacity: 0; transform: translateY(2px) scale(.3); } 25% { opacity: .9; } 100% { opacity: 0; transform: translateY(-9px) scale(1.5); } }

/* ---------- accessibilité ---------- */
@media (prefers-reduced-motion: reduce) {
  .lumi-logo * { animation: none !important; }
  .lumi-logo .ink, .lumi-logo .t-dot1, .lumi-logo .t-dot2, .lumi-logo .t-q,
  .lumi-logo .heart, .lumi-logo .star, .lumi-logo .puff { opacity: 1; stroke-dashoffset: 0; }
}
