/* ==========================================================================
   comparatif.css — Comparatif VPN · refonte « journal »
   Carte de tête « dossier » bordée encre + tableau réglé presse.
   Standalone : consomme uniquement les tokens. Action = teal uniquement.
   ========================================================================== */

/* Garde-fou icônes : aucun SVG du comparatif à sa taille intrinsèque. */
.vpn-hero-card svg,
.vpn-compare svg { width: 1em; height: 1em; flex: none; }

/* --- Carte de tête "Meilleur choix" ------------------------------------- */
.vpn-hero-card {
  background: var(--surface);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-off-teal);
  overflow: hidden;
  margin: var(--space-6) 0 var(--space-7);
  position: relative;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}
.vpn-hero-card .vh-top {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-6) var(--space-6) var(--space-5);
  border-bottom: 1px solid var(--rule);
}
.vpn-hero-card .vh-logo {
  flex: none;
  width: 60px; height: 60px;
  background: #fff;
  border: 2px solid var(--ink);
  display: grid; place-items: center;
  font-family: var(--font-serif); font-weight: 700; font-size: 18px;
  color: var(--brand-700);
}
.vpn-hero-card .vh-logo img { width: 38px; height: 38px; object-fit: contain; }
.vpn-hero-card .vh-head { flex: 1; min-width: 0; }
.vpn-hero-card .vh-badges {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: var(--space-2); margin-bottom: var(--space-2);
}
.vpn-hero-card .vh-name {
  font-family: var(--font-serif); font-weight: 600;
  font-size: var(--fs-h3); color: var(--ink); line-height: 1.15;
}
.vpn-hero-card .vh-badge {
  display: inline-flex; align-items: center; gap: .35em;
  font-family: var(--font-mono); font-weight: 700; font-size: 0.65rem;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .35em .7em;
  background: var(--accent-500); color: #fff;
}
.vpn-hero-card .vh-rank {
  font-family: var(--font-mono); font-size: var(--fs-micro);
  color: var(--ink-3); white-space: nowrap;
}
.vpn-hero-card .vh-rating {
  display: inline-flex; align-items: baseline; gap: .45em; margin-top: var(--space-2);
}
.vpn-hero-card .vh-rating .score {
  font-family: var(--font-mono); font-weight: 700; font-size: 1.35em; color: var(--ink);
}
.vpn-hero-card .vh-rating .out { font-family: var(--font-mono); color: var(--ink-3); font-size: .85em; }
.vpn-stars { display: inline-flex; gap: 2px; color: var(--gold-500); vertical-align: middle; }
.vpn-stars svg { width: 1.05em; height: 1.05em; display: block; }
.vpn-hero-card .vh-tagline {
  margin-top: var(--space-3); font-size: var(--fs-body);
  color: var(--ink-2); line-height: var(--lh-body);
}

