/* ═══════════════════════════════════════════════════════════════════════════
   Quotum — les deux comparatifs : la décision en haut, la preuve repliée en bas.
   Jetons de quotum.css seulement (DESIGN.md). Tout s'empile sur un téléphone :
   aucun tableau ne défile de côté, aucune bande ne cache un duel.
   ═══════════════════════════════════════════════════════════════════════════ */

.vs { max-width:1120px; }
.vs > header, .vs > section { margin:0 0 64px; }
.vs > section > h2 { margin-top:0; }
.vs code { overflow-wrap:anywhere; }

.vs sup { font-size:11px; line-height:0; white-space:nowrap; }
.vs sup a {
  color:var(--encre-moyenne);
  text-decoration:none;
  font-family:var(--police-donnee);
  display:inline-block;
  min-width:24px;
  min-height:24px;
  line-height:24px;
  text-align:center;
  vertical-align:middle;
}
.vs sup a:focus-visible { outline:2px solid var(--identite); outline-offset:1px; color:var(--encre-forte); }
.vs sup a:active { color:var(--encre-forte); background:var(--fond-surface-haute); }
/* Sur un écran tactile, ou dès que les tableaux passent en cartes, chaque appel devient une cible
   de 44 px : deux appels voisins ne se touchent plus du doigt par erreur. */
@media (max-width: 920px), (pointer: coarse) {
  .vs sup { display:inline-flex; flex-wrap:wrap; gap:4px; vertical-align:middle; line-height:normal; }
  .vs sup a { min-width:44px; min-height:44px; line-height:44px; }
}

/* Le signe d'une case : coche dans un disque plein, point d'interrogation dans un cercle, trait
   dans un cercle. Décoratif : le texte de la case, ou son « Oui » réservé aux lecteurs d'écran,
   dit la même chose. */
.signe {
  display:inline-grid;
  place-items:center;
  box-sizing:border-box;
  width:18px;
  height:18px;
  border-radius:50%;
  border:2px solid var(--mesure-confortable);
  background:var(--mesure-confortable);
  color:var(--fond-page);
  font-family:var(--police-texte);
  font-size:11px;
  font-weight:700;
  line-height:1;
  vertical-align:-4px;
  margin-right:6px;
}
.signe::before { content:"✓"; content:"✓" / ""; }
.signe.vide { background:transparent; border-color:var(--mesure-absente); color:var(--encre-moyenne); }
.signe.vide::before { content:"?"; content:"?" / ""; }
.signe.non { background:transparent; border-color:var(--encre-faible); color:var(--encre-moyenne); }
.signe.non::before { content:"–"; content:"–" / ""; }

/* Dans les lignes des connexions et des données, « annoncé » ne veut pas dire « bon pour vous » :
   la coche y reste neutre, jamais verte, pour qu'aucun concurrent n'y gagne une approbation. */
.vs-annonce .signe.plein { background:transparent; border-color:var(--encre-moyenne); color:var(--encre-moyenne); }
.groupe-note {
  display:block;
  margin-top:4px;
  font-size:12px;
  letter-spacing:0;
  text-transform:none;
  font-weight:400;
  color:var(--encre-moyenne);
}

.prix-lancement { font-size:14px; color:var(--encre-moyenne); margin:12px 0 0; }

/* ── 1 et 2. Chapô, puis « lequel prendre » ─────────────────────────────── */

.vs-tete .chapo { max-width:var(--lecture); margin-bottom:0; }
.vs-bref { max-width:var(--lecture); }
.vs-choix { list-style:none; padding:0; margin:0 0 24px; display:grid; gap:12px; }
.vs-choix li { margin:0; padding:0 0 12px; border-bottom:1px solid var(--filet-discret); color:var(--encre-moyenne); }
.vs-choix li:first-child { padding:12px 16px; border:0; border-left:3px solid var(--identite); background:var(--fond-surface); }
.vs-choix b { color:var(--encre-forte); font-weight:600; }

