/* ==========================================================================
   Pages guides (comparatifs, budget, prix de base). Complète /styles.css.
   Tokens : /brand/tokens.css. Mobile d'abord, 390 px sans défilement de page.
   ========================================================================== */

.guide { padding-top: var(--space-6); padding-bottom: var(--space-10); }
.guide > * + * { margin-top: var(--space-4); }
.guide > h1 + * { margin-top: var(--space-4); }

.guide h1 {
  font-size: 30px; line-height: 36px; font-weight: 600; letter-spacing: -0.01em;
  color: var(--color-text); max-width: 680px;
}
.guide h2 {
  font-size: 24px; line-height: 32px; font-weight: 600; margin-top: var(--space-10);
  color: var(--color-text);
}
.guide h3 { font-size: 20px; line-height: 28px; font-weight: 600; margin-top: var(--space-8); }
.guide p, .guide li { max-width: 680px; font-size: 16px; line-height: 24px; }
.guide p + p { margin-top: var(--space-3); }
.guide .lead { font-size: 18px; line-height: 28px; color: var(--color-text-muted); }
.guide .note { color: var(--color-text-muted); font-size: 14px; line-height: 20px; }
.guide a { color: var(--color-brand-text); font-weight: 600; text-underline-offset: 3px; }

.crumbs { margin-top: var(--space-2); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; font-size: 14px; color: var(--color-text-muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--color-text-subtle); }
.crumbs li[aria-current="page"] { color: var(--color-text); }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: var(--space-6); }
.cta-note { font-size: 14px; color: var(--color-text-muted); }
.guide .btn--lg { color: var(--color-on-brand); text-decoration: none; }

.verdict {
  background: var(--color-saving-soft); color: var(--color-text);
  padding: var(--space-4) var(--space-5); border-radius: var(--radius-md);
  font-family: var(--font-display); font-weight: 600; font-size: 18px; line-height: 28px;
  max-width: none;
}

.plain { list-style: none; padding: 0; margin: 0; }
.plain li + li { margin-top: var(--space-2); }
.method li { color: var(--color-text); }

.also { margin-top: var(--space-10); }
.also h2 { margin-top: 0; font-size: 20px; line-height: 28px; }

/* ---------- tableaux denses ---------- */
.table-wrap { width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: var(--space-4); border-top: 1px solid var(--color-border); }
table.dense { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 20px; font-variant-numeric: tabular-nums; }
table.dense caption { text-align: left; font-size: 14px; color: var(--color-text-muted); padding: 8px 0; caption-side: top; }
table.dense th, table.dense td { text-align: left; vertical-align: top; padding: 10px 10px 10px 0; border-bottom: 1px solid var(--color-border); }
table.dense th { font-weight: 700; color: var(--color-text-muted); font-size: 13px; white-space: nowrap; }
table.dense td { color: var(--color-text); }
table.dense tr.muted td { color: var(--color-text-muted); }
table.dense .num { text-align: right; white-space: nowrap; }
table.dense td.name { white-space: normal; }
table.dense td strong { font-family: var(--font-display); font-weight: 700; font-size: 16px; }
table.dense .sub { display: block; font-size: 13px; line-height: 18px; color: var(--color-text-muted); font-weight: 500; white-space: normal; }
table.dense th:first-child, table.dense td:first-child { padding-left: 0; }

/* enseigne : logo + nom */
.chain-logo { height: 22px; width: auto; max-width: 96px; display: inline-block; vertical-align: middle; margin-right: 10px; }
td.name, h3.chain-title { display: flex; align-items: center; flex-wrap: wrap; }
td.name span, h3.chain-title span { line-height: 22px; }
h3.chain-title { font-size: 20px; }

/* ---------- détails dépliables ---------- */
details { margin-top: var(--space-4); }
details > summary {
  cursor: pointer; color: var(--color-brand-text); font-weight: 700; font-size: 15px;
  text-decoration: underline; text-underline-offset: 3px; padding: 6px 0; list-style-position: inside;
}
details > summary:focus-visible { box-shadow: var(--ring-focus); border-radius: 6px; }
details[open] > summary { margin-bottom: 4px; }

/* ---------- sommaire fiches produits ---------- */
.sommaire ol { columns: 2; column-gap: 24px; font-size: 16px; }
.sommaire li { break-inside: avoid; padding: 4px 0; }
.product { margin-top: var(--space-10); scroll-margin-top: 84px; }
.product h2 { margin-top: 0; }

/* ---------- écran large ---------- */
@media (min-width: 768px) {
  .guide { padding-top: var(--space-10); }
  .guide h1 { font-size: 40px; line-height: 48px; }
  .guide h2 { font-size: 26px; line-height: 34px; }
  .table-wrap { overflow-x: visible; }
  table.dense { font-size: 15px; }
  .sommaire ol { columns: 3; }
}
