/* Assistant Milhomme SI v2 — ajouts et ajustements par-dessus la feuille de style du site (index.*.css). */

.a2-hidden { display: none !important; }
.a2-noscript { padding: 24px 0 0; color: #242322; }
.a2-groupes { display: flex; flex-direction: column; gap: 14px; }
.a2-groupe > .tiny-label { color: #755100; letter-spacing: 1.1px; margin: 0 0 8px 2px; display: block; text-transform: uppercase; }
/* Onglets : une rangée par groupe (5 commerces, 6 professions), même carte que l'ancienne version. */
.a2-tabs { display: grid; gap: 9px; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.a2-tabs--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.a2-tab { min-height: 77px; text-align: left; white-space: normal; display: flex; align-items: flex-start; gap: 12px; padding: 16px; border-radius: 8px;
  border: 1px solid #e2ab5724; background: #f6f5f4; color: #5a5958; font-size: 15px; font-weight: 500; line-height: 1.25; cursor: pointer;
  transition: border-color .2s, background .2s, color .2s, transform .2s; }
.a2-tab:hover { border-color: #c6a06980; }
.a2-tab:focus-visible { outline: 2px solid #805a00; outline-offset: 2px; }
.a2-tab[aria-selected="true"] { color: #000000; background: #e4aa4e; border-color: #e4aa4e; }
.a2-tab > svg { width: 21px; height: 21px; flex-shrink: 0; margin-top: 1px; }
.a2-tab small { opacity: .8; margin-top: 3px; font-size: 12px; font-weight: 400; display: block; }

/* Panneau du dossier : équipe, horaires, documents par thème (liste qui défile) */
.a2-equipe { color: #575655; font-size: 13px; line-height: 1.6; margin-top: 14px; display: grid; gap: 6px; }
.a2-equipe > div { display: flex; gap: 8px; align-items: flex-start; }
.a2-equipe svg { flex-shrink: 0; margin-top: 3px; color: #755100; }
.a2-equipe b { color: #121110; font-weight: 500; }
.a2-docs { margin-top: 12px; max-height: 470px; overflow-y: auto; padding-right: 4px; scrollbar-width: thin; scrollbar-color: #cbcac9 #f4f3f2; }
.a2-theme { margin-top: 12px; }
.a2-theme:first-child { margin-top: 0; }
.a2-theme > .tiny-label { color: #725000; display: block; margin: 0 0 4px 10px; font-size: 10px; text-transform: uppercase; }
.knowledge-list.a2-liste { margin-top: 0; gap: 2px; }
.knowledge-list.a2-liste button { min-height: 40px; padding: 9px 10px; font-size: 14px; }
.knowledge-list.a2-liste button > span { flex: 0 0 auto; display: inline-flex; }
.knowledge-list.a2-liste button > span:nth-child(2) { flex: 1 1 auto; min-width: 0; display: inline; }
.knowledge-list.a2-liste button.is-cited { border-color: #c99c5755; background: #eaeae9; }
.knowledge-list.a2-liste button.is-cited > svg:first-child { color: #896100; }

/* Conversation */
.a2-mode { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: .4px; padding: 3px 8px; border-radius: 5px; border: 1px solid #e2ab5735; color: #7e5800; background: #ebeae9; }
.a2-mode.ia { color: #000000; background: #e4aa4e; border-color: #e4aa4e; }
.a2-mode.interrompu { color: #e9cf86; background: #443918; border-color: #6b5a25; }
.message-author > .a2-mode { margin-left: 4px; }
.chat-message.assistant p { margin: 0; }
.a2-notice { color: #d6caa1; background: #eeedec; border-radius: 7px; padding: 8px 10px; margin-top: 12px; font-size: 13px; line-height: 1.6; }
.a2-sources { display: flex; flex-wrap: wrap; gap: 6px; }
.answer-footer .a2-sources { max-width: calc(100% - 40px); }
.answer-footer .a2-sources .source-chip { margin: 0; max-width: 100%; }
.a2-footer-note { color: #765200; text-align: center; margin-top: 11px; font-size: 12px; line-height: 1.6; }
.a2-footer-note strong { color: #333332; font-weight: 500; }
.a2-idees { color: #333332; background: #f1f1f0; border: 1px solid #e2ab572e; border-radius: 5px; min-height: 44px; padding: 11px 12px; font-size: 14px; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 9px; grid-column: 1 / -1; }
.a2-idees:hover { background: #e5e5e3; border-color: #cd9438a0; }
.a2-idees > span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.a2-tabs--6 .a2-tab { padding: 14px 12px; gap: 10px; font-size: 14px; }
.a2-tabs--6 .a2-tab small { font-size: 11.5px; }
.suggested-questions > button svg { flex-shrink: 0; opacity: .7; }
.chat-compose form button.is-stop { background: #e9cf86; color: #0e0d0c; }

/* Boîte de dialogue : le document du dossier */
.a2-dialog { border: 1px solid #e2ab5730; border-radius: 14px; background: #f9f9f7; color: #121110; padding: 0; width: min(680px, calc(100% - 32px)); max-height: min(86vh, 760px); box-shadow: 0 30px 90px #00000024; }
.a2-dialog::backdrop { background: #ffffffcc; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.a2-dialog-top { display: flex; align-items: flex-start; gap: 14px; padding: 20px 22px 16px; border-bottom: 1px solid #e2ab5725; }
.a2-dialog-top .tiny-label { color: #775300; display: block; margin-bottom: 4px; text-transform: uppercase; }
.a2-dialog-top h2 { font-size: 20px; letter-spacing: -.4px; font-weight: 500; line-height: 1.25; color: #010101; }
.a2-dialog-top .icon-btn { margin-left: auto; flex-shrink: 0; }
.a2-dialog-body { padding: 18px 22px 22px; overflow-y: auto; max-height: calc(min(86vh, 760px) - 150px); scrollbar-width: thin; scrollbar-color: #cbcac9 #f9f9f7; }
.a2-dialog-body p { white-space: pre-line; line-height: 1.7; font-size: 16px; }
.a2-dialog-body .source-chip { margin-top: 16px; }
.a2-dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.a2-dialog-actions .btn { min-height: 44px; padding: 11px 16px; font-size: 14px; gap: 10px; }
.a2-dialog-actions .btn-secondary { color: #886000; background: #eeeeec; border-color: #e2ab5744; }

/* Bandeau « ce qui change chez vous » sous l'espace de travail */
.a2-bandeau { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.a2-bandeau > div { border: 1px solid #e2ab5725; background: #faf9f8; border-radius: 10px; padding: 16px 18px; display: flex; gap: 12px; align-items: flex-start; color: #515150; font-size: 14px; line-height: 1.6; }
.a2-bandeau svg { flex-shrink: 0; color: #896100; margin-top: 2px; }
.a2-bandeau b { color: #050505; font-weight: 500; display: block; margin-bottom: 2px; }

/* Section « et dans votre commerce » : scènes animées */
.a-daily-thread .chat-message.assistant p > span { animation-delay: var(--d, 0s); }

@media (max-width: 1050px) {
  .a2-tab { gap: 7px; padding: 13px 10px; font-size: 13px; }
  .a2-tab small { font-size: 11px; }
  .a2-docs { max-height: 430px; }
}
@media (max-width: 900px) {
  .a2-bandeau { grid-template-columns: 1fr; }
}
@media (max-width: 750px) {
  /* Onglets : une bande qui défile à l'horizontale par groupe */
  .a2-tabs { display: flex; overflow-x: auto; scroll-snap-type: x proximity; padding: 2px 2px 8px; margin: 0 -2px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .a2-tabs::-webkit-scrollbar { display: none; }
  .a2-tab { flex: 0 0 auto; min-width: 158px; max-width: 200px; min-height: 64px; scroll-snap-align: start; font-size: 14px; }
  .a2-equipe { display: none; }
  .a2-docs { max-height: none; overflow: visible; }
  .knowledge-list.a2-liste { display: grid; grid-template-columns: 1fr 1fr; }
  .knowledge-list.a2-liste button { padding: 8px; font-size: 13px; min-height: 40px; }
  .a2-theme > .tiny-label { margin-left: 4px; }
  .a2-docs-mobile-toggle { display: flex; }
  .a2-docs.is-collapsed .a2-theme:nth-child(n + 3) { display: none; }
}
@media (min-width: 751px) {
  .a2-docs-mobile-toggle { display: none; }
}
.a2-docs-mobile-toggle { width: 100%; justify-content: center; gap: 8px; color: #3d3d3c; border: 1px dashed #e2ab5744; border-radius: 6px; min-height: 40px; margin-top: 8px; font-size: 13px; align-items: center; }
@media (max-width: 450px) {
  .a2-tab { min-width: 146px; padding: 11px; font-size: 14px; }
  .a2-mode { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .a2-tab { transition: none; }
}
/*! habillage:debut */

/*! habillage:fin blanc-noir-or-2 */
