/* Assistant de paramétrage (assets/js/onboarding.js), site et PWA */
.ob { display: flex; flex-direction: column; gap: 10px; max-width: 820px; margin: 0 auto; }
.ob-thread { display: flex; flex-direction: column; gap: 10px; }
.ob-msg { max-width: 85%; }
.ob-assistant { align-self: stretch; max-width: none; } /* cartes et réponses alignées sur la saisie */
.ob-user { align-self: flex-end; }
.ob-text { padding: 8px 12px; border-radius: 12px; line-height: 1.45; }
.ob-assistant .ob-text { background: var(--accent-soft, #f2f4f6); color: var(--text, #2c3e50); }
.ob-user .ob-text { background: var(--accent, #2c3e50); color: var(--card, #fff); }
.ob-wait { opacity: .6; }
.ob-card { margin: 8px 0 0; }
.ob-card-title { font-weight: bold; margin-bottom: 8px; }
.ob-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.ob-chip { border: 1px solid var(--line, #bbb); background: var(--card, #fff); color: var(--text, #333); border-radius: 14px; padding: 3px 10px; font-size: 13px; cursor: pointer; }
.ob-chip.on { background: var(--accent, #2c3e50); border-color: var(--accent, #2c3e50); color: var(--card, #fff); }
.ob-chip small { opacity: .7; }
.ob-chip:disabled { cursor: default; opacity: .85; }
.ob-x { border: 0; background: none; color: inherit; font-size: 16px; line-height: 1; padding: 0 2px; cursor: pointer; }
.ob-hint { color: var(--muted, #777); font-size: 13px; margin: 6px 0; }
.ob-row { display: flex; gap: 6px; align-items: center; margin: 6px 0; }
.ob-row .form-control, .ob-row input, .ob-row textarea { flex: 1; min-width: 0; }
.ob-actions .btn, .ob-actions .primary { margin-top: 6px; }
.ob-angles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin-bottom: 8px; }
.ob-angle { display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--line, #ddd); border-radius: 6px; padding: 8px; font-weight: normal; cursor: pointer; }
.ob-angle:has(input:checked) { border-color: var(--accent, #2c3e50); background: var(--accent-soft, #f2f4f6); }
.ob-angle-head { display: flex; justify-content: space-between; align-items: center; }
.ob-mini { display: flex; flex-wrap: wrap; gap: 4px; }
.ob-mini em { font-size: 12px; background: var(--accent-soft, #eee); border-radius: 8px; padding: 0 6px; }
.ob-sources { list-style: none; padding: 0; margin: 0 0 8px; }
.ob-sources li { display: flex; justify-content: space-between; gap: 6px; padding: 4px 0; border-bottom: 1px solid var(--line, #eee); }
.ob-sources li.ko { opacity: .6; }
.ob-sources label { font-weight: normal; display: flex; gap: 6px; align-items: flex-start; }
.ob-foot { position: sticky; bottom: 0; background: var(--card, #fff); padding: 6px 0; }
.ob-toggles { display: flex; gap: 6px; flex-wrap: wrap; }
.ob-panel { border: 1px solid var(--line, #ddd); border-radius: 6px; padding: 8px; margin-bottom: 6px; max-height: 50vh; overflow: auto; background: var(--card, #fff); }
.ob-panel-head { display: flex; justify-content: space-between; margin-bottom: 6px; }
.ob-tree-box { max-height: 30vh; overflow: auto; border: 1px solid var(--line, #eee); padding: 6px; margin: 6px 0; }
.ob-tree { padding-left: 16px; }
.ob-leaf { display: block; font-weight: normal; }
.ob-leaf small { color: #999; }
.ob-file { display: block; font-weight: normal; }
.ob .alert { margin: 8px 0 0; }
.ob-card { border: 1px solid var(--line, #ddd); border-radius: 6px; background: var(--card, #fff); }
.ob-card-body { padding: 10px; }
/* Étiquettes et alertes hors Bootstrap (PWA) */
.ob .label { display: inline-block; padding: 1px 6px; border-radius: 8px; font-size: 11px; font-weight: normal; background: #eee; color: #333; }
.ob .label-success { background: #dff0d8; color: #3c763d; }
.ob .label-danger { background: #f2dede; color: #a94442; }
.ob .label-warning { background: #fcf8e3; color: #8a6d3b; }
.ob .label-info { background: #d9edf7; color: #31708f; }
.ob .alert { padding: 8px 10px; border-radius: 6px; }
.ob .alert-success { background: #dff0d8; color: #3c763d; }
.ob .alert-danger { background: #f2dede; color: #a94442; }
.ob button.primary, .ob button.secondary { min-height: 36px; border-radius: 8px; border: 0; padding: 0 12px; }
.ob textarea, .ob input:not([type=checkbox]):not([type=file]) { background: var(--card, #fff); color: var(--text, #333); border: 1px solid var(--line, #ccc); border-radius: 6px; padding: 6px 8px; font: inherit; }
.ob-results { list-style: none; padding: 0; margin: 6px 0; max-height: 60vh; overflow: auto; }
.ob-results li { display: flex; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line, #eee); }
.ob-results img { width: 72px; height: 54px; object-fit: cover; border-radius: 4px; flex: none; }
.ob-results p { margin: 2px 0; font-size: 13px; }
.ob-results small { color: var(--muted, #777); }
.ob-save { border-top: 1px solid var(--line, #eee); margin-top: 10px; padding-top: 8px; }
.ob-save label { font-weight: normal; }
.ob .alert-info { background: #d9edf7; color: #31708f; }
/* Site : bandeau jamais masqué au défilement, zone de saisie fixée en bas comme dans les assistants IA */
body.ob-page .navbar.scrolled-down { transform: none; }
body.ob-page .ob-foot { position: fixed; bottom: 0; left: 0; right: 0; z-index: 1020; max-width: 850px; margin: 0 auto; padding: 8px 15px 12px; border-top: 1px solid var(--line, #ddd); box-shadow: 0 -4px 12px rgba(0,0,0,.06); }