/* ── 3. Ce que 4,99 € achètent ──────────────────────────────────────────── */

.vs-raisons { max-width:var(--lecture); }
.vs-raisons > p { color:var(--encre-moyenne); }
.vs-raisons > p strong { color:var(--encre-forte); font-weight:600; }
.vs-raisons .liaison, .vs-raisons .flux { margin:24px 0 32px; }
.vs-raisons .flux-exceptions li { padding:4px 0; }
.vs-raisons .flux-exceptions li { font-size:13px; }
/* Les six sources se lisent d'un trait, comme une phrase : la liste reste une liste pour les
   lecteurs d'écran, le point médian n'est qu'un séparateur visuel. */
.vs-raisons .flux-sources ul { display:block; }
.vs-raisons .flux-sources li { display:inline; padding:0; border:0; font-size:13px; line-height:1.6; }
.vs-raisons .flux-sources li:not(:last-child)::after { content:" · "; content:" · " / ""; color:var(--encre-faible); }

/* ── 4. Six questions : un tableau sur grand écran, une carte par question ailleurs ── */

.vs-six { font-size:14px; line-height:1.4; table-layout:fixed; }
.vs-six thead th { white-space:normal; letter-spacing:0; text-transform:none; font-size:13px; font-weight:600; color:var(--encre-forte); }
.vs-six thead th:first-child { width:22%; }
.vs-six th[scope="row"] { font-weight:600; color:var(--encre-forte); }
.vs-six td { color:var(--encre-forte); }
.vs-six .q { background:var(--fond-surface); }
.vs-six thead .q { color:var(--identite); }
.vs-six td.q { border-left:2px solid var(--identite); border-right:2px solid var(--identite); }

/* ── 5. Où les autres font mieux ────────────────────────────────────────── */

.vs-mieux { max-width:var(--lecture); }
.vs-mieux li { color:var(--encre-moyenne); margin:0 0 12px; }
.vs-mieux li strong { color:var(--encre-forte); font-weight:600; }

/* ── 6. Les face-à-face, empilés ────────────────────────────────────────── */

.vs-duels { display:grid; gap:40px; }
.vs-duels > h2 { margin:0; }
.vs-duel {
  display:grid;
  gap:16px;
  align-content:start;
  padding:24px 0 0;
  border-top:2px solid var(--encre-forte);
  scroll-margin-top:24px;
}
.vs-duel h3 { font-size:22px; margin:0; }
.vs-duel h3 span { color:var(--encre-faible); font-weight:400; }
.vs-verdict { margin:0; font-size:17px; color:var(--encre-forte); max-width:var(--lecture); }
.vs-lignes { font-size:14px; table-layout:fixed; }
.vs-lignes th, .vs-lignes td { padding:8px; }
.vs-lignes thead th { white-space:normal; letter-spacing:0; text-transform:none; font-size:13px; font-weight:600; color:var(--encre-forte); }
.vs-lignes thead th:first-child { width:34%; }
.vs-lignes th[scope="row"] { font-weight:500; color:var(--encre-forte); }
.vs-lignes .q { background:var(--fond-surface); }
.vs-lignes thead .q { color:var(--identite); }
.vs-cotes { display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, 1fr); gap:16px; }
.vs-cote h4 { font-size:14px; font-weight:600; margin:0 0 8px; color:var(--encre-forte); }
.vs-cote.q h4 { color:var(--identite); }
.vs-cote ul { list-style:none; padding:0; margin:0; }
.vs-cote li { position:relative; margin:0 0 8px; padding:0 0 0 20px; font-size:14px; color:var(--encre-moyenne); }
.vs-cote li::before {
  content:"";
  position:absolute;
  left:0;
  top:4px;
  width:6px;
  height:12px;
  border:2px solid var(--encre-moyenne);
  border-radius:2px;
}
.vs-cote.q li::before { background:var(--identite); border-color:var(--identite); }
.vs-suite { margin:0; font-size:14px; }
@media (min-width: 760px) {
  .vs-cotes { gap:32px; }
}
@media (min-width: 1100px) {
  .vs-duels { grid-template-columns:minmax(0, 1fr) minmax(0, 1fr); column-gap:48px; }
  .vs-duels > h2 { grid-column:1 / -1; }
}

