/* Assistant d'aide (26/11/2026) : panneau « ? » du bandeau et pages /aide (app/views/help.php, public/assets/js/aide.js). */
#help-drawer{width:min(500px,100vw)}
#help-drawer .side-drawer-body{height:100%;box-sizing:border-box;padding-bottom:22px}
.help-chat{display:flex;flex-direction:column;gap:12px;flex:1;min-height:0}
/* Exception admise à « pas de défilement interne » : le fil d'une discussion défile, comme une liste déroulante. */
.help-messages{flex:1;min-height:0;overflow-y:auto;display:flex;flex-direction:column;gap:10px;padding:2px 2px 6px}
.help-msg{max-width:92%;padding:10px 14px;border-radius:14px;line-height:1.5;font-size:14px}
.help-msg p{margin:0 0 6px}.help-msg p:last-child{margin-bottom:0}
.help-msg-bot{align-self:flex-start;background:var(--surface);border:1px solid var(--line);border-bottom-left-radius:4px}
.help-msg-user{align-self:flex-end;background:var(--soft);color:var(--ink);border-bottom-right-radius:4px;white-space:pre-wrap}
.help-thinking{color:var(--muted);font-style:italic}
.help-error{border-color:var(--line-2);color:var(--muted)}
.help-answer ul,.help-answer ol{margin:4px 0 6px;padding-left:20px}.help-answer li{margin:2px 0}
.help-answer table{border-collapse:collapse;font-size:13px;margin:6px 0}.help-answer td,.help-answer th{border:1px solid var(--line);padding:4px 6px;text-align:left}
.help-answer code{font-size:12.5px}
.help-suggests{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.help-suggest{border:1px solid var(--line-2);background:var(--surface-2);color:var(--ink-2);border-radius:999px;padding:5px 11px;font:inherit;font-size:13px;cursor:pointer;text-align:left}
.help-suggest:hover{border-color:var(--primary);color:var(--primary-strong)}
.help-sources{margin-top:8px;padding-top:8px;border-top:1px dashed var(--line)}
.help-sources ul{margin:4px 0 0;padding-left:18px}.help-sources li{margin:2px 0;font-size:13px}
.help-support{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:10px;padding:8px 10px;background:var(--surface-2);border-radius:10px;font-size:13px}
.help-feedback{display:flex;align-items:center;gap:10px;margin-top:8px}
.help-feedback .btn-link,.help-foot .btn-link{background:none;border:0;padding:0;color:var(--primary);font:inherit;font-size:13px;cursor:pointer}
.help-feedback .btn-link:hover,.help-foot .btn-link:hover{text-decoration:underline}
.help-form{display:flex;gap:8px;align-items:flex-end}
.help-form textarea{flex:1;resize:none;min-height:44px;max-height:140px}
.help-foot{display:flex;flex-wrap:wrap;gap:16px;font-size:13px}
.help-foot a,.help-foot .btn-link{display:inline-flex;align-items:center;gap:6px}
/* Pages /aide */
.help-search{display:flex;gap:10px;align-items:center;padding:14px 16px;margin-bottom:8px}
.help-search input{flex:1}
.help-grid,.help-results{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:14px;margin-bottom:22px}
.help-card{display:flex;flex-direction:column;gap:6px;margin:0;color:inherit;text-decoration:none;transition:border-color .15s ease}
.help-card:hover{border-color:var(--primary)}
.help-card strong{color:var(--ink)}
.help-article{max-width:860px;line-height:1.6}
.help-article h2{margin-top:26px}.help-article h2:first-child{margin-top:0}
.help-article table{border-collapse:collapse;margin:10px 0;width:100%}.help-article td,.help-article th{border:1px solid var(--line);padding:7px 10px;text-align:left;vertical-align:top}
.help-article th{background:var(--surface-2)}
.help-article-foot{max-width:860px;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.help-filter{display:flex;gap:6px}
