/* ============================================
   Pages éditoriales — /co-traitants et /valeur-probante
   ============================================
   Deux pages de fond, liées depuis le pied de page. Elles n'inventent aucune
   couleur ni aucune police : tout vient des jetons de styles.css, pour qu'un
   changement de palette les emmène avec le reste du site.

   mentions-legales.html porte son propre bloc <style> en ligne. Ces deux-ci
   partagent une feuille, parce qu'elles partagent une mise en page — et qu'une
   troisième page de ce type arrivera un jour.
   ============================================ */

.edito {
  max-width: 820px;
  margin: 0 auto;
  padding: 132px 24px 40px;
}
.edito-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.edito h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: calc(clamp(32px, 5.2vw, 54px) * var(--echelle-titres));
  letter-spacing: -0.028em;
  line-height: 1.06;
  margin: 0 0 20px;
  color: var(--on-bg);
  text-wrap: balance;
}
.edito h1 em { font-style: normal; font-weight: 400; color: var(--accent); }
.edito-chapo {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(var(--on-bg-rgb), 0.82);
  max-width: 62ch;
  margin: 0;
}

/* Corps de page. `section` plutôt que des marges par élément : l'espacement
   vient de la mise en page, il ne peut donc ni s'effondrer ni doubler. */
.edito-corps {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px 96px;
  display: flex;
  flex-direction: column;
  gap: clamp(44px, 6vw, 68px);
}
.edito-corps section { display: flex; flex-direction: column; gap: 16px; }
.edito-corps h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: calc(clamp(23px, 3vw, 30px) * var(--echelle-titres));
  letter-spacing: -0.018em;
  line-height: 1.15;
  margin: 0;
  color: var(--on-bg);
  text-wrap: balance;
}
.edito-corps h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  margin: 0 0 4px;
  color: var(--on-bg);
}
.edito-corps p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.72;
  color: rgba(var(--on-bg-rgb), 0.78);
  max-width: 66ch;
}
.edito-corps p b, .edito-corps li b { color: var(--on-bg); font-weight: 600; }
/* `:not(.btn)` n'est pas une précaution : sans lui, ce sélecteur (0,1,1) bat
   `.btn-primary` (0,1,0) et repeint le texte du bouton en doré — sur un fond
   doré. Le libellé était bien là, dans le DOM, parfaitement invisible.
   La règle est donc RESSERRÉE plutôt que compensée ailleurs : surenchérir en
   spécificité aurait marché aujourd'hui et cassé au prochain composant. */
.edito-corps a:not(.btn) { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent-line); }
.edito-corps a:not(.btn):hover { border-bottom-color: var(--accent); }
.edito-corps a:focus-visible,
.edito .btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Le tableau qui tranche « qui paie quoi ». C'est la pièce maîtresse de la
   page co-traitants : il doit se lire d'un coup d'œil, sans prose. */
.edito-cadre { overflow-x: auto; }
.edito-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 480px;
  border: 1px solid var(--line-strong);
}
.edito-table th, .edito-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  vertical-align: top;
}
.edito-table thead th {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(var(--on-bg-rgb), 0.55);
  border-bottom-color: var(--line-strong);
}
.edito-table tbody th {
  font-weight: 600;
  color: var(--on-bg);
  width: 34%;
}
.edito-table td { color: rgba(var(--on-bg-rgb), 0.78); }
.edito-table tbody tr:last-child th,
.edito-table tbody tr:last-child td { border-bottom: 0; }
.edito-table .oui { color: var(--accent); font-weight: 600; }

/* Listes à puces carrées, comme les inclusions de la carte tarifaire. */
.edito-liste { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; }
/* La puce est POSITIONNÉE, la ligne n'est pas un conteneur flexible.
   En flex, chaque enfant devient un élément flexible : un <b> en tête de
   phrase se retrouvait dans sa propre colonne étroite, et la suite du texte
   à côté. « L'horodatage serveur » s'affichait sur deux lignes serrées,
   « Rien à installer. » partait à droite de sa propre ligne. Le texte doit
   rester du flux inline ordinaire pour que le gras se comporte comme du gras. */
.edito-liste li {
  position: relative;
  padding-left: 19px;
  font-size: 15.5px;
  line-height: 1.6;
  color: rgba(var(--on-bg-rgb), 0.78);
  max-width: 66ch;
}
.edito-liste li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 8px; height: 8px;
  border: 1px solid var(--accent);
  background: var(--accent-soft);
}

/* Encart. Sert à isoler ce qui doit être lu même en diagonale : une limite,
   une garantie. Filet à gauche plutôt qu'un fond coloré — la page reste
   calme. */
.edito-encart {
  border-left: 3px solid var(--accent);
  background: var(--bg-2);
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.edito-encart p { max-width: none; }

/* Écrit `section.edito-fin` et non `.edito-fin` : `.edito-corps section`
   ci-dessus vaut 0,1,1 et l'emportait, ce qui remettait cette fin en colonne
   alors qu'elle est pensée en ligne. Même leçon que pour le bouton. */
.edito-corps section.edito-fin {
  border-top: 1px solid var(--line-strong);
  flex-direction: row;
  padding-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
}
.edito-corps section.edito-fin p { margin: 0; flex: 1 1 260px; }

@media (max-width: 620px) {
  .edito { padding-top: 104px; }
  .edito-table tbody th { width: auto; }
}
