/* Tableaux (valeurs de .tableau), graphiques SVG, légendes, listes, réponses dépliées.
   Graphiques : grille 1 px --trait, axes 12 px --encre-2 en Inter (plus de mono), chiffres tabulaires. */
.tableau-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -22px; padding: 0 22px; }
.tableau { width: 100%; border-collapse: collapse; font-size: 14px; }
.tableau th { padding: 10px 12px; border-bottom: 1px solid var(--trait-fort); font-size: var(--taille-etiquette); font-weight: var(--graisse-moyenne); text-align: left; color: var(--encre-2); white-space: nowrap; }
.tableau td { padding: 12px; border-bottom: 1px solid var(--trait); vertical-align: middle; color: var(--encre); }
.tableau tr:last-child td { border-bottom: 0; }
.tableau .num, .tableau th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tableau .c, .tableau th.c { text-align: center; }
.tableau tbody tr { transition: background var(--duree-rapide) var(--courbe); }
.tableau tbody tr:hover { background: var(--voile-1); }
.tableau tr.moi td { background: var(--voile-1); }
.tableau .q { max-width: 48ch; min-width: 24ch; line-height: 1.4; }
.tableau .vol { font-size: var(--taille-etiquette); color: var(--encre-2); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Graphiques ---------- */
.graph, .chaleur, .barres { width: 100%; height: auto; overflow: visible; }
.graph .grille line { stroke: var(--trait); stroke-width: 1; }
.graph text, .chaleur text, .barres text { font-family: var(--police); font-size: 12px; fill: var(--encre-2); font-variant-numeric: tabular-nums; }
.barres .ligne.moi .nom { fill: var(--encre); font-weight: var(--graisse-moyenne); }
.graph .cohorte { stroke: var(--trait-fort); stroke-width: 1; stroke-dasharray: 4 4; }
.graph .cohorte-t { fill: var(--encre-2); }
.spark { width: 100%; height: auto; overflow: visible; }
.legende { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 12px; font-size: var(--taille-etiquette); color: var(--encre-2); }
.legende span { display: inline-flex; align-items: center; gap: 8px; }
.legende span[hidden] { display: none; }
.legende i { display: inline-block; width: 16px; height: 2px; border-radius: var(--rayon-pilule); background: var(--c, var(--encre-2)); }
.legende i.rond { width: 9px; height: 9px; border-radius: 50%; background: var(--fond); box-shadow: inset 0 0 0 2px var(--c, var(--encre-2)); }
.legende i.tirets { background: repeating-linear-gradient(90deg, var(--c, var(--encre-2)) 0 4px, transparent 4px 8px); }
.legende i.losange { width: 8px; height: 8px; margin-right: 0; border-radius: 0; background: transparent; }

/* ---------- Listes simples ---------- */
.liste { display: grid; gap: 0; }
.liste li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-height: 44px; padding: 10px 0; border-bottom: 1px solid var(--trait); font-size: 14px; }
.liste li:last-child { border-bottom: 0; }
.liste .nm { flex: 1; min-width: 14ch; font-weight: var(--graisse-moyenne); color: var(--encre); }
.liste .dom { font-family: var(--police-mono); font-size: var(--taille-etiquette); color: var(--encre-2); }
.liste .sous { width: 100%; font-size: var(--taille-petit); line-height: 1.5; color: var(--encre-2); }

/* ---------- Réponses dépliées (Questions) : un bloc par surface, séparés par un trait ---------- */
.reponses { display: grid; padding-top: 6px; }
.rep-carte { position: relative; padding: 16px 0; border-top: 1px solid var(--trait); }
.rep-carte:first-child { border-top: 0; }
.rep-tete { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 10px; font-size: var(--taille-petit); color: var(--encre-2); }
.rep-modele { margin-left: auto; font-family: var(--police-mono); font-size: 11.5px; color: var(--encre-2); }
/* Marques nommées dans la réponse, dans leur ordre d'entrée : position, logo, nom (la marque suivie en bleu) */
.rep-marques { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 12px; }
.rep-marques-liste { display: flex; flex-wrap: wrap; gap: 6px; }
.rep-marques-liste li {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px 0 8px; border-radius: var(--rayon-pilule);
  background: var(--voile-2); border: 1px solid var(--trait); font-size: var(--taille-etiquette); font-weight: var(--graisse-moyenne); color: var(--encre);
}
.rep-marques-liste li.moi { background: var(--bleu-voile); border-color: var(--bleu-trait); }
.rep-rang { min-width: 10px; text-align: center; color: var(--encre-2); }
.rep-marques-liste .logo.petit { width: 20px; height: 20px; }
.rep-texte { max-width: 84ch; font-size: 14px; line-height: 1.65; color: var(--encre); white-space: pre-line; overflow-wrap: anywhere; }
.rep-texte.coupe { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.rep-texte.coupe.ouvert { display: block; }
.rep-suite { margin-top: 6px; padding: 4px 0; border: 0; background: none; font-size: var(--taille-petit); font-weight: var(--graisse-moyenne); color: var(--bleu-texte); cursor: pointer; }
.rep-suite:hover { text-decoration: underline; text-underline-offset: 3px; }
.citations { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; }
.citations .etiquette { margin-right: 4px; }
.citations a {
  display: inline-flex; align-items: center; max-width: 100%; height: 26px; padding: 0 10px; border-radius: var(--rayon-pilule);
  background: var(--voile-2); border: 1px solid var(--trait); font-size: var(--taille-etiquette); color: var(--encre-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: background var(--duree-rapide) var(--courbe), color var(--duree-rapide) var(--courbe);
}
.citations a.marque { background: var(--bleu-voile); border-color: var(--bleu-trait); color: var(--bleu-clair); font-weight: var(--graisse-moyenne); }
.citations a:hover { background: var(--voile-3); color: var(--encre); text-decoration: none; }
.rep-vide { margin-top: 10px; }