/* ── 7. Fin de page ─────────────────────────────────────────────────────── */

.vs-fin { padding:40px 0 0; border-top:2px solid var(--identite); }
.vs-fin > h2 { font-size:28px; max-width:var(--lecture); text-wrap:balance; }
.vs-fin > .phrase { font-size:17px; max-width:var(--lecture); color:var(--encre-moyenne); }
.vs-fin .frise { margin:24px 0; }

/* ── 8 et 9. Les deux blocs repliés ─────────────────────────────────────── */

.vs-tout { margin:0 0 16px; border-top:1px solid var(--filet-action); }
.vs-tout > summary {
  display:flex;
  align-items:center;
  gap:12px;
  min-height:44px;
  padding:12px 0;
  cursor:pointer;
  list-style:none;
}
.vs-tout > summary::-webkit-details-marker { display:none; }
.vs-tout > summary::before {
  content:"+"; content:"+" / "";
  flex:none;
  display:grid;
  place-items:center;
  width:28px;
  height:28px;
  border:1px solid var(--filet-action);
  border-radius:2px;
  font-family:var(--police-donnee);
  color:var(--encre-forte);
}
.vs-tout[open] > summary::before { content:"–"; content:"–" / ""; }
.vs-tout > summary h2 { display:inline; margin:0; font-size:20px; }
.vs-tout > summary:focus-visible { outline:2px solid var(--identite); outline-offset:2px; }
.vs-tout > summary:active::before { background:var(--fond-surface-haute); }
.vs-tout[open] { padding-bottom:32px; }
.vs-tout h3 { margin-top:40px; }
.vs-releve { font-size:15px; color:var(--encre-moyenne); }
.legende { display:flex; flex-wrap:wrap; gap:8px 24px; font-size:13px; color:var(--encre-moyenne); margin:0 0 16px; }
.enveloppe-matrice { margin:0 0 16px; }

table.matrice { border-collapse:separate; border-spacing:0; font-size:14px; line-height:1.45; table-layout:fixed; }
table.matrice th, table.matrice td { padding:12px; border-bottom:1px solid var(--filet-discret); vertical-align:top; }
table.matrice thead th {
  position:sticky;
  top:0;
  z-index:2;
  background:var(--fond-page);
  font-size:13px;
  font-weight:600;
  letter-spacing:0;
  text-transform:none;
  color:var(--encre-forte);
  border-bottom:2px solid var(--filet-action);
  white-space:normal;
}
table.matrice .col-critere { width:18%; }
table.matrice thead .col-quotum { color:var(--identite); border-bottom-color:var(--identite); }
table.matrice tbody th[scope="row"] { font-weight:500; color:var(--encre-forte); }
table.matrice tr.groupe th {
  padding:32px 12px 8px;
  font-size:12px;
  font-weight:500;
  letter-spacing:0.1em;
  text-transform:uppercase;
  color:var(--identite);
  border-bottom:1px solid var(--filet-action);
}
table.matrice td { color:var(--encre-forte); overflow-wrap:anywhere; }
table.matrice .col-quotum {
  background:var(--fond-surface);
  border-left:2px solid var(--identite);
  border-right:2px solid var(--identite);
}

.vs-trois { font-size:14px; table-layout:fixed; }
.vs-trois thead th { white-space:normal; letter-spacing:0; text-transform:none; font-size:13px; font-weight:600; color:var(--encre-forte); }
.vs-trois thead th:first-child { width:22%; }
.vs-trois td { overflow-wrap:anywhere; }
.vs-tout ol { padding-left:32px; font-size:14px; }
.vs-tout ol li { overflow-wrap:anywhere; }

