/* Bulle Pasc ARA IA (cockpit et dseco.fr) — styles autonomes, indépendants du thème du site. */
.pa-bulle { position: fixed; right: 20px; bottom: 20px; z-index: 900; font-family: "Segoe UI", system-ui, Arial, sans-serif; color: #172033; }
.pa-bulle[hidden] { display: none; }
.pa-bulle .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pa-lanceur { display: flex; align-items: center; gap: 8px; padding: 4px 16px 4px 4px; border: 0; border-radius: 999px; cursor: pointer;
  background: #fff; color: #10243e; font-family: inherit; font-weight: 600; font-size: 15px; line-height: 1; box-shadow: 0 8px 24px rgba(16, 36, 62, .28); transition: transform .15s ease, box-shadow .15s ease; }
.pa-lanceur:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(16, 36, 62, .34); }
.pa-lanceur:focus-visible, .pa-icone:focus-visible, .pa-envoyer:focus-visible { outline: 3px solid #0860ed; outline-offset: 2px; }
.pa-lanceur img { width: 56px; height: 56px; border-radius: 50%; display: block; background: #050b18; box-shadow: 0 0 0 2px #4cc3ff; }
.pa-bulle--ouverte .pa-lanceur { display: none; }
.pa-fenetre { width: min(380px, calc(100vw - 24px)); height: min(560px, calc(100vh - 40px)); display: flex; flex-direction: column;
  background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 18px 48px rgba(16, 36, 62, .35); border: 1px solid #dbe2ea; }
.pa-fenetre[hidden] { display: none; }
.pa-entete { display: flex !important; flex: none; align-items: center; gap: 10px; padding: 12px 12px 12px 14px; color: #fff; background: linear-gradient(120deg, #0860ed, #19a974); }
.pa-entete img { width: 40px; height: 40px; border-radius: 50%; background: #050b18; box-shadow: 0 0 0 2px rgba(255,255,255,.85); flex: none; }
.pa-entete div { flex: 1; min-width: 0; display: grid; gap: 2px; }
.pa-entete strong { font-size: 16px; }
.pa-entete small { font-size: 12px; opacity: .9; }
.pa-icone { width: 32px; height: 32px; border: 0; border-radius: 8px; background: rgba(255, 255, 255, .18); color: #fff; font-size: 16px; cursor: pointer; flex: none; }
.pa-icone:hover { background: rgba(255, 255, 255, .3); }
.pa-fil { flex: 1; min-height: 0; overflow-y: auto; padding: 14px; display: grid; align-content: start; gap: 12px; background: #f5f7fa; }
.pa-msg { display: flex; gap: 8px; align-items: flex-start; max-width: 100%; }
.pa-msg p { margin: 0; white-space: pre-line; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.pa-msg--moi { justify-content: flex-end; }
.pa-msg--moi p { background: #0860ed; color: #fff; padding: 9px 12px; border-radius: 14px 14px 4px 14px; max-width: 85%; }
.pa-msg__avatar { width: 28px; height: 28px; border-radius: 50%; flex: none; background: #050b18; }
.pa-msg__corps { background: #fff; border: 1px solid #dbe2ea; padding: 9px 12px; border-radius: 14px 14px 14px 4px; display: grid; gap: 8px; min-width: 0; }
.pa-msg--erreur .pa-msg__corps { border-color: #f1b5b5; background: #fff5f5; color: #8a1c1c; }
.pa-extrait { margin: 0; padding: 6px 10px; border-left: 3px solid #19a974; background: #f3faf7; border-radius: 0 8px 8px 0; display: grid; gap: 4px; }
.pa-extrait strong { font-size: 13px; color: #10243e; }
.pa-extrait p { font-size: 13px; }
.pa-sources { font-size: 12px !important; color: #667085; }
.pa-sources a { color: #0860ed; }
.pa-attente { letter-spacing: 3px; color: #667085; animation: pa-pulse 1s infinite alternate; }
@keyframes pa-pulse { from { opacity: .35; } to { opacity: 1; } }
.pa-saisie { display: flex; gap: 8px; padding: 10px; border-top: 1px solid #dbe2ea; background: #fff; }
.pa-saisie textarea { flex: 1; resize: none; border: 1px solid #c9d3de; border-radius: 10px; padding: 8px 10px; font-family: inherit; font-size: 14px; line-height: 1.4; color: inherit; }
.pa-saisie textarea:focus { outline: 2px solid #0860ed; border-color: transparent; }
.pa-envoyer { border: 0; border-radius: 10px; padding: 0 14px; background: #0860ed; color: #fff; font-family: inherit; font-weight: 600; font-size: 14px; cursor: pointer; }
.pa-envoyer:disabled { opacity: .55; cursor: wait; }
@media (max-width: 520px) {
  .pa-bulle { right: 12px; bottom: 12px; }
  .pa-lanceur__texte { display: none; }
  .pa-lanceur { padding: 4px; }
  .pa-bulle--ouverte { left: 8px; right: 8px; bottom: 8px; }
  .pa-fenetre { width: 100%; height: calc(100vh - 16px); }
}
@media (prefers-reduced-motion: reduce) { .pa-lanceur, .pa-attente { transition: none; animation: none; } }
@media print { .pa-bulle { display: none !important; } }
