.proagilys-chatbot{--proagilys-chatbot-color:#0084FF;position:fixed;right:20px;bottom:80px;z-index:2147483000;font-family:Arial,sans-serif;color:#111827}
.proagilys-chatbot *{box-sizing:border-box}
.proagilys-chatbot__launcher{box-sizing:border-box;width:56px!important;min-width:56px;height:56px!important;padding:0!important;margin:0;line-height:1;overflow:hidden;border:0;border-radius:50%;background:var(--proagilys-chatbot-color);color:#fff;font-size:26px;font-weight:700;box-shadow:0 16px 40px rgba(15,23,42,.22);cursor:pointer}
.proagilys-chatbot__launcher img{width:100%;height:100%;border-radius:50%;object-fit:cover;display:block}
.proagilys-chatbot__panel{position:absolute;right:0;bottom:0;display:none;width:min(380px,calc(100vw - 32px));height:min(680px,calc(100vh - 120px));height:min(680px,calc(100dvh - 120px));overflow:hidden;border:1px solid #d1d5db;border-radius:8px;background:#fff;box-shadow:0 24px 80px rgba(15,23,42,.24)}
.proagilys-chatbot--open .proagilys-chatbot__panel{display:flex;flex-direction:column}
.proagilys-chatbot header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;color:#fff;background:var(--proagilys-chatbot-color)}
.proagilys-chatbot__title{display:flex;align-items:center;gap:10px;min-width:0}
.proagilys-chatbot__avatar{display:grid;place-items:center;flex:0 0 auto;width:34px;height:34px;border-radius:50%;background:rgba(255,255,255,.22);color:#fff;font-weight:800;overflow:hidden}
.proagilys-chatbot__avatar img{width:100%;height:100%;object-fit:cover;display:block}
.proagilys-chatbot header button{box-sizing:border-box;width:32px!important;min-width:32px;height:32px!important;padding:0!important;margin:0;border:0;border-radius:50%;color:#fff;background:transparent!important;box-shadow:none;cursor:pointer;font-size:20px;line-height:1;display:grid;place-items:center}
.proagilys-chatbot__messages{flex:1;overflow-y:auto;padding:16px;background:#f8fafc}
.proagilys-chatbot__message{width:fit-content;max-width:88%;margin:0 0 8px;padding:10px 12px;border-radius:14px;font-size:14px;line-height:1.45;white-space:pre-wrap}
.proagilys-chatbot__message--assistant{background:#fff;border:1px solid #e5e7eb;border-bottom-left-radius:4px}
.proagilys-chatbot__message--user{margin-left:auto;color:#fff;background:var(--proagilys-chatbot-color);border-bottom-right-radius:4px}
.proagilys-chatbot__message + .proagilys-chatbot__message--assistant{margin-top:-2px}
.proagilys-chatbot__suggestions{display:flex;flex-direction:column;align-items:flex-end;gap:6px;margin:12px 0 4px}
.proagilys-chatbot__chip{max-width:88%;padding:9px 14px;border:1px solid var(--proagilys-chatbot-color);border-radius:999px;background:#fff;color:var(--proagilys-chatbot-color);font:inherit;font-size:13.5px;line-height:1.3;text-align:left;cursor:pointer;transition:background .15s ease,color .15s ease}
.proagilys-chatbot__chip:hover{background:var(--proagilys-chatbot-color);color:#fff}
.proagilys-chatbot__cta-link{display:inline-block;margin:4px 0 0;padding:8px 14px;border-radius:8px;background:var(--proagilys-chatbot-accent,var(--proagilys-chatbot-color));color:#fff!important;font-weight:700;text-decoration:none!important;box-shadow:0 4px 12px rgba(15,23,42,.12)}
.proagilys-chatbot__cta-link:hover{filter:brightness(1.05)}
.proagilys-chatbot__message--user .proagilys-chatbot__cta-link{background:#fff;color:var(--proagilys-chatbot-accent,var(--proagilys-chatbot-color))!important;box-shadow:none}
.proagilys-chatbot__message a:not(.proagilys-chatbot__cta-link){color:var(--proagilys-chatbot-color);font-weight:600}
.proagilys-chatbot__message--user a:not(.proagilys-chatbot__cta-link){color:#fff}
.proagilys-chatbot__typing{display:inline-flex;align-items:center;gap:5px;min-width:42px;height:20px}
.proagilys-chatbot__typing span{width:7px;height:7px;border-radius:50%;background:#9ca3af;animation:proagilys-chatbot-typing 1s infinite ease-in-out}
.proagilys-chatbot__typing span:nth-child(2){animation-delay:.16s}
.proagilys-chatbot__typing span:nth-child(3){animation-delay:.32s}
@keyframes proagilys-chatbot-typing{0%,80%,100%{transform:translateY(0);opacity:.45}40%{transform:translateY(-4px);opacity:1}}
.proagilys-chatbot form{display:flex;gap:8px;align-items:flex-end;padding:12px;border-top:1px solid #e5e7eb;background:#fff}
.proagilys-chatbot textarea{min-height:42px;max-height:120px;flex:1;resize:none;border:1px solid #d1d5db;border-radius:22px;padding:10px 14px;font:inherit;font-size:14px}
.proagilys-chatbot textarea:focus{outline:none;border-color:var(--proagilys-chatbot-color);box-shadow:0 0 0 3px color-mix(in srgb,var(--proagilys-chatbot-color) 18%,transparent)}
.proagilys-chatbot form button{box-sizing:border-box;width:42px!important;min-width:42px;height:42px!important;border:0;border-radius:50%;padding:0!important;color:#fff;background:var(--proagilys-chatbot-send,var(--proagilys-chatbot-color));cursor:pointer;font-size:18px;font-weight:700;display:grid;place-items:center}
.proagilys-chatbot__footer,.proagilys-chatbot__footer *{font-size:10.5px!important;line-height:1.3!important;letter-spacing:0!important}
.proagilys-chatbot__footer div{margin-top:1px!important}
.proagilys-chatbot__footer{padding:4px 10px 6px;color:#9ca3af;text-align:center;background:#fff;border-top:1px solid #f1f5f9}
.proagilys-chatbot__footer a{color:#9ca3af;text-decoration:none}
.proagilys-chatbot__footer a:hover{color:var(--proagilys-chatbot-color);text-decoration:underline}
.proagilys-chatbot__teaser{position:absolute;right:0;bottom:72px;width:min(300px,calc(100vw - 32px));display:flex;flex-direction:column;align-items:flex-end;gap:6px;padding:30px 0 0;cursor:pointer;opacity:0;transform:translateY(8px);transition:opacity .25s ease,transform .25s ease}
.proagilys-chatbot__teaser--visible{opacity:1;transform:translateY(0)}
.proagilys-chatbot__teaser-close{position:absolute;top:0;right:0;box-sizing:border-box;width:26px!important;min-width:26px;height:26px!important;padding:0!important;margin:0;border:0;border-radius:50%;background:#fff;color:#6b7280;font-size:18px;line-height:1;cursor:pointer;box-shadow:0 4px 16px rgba(15,23,42,.18);display:grid;place-items:center;transition:color .15s ease}
.proagilys-chatbot__teaser-close:hover{color:#111827}
.proagilys-chatbot__teaser-bubble{max-width:100%;padding:10px 14px;border-radius:14px;background:#fff;color:#111827;font-size:14px;line-height:1.45;box-shadow:0 6px 20px rgba(15,23,42,.12);animation:proagilys-chatbot-teaser-pop .35s ease both}
.proagilys-chatbot__teaser-bubble:nth-child(2){animation-delay:.05s}
.proagilys-chatbot__teaser-bubble:nth-child(3){animation-delay:.15s}
.proagilys-chatbot__teaser-bubble:nth-child(4){animation-delay:.25s}
@keyframes proagilys-chatbot-teaser-pop{from{opacity:0;transform:translateY(6px) scale(.96)}to{opacity:1;transform:translateY(0) scale(1)}}
.proagilys-chatbot--open .proagilys-chatbot__teaser{display:none}
@media(max-width:480px){.proagilys-chatbot{right:12px;bottom:72px}.proagilys-chatbot--open .proagilys-chatbot__panel{position:fixed;top:8px;right:8px;bottom:8px;left:8px;width:auto;height:auto;max-height:none}.proagilys-chatbot--open .proagilys-chatbot__launcher{visibility:hidden}.proagilys-chatbot__teaser{right:-4px;width:calc(100vw - 24px)}}
/* 0.5.1 (30/11/2026) : le theme Astra donne aux boutons un padding de 16px 32px qui ecrasait la photo ; la bulle remonte au-dessus de la fleche "retour en haut" d'Astra (#ast-scroll-top) ; hauteur de la fenetre reduite d'autant ; croix de fermeture sans pastille, padding Astra neutralise sur tous les boutons. 0.5.3 : fenetre ouverte posee sur la bulle (ordinateur) et en plein ecran avec 8px de marge (telephone, 100vh de Chrome mobile coupait l'en-tete). 0.5.4 : bas de fenetre plus petit (Astra imposait sa taille de texte et son interligne). */
