/* Assistant IA de L'Ecole des Coachs : bulle de chat. Couleurs = jetons du site (theme clair/sombre). */
#lca-launch{position:fixed;right:22px;bottom:22px;z-index:10001;display:flex;align-items:center;gap:10px;padding:6px 18px 6px 6px;border-radius:100px;border:1px solid var(--border-l);background:var(--black-2);color:var(--white);font:600 .8rem/1.25 Inter,system-ui,sans-serif;text-align:left;cursor:pointer;box-shadow:0 14px 34px -12px rgba(0,0,0,.45);transition:transform .25s ease,opacity .25s ease}
#lca-launch:hover{transform:translateY(-2px)}
#lca-launch .lca-pa{position:relative;width:40px;height:40px;border-radius:50%;overflow:visible;flex-shrink:0}
#lca-launch .lca-pa img{width:40px;height:40px;border-radius:50%;object-fit:cover;object-position:50% 20%;display:block;border:1px solid var(--border)}
#lca-launch .lca-pa:after{content:"";position:absolute;top:-2px;right:-2px;width:11px;height:11px;border-radius:50%;background:#22c55e;border:2px solid var(--black-2);animation:lcaPing 2.4s ease-out infinite}
#lca-launch .lca-tx{display:flex;flex-direction:column}#lca-launch .lca-tx small{font-weight:400;font-size:.7rem;color:var(--light)}
html[data-theme="light"] #lca-launch{background:#1a1a1a;border-color:#333;color:#fff}html[data-theme="light"] #lca-launch .lca-tx small{color:#aaa}
@keyframes lcaPing{0%{box-shadow:0 0 0 0 rgba(34,197,94,.55)}70%,100%{box-shadow:0 0 0 8px rgba(34,197,94,0)}}
#lca-launch.lca-hide{opacity:0;pointer-events:none;transform:translateY(10px)}
#lca-panel{position:fixed;right:22px;bottom:22px;z-index:99990;width:min(392px,calc(100vw - 32px));height:min(600px,calc(100vh - 40px));display:none;flex-direction:column;background:var(--black);color:var(--white);border:1px solid var(--border-l);border-radius:20px;box-shadow:0 30px 70px -20px rgba(0,0,0,.55);overflow:hidden;font-family:Inter,system-ui,sans-serif}
#lca-panel.lca-open{display:flex;animation:lcaIn .32s cubic-bezier(.2,.8,.2,1)}
@keyframes lcaIn{from{opacity:0;transform:translateY(16px) scale(.98)}to{opacity:1;transform:none}}
.lca-head{display:flex;align-items:center;gap:12px;padding:14px 16px;border-bottom:1px solid var(--border);background:var(--black-2)}
.lca-av{width:40px;height:40px;border-radius:50%;overflow:hidden;background:var(--black-3);flex-shrink:0}.lca-av img{width:100%;height:100%;object-fit:cover;object-position:50% 20%;display:block}
.lca-row{display:flex;gap:8px;align-items:flex-start;max-width:92%;align-self:flex-start}.lca-row .lca-m{max-width:none}.lca-mav{width:26px;height:26px;border-radius:50%;overflow:hidden;flex-shrink:0;margin-top:2px;background:var(--black-3)}.lca-mav img{width:100%;height:100%;object-fit:cover;object-position:50% 20%;display:block}
.lca-ht{flex:1;min-width:0}.lca-ht b{display:block;font-size:.92rem;font-weight:600;color:var(--white)}.lca-ht span{display:block;font-size:.74rem;color:var(--light)}
.lca-x{background:none;border:0;color:var(--white);font-size:1.5rem;line-height:1;cursor:pointer;padding:6px 10px;border-radius:8px}.lca-x:hover{background:var(--white-08)}
.lca-log{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:10px;scroll-behavior:smooth;overscroll-behavior:contain}
.lca-m{max-width:86%;padding:11px 14px;border-radius:16px;font-size:.9rem;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere;animation:lcaMsg .3s ease}
@keyframes lcaMsg{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.lca-m.bot{align-self:flex-start;background:var(--black-2);color:var(--white);border:1px solid var(--border);border-bottom-left-radius:5px}
.lca-m.me{align-self:flex-end;background:var(--white);color:var(--black);border-bottom-right-radius:5px}
.lca-m a{color:inherit;text-decoration:underline;text-underline-offset:2px}
.lca-typing{display:flex;gap:5px;padding:14px 16px}.lca-typing i{width:7px;height:7px;border-radius:50%;background:var(--light);animation:lcaB 1.1s infinite ease-in-out}.lca-typing i:nth-child(2){animation-delay:.15s}.lca-typing i:nth-child(3){animation-delay:.3s}
@keyframes lcaB{0%,80%,100%{opacity:.3;transform:translateY(0)}40%{opacity:1;transform:translateY(-4px)}}
.lca-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:2px}
.lca-chip,.lca-btn{font:500 .84rem/1.3 Inter,system-ui,sans-serif;border-radius:100px;cursor:pointer;text-decoration:none;text-align:left}
.lca-chip{padding:9px 14px;border:1px solid var(--border-l);background:var(--black);color:var(--white);transition:background .2s,color .2s}
.lca-chip:hover{background:var(--white);color:var(--black)}
.lca-btn{display:inline-flex;align-items:center;gap:8px;padding:12px 18px;border:0;background:var(--white);color:var(--black);font-weight:600;align-self:flex-start;box-shadow:0 8px 20px -10px rgba(0,0,0,.5)}
.lca-btn:hover{opacity:.9}
.lca-form{align-self:stretch;display:flex;flex-direction:column;gap:8px;padding:12px;border:1px solid var(--border-l);border-radius:14px;background:var(--black-2)}
.lca-form input[type=text],.lca-form input[type=email]{width:100%;padding:11px 12px;border-radius:10px;border:1px solid var(--border-l);background:var(--black);color:var(--white);font:.9rem Inter,system-ui,sans-serif}
.lca-form label{display:flex;gap:8px;font-size:.74rem;line-height:1.45;color:var(--light);align-items:flex-start}
.lca-form label input{margin-top:2px;flex-shrink:0}
.lca-form a{color:var(--white)}
.lca-err{font-size:.76rem;color:var(--white);min-height:1em}
.lca-in{display:flex;gap:8px;padding:12px;border-top:1px solid var(--border);background:var(--black-2)}
.lca-in textarea{flex:1;resize:none;height:44px;max-height:110px;padding:12px 14px;border-radius:14px;border:1px solid var(--border-l);background:var(--black);color:var(--white);font:.9rem/1.3 Inter,system-ui,sans-serif}
.lca-in textarea:focus,.lca-form input:focus{outline:2px solid var(--white);outline-offset:1px}
.lca-send{width:44px;height:44px;border-radius:50%;border:0;background:var(--white);color:var(--black);cursor:pointer;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.lca-send:disabled{opacity:.4;cursor:default}
.lca-foot{padding:0 14px 10px;font-size:.68rem;color:var(--light);text-align:center;background:var(--black-2)}
.lca-foot a{color:var(--light);text-decoration:underline}
@media (max-width:640px){
 #lca-launch{right:16px;bottom:16px;padding:6px}#lca-launch .lca-tx{display:none}
 #lca-panel{left:0;right:0;bottom:0;top:0;width:auto;height:auto;border-radius:0;border:0}
 .lca-in textarea{font-size:16px}
}
@media (prefers-reduced-motion:reduce){#lca-launch .lca-dot:after,#lca-panel.lca-open,.lca-m,.lca-typing i{animation:none!important}}

html.lca-on .gr-badge,html.lca-on .wa-float,html.lca-on .ac-sticky{display:none!important}

.lca-cal{position:absolute;inset:0;z-index:5;display:flex;flex-direction:column;background:var(--black)}
.lca-calbar{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 14px;border-bottom:1px solid var(--border);background:var(--black-2)}
.lca-calback{background:none;border:0;color:var(--white);font:600 .86rem Inter,system-ui,sans-serif;cursor:pointer;padding:6px 8px;border-radius:8px}.lca-calback:hover{background:var(--white-08)}
.lca-calext{font-size:.76rem;color:var(--light);text-decoration:underline}
.lca-cal iframe{flex:1;width:100%;border:0;background:#fff}
.lca-nudge{position:fixed;right:22px;bottom:184px;z-index:10002;max-width:min(300px,calc(100vw - 44px));display:flex;align-items:flex-start;gap:4px;background:var(--white);color:var(--black);border-radius:18px 18px 4px 18px;box-shadow:0 18px 40px -12px rgba(0,0,0,.5);animation:lcaMsg .4s ease}
.lca-nudge-t{flex:1;text-align:left;background:none;border:0;color:inherit;font:500 .86rem/1.45 Inter,system-ui,sans-serif;padding:14px 4px 14px 16px;cursor:pointer}
.lca-nudge-x{background:none;border:0;color:inherit;font-size:1.2rem;line-height:1;padding:8px 12px 8px 4px;cursor:pointer;opacity:.6}
@media (max-width:640px){.lca-nudge{right:16px;bottom:176px}}
html.lca-on .lca-nudge{display:none}

/* anti-chevauchement : au-dessus du bandeau cookies, du badge Google et de WhatsApp */
body:has(#leco-cookie-banner.show) #lca-launch{bottom:84px}
body:has(#leco-cookie-banner.show) .lca-nudge{bottom:246px}
@media (max-width:640px){body:has(#leco-cookie-banner.show) #lca-launch{bottom:96px}body:has(#leco-cookie-banner.show) .lca-nudge{bottom:176px}.lca-nudge{bottom:84px}}
#lca-launch{box-shadow:0 0 0 3px rgba(34,197,94,.0),0 16px 38px -10px rgba(0,0,0,.6)}
#lca-launch .lca-pa,#lca-launch .lca-pa img{width:46px;height:46px}
#lca-launch{padding:6px 20px 6px 6px;font-size:.84rem}
@media (max-width:640px){#lca-launch{padding:5px}#lca-launch .lca-pa,#lca-launch .lca-pa img{width:52px;height:52px}}
@keyframes lcaGlow{0%,100%{box-shadow:0 0 0 0 rgba(34,197,94,.45),0 16px 38px -10px rgba(0,0,0,.6)}50%{box-shadow:0 0 0 9px rgba(34,197,94,0),0 16px 38px -10px rgba(0,0,0,.6)}}
#lca-launch:not(.lca-hide){animation:lcaGlow 3s ease-out infinite}
@media (prefers-reduced-motion:reduce){#lca-launch{animation:none!important}}

/* émotions de Bamboo */
.lca-av{width:46px;height:46px;border-radius:50%;overflow:hidden;background:#f2ebe5;flex-shrink:0;border:2px solid rgba(34,197,94,.55)}
.lca-av img{width:100%;height:100%;object-fit:cover;object-position:50% 30%;display:block;transition:opacity .2s}
.lca-mav{width:30px;height:30px;border-radius:50%;overflow:hidden;background:#f2ebe5;flex-shrink:0}.lca-mav img{width:100%;height:100%;object-fit:cover;display:block}
.lca-hero{display:flex;justify-content:center;padding:6px 0 2px}.lca-hero img{width:96px;height:96px;border-radius:24px;object-fit:cover;background:#f2ebe5;box-shadow:0 10px 28px -12px rgba(0,0,0,.5);animation:lcaHop .9s ease both}
@keyframes lcaHop{0%{transform:translateY(14px) scale(.9);opacity:0}60%{transform:translateY(-4px) scale(1.03);opacity:1}100%{transform:none}}
@media (prefers-reduced-motion:reduce){.lca-hero img{animation:none}}
.lca-nudge{display:none!important}
@media (min-width:641px){body:has(#leco-cookie-banner.show) #lca-panel{bottom:84px;height:min(600px,calc(100vh - 108px))}}
/* le panda remplit tout le cercle */
.lca-av img,.lca-mav img{transform:scale(1.55);transform-origin:50% 34%;object-position:50% 50%}
.lca-av{border-width:2px;background:#f2ebe5}

/* le panda du bouton remplit 100% du cercle */
#lca-launch .lca-pi{display:block;width:100%;height:100%;border-radius:50%;overflow:hidden;background:#f2ebe5;border:1px solid var(--border);box-sizing:border-box}
#lca-launch .lca-pa .lca-pi img{width:100%;height:100%;border:0;border-radius:0;transform:scale(1.12);transform-origin:50% 50%;object-position:50% 50%}
