/* ==========================================================================
   Comparatif, guides & FAQ — styles propres à la page
   S'appuie sur css/style.css (jetons, .section, .card, .stage, .img-slot…).
   ========================================================================== */

:root { --hdr: 72px; }
.nowrap { white-space: nowrap; }

main [id] { scroll-margin-top: calc(var(--hdr) + 20px); }
/* Ancres du sommaire : le titre de section (et non le haut du rembourrage) arrive sous l'en-tête. */
main .section[id] { scroll-margin-top: calc(var(--hdr) + 24px - clamp(72px, 9vw, 128px)); }
main .section--tight[id] { scroll-margin-top: calc(var(--hdr) + 24px - clamp(56px, 6vw, 88px)); }
main .verdict[id] { scroll-margin-top: calc(var(--hdr) + 24px); }

/* ---------- En-tête de page ---------- */
.phead { padding-block: clamp(48px, 7vw, 96px) clamp(36px, 4vw, 56px); }
.phead__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 40px clamp(40px, 6vw, 96px);
  align-items: end;
}
.phead__main { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; min-width: 0; }
.phead h1 { font-size: clamp(38px, 4.9vw, 68px); line-height: .98; max-width: 17ch; text-wrap: balance; }
.phead .lead { max-width: 52ch; }
.phead__meta { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }

/* Sommaire de page */
.toc {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 18px 8px 8px;
}
.toc > .label { display: block; padding: 0 14px 8px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.toc a {
  display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 6px;
  min-height: 48px; padding: 0 14px; border-radius: 12px;
  font-size: 15px; font-weight: 500; color: var(--ink-2);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.toc a small { font-family: var(--f-mono); font-size: 11px; color: var(--muted); }
.toc__less { display: none; }
.toc__arr { color: var(--muted-2); transition: transform .25s var(--ease), color .2s var(--ease); }
.toc a:hover { background: var(--paper); color: var(--ink); }
.toc a:hover .toc__arr { transform: translateX(3px); color: var(--accent); }

@media (max-width: 900px) {
  .phead__grid { grid-template-columns: 1fr; align-items: start; }
  .toc { background: transparent; border: 0; padding: 0; }
  .toc > .label { padding: 0 0 10px; }
  .toc ol { display: flex; flex-wrap: wrap; gap: 8px; }
  .toc a {
    grid-template-columns: auto auto; min-height: 44px; padding: 0 16px; gap: 8px;
    border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 14px;
  }
  .toc__arr { display: none; }
}
@media (max-width: 600px) {
  .toc ol { gap: 6px; }
  .toc a { padding: 0 14px; gap: 6px; }
  .toc__more { display: none; }
  .toc__less { display: inline; }
}

/* ---------- En bref : cartes verdict ---------- */
.verdict { padding-top: 0; }
.verdict .section-head { margin-bottom: clamp(28px, 3.5vw, 44px); }
.verdict__grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 clamp(16px, 2vw, 24px);
}
.vcard {
  display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 20px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 2.2vw, 28px);
  box-shadow: 0 1px 0 rgba(18,20,18,.03);
}
.vcard__top { display: grid; grid-template-columns: clamp(112px, 9.6vw, 144px) minmax(0, 1fr); gap: 20px; align-items: center; }
/* Cadrage serré : le produit remplit son emplacement (padding en % de la piste de grille). */
.vcard__img { border-radius: var(--radius); padding: 5% 5% 6%; }
.vcard__img::after { bottom: 4%; }
.vcard__id { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.vcard__id h3 { font-size: clamp(24px, 2.1vw, 30px); }
.vcard__tagline { font-size: 14.5px; color: var(--muted); }
.vcard__body { display: flex; flex-direction: column; gap: 14px; }
.vcard__use { margin: 0; font-size: 16px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.vcard__warn {
  margin: 0; display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start;
  padding: 12px 14px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent-ink);
  font-size: 14px; line-height: 1.45;
}
.vcard__warn svg { color: #B43D0C; margin-top: 1px; }
.vcard__alt a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.vcard__alt a:hover { color: var(--accent); }
.vcard__stats {
  margin: 0; align-self: start;
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  padding-top: 20px; border-top: 1px solid var(--line-soft);
}
.vcard__stats dd { margin: 0; }
.vcard__price {
  align-self: stretch;
  display: flex; flex-direction: column; gap: 8px;
  padding: 16px 18px; border-radius: var(--radius);
  background: var(--paper);
}
.vcard__price .price { font-size: clamp(30px, 2.6vw, 38px); }
.vcard__alt { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.vcard__alt b { color: var(--ink); font-weight: 600; white-space: nowrap; }
.vcard__pnote { margin-top: 2px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12px; }
.vcard sup { font-size: .62em; line-height: 0; }
/* Cible tactile de 44 px ; le soulignement reste collé au texte. */
.vcard__link { align-self: end; justify-self: start; position: relative; min-height: 44px; border-bottom: 0; padding: 0; }
.vcard__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 9px; height: 1.5px; background: currentColor; }

@media (max-width: 1080px) {
  .verdict__grid { grid-template-columns: 1fr; gap: 16px; }
  .vcard { display: grid; grid-row: auto; grid-template-rows: none; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 18px 32px; align-items: start; }
  .vcard__top, .vcard__body { grid-column: 1; }
  .vcard__stats, .vcard__price { grid-column: 2; }
  .vcard__top { grid-row: 1; } .vcard__body { grid-row: 2 / span 2; }
  .vcard__stats { grid-row: 1; padding-top: 0; border-top: 0; align-self: center; }
  .vcard__price { grid-row: 2; }
  .vcard__link { grid-column: 2; grid-row: 3; }
}
@media (max-width: 680px) {
  .vcard { grid-template-columns: 1fr; }
  .vcard > * { grid-column: 1 !important; grid-row: auto !important; }
  .vcard__stats { padding-top: 18px; border-top: 1px solid var(--line-soft); }
  .vcard__top { grid-template-columns: 104px minmax(0, 1fr); gap: 16px; }
}

/* ---------- Tableau comparatif ---------- */
.cmp-head .cmp-head__side { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.cmp-head__side b { color: var(--ink); }
.hl-switch {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 0 20px 0 12px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--line);
  font-size: 14.5px; font-weight: 600; line-height: 1.25; cursor: pointer;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.hl-switch:hover { border-color: var(--ink); }
/* Piste décochée contrastée (WCAG 1.4.11) ; cochée, l'encre du composant commun. */
.hl-switch .toggle:not(:checked) { box-shadow: inset 0 0 0 1.5px var(--muted); }
.hl-switch .toggle:checked::after { box-shadow: 0 1px 3px rgba(0,0,0,.25); }

.cmp { position: relative; overflow-anchor: none; } /* la compensation est gérée par comparateur.js */
.cmp__table {
  width: 100%; table-layout: fixed;
  border-collapse: separate; border-spacing: 0;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  font-variant-numeric: tabular-nums;
}
.cmp__col-label { width: 22%; }
.cmp__table th, .cmp__table td { text-align: left; vertical-align: top; font-weight: inherit; }

/* Ligne d'en-tête collante */
.cmp__table thead th, .cmp__table thead td {
  position: sticky; top: var(--hdr); z-index: 3;
  background: var(--white);
  padding: 18px 20px 18px;
  border-bottom: 1px solid var(--ink);
  vertical-align: bottom;
  transition: box-shadow .25s var(--ease);
}
.cmp__table thead td { border-top-left-radius: var(--radius-lg); }
.cmp__table thead th:last-child { border-top-right-radius: var(--radius-lg); }
.cmp__table thead th + th { border-left: 1px solid var(--line-soft); }
.cmp.is-stuck thead th, .cmp.is-stuck thead td { box-shadow: 0 14px 18px -16px rgba(18,20,18,.35); border-radius: 0; }
.cmp__corner { display: table-cell; }
.cmp__corner .label { display: block; }
.cmp__legend {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 10px;
  font-size: 12.5px; color: var(--muted); line-height: 1.3;
  transition: opacity .2s var(--ease);
}
.cmp__legend i { width: 14px; height: 14px; flex: none; border-radius: 4px; background: var(--accent-soft); box-shadow: inset 0 0 0 1px #F3C3AC; }
.cmp__table:not(.is-hl) .cmp__legend { opacity: 0; visibility: hidden; }

.cmp__mhead { display: flex; align-items: center; gap: 14px; min-width: 0; }
/* Padding en px : en % il serait calculé sur la largeur du conteneur flex, pas sur la vignette. */
.cmp__thumb { width: 68px; flex: none; border-radius: 12px; padding: 4px 4px 5px; }
.cmp__thumb::after { bottom: 3px; left: 18%; right: 18%; }
.cmp__id { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cmp__name { font-family: var(--f-display); font-weight: 700; font-size: clamp(18px, 1.55vw, 22px); line-height: 1.1; letter-spacing: -.02em; }
.cmp__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.cmp__actions .btn { --h: 44px; padding: 0 16px; font-size: 13.5px; gap: 8px; }

/* En-tête détaché : version compacte (vignette réduite, sans boutons ni légende). */
@media (min-width: 821px) {
  .cmp.is-stuck .cmp__table thead th, .cmp.is-stuck .cmp__table thead td { padding-block: 10px; vertical-align: middle; }
  .cmp.is-stuck .cmp__actions, .cmp.is-stuck .cmp__legend, .cmp.is-stuck .cmp__id .label { display: none; }
  .cmp.is-stuck .cmp__thumb { width: 40px; padding: 2px; }
  .cmp.is-stuck .cmp__thumb::after { display: none; }
}

/* Intertitres de groupe */
.cmp__gh th {
  padding: 30px 20px 12px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink);
}
.cmp__gh th span { display: inline-flex; align-items: center; gap: 10px; }
.cmp__gh th span::before { content: ""; width: 18px; height: 2px; background: var(--accent); }
.cmp__table tbody:first-of-type .cmp__gh th { padding-top: 22px; }

/* Lignes */
.cmp__table tbody tr:not(.cmp__gh) > * { border-top: 1px solid var(--line-soft); padding: 16px 20px; transition: background .25s var(--ease); }
.cmp__table tbody tr:not(.cmp__gh) > td { border-left: 1px solid var(--line-soft); font-size: 15.5px; line-height: 1.45; }
.cmp__table tbody th[scope="row"] { font-size: 15px; }
.cmp__table tbody th[scope="row"] small { font-family: var(--f-mono); font-size: 11px; color: var(--muted); margin-right: 10px; }
.cmp__crit { font-weight: 600; }
/* Pied de tableau : mentions prix et crédit, au plus près des tarifs et des mensualités. */
.cmp__table tfoot td {
  padding: 16px 20px 18px; border-top: 1px solid var(--line-soft);
  background: var(--surface); border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.cmp__table tfoot p { margin: 0; max-width: 110ch; }
.cmp__credit-note { margin-top: 8px !important; font-size: 12.5px; line-height: 1.55; color: var(--ink-2); }
.cmp__credit-note b { font-weight: 600; color: var(--ink); }
.cmp__credit-note a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.cmp__credit-note a:hover { color: #B43D0C; }
.cmp__lines .sub { margin-top: 2px; font-size: 12.5px; }

.v { font-weight: 500; }
.is-same .same {
  float: right; margin: 3px 0 0 16px;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted);
}
.is-same .same::before { content: "="; font-size: 13px; line-height: 1; color: var(--muted-2); }
.sub { display: block; margin-top: 6px; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.is-na { color: var(--muted); font-weight: 400; }
.cmp__price { font-family: var(--f-display); font-weight: 700; font-size: 24px; letter-spacing: -.02em; }
.cmp__table sup { font-size: .62em; color: var(--muted); margin-left: 1px; }
.cmp__lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cmp__lines li { display: flex; flex-direction: column; gap: 2px; }
.sub-k { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); font-weight: 400; }

/* Mise en évidence des écarts Smart / Ultra */
.diff-tag {
  display: none; margin-left: 10px; vertical-align: 2px;
  height: 20px; padding: 0 8px; border-radius: 999px; align-items: center;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .07em; text-transform: uppercase;
  background: transparent; box-shadow: inset 0 0 0 1px #F3C3AC; color: #B43D0C;
}
.is-hl .diff-tag { display: inline-flex; }
.is-hl tr.is-diff > td:nth-of-type(-n+2) { background: var(--accent-soft); }
.is-hl tr.is-diff > td:nth-of-type(-n+2) .v,
.is-hl tr.is-diff > td:nth-of-type(-n+2) .cmp__lines li { font-weight: 650; }

/* Sous le tableau */
.cmp-foot { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: 24px; margin-top: 28px; align-items: start; }
.cmp-foot__notes { display: flex; flex-direction: column; gap: 16px; }
.credit { padding: 20px 22px; border-radius: var(--radius); background: var(--paper); }
.credit > .label { margin: 0 0 10px; color: var(--ink); font-weight: 500; }
.credit__table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.credit__table th, .credit__table td { text-align: left; padding: 8px 14px 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.credit__table thead th { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; font-weight: 400; color: var(--muted); }
.credit__table tbody th { font-weight: 600; }
.credit__table td:last-child { white-space: nowrap; }
.credit__fine { margin: 12px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--muted); }
.credit__warn { margin: 12px 0 0; padding-left: 12px; border-left: 2px solid var(--accent); font-size: 13.5px; font-weight: 600; line-height: 1.5; color: var(--ink); }
.cmp-foot__cta {
  display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
  padding: clamp(24px, 2.6vw, 32px); border-radius: var(--radius-lg);
  background: var(--ink); color: var(--white);
}
.cmp-foot__cta p { margin: 0; font-family: var(--f-display); font-weight: 600; font-size: clamp(20px, 1.8vw, 24px); line-height: 1.2; letter-spacing: -.015em; }
.cmp-foot__cta .btn { background: var(--accent); color: var(--accent-ink); }
.cmp-foot__cta .btn:hover { background: #FF7240; }

@media (max-width: 1080px) {
  .cmp__table thead th, .cmp__table thead td { padding: 16px 14px; }
  .cmp__table tbody tr:not(.cmp__gh) > * { padding: 14px; }
  .cmp__gh th { padding-inline: 14px; }
  .cmp__thumb { width: 56px; }
  .cmp__name { font-size: 18px; white-space: nowrap; }
  .cmp__actions { flex-wrap: nowrap; }
  .cmp__actions .btn--ghost { display: none; }
  .cmp__actions .btn { flex: 1 1 auto; padding: 0 12px; }
  .cmp__table tfoot td { padding: 14px; }
  .is-same .same { float: none; display: flex; margin: 6px 0 0; }
  .cmp-foot { grid-template-columns: 1fr; }
}

/* Sous 820 px : blocs empilés par critère, sans défilement horizontal */
@media (max-width: 820px) {
  .cmp__table, .cmp__table thead, .cmp__table tbody, .cmp__table tr, .cmp__table th, .cmp__table td { display: block; width: auto; }
  .cmp__table colgroup { display: none; }
  .cmp__table { background: transparent; border: 0; border-radius: 0; }

  /* En-tête : les 3 modèles en liste compacte (non collante) */
  .cmp__table thead tr { display: grid; gap: 8px; }
  .cmp__table thead th, .cmp__table thead td { position: static; border: 0; border-radius: var(--radius); background: var(--white); box-shadow: none !important; }
  .cmp__table thead th + th { border-left: 0; }
  .cmp__corner { display: none !important; }
  .cmp__model { display: flex !important; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px !important; border: 1px solid var(--line-soft) !important; }
  .cmp__mhead { gap: 10px; }
  .cmp__thumb { width: 48px; border-radius: 10px; padding: 3px; }
  .cmp__name { font-size: 16px; white-space: normal; }
  .cmp__actions { margin: 0; flex-wrap: nowrap; gap: 6px; flex: none; }
  .cmp__actions .btn--ghost { display: inline-flex; }
  .cmp__actions .btn { flex: none; padding: 0 11px; font-size: 13px; }
  .cmp__actions .btn .arr { display: none; }

  .cmp__gh th { padding: 28px 2px 12px !important; border: 0 !important; }
  .cmp__table tbody tr:not(.cmp__gh) {
    background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--radius);
    margin-bottom: 8px; overflow: hidden;
  }
  .cmp__table tbody tr:not(.cmp__gh) > * { border: 0; border-radius: 0 !important; }
  .cmp__table tbody th[scope="row"] { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 0; padding: 12px 14px 8px; }
  .cmp__table tbody tr:not(.cmp__gh) > td {
    display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 2px 12px;
    padding: 9px 14px; border-left: 0; border-top: 1px solid var(--line-soft);
  }
  /* « Identique » sous l'étiquette Smart / Ultra : la valeur garde toute sa largeur
     et le bloc ne gagne pas de ligne. */
  .cmp__table td.is-same > .same { grid-column: 1; grid-row: 2; align-self: start; margin: 0; }
  .cmp__table td.is-same > .sub { grid-column: 2; grid-row: 2; }
  .cmp__table tfoot td { display: block; padding: 16px 2px 0; background: transparent; border: 0; }
  .cmp__table tfoot td::before { content: none; }
  .cmp__table td::before {
    content: attr(data-m); grid-column: 1; grid-row: 1;
    font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
    padding-top: 3px;
  }
  .cmp__table td > * { grid-column: 2; min-width: 0; }
  .is-same .same { margin: 0; }
}

/* ---------- Entreprises & avis ---------- */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); align-items: stretch; }
.duo > .card { padding: clamp(26px, 3.2vw, 44px); display: flex; flex-direction: column; gap: 32px; }
.duo h2 { font-size: clamp(30px, 3.2vw, 44px); text-wrap: balance; }

.pro__head { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.pro__head > .btn { max-width: 100%; height: auto; min-height: var(--h); padding-block: 12px; white-space: normal; text-align: left; line-height: 1.25; }
.pro__quote { margin: 0; }
.pro__quote blockquote { margin: 0; }
.pro__quote p { margin: 0; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.55; color: #E4E5E0; max-width: 46ch; text-wrap: pretty; }
.pro__quote figcaption { margin-top: 10px; }
.pro__rules > .label { margin: 0; padding-top: 24px; border-top: 1px solid #2E312E; }
.pro__rules dl { margin: 6px 0 0; }
.pro__rules dl > div { display: grid; grid-template-columns: minmax(0, 140px) minmax(0, 1fr); gap: 6px 20px; padding: 14px 0; border-bottom: 1px solid #262926; }
.pro__rules dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.pro__rules dt { font-weight: 600; font-size: 15px; line-height: 1.4; }
.pro__rules dd { margin: 0; font-size: 14.5px; line-height: 1.55; color: #C9CBC5; }

.voices__head { display: flex; flex-direction: column; gap: 20px; }
.voices__list { list-style: none; margin: 0; padding: 0; display: grid; }
.voices__list li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; align-items: start; padding: 20px 0; border-top: 1px solid var(--line-soft); }
.voices__list li:first-child { border-top: 0; padding-top: 0; }
.voices__n {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper); font-family: var(--f-mono); font-size: 12px; font-weight: 500; color: var(--ink);
}
.voices__list h3 { font-family: var(--f-body); font-size: 16px; font-weight: 650; letter-spacing: 0; line-height: 1.3; margin: 0 0 4px; }
.voices__list p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.voices__src { margin: auto 0 0; }

@media (max-width: 960px) { .duo { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .pro__rules dl > div { grid-template-columns: 1fr; }
  .credit { padding: 18px 16px; }
  .credit__table { font-size: 13px; }
  .credit__table th, .credit__table td { padding-right: 10px; }
}

/* ---------- Guides ---------- */
.guides { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 1.8vw, 24px); }
.guide {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  padding: 10px;
}
.guide__img { border-radius: var(--radius); }
.guide__body { display: flex; flex-direction: column; gap: 12px; padding: 18px 12px 14px; flex: 1; }
.guide__meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.guide__soon { border-style: dashed; border-color: var(--muted-2); background: transparent; color: var(--ink-2); height: 26px; }
#guides .section-head p a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.guide--live { position: relative; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.guide--live:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -22px rgba(18,20,18,.35); }
.guide__new { background: var(--accent-soft); border-color: transparent; color: var(--ink); height: 26px; }
.guide__link { color: inherit; text-decoration: none; }
.guide__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.guide__link:focus-visible { outline: none; }
.guide--live:has(.guide__link:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.guide h3 { font-size: 19px; line-height: 1.25; letter-spacing: -.015em; text-wrap: pretty; }
.guide p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }

@media (max-width: 1080px) { .guides { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .guides { grid-template-columns: 1fr; gap: 12px; }
  .guide { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 4px 14px; align-items: start; }
  .guide__img { --ratio: 1 / 1 !important; }
  .guide__body { padding: 6px 6px 8px 0; gap: 8px; }
  .guide h3 { font-size: 17px; }
  .guide p { font-size: 14px; }
}

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr); gap: 40px clamp(40px, 6vw, 96px); align-items: start; }
.faq__intro { position: sticky; top: calc(var(--hdr) + 32px); display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.faq__intro p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--muted); max-width: 36ch; }
.faq__list { display: grid; gap: 8px; min-width: 0; }

.qa { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); transition: background .2s var(--ease), box-shadow .25s var(--ease); }
.qa[open] { background: var(--white); box-shadow: var(--shadow); }
.qa summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: 34px minmax(0, 1fr) 40px; align-items: center; gap: 12px;
  min-height: 68px; padding: 14px 16px 14px 20px; border-radius: var(--radius);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover .qa__icon { background: var(--ink); color: var(--white); border-color: var(--ink); }
.qa__n { font-family: var(--f-mono); font-size: 11.5px; color: var(--muted); }
.qa__q { font-size: 17.5px; font-weight: 600; line-height: 1.35; letter-spacing: -.005em; }
.qa__icon { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); }
.qa__v { transform-origin: 12px 12px; transition: transform .25s var(--ease); }
.qa[open] .qa__v { transform: scaleY(0); }
.qa[open] .qa__icon { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.qa__a { padding: 0 24px 24px 66px; }
.qa__a > p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink-2); max-width: 64ch; text-wrap: pretty; }
.qa[open] .qa__a { animation: rise .35s var(--ease) both; }

.qa__table { margin-top: 18px; width: 100%; max-width: 580px; border-collapse: separate; border-spacing: 0; font-size: 14.5px; background: var(--paper); border-radius: 12px; overflow: hidden; }
.qa__table th, .qa__table td { text-align: left; padding: 10px 16px; vertical-align: top; }
.qa__table tbody tr > * { border-top: 1px solid var(--line); }
.qa__table thead th { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; font-weight: 400; color: var(--muted); }
.qa__table tbody th { width: 128px; font-family: var(--f-mono); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.faq__src { margin: 12px 0 0; }
.qa__a > .qa__note { margin-top: 12px; font-size: 12.5px; color: var(--muted); }

@media (max-width: 900px) {
  .faq { grid-template-columns: 1fr; }
  .faq__intro { position: static; }
}
@media (max-width: 600px) {
  .qa summary { grid-template-columns: 26px minmax(0, 1fr) 36px; gap: 10px; padding: 12px 12px 12px 14px; }
  .qa__icon { width: 36px; height: 36px; }
  .qa__q { font-size: 16px; }
  .qa__a { padding: 0 16px 20px 14px; }
  .qa__table th, .qa__table td { padding: 9px 12px; }
  .qa__table tbody th { width: 96px; white-space: normal; }
}

/* Très petits écrans : les boutons des modèles passent sous le nom */
@media (max-width: 380px) {
  .cmp__model { flex-wrap: wrap; }
  .cmp__mhead { min-width: 0; }
}
@media (max-width: 360px) {
  .credit { padding: 16px 12px; }
  .credit__table { font-size: 12px; }
  .credit__table th, .credit__table td { padding-right: 6px; }
  .credit__table thead th { font-size: 9.5px; letter-spacing: .04em; }
  .credit__table td:last-child { white-space: normal; }
}

/* Guides : photo plein cadre */
.guide__img--photo { padding: 0 !important; background: var(--ink); overflow: hidden; border-radius: var(--radius); }
.guide__img--photo img { object-fit: cover !important; padding: 0 !important; width: 100%; height: 100%; }