@media (hover:hover) and (pointer:fine) {
  .vs sup a:hover { color:var(--identite); text-decoration:underline; }
  .vs-tout > summary:hover h2 { color:var(--identite); }
  .vs-tout > summary:hover::before { border-color:var(--identite); }
}

/* ── Téléphone et tablette : chaque tableau devient une pile de cartes ──────
   La case garde son outil en titre (data-col ou data-outil), Quotum en tête. */
@media (max-width: 920px) {
  table.matrice, table.matrice tbody, table.matrice tr, table.matrice tr > * { display:block; width:auto; }
  table.matrice thead { display:none; }
  table.matrice tr.groupe th { padding:32px 0 8px; }
  table.matrice tbody tr:not(.groupe) { padding:16px 0 8px; border-bottom:1px solid var(--filet-action); }
  table.matrice th[scope="row"] { padding:0 0 8px; font-size:16px; border:0; }
  table.matrice td { padding:8px 0 8px 132px; position:relative; min-height:24px; }
  table.matrice td::before {
    content:attr(data-col);
    position:absolute;
    left:0;
    top:8px;
    width:120px;
    font-size:13px;
    font-weight:500;
    color:var(--encre-moyenne);
  }
  table.matrice tbody tr > td:last-child { border-bottom:0; }
  table.matrice td.col-quotum { border:0; border-left:3px solid var(--identite); padding-left:132px; }
  table.matrice td.col-quotum::before { left:9px; color:var(--identite); font-weight:600; }
}

@media (max-width: 920px) {
  .vs-six, .vs-six tbody, .vs-six tr, .vs-six tr > *,
  .vs-trois, .vs-trois tbody, .vs-trois tr, .vs-trois tr > * { display:block; width:auto; }
  .vs-six thead, .vs-trois thead { display:none; }
  .vs-six tbody tr, .vs-trois tbody tr { padding:16px 0 8px; border-bottom:1px solid var(--filet-action); }
  .vs-six th[scope="row"], .vs-trois th[scope="row"] { padding:0 0 8px; font-size:16px; border:0; }
  .vs-six td, .vs-trois td { position:relative; padding:8px 0 8px 132px; min-height:24px; }
  .vs-six td { padding:1px 0 1px 112px; border-bottom:0; line-height:1.25; }
  /* Le seul nom d'outil qui passe à la ligne : la case prend sa hauteur pour ne pas chevaucher la suivante. */
  .vs-six td[data-outil="Claude Usage Tracker"] { min-height:2.7em; }
  .vs-six td.q { margin-bottom:2px; }
  .vs-six td::before, .vs-trois td::before {
    position:absolute;
    left:0;
    top:8px;
    width:120px;
    font-size:13px;
    font-weight:500;
    color:var(--encre-moyenne);
  }
  .vs-six td::before { content:attr(data-outil); }
  .vs-trois td::before { content:attr(data-col); }
  .vs-six tbody tr > td:last-child, .vs-trois tbody tr > td:last-child { border-bottom:0; }
  .vs-six td.q { border:0; border-left:3px solid var(--identite); padding-left:120px; background:var(--fond-surface); }
  .vs-six td::before { top:2px; width:104px; }
  .vs-six td.q { padding-left:112px; }
  .vs-six td.q::before { left:9px; color:var(--identite); font-weight:600; }
  .vs-six tbody tr { padding:4px 0 2px; }
  .vs-six th[scope="row"] { padding:0 0 2px; font-size:14px; line-height:1.35; }
  .vs-six td::before { font-size:12px; }
  .vs-six td::before { top:1px; }
}

