/*
 * assets/css/differentiel-tsa.css — PsyRisso Desktop
 * Différentiel HQI/TSA : chapeau + 5 volets.
 */

.tsa-content { max-width: none; }

/* Backlinks (chapeau + tous les volets) */
.tsa-backlinks {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1.4rem;
 }
.tsa-backlink {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--dore);
  text-decoration: none;
}
.tsa-backlink:hover { color: var(--bleu); }

/* Titres / texte */
.tsa-h1 {
  font-family: var(--font-heading, Georgia, 'Times New Roman', serif);
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  font-weight: normal;
  color: var(--bleu);
  line-height: 1.3;
  margin: 0 0 0.3rem;
}
.tsa-soustitre {
  font-family: Georgia, serif;
  font-style: italic;
  color: #3a3a3a;
  font-size: 1rem;
  margin: 0 0 1.2rem;
}
.tsa-p {
  /* font-family: Georgia, serif; font-size: 0.95rem; line-height: 1.78;
     text-align: justify; -- valeurs d'origine */
  font-family: Calibri, Carlito, Arial, sans-serif;
  color: #3a3a3a;
  font-size: 16px;
  line-height: 1.5;
  text-indent: 1.6em;
  margin: 0 0 1.05rem;
}

.tsa-p strong { color: #1A1A1A; }
.tsa-p em { font-style: italic; }

/* Liste à puces */
.tsa-fils {
  list-style: none;
  margin: 0.4rem 0 1.2rem;
  padding: 0;
}
.tsa-fils li {
  /* font-size: 0.95rem; line-height: 1.6; -- valeurs d'origine, héritait de Georgia */
  font-family: Calibri, Carlito, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #3a3a3a;
  position: relative;
  padding-left: 1.4rem;
  margin: 0.5rem 0;
}
.tsa-fils li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--dore);
  border-radius: 50%;
}

/* Encadré NB */
.tsa-nb {
  /* font-size: 0.92rem; line-height: 1.65; -- valeurs d'origine, héritait de Georgia */
  font-family: Calibri, Carlito, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  background: var(--gris-fond, #F1EEE7);
  border-left: 3px solid var(--dore);
  padding: 1rem 1.2rem;
  margin: 1.3rem 0;
  color: #3a3a3a;
}
.tsa-nb strong { color: var(--bleu); }

/* Chips de navigation (nav séquentielle) */
.tsa-chips { margin: 1.8rem 0 1.4rem; }
.tsa-chips-label {
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dore);
}
.tsa-chip-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; }
.tsa-chip {
  display: block;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--gris-sep);
  border-radius: 999px;
  background: var(--blanc);
  color: var(--bleu);
  font-family: var(--font-heading, Georgia, 'Times New Roman', serif);
  font-size: 0.85rem;
  text-align: center;
  text-decoration: none;
  transition: all 0.18s ease;
}
.tsa-arw { margin-left: 0.4rem; color: var(--dore); transition: transform 0.18s ease; }
.tsa-chip:hover { background: var(--bleu); color: var(--creme); border-color: var(--bleu); }
.tsa-chip:hover .tsa-arw { color: var(--creme); }

/* Références */
.tsa-refs {
  margin-top: 1.6rem;
  border-top: 1px solid var(--gris-sep);
  padding-top: 1rem;
}
.tsa-refs p {
  /* font-family: Arial, sans-serif; font-size: 0.78rem; color: #555; -- valeurs d'origine */
  font-family: Calibri, Carlito, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: #359C95;
  margin: 0.6rem 0;
}