/* sous-notes étoilées */
.subscore-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3) var(--space-5);
  padding: var(--space-5) var(--space-6);
  background: var(--paper-alt);
  border-bottom: 1px solid var(--rule);
}
.subscore-grid .ss-item { display: flex; flex-direction: column; gap: 2px; }
.subscore-grid .ss-label {
  font-family: var(--font-mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: .08em; color: var(--ink-3);
}
.subscore-grid .ss-stars { display: inline-flex; align-items: center; gap: .4em; }
.subscore-grid .ss-val { font-family: var(--font-mono); font-weight: 700; font-size: var(--fs-micro); color: var(--ink-2); }

/* pros / cons */
.vpn-hero-card .vh-proscons {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
}
.vpn-hero-card .vh-col { padding: var(--space-5) var(--space-6); }
.vpn-hero-card .vh-col + .vh-col { border-left: 1px solid var(--rule); }
.vpn-hero-card .vh-col h4 {
  font-family: var(--font-mono); font-size: 0.69rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  display: flex; align-items: center; gap: .5em; margin-bottom: var(--space-3);
}
.vpn-hero-card .vh-col.pros h4 { color: var(--accent-600); }
.vpn-hero-card .vh-col.cons h4 { color: var(--danger); }
.vpn-hero-card .vh-col ul { list-style: none; display: grid; gap: var(--space-2); margin: 0; padding: 0; }
.vpn-hero-card .vh-col li { display: flex; gap: .6em; font-size: var(--fs-small); color: var(--ink-2); line-height: 1.45; }
.vpn-hero-card .vh-col li svg { width: 16px; height: 16px; flex: none; margin-top: 3px; }
.vpn-hero-card .vh-col.pros li svg { color: var(--accent-600); }
.vpn-hero-card .vh-col.cons li svg { color: var(--danger); }
.vpn-hero-card .vh-col h4 svg { width: 18px; height: 18px; flex: none; }
.vpn-hero-card .vh-badge svg { width: 1em; height: 1em; flex: none; }

/* pied : prix + CTA */
.vpn-hero-card .vh-foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  border-top: 2px solid var(--ink);
  background: var(--paper-alt);
}
.vpn-hero-card .vh-price { font-family: var(--font-mono); }
.vpn-hero-card .vh-price b { font-size: 1.6rem; color: var(--ink); font-weight: 700; }
.vpn-hero-card .vh-price .unit { font-size: var(--fs-small); color: var(--ink-2); font-weight: 400; }
.vpn-hero-card .vh-price small { display: block; font-size: var(--fs-micro); color: var(--ink-3); }
.vpn-hero-card .vh-actions {
  margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: var(--space-2);
}
.vpn-hero-card .vh-actions .vh-row { display: flex; align-items: center; gap: var(--space-3); }
.vpn-hero-card .vh-disclosure { font-size: 11px; color: var(--ink-3); font-family: var(--font-mono); }

/* chip remise neutre (uniquement si réelle) */
.vpn-chip {
  display: inline-flex; align-items: center; gap: .3em;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  letter-spacing: .04em;
  padding: .25em .55em;
  background: var(--paper-alt); color: var(--ink-2); border: 1px solid var(--rule);
}

/* boutons action — une seule couleur : teal, offset dur */
.vpn-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-mono); font-weight: 700; font-size: 0.71875rem;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .75em 1.3em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.vpn-btn-primary {
  background: var(--accent-500); color: #fff; border: 2px solid var(--ink);
  box-shadow: var(--shadow-off-sm);
}
.vpn-btn-primary:hover { background: var(--accent-600); transform: translate(2px, 2px); box-shadow: 1px 1px 0 rgba(11,27,43,.2); }
.vpn-btn-ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.vpn-btn-ghost:hover { background: var(--accent-wash); }
.vpn-link-review {
  font-family: var(--font-mono); font-weight: 700; font-size: 0.65rem;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-2); text-decoration: none;
  border-bottom: 1px solid var(--rule-soft);
}
.vpn-link-review:hover { color: var(--accent-600); border-bottom-color: var(--accent-500); }

