/* Toutes les pages · dist/styles/chatbot.css */
.da-widget {
  --da-ink:#162345; --da-navy:#091d65; --da-paper:#fffdf8; --da-line:#d8d0be; --da-gold:#f0ca78;
  --da-sans:var(--sans,"Open Sans",Arial,sans-serif); --da-serif:var(--serif,Georgia,serif);
  position:fixed; right:max(18px,env(safe-area-inset-right)); bottom:max(16px,env(safe-area-inset-bottom));
  z-index:90; margin:0; color:var(--da-ink); font:400 15px/1.48 var(--da-sans);
}
.da-widget *, .da-widget *::before, .da-widget *::after { box-sizing:border-box; }
.da-widget [hidden], .da-widget[hidden], .da-widget .da-launch[hidden] { display:none!important; }
html.da-has-agent { scroll-padding-bottom:90px; }
body.da-with-agent::after { content:""; display:block; height:70px; background:#f7f4ed; }
.da-widget button, .da-widget input { font:inherit; color:inherit; }
.da-widget button, .da-widget summary { cursor:pointer; }
.da-widget button:focus-visible, .da-widget a:focus-visible, .da-widget summary:focus-visible, .da-log:focus-visible { outline:3px solid #9c7831; outline-offset:2px; }
.da-launch { min-height:48px; display:inline-flex; align-items:center; justify-content:center; gap:9px; padding:9px 16px; border-radius:30px; border:1px solid #d1ad5c; background:linear-gradient(112deg,#071955,#11297e); color:#fff8e4!important; font-size:14px!important; font-weight:600!important; box-shadow:0 4px 18px #0c1d3b3d; }
.da-launch svg,.da-header svg { flex:none; color:var(--da-gold); }
.da-launch:hover { background:#182e7c; }
.da-panel { width:min(390px,calc(100vw - 34px)); height:min(590px,calc(100vh - 36px)); height:min(590px,calc(100dvh - 36px)); margin:0; padding:0; display:flex; flex-direction:column; background:var(--da-paper); border:1px solid #b8a16c; border-radius:13px; overflow:hidden; box-shadow:0 12px 48px #07152f3b; animation:da-chat-rise .18s ease-out; }
@keyframes da-chat-rise { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:none; } }
.da-header { display:flex; flex:0 0 auto; align-items:center; justify-content:space-between; padding:13px 15px 13px 19px; background:linear-gradient(105deg,#07184f,#102b83); color:#fff7de; }
.da-house { color:#eed08c; font:600 10px/1.4 var(--da-sans); letter-spacing:.13em; text-transform:uppercase; }
.da-header h2 { margin:2px 0; color:inherit; font:400 26px/1.1 var(--da-serif); letter-spacing:0; }
.da-close { display:grid; place-items:center; width:40px; height:40px; background:transparent; border:1px solid #b6a67788; border-radius:50%; }
.da-log { flex:1 1 0; min-height:70px; overflow:auto; overflow-wrap:anywhere; overscroll-behavior:contain; padding:18px 14px; color:#23344a; scrollbar-width:thin; }
.da-turn { width:fit-content; max-width:97%; margin:0 0 14px; }
.da-turn-user { margin-left:auto; text-align:right; }
.da-author { display:block; margin:0 2px 4px; font:600 11px/1.4 var(--da-sans); color:#67604f; }
.da-message { padding:10px 12px; text-align:left; background:#f1eee6; border-radius:3px 12px 12px; }
.da-turn-user .da-message { background:#e8edf9; border-radius:12px 3px 12px 12px; }
.da-message p, .da-message strong { font-size:14px; line-height:1.55; }
.da-message p { margin:0; }
.da-message p + p { margin-top:7px; }
.da-message strong { display:block; }
.da-message a.da-source, .da-message a.da-action { display:block; width:fit-content; margin-top:9px; color:#17366f; font-size:13px; text-decoration:underline; text-underline-offset:2px; }
.da-message .local-gen-sources { font-size:13px; }
.da-start { display:flex; flex-wrap:wrap; gap:6px; padding:0 14px 12px; }
.da-start button { border:1px solid #c5b58f; padding:6px 9px; min-height:34px; border-radius:6px; background:#fffcf3; color:#203566; font-size:12px; }
.da-options { flex:0 0 auto; border-top:1px solid var(--da-line); background:#f8f6ef; }
.da-options summary { padding:6px 14px; min-height:30px; color:#4e5665; font-size:12px; }
.da-options-body { max-height:22dvh; overflow:auto; padding:4px 14px 8px; }
.da-options-body [data-agent-generatif] { display:grid; gap:4px; font-size:12px; }
.da-options-body .local-gen-toggle { justify-self:start; }
.da-erase { padding:5px 0; background:none; border:0; font-size:12px!important; text-decoration:underline; }
.da-form { flex:0 0 auto; border-top:1px solid var(--da-line); padding:10px 12px 8px; }
.da-input-row { display:flex; align-items:stretch; gap:6px; }
.da-input-row input { flex:1; min-width:0; width:100%; border:1px solid #bab8ab; color:#172348; border-radius:5px; background:white; padding:7px 9px; font-size:16px; }
.da-input-row button { width:41px; height:41px; display:grid; place-items:center; background:var(--da-navy); color:var(--da-gold); border:0; border-radius:6px; }
.da-form p { margin:5px 0 0; font-size:11px; color:#64675e; }
.da-visually-hidden { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
@media (max-width:560px) {
  .da-widget { bottom:max(10px,env(safe-area-inset-bottom)); right:max(10px,env(safe-area-inset-right)); }
  .da-launch { width:49px; height:49px; padding:0; }
  .da-launch span { position:absolute; clip-path:inset(50%); width:1px; height:1px; overflow:hidden; }
  .da-panel { width:calc(100vw - 20px); height:min(570px,calc(100vh - 20px)); height:min(570px,calc(100dvh - 20px)); }
}
@media(max-height:480px) { .da-header { padding-block:6px; } .da-start { display:none; } .da-form { padding-block:6px; } }
@media(prefers-reduced-motion:reduce) { .da-panel { animation:none; } }
@media print { .da-widget,body.da-with-agent::after { display:none!important; } }