/* Tableaux (volets 2 et 3 — mêmes couleurs fixes que .tda-table/.per-tbl) */
.tsa-table-scroll { overflow-x: auto; margin: 1.2rem 0; }
.tsa-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.tsa-table th, .tsa-table td {
  /* line-height: 1.5; -- valeur d'origine */
  font-family: Calibri, Carlito, Arial, sans-serif;
  font-size: 0.95rem;
  border: 1px solid var(--gris-sep);
  padding: 0.6rem 0.8rem;
  vertical-align: top;
  text-align: left;
  line-height: 1.55;
}
/*
.tsa-table caption {
  caption-side: top;
  text-align: left;
  font-family: Georgia, serif;
  font-weight: 700;
  color: var(--bleu);
  padding-bottom: 0.5rem;
}*/
.tsa-table-header-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-bottom: 0.6rem;
}
.tsa-table-caption {
  font-style: italic;
  color: #6a6a6a;
  font-size: 0.85rem;
}
.tsa-table-legende {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  font-size: 0.85rem;
  color: #3a3a3a;
  flex-shrink: 0;
}
.tsa-table-legende .pastille {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
}
.tsa-table-legende .pastille-tsa { background: #5B93B8; }
.tsa-table-legende .pastille-hqi { background: #C9A05C; }

/* Encadré informatif (repères denses) */
.tsa-box {
  background: #F4F1EC;
  border: 1px solid var(--gris-sep);
  border-radius: 4px;
  padding: 1.2rem 1.4rem;
  margin: 1.4rem 0;
}
.tsa-box h3 {
  margin: 0 0 0.6rem;
  font-size: 1rem;
  color: var(--bleu);
  font-family: var(--font-heading, Georgia, 'Times New Roman', serif);
  font-weight: normal;
}
.tsa-box p {
  /* font-size: 0.9rem; line-height: 1.55; -- valeurs d'origine */
  font-family: Calibri, Carlito, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  margin: 0.35rem 0;
  color: #3a3a3a;
}

.tsa-box ol {
  margin: 0.2rem 0 0.6rem 1.2rem;
  padding: 0;
}
.tsa-box li {
  /* font-size: 0.9rem; line-height: 1.5; -- valeurs d'origine */
  font-family: Calibri, Carlito, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  margin: 0.15rem 0;
  color: #3a3a3a;
}
.tsa-box-lvl {
  color: #777;
  font-style: italic;
  font-size: 0.82rem;
}

/* Tableaux (couleurs fixes, indépendantes de la palette — convention actée sur .tda-table) */
.tsa-table-scroll { overflow-x: auto; margin: 1.2rem 0; }
.tsa-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.9rem;
  border: 1px solid #e3e0d8;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(27, 59, 53, 0.06);
}
.tsa-table caption {
  caption-side: top;
  text-align: left;
  font-style: italic;
  color: #6a6a6a;
  font-size: 0.85rem;
  margin-bottom: 0.6rem;
}
.tsa-table th, .tsa-table td {
  padding: 0.85rem 1.1rem;
  vertical-align: top;
  text-align: left;
  line-height: 1.6;
}
.tsa-table th {
  /* font-family: var(--font-heading); -- valeur d'origine */
  font-family: Calibri, Carlito, Arial, sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
}
.tsa-table th:first-child,
.tsa-table td.tsa-table-sig {
  width: 18%;
  font-weight: 600;
  color: var(--bleu);
  background: #F3F1EA;
}
.tsa-table th:first-child { color: #FAFAF7; background: var(--bleu); }

/* Colonne TSA (2e) — bleu clair */
.tsa-table th:nth-child(2) { background: #DDE8F2; color: #1B3F5C; }
.tsa-table td:nth-child(2) { background: #F1F6FA; }

/* Colonne HQI (3e) — beige/doré */
.tsa-table th:nth-child(3) { background: #F2E7D3; color: #5C4419; }
.tsa-table td:nth-child(3) { background: #FAF6EF; }

.tsa-table td { border-top: 1px solid #ece9e1; }
.tsa-table tr:hover td { background: #F5F2EA; }

.tsa-link {
  color: var(--dore);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.tsa-link:hover { color: var(--bleu); }
@media (max-width: 720px) {
  .tsa-backlinks { flex-direction: column; gap: 0.4rem; }
}