/* Assistant d'administration (14/10/2026, js/50-assistant.js). */
.asst-lanceur { position: fixed; right: 20px; bottom: 20px; z-index: 900; padding: 12px 18px; border: 0; border-radius: 999px;
  background: var(--btn); color: var(--btn-ink); font-weight: 600; box-shadow: 0 6px 18px rgba(10, 34, 64, .28); cursor: pointer; }
.asst-lanceur:focus-visible { outline: 3px solid var(--agl-or); outline-offset: 2px; }
/* 15/10/2026 : bouton fixe présent : marge basse de la zone principale, la fin des contenus (pagination, dernière ligne,
   boutons) se dégage au-dessus du bouton au lieu d'être recouverte. */
@media screen { body.avec-assistant .zone { padding-bottom: 96px; } }
.asst-panneau { position: fixed; right: 20px; bottom: 76px; z-index: 901; width: min(440px, calc(100vw - 32px));
  height: min(640px, calc(100vh - 110px)); display: flex; flex-direction: column; background: var(--panel); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius, 10px); box-shadow: 0 12px 36px rgba(10, 34, 64, .3); }
.asst-panneau[hidden] { display: none; }
.asst-panneau.integre { position: static; width: 100%; height: min(72vh, 760px); box-shadow: none; }
.asst-panneau.integre .asst-fermer { display: none; }
.asst-panneau header { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px;
  background: var(--menu-bg); color: #fff; border-radius: var(--radius, 10px) var(--radius, 10px) 0 0; }
.asst-fermer { background: none; border: 0; color: inherit; font-size: 24px; line-height: 1; cursor: pointer; min-height: 0; }
.asst-fil { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--panel2); }
.asst-msg { max-width: 92%; padding: 10px 12px; border-radius: 10px; line-height: 1.45; overflow-wrap: anywhere; }
.asst-user { align-self: flex-end; background: var(--hl); }
.asst-assistant { align-self: flex-start; background: var(--panel); border: 1px solid var(--line); }
.asst-attente { opacity: .7; font-style: italic; }
.asst-texte p { margin: 0 0 6px; }
.asst-texte p:last-child { margin-bottom: 0; }
.asst-texte ul { margin: 4px 0 6px; padding-left: 20px; }
.asst-texte code, .asst-sql pre { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; }
.asst-texte code { background: var(--chip); padding: 1px 4px; border-radius: 4px; }
.asst-sql { margin-top: 8px; font-size: 13px; }
.asst-sql pre { white-space: pre-wrap; background: var(--chip); padding: 8px; border-radius: 6px; margin: 6px 0 0; max-height: 220px; overflow: auto; }
.asst-correction { align-self: stretch; padding: 12px; border: 1px solid var(--warn); border-left-width: 4px; border-radius: 8px; background: var(--warn-bg); }
.asst-titre { font-weight: 700; margin-bottom: 6px; }
.asst-etat { margin-top: 8px; font-size: 13px; }
.asst-etat.ok { color: var(--ok); font-weight: 600; }
.asst-etat.bad { color: var(--bad); font-weight: 600; }
.asst-boutons { display: flex; gap: 8px; margin-top: 8px; }
.asst-suggestions { display: flex; flex-wrap: wrap; gap: 6px; }
.asst-suggestion { border: 1px solid var(--line); background: var(--panel); color: var(--acc); border-radius: 999px; padding: 6px 10px;
  font-size: 13px; cursor: pointer; min-height: 0; }
.asst-saisie { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.asst-saisie textarea { flex: 1; resize: none; min-height: 44px; }
@media (max-width: 600px) {
  .asst-panneau { right: 16px; left: 16px; width: auto; bottom: 72px; height: calc(100vh - 100px); }
  .asst-lanceur { right: 16px; bottom: 16px; }
}
@media print { .asst-lanceur, .asst-panneau { display: none !important; } }