/* --- Tableau comparatif scannable --------------------------------------- */
.vpn-compare-wrap {
  overflow-x: auto;
  border: 2px solid var(--ink);
  -webkit-overflow-scrolling: touch;
  margin: var(--space-5) 0;
  background: var(--surface);
}
.vpn-compare {
  width: 100%; border-collapse: collapse; min-width: 880px; background: var(--surface);
  font-family: var(--font-sans);
}
.vpn-compare thead th {
  position: sticky; top: 0; z-index: 2;
  background: var(--brand-900); color: #FAF8F4;
  font-family: var(--font-mono); font-weight: 700; font-size: 0.69rem;
  letter-spacing: .08em; text-transform: uppercase;
  text-align: left; padding: var(--space-4); white-space: nowrap;
}
.vpn-compare tbody td {
  padding: var(--space-4); border-bottom: 1px solid var(--rule);
  vertical-align: middle; font-size: var(--fs-small); color: var(--ink-2);
}
.vpn-compare tbody tr:nth-child(even) { background: var(--paper-alt); }
.vpn-compare tbody tr:hover { background: var(--accent-wash); }
.vpn-compare tbody tr.is-top { background: var(--accent-wash); box-shadow: inset 4px 0 0 var(--accent-500); }
.vpn-compare tbody tr.is-top:hover { background: var(--accent-wash); }
.vpn-compare .c-rank { font-family: var(--font-mono); font-weight: 700; color: var(--ink-3); font-size: 1.1rem; }
.vpn-compare tr.is-top .c-rank { color: var(--accent-600); }
.vpn-compare .c-tool { display: flex; align-items: center; gap: var(--space-3); }
.vpn-compare .c-logo {
  width: 38px; height: 38px;
  background: #fff; border: 1.5px solid var(--rule-soft);
  display: grid; place-items: center;
  font-family: var(--font-serif); font-weight: 700; font-size: 13px; color: var(--brand-700); flex: none;
}
.vpn-compare .c-logo img { width: 24px; height: 24px; object-fit: contain; }
.vpn-compare .c-name { font-weight: 700; color: var(--ink); }
.vpn-compare .c-name small { display: block; font-family: var(--font-mono); font-weight: 400; font-size: 11px; color: var(--ink-3); letter-spacing: .04em; }
.vpn-compare .c-note {
  display: inline-flex; align-items: center; gap: .35em;
  background: var(--surface); color: var(--ink); border: 1.5px solid var(--ink);
  padding: .25em .6em;
  font-family: var(--font-mono); font-weight: 700; font-size: var(--fs-small); white-space: nowrap;
}
.vpn-compare .c-note svg { width: 1em; height: 1em; color: var(--gold-500); }
.vpn-compare .c-price b { font-family: var(--font-mono); font-weight: 700; color: var(--ink); font-size: 1.05rem; }
.vpn-compare .c-price small { display: block; font-family: var(--font-mono); font-weight: 400; font-size: 11px; color: var(--ink-3); }
.vpn-compare .c-keys { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.vpn-compare .c-offer { white-space: nowrap; }
.vpn-compare-note { font-size: var(--fs-micro); color: var(--ink-3); margin-top: var(--space-3); }

/* --- Responsive --------------------------------------------------------- */
@media (max-width: 720px) {
  .vpn-hero-card .vh-proscons { grid-template-columns: 1fr; }
  .vpn-hero-card .vh-col + .vh-col { border-left: 0; border-top: 1px solid var(--rule); }
  .subscore-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vpn-hero-card .vh-foot { flex-direction: column; align-items: stretch; }
  .vpn-hero-card .vh-actions { margin-left: 0; align-items: stretch; width: 100%; }
  .vpn-hero-card .vh-actions .vh-row { flex-direction: column; align-items: stretch; }
  .vpn-btn { width: 100%; }

  /* tableau -> cartes empilées */
  .vpn-compare-wrap { overflow-x: visible; border: 0; background: transparent; }
  .vpn-compare { min-width: 0; }
  .vpn-compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .vpn-compare tbody tr {
    display: block; margin-bottom: var(--space-4);
    border: 2px solid var(--ink);
    background: var(--surface); overflow: hidden;
  }
  .vpn-compare tbody tr:nth-child(even) { background: var(--surface); }
  .vpn-compare tbody tr.is-top { box-shadow: var(--shadow-off-teal); }
  .vpn-compare tbody td {
    display: flex; justify-content: space-between; align-items: center; gap: var(--space-4);
    padding: var(--space-3) var(--space-4); text-align: right;
  }
  .vpn-compare tbody td::before {
    content: attr(data-label);
    font-family: var(--font-mono); font-size: 11px; text-transform: uppercase;
    letter-spacing: .08em; color: var(--ink-3); text-align: left; flex: none;
  }
  .vpn-compare .c-tool, .vpn-compare .c-keys { justify-content: flex-end; flex-wrap: wrap; }
  .vpn-compare .c-offer .vpn-btn { width: auto; }
}
