/* govioletgo — la bulle de l’assistant, sur toutes les pages (25.10.2026).
   Ses couleurs sont posées sur ses propres éléments : elle ne dépend d’aucune autre feuille. */
#assistant-bulle,#assistant{--violet:#5b34c4;--violet-fort:#4524a3;--sur-violet:#fff;--encre:#1b1630;--gris:#5b5570;--trait:#e8e5ef;--trait-champ:#8a83a3;--fond:#fbfaff;--carte:#fff;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;line-height:1.5;box-sizing:border-box}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) #assistant-bulle,:root:not([data-theme="light"]) #assistant{--violet:#a98bff;--violet-fort:#c3adff;--sur-violet:#120f1c;--encre:#f2effa;--gris:#b3adc7;--trait:#2d2840;--trait-champ:#6f6890;--fond:#120f1c;--carte:#1a1628}}
:root[data-theme="dark"] #assistant-bulle,:root[data-theme="dark"] #assistant{--violet:#a98bff;--violet-fort:#c3adff;--sur-violet:#120f1c;--encre:#f2effa;--gris:#b3adc7;--trait:#2d2840;--trait-champ:#6f6890;--fond:#120f1c;--carte:#1a1628}
#assistant *{box-sizing:border-box}
#assistant[hidden],#assistant-bulle[hidden]{display:none!important}
#assistant .sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
#assistant .bouton{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:10px;padding:8px 12px;font:inherit;font-size:.9rem;font-weight:700;cursor:pointer;background:var(--violet);color:var(--sur-violet)}
#assistant .avert a{color:var(--violet)}
#assistant-bulle{position:fixed;right:16px;bottom:calc(16px + env(safe-area-inset-bottom));min-height:48px;z-index:40;display:flex;align-items:center;gap:8px;border:0;border-radius:999px;padding:12px 16px;background:var(--violet);color:var(--sur-violet);font:inherit;font-weight:700;box-shadow:0 6px 20px rgba(27,22,48,.25);cursor:pointer}
#assistant-bulle svg{width:20px;height:20px}
#assistant-bulle.rond{padding:14px}
#assistant-bulle.rond span{display:none}
#assistant{position:fixed;right:16px;bottom:16px;z-index:41;width:min(380px,calc(100vw - 32px));height:min(560px,calc(100vh - 32px));display:flex;flex-direction:column;background:var(--carte);border:1px solid var(--trait-champ);border-radius:18px;box-shadow:0 12px 40px rgba(27,22,48,.3)}
@media (max-width:520px){#assistant{right:0;bottom:0;width:100vw;height:85vh;border-radius:18px 18px 0 0}}
#assistant header{display:flex;align-items:center;gap:8px;padding:12px 14px;border-bottom:1px solid var(--trait)}
#assistant header b{flex:1}
#assistant .fermer{border:0;background:none;color:var(--encre);font-size:1.4rem;cursor:pointer;width:40px;height:40px;border-radius:50%}
#assistant .avert{font-size:.8rem;color:var(--gris);padding:8px 14px;margin:0;border-bottom:1px solid var(--trait)}
#assistant #fil{flex:1;overflow:auto;padding:12px 14px;display:flex;flex-direction:column;gap:10px}
#assistant .msg{max-width:90%;padding:9px 12px;border-radius:14px;font-size:.95rem;white-space:pre-line}
#assistant .msg.moi{align-self:flex-end;background:var(--violet);color:var(--sur-violet);border-bottom-right-radius:4px}
#assistant .msg.bot{align-self:flex-start;background:var(--fond);border:1px solid var(--trait);border-bottom-left-radius:4px}
#assistant .msg a{color:inherit}
#assistant #idees{display:flex;flex-wrap:wrap;gap:6px;padding:0 14px 8px}
#assistant #idees button{border:1px solid var(--trait-champ);background:var(--carte);color:var(--encre);border-radius:999px;padding:6px 10px;font:inherit;font-size:.85rem;cursor:pointer;text-align:left}
#assistant #form-assistant{display:flex;gap:8px;padding:10px 14px;border-top:1px solid var(--trait)}
#assistant #form-assistant input{flex:1;min-width:0;padding:10px 12px;border-radius:12px;border:1px solid var(--trait-champ);background:var(--fond);color:var(--encre);font:inherit}
