/* Module Assistant */
.icone-assistant { background: var(--info); }
.icone-assistant-reglages { background: var(--fonce); }

.asst { display: grid; grid-template-columns: minmax(12rem, 16rem) minmax(0, 1fr); gap: 1.2rem; align-items: start; }
@media (max-width: 900px) { .asst { grid-template-columns: 1fr; } .asst-conversations { order: 2; } }
.asst-conversations h2 { font-size: 1rem; margin-top: 0; }
.asst-conversations a { display: block; padding: .35rem .5rem; border-radius: var(--rayon); text-decoration: none; color: var(--ink); font-size: .88rem; }
.asst-conversations a span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.asst-conversations a small { color: var(--ink-soft); }
.asst-conversations a:hover { background: var(--bg-soft); }
.asst-conversations a.actif { background: var(--bg-deep); font-weight: 600; }

.asst-exemples { list-style: none; padding: 0; display: grid; gap: .4rem; }
.asst-exemples .bouton { text-align: left; white-space: normal; height: auto; }
.asst-tour { margin-bottom: 1.2rem; }
.asst-question {
  margin: 0 0 .5rem auto; max-width: 85%; width: fit-content; padding: .6rem .9rem;
  background: var(--fonce); color: var(--bg); border-radius: var(--rayon); overflow-wrap: anywhere;
}
.asst-reponse__texte { line-height: 1.55; overflow-wrap: anywhere; }
.asst-reponse__texte h3 { font-size: 1rem; margin: 1rem 0 .3rem; }
.asst-reponse__texte ul { padding-left: 1.3rem; }
.asst-reponse__tableau { margin: .8rem 0 .5rem; }
.asst-ref {
  display: inline-block; font-weight: 700; font-size: .82em; text-decoration: none; color: var(--primaire);
  white-space: nowrap; padding: 0 .3em; border: 1px solid var(--line); border-radius: 4px; background: var(--bg-soft);
}
a.asst-ref:hover { border-color: var(--primaire); }
.asst-sources, .asst-etapes { margin-top: .8rem; font-size: .9rem; }
.asst-sources summary, .asst-etapes summary { cursor: pointer; color: var(--primaire); font-weight: 600; }
.asst-sources li { padding: .25rem 0; border-bottom: 1px solid var(--line); }
.asst-sources li a { text-decoration: none; }
.asst-sources .note { display: block; }
.asst-etapes ol { margin: .4rem 0 0; padding-left: 1.4rem; color: var(--ink-soft); }
.asst-limites, .asst-crm { margin-top: .8rem; }
.asst-meta { margin: .8rem 0 0; }
.asst-demande textarea { width: 100%; resize: vertical; font: inherit; }
.asst-demande__pied { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .6rem 1rem; margin-top: .6rem; }
.asst-demande__pied .note { margin-right: auto; }
.asst-supprimer { margin-top: .6rem; text-align: right; }
[data-asst-demande] [hidden] { display: none !important; }
.asst-tour--simulation .asst-reponse { border-left: 4px dashed var(--accent); }

.asst-reglages { display: grid; gap: 1.2rem; max-width: 60rem; }
.asst-case { display: flex; gap: .4rem; align-items: center; font-weight: normal; margin-top: .4rem; }
.asst-champ-court input { width: 6rem; display: inline-block; }
.asst-sources-liste { padding-left: 1.2rem; }
.asst-sources-liste li { margin: .3rem 0; }
.asst-sources-liste .note { display: block; }
.asst-personnes li { padding: .2rem 0; }
.tableau .nombre { text-align: right; white-space: nowrap; }

/* Analyses complètes (1.1.0) */
.asst-analyse-form { max-width: 60rem; }
.asst-analyse-form h2 { font-size: 1.05rem; margin: 1.2rem 0 .5rem; }
.asst-analyse-form h2:first-of-type { margin-top: 0; }
.asst-analyse-form textarea { width: 100%; resize: vertical; font: inherit; }
.asst-estimation { margin: 1rem 0; }
.asst-suivi progress { width: 100%; height: .8rem; }
.asst-suivi .etat { margin-right: .4rem; }
.asst-suivi form { display: inline; }
.asst-consigne summary { cursor: pointer; font-weight: 600; color: var(--primaire); }
.asst-analyse-tableau td { vertical-align: top; overflow-wrap: anywhere; }
.mh-12 { margin-top: 1.2rem; }
.icone-assistant-analyses { background: var(--info); }
.asst-analyse-form input[type=date] { width: auto; min-width: 12rem; }
