.alur-ia{position:fixed;right:90px;bottom:69.5px;z-index:9997;font-family:Arial,sans-serif;color:#0f172a}
.alur-ia *{box-sizing:border-box}
.alur-ia__toggle{display:block;width:140px;height:93px;padding:0;border:0;background:transparent;cursor:pointer;filter:drop-shadow(0 7px 9px rgba(8,31,72,.22))}
.alur-ia__toggle img{display:block;width:100%;height:100%;object-fit:contain}
.alur-ia__toggle:focus-visible,.alur-ia button:focus-visible,.alur-ia input:focus-visible{outline:2px solid #2563eb;outline-offset:2px}
.alur-ia__panel{position:absolute;right:0;bottom:calc(100% + 8px);width:min(340px,calc(100vw - 24px));padding:14px;border:1px solid #dbe6f4;border-radius:18px;background:#fff;box-shadow:0 12px 32px rgba(15,35,75,.2)}
.alur-ia__panel[hidden]{display:none}
.alur-ia__heading{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:17px}
.alur-ia__close{border:0;background:transparent;color:#334155;cursor:pointer;font-size:24px;line-height:1}
.alur-ia__intro{margin:6px 0 10px;font-size:12px;line-height:1.4;color:#475569}
.alur-ia__messages{display:flex;flex-direction:column;gap:8px;max-height:min(260px,38vh);overflow-y:auto;margin:0 0 10px}
.alur-ia__message{margin:0;padding:9px 10px;border-radius:12px;background:#eef5ff;font-size:13px;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere}
.alur-ia__message--user{align-self:flex-end;max-width:90%;background:#e9f8ee}
.alur-ia__links{display:flex;flex-direction:column;gap:4px;margin:3px 0 0;padding:0;list-style:none}
.alur-ia__links a{color:#1856a6;text-decoration:underline;font-size:12px}
.alur-ia__form{display:flex;align-items:center;gap:5px;padding:6px;border:1px solid #dbe6f4;border-radius:12px}
.alur-ia__form input{min-width:0;flex:1;border:0;background:transparent;color:#0f172a;font:13px Arial,sans-serif;outline:0}
.alur-ia__form button,.alur-ia__voice{display:grid;place-items:center;width:34px;height:34px;flex:0 0 34px;border:0;border-radius:9px;background:#eef5ff;color:#1856a6;cursor:pointer}
.alur-ia__form .alur-ia__send{background:#2563eb;color:#fff}
.alur-ia__form button:disabled{opacity:.55;cursor:wait}
.alur-ia__mic[aria-pressed="true"],.alur-ia__voice[aria-pressed="true"]{outline:2px solid #2563eb}
.alur-ia__controls{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:7px}
.alur-ia__voice{width:auto;flex:0 1 auto;padding:0 8px;font-size:11px}
.alur-ia__hint{margin:0;color:#64748b;font-size:10px;line-height:1.3}
.alur-ia__status{min-height:1em;margin:6px 0 0;color:#475569;font-size:11px;line-height:1.35}
@media(max-width:600px){.alur-ia{right:78px;bottom:64px}.alur-ia__toggle{width:120px;height:80px}.alur-ia__panel{right:-66px;max-height:calc(100vh - 110px);overflow-y:auto}}
@media print{.alur-ia{display:none}}
/* Le thème impose padding et ombre à tous les boutons et champs : on les neutralise dans la fenêtre. */
.alur-ia .alur-ia__form button{padding:0;margin:0;width:38px;height:38px;flex:0 0 38px;min-width:0;line-height:1;font-size:16px;box-shadow:none}
.alur-ia .alur-ia__form input{padding:8px 10px;margin:0;height:38px;box-shadow:none}
.alur-ia .alur-ia__voice{width:auto;padding:0 12px;box-shadow:none;line-height:1}

/* ALUR IA placé au-dessus de WhatsApp, avec un appel à la question visible. */
.alur-ia{right:12px;bottom:160px;width:132px}
.alur-ia__toggle{display:flex;flex-direction:column;align-items:center;width:132px;height:auto;filter:none}
.alur-ia__toggle img{width:132px;height:88px;object-fit:contain;filter:drop-shadow(0 7px 9px rgba(8,31,72,.22))}
.alur-ia__toggle-label{display:block;width:132px;padding:7px 6px;border:1px solid #dbe6f4;border-radius:12px;background:#fff;box-shadow:0 5px 16px rgba(15,35,75,.17);color:#164a88;font:700 11.5px/1.25 Arial,sans-serif;text-align:center}
.alur-ia__panel{right:0;bottom:calc(100% + 10px)}
@media(max-width:600px){.alur-ia{right:7px;bottom:150px;width:108px}.alur-ia__toggle{width:108px}.alur-ia__toggle img{width:108px;height:72px}.alur-ia__toggle-label{width:108px;padding:6px 3px;font-size:10.5px}.alur-ia__panel{right:0;max-height:calc(100dvh - 280px);overflow-y:auto}}

/* Fenêtre plus grande et réponses plus lisibles. */
.alur-ia .alur-ia__panel{width:min(390px,calc(100vw - 24px));max-height:calc(100dvh - 200px);display:flex;flex-direction:column}
.alur-ia .alur-ia__panel[hidden]{display:none}
.alur-ia .alur-ia__messages{flex:1 1 auto;min-height:120px;max-height:none;overflow-y:auto;position:relative}
.alur-ia .alur-ia__message{font-size:14px;line-height:1.5;padding:10px 12px}
.alur-ia .alur-ia__message a{color:#1856a6;text-decoration:underline;font-weight:600;overflow-wrap:anywhere}
/* Téléphone : la fenêtre s'ouvre en bas de l'écran sur toute la largeur. */
@media(max-width:600px){.alur-ia .alur-ia__panel{position:fixed;left:8px;right:8px;bottom:8px;width:auto;max-height:82dvh;z-index:10000}}
.alur-ia .alur-ia__close{display:grid;place-items:center;width:32px;height:32px;padding:0;margin:0;border:0;border-radius:8px;background:transparent;box-shadow:none;color:#334155;font-size:22px;line-height:1}
.alur-ia .alur-ia__close:hover{background:#eef5ff}
