/* quentyx-hora / CE QU AVYIS APPORTE A L ECRAN, 2026-09-27. Voir apercu.js. */

/* ── Sous une reponse : ce qu il a lu, en pastilles, et l economie ───────── */
.av-lu { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; min-width: 0; }
.av-lu-titre { font: 500 13px var(--interface); color: var(--encre-4); margin-right: 2px; }
.av-source {
  display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; height: 30px; padding: 0 11px 0 9px;
  border: 1px solid var(--filet); border-radius: 999px; background: var(--voile); color: var(--encre-2);
  font: 500 13px var(--interface); cursor: pointer; transition: color .15s, border-color .15s, background .15s;
}
.av-source span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.av-source svg { width: 15px; height: 15px; flex: 0 0 auto; }
.av-source:hover, .av-source:focus-visible { color: var(--encre); border-color: var(--encre-4); outline: none; }
.av-eco { margin-top: 8px; font: 500 13px/1.5 var(--interface); color: var(--encre-4); }

/* ── L apercu a droite (#cote) ──────────────────────────────────────────── */
.av-apercu { display: flex; flex-direction: column; min-height: 0; height: 100%; }
.av-tete { display: flex; align-items: flex-start; gap: 10px; padding: 18px 18px 8px 22px; }
.av-titres { flex: 1; min-width: 0; }
.av-titres h2 { margin: 0; font: 400 21px/1.25 var(--lecture); color: var(--encre); overflow-wrap: anywhere; }
.av-titres p { margin: 4px 0 0; font: 500 14px/1.5 var(--interface); color: var(--encre-3); overflow-wrap: anywhere; }
.av-fermer { flex: 0 0 auto; width: 34px; height: 34px; border: 0; border-radius: 10px; background: transparent; color: var(--encre-3);
  display: grid; place-items: center; cursor: pointer; }
.av-fermer svg { width: 17px; height: 17px; }
.av-fermer:hover { color: var(--encre); background: var(--voile); }
.av-gestes { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 22px 12px; border-bottom: 1px solid var(--filet-2); }
.av-apercu > .doc, .av-texte { padding: 14px 22px 26px; overflow-y: auto; min-height: 0; }
.av-pages { display: flex; flex-direction: column; gap: 12px; padding: 14px 18px 26px; overflow-y: auto; min-height: 0; }
.av-pages img { display: block; width: 100%; height: auto; background: #fff; border-radius: 3px; box-shadow: 0 8px 26px rgba(0, 0, 0, .35); min-height: 60px; }
.av-liste { display: flex; flex-direction: column; padding: 8px 12px 24px; overflow-y: auto; min-height: 0; }
.av-ligne { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 10px; border: 0; border-radius: 10px;
  background: transparent; color: var(--encre-2); font: 500 14px var(--interface); text-align: left; cursor: pointer; min-width: 0; }
.av-ligne span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.av-ligne svg { width: 17px; height: 17px; flex: 0 0 auto; color: var(--encre-3); }
.av-ligne:hover { background: var(--voile); color: var(--encre); }
.av-vide { padding: 14px 22px; color: var(--encre-3); font: 500 14px var(--interface); }
.av-jour { margin: 16px 22px 6px; font: 600 13px var(--interface); color: var(--encre-3); text-transform: capitalize; }
.av-rdv { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 22px; font: 500 14px var(--interface); color: var(--encre-2); }
.av-pastille { width: 9px; height: 9px; border-radius: 50%; background: var(--c); flex: 0 0 auto; }
.av-heure { width: 48px; flex: 0 0 auto; color: var(--encre-3); font-variant-numeric: tabular-nums; }
.av-rdv-titre { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 480px) {
  .av-tete { padding: 14px 12px 6px 16px; }
  .av-gestes, .av-apercu > .doc, .av-texte, .av-rdv { padding-left: 16px; padding-right: 16px; }
  .av-source { height: 32px; }
}

/* V2 : la ligne vivante de la bulle d attente. Elle change a chaque etape, en fondu. */
.ia-lecture { margin-top: 6px; font: 500 13px/1.5 var(--interface); color: var(--encre-3); min-height: 0; overflow-wrap: anywhere; }
.ia-lecture:empty { display: none; }
.ia-lecture.neuf { animation: iaApparait .35s var(--ia-doux, ease-out) both; }