@media (max-width: 760px) {
  .vs-raisons .liaison-pn { height:264px; }
  .vs-raisons .liaison-arrivees { gap:8px; }
  .vs-raisons .liaison-nom { padding:4px 10px; }
  .vs-raisons .liaison-barre { height:16px; }
  .vs-raisons .liaison-barre i { width:7px; height:7px; }
  /* Les trois nœuds restent sur une ligne : le schéma se lit d'un coup d'œil sans occuper
     un écran entier, les flèches deviennent horizontales comme sur grand écran. */
  .vs-raisons .flux-schema { grid-template-columns:minmax(0, 1fr) 56px auto 56px minmax(0, 1fr); align-items:center; }
  .vs-raisons .flux-noeud { padding:8px; align-self:stretch; }
  .vs-raisons .flux-noeud p { font-size:12px; line-height:1.35; }
  .vs-raisons .flux-noeud .flux-titre { font-size:13px; }
  .vs-raisons .flux-fleche { flex-direction:column; justify-content:flex-end; gap:0; min-height:0; padding:0 4px 14px; font-size:11px; line-height:1.2; text-align:center; }
  .vs-raisons .flux-fleche::before { left:4px; right:10px; top:auto; bottom:4px; width:auto; height:2px; }
  .vs-raisons .flux-fleche::after { left:auto; right:4px; bottom:0; width:9px; height:10px; clip-path:polygon(0 0, 100% 50%, 0 100%); }
  .vs-raisons .flux-jamais { margin-top:12px; gap:4px; }
  .vs-raisons .flux-exceptions, .vs-raisons .flux-sources { margin-top:12px; padding-top:8px; }
  .vs p, .vs li { line-height:1.45; }
  .vs-tete h1 { font-size:26px; }
  .vs-tete .chapo { font-size:16px; }
  .vs .boutons { flex-wrap:nowrap; gap:8px; margin-bottom:8px; }
  .vs .boutons .bouton { flex:1 1 auto; padding:0 12px; font-size:15px; }
  .vs-fin > h2 { font-size:24px; }
  .vs-fin > .phrase { font-size:15px; }
  .vs-choix { gap:8px; margin-bottom:16px; }
  .vs-choix li { padding-bottom:8px; }
  .vs-choix li:first-child { padding:8px 12px; }
  .vs-duels { gap:16px; }
  .vs-duel { gap:8px; padding-top:12px; }
  .vs-raisons .liaison, .vs-raisons .flux { margin:16px 0; }
  .vs .prix-lancement { font-size:13px; margin-top:8px; }
  .vs-mieux li { margin-bottom:6px; }
  .vs-duel h3 { font-size:20px; }
  .vs-verdict { font-size:15px; line-height:1.4; }
  .vs-lignes { font-size:13px; line-height:1.35; }
  .vs-lignes th, .vs-lignes td { padding:5px 6px; }
  .vs-lignes thead th:first-child { width:30%; }
  .vs-cotes { gap:12px; }
  .vs-questions > p { margin:0 0 8px; }
  .vs > section > h2 { margin-bottom:12px; }
  .vs-cote h4 { font-size:13px; line-height:1.3; margin-bottom:4px; }
  .vs-lignes thead th { padding-top:4px; padding-bottom:4px; }
  .vs-cote li { font-size:13px; line-height:1.4; margin-bottom:4px; }
  .vs-suite { font-size:13px; }
  .vs-fin { padding-top:24px; }
  .vs-fin .frise { grid-template-columns:repeat(5, minmax(0, 1fr)); margin:16px 0; }
  .vs-fin .frise > li { padding:12px 4px 8px 0; }
  .vs-fin .frise time { font-size:12px; }
  .vs-fin .frise-libelle { font-size:12px; line-height:1.3; overflow-wrap:anywhere; hyphens:auto; }
}

@media (max-width: 480px) {
  table.matrice td, table.matrice td.col-quotum, .vs-trois td { padding-left:0; padding-top:28px; }
  table.matrice td::before, .vs-trois td::before { width:auto; }
  table.matrice td.col-quotum { padding-left:12px; }
  .vs > header, .vs > section { margin-bottom:20px; }
}
