/* KOROCHE|HAKILI_LAB — DABALI : discuter avec l'IA */
.btn.disc { margin-top: 10px; }
.chat { display: grid; gap: 12px; max-width: 900px; }
.chat-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.chat-bar select { min-height: 40px; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--border-hi); background: var(--surface); color: var(--text); font: 15px var(--ui); max-width: 100%; }
.chat-bar .chip { margin-left: auto; }
.chat-sugg { display: flex; flex-wrap: wrap; gap: 8px; }
.chat-fil { display: flex; flex-direction: column; gap: 12px; min-height: 260px; max-height: 62vh; overflow-y: auto; padding: 16px; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); }
.chat-vide { margin: auto; color: var(--text-3); text-align: center; }
.bulle { max-width: min(100%, 78ch); padding: 12px 16px; border-radius: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.bulle p { margin: 0 0 .7em; } .bulle p:last-child, .bulle ul:last-child, .bulle ol:last-child { margin-bottom: 0; }
.bulle.moi { align-self: flex-end; background: var(--accent-soft); border: 1px solid var(--border-hi); }
.bulle.ia { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--border); }
.bulle.erreur { border-color: var(--red); background: var(--red-soft); }
.bulle ul, .bulle ol { margin: 0 0 .7em; padding-left: 1.3em; }
.bulle h4 { margin: .9em 0 .3em; color: var(--accent-hi); font: 700 1em var(--ui); }
.bulle code { padding: 1px 6px; border-radius: 6px; background: var(--surface-3); font: .9em var(--mono); }
.bloc-code { margin: .6em 0; border: 1px solid var(--border-hi); border-radius: 10px; overflow: hidden; background: var(--void); }
.bc-tete { display: flex; justify-content: space-between; align-items: center; padding: 4px 10px; background: var(--surface-3); font: 600 12px var(--ui); color: var(--text-3); }
.bc-copier { min-height: 32px; padding: 2px 10px; border: 1px solid var(--border-hi); border-radius: 8px; background: transparent; color: var(--text-2); cursor: pointer; font: 600 12px var(--ui); }
.bc-copier:hover { color: var(--accent-hi); border-color: var(--accent); }
.bloc-code pre { margin: 0; padding: 12px 14px; overflow-x: auto; }
.bloc-code code { padding: 0; background: none; font: 13.5px/1.6 var(--mono); color: var(--syntax-hi); white-space: pre; }
.chat-saisie { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.chat-saisie textarea { width: 100%; min-height: 76px; resize: vertical; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border-hi); background: var(--surface); color: var(--text); font: 15px/1.5 var(--mono); }
.chat-saisie textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.pts { display: inline-flex; gap: 5px; } .pts i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: dabPts 1s infinite ease-in-out; } .pts i:nth-child(2) { animation-delay: .15s; } .pts i:nth-child(3) { animation-delay: .3s; }
@keyframes dabPts { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
@media (max-width: 640px) { .chat-saisie { grid-template-columns: 1fr; } .chat-saisie .btn { width: 100%; } .chat-fil { max-height: 56vh; padding: 12px; } .chat-bar .chip { margin-left: 0; } }
@media (prefers-reduced-motion: reduce) { .pts i { animation: none; opacity: .7; } }
