/* site-aa · guide d'achat éditorial (banc d'essai) · fond blanc, filets, un seul accent vert · motion : changement de question du quiz · 2026-11-26 */
:root {
  --bg: #ffffff;
  --tint: #f3f5f3;
  --ink: #15171a;
  --ink-2: #393e44;
  --muted: #5a6067;
  --line: #dfe3e0;
  --rule: #15171a;
  --accent: #1d5b43;
  --accent-dark: #154533;
  --accent-soft: #e5eee9;
  --wrap: 1120px;
  --measure: 68ch;
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--line) var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  accent-color: var(--accent);
  caret-color: var(--accent);
  font-variant-numeric: lining-nums;
}
::selection { background: var(--accent-soft); color: var(--ink); }
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; line-height: 1.15; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(36px, 5.6vw, 60px); letter-spacing: -0.015em; margin: 0 0 16px; }
h2 { font-size: clamp(25px, 3.2vw, 32px); letter-spacing: -0.01em; margin: 0 0 14px; }
h3 { font-size: 21px; margin: 28px 0 8px; }
p { margin: 0 0 16px; }
ul, ol { padding-left: 22px; margin: 0 0 18px; }
li { margin-bottom: 6px; }
strong { font-weight: 600; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* déclaration d'intérêts, sur chaque page */
.transparence { font-size: 14px; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.transparence .wrap { padding-top: 8px; padding-bottom: 8px; }
.transparence a { font-weight: 600; }

/* bandeau de titre façon guide d'achat : double filet */
.masthead { padding-top: 18px; }
.masthead-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 3px solid var(--rule); }
.brand { font-family: var(--font-serif); font-size: clamp(26px, 3.4vw, 34px); font-weight: 600; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }
.brand span { color: var(--accent); }
.edition { font-size: 14px; color: var(--muted); }
.nav { display: flex; gap: 6px 22px; flex-wrap: wrap; font-size: 15px; padding: 9px 0; border-bottom: 1px solid var(--rule); margin-top: 2px; }
.nav a { color: var(--ink-2); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); text-decoration: underline; }

.hero { padding: 44px 0 28px; max-width: 820px; }
.lede { font-size: 20px; line-height: 1.5; color: var(--ink-2); max-width: 60ch; margin-bottom: 14px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.crumbs a { color: var(--muted); }
.maj { font-size: 14px; color: var(--muted); margin: 0; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 3px;
  padding: 13px 22px;
  font: 600 16px/1.2 var(--font-sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s var(--ease-out);
}
.btn:hover { background: var(--accent-dark); color: #fff; }
.actions { display: flex; gap: 12px 20px; align-items: center; flex-wrap: wrap; margin: 22px 0 6px; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding-bottom: 72px; }
@media (min-width: 980px) { .layout { grid-template-columns: minmax(0, 700px) 280px; justify-content: space-between; gap: 64px; } }
.content { max-width: var(--measure); }
/* filet entre sections, tracé par un pseudo-élément pour garder le texte à distance */
.content > section + section { margin-top: 34px; }
.content > section + section::before { content: ""; display: block; border-top: 1px solid var(--line); margin-bottom: 34px; }
.content > .result + section, .content > .quiz + section { margin-top: 40px; }

/* colonne de droite : un bloc sous filet, pas une carte */
.aside-block { border-top: 3px solid var(--rule); padding-top: 14px; position: sticky; top: 20px; font-size: 15px; }
.aside-block h2 { font-size: 20px; margin-bottom: 8px; }
.aside-block ul { list-style: none; padding: 0; margin: 0 0 14px; }
.aside-block li { border-bottom: 1px solid var(--line); margin: 0; }
.aside-block li a { display: block; padding: 8px 0; text-decoration: none; color: var(--ink-2); }
.aside-block li a:hover { color: var(--accent); }
.aside-note { color: var(--muted); font-size: 14px; margin: 0; }

/* tableaux comparatifs */
.table-wrap { overflow-x: auto; margin: 4px 0 22px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; font-variant-numeric: tabular-nums; }
th, td { text-align: left; vertical-align: top; padding: 11px 14px 11px 0; border-bottom: 1px solid var(--line); }
th { font-weight: 600; font-size: 14px; color: var(--ink); border-top: 2px solid var(--rule); border-bottom: 1px solid var(--rule); }
td:first-child { font-weight: 500; color: var(--ink); }
tbody tr:last-child td { border-bottom: 1px solid var(--rule); }

.note { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 12px 0; color: var(--ink-2); font-size: 15px; margin: 0 0 20px; }

/* notre offre : même filets que le reste, une étiquette qui la nomme */
.ours-tag { display: inline-block; border: 1px solid var(--ink); color: var(--ink); font: 600 13px/1.3 var(--font-sans); padding: 2px 7px; border-radius: 2px; vertical-align: 0.2em; white-space: nowrap; }
.content > section.ours::before { border-top: 3px double var(--rule); }

/* quiz : un questionnaire, des lignes sous filets */
.quiz { border-top: 3px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 16px 0 22px; margin: 0 0 8px; }
.quiz-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.quiz-title { font-family: var(--font-sans); font-size: 15px; font-weight: 600; margin: 0; color: var(--ink); }
.quiz-progress { font-size: 14px; color: var(--muted); margin: 0; font-variant-numeric: tabular-nums; }
.quiz-bar { height: 3px; background: var(--line); margin: 10px 0 22px; overflow: hidden; }
.quiz-bar i { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left center; transform: scaleX(0.2); transition: transform .4s var(--ease-out); }
.quiz fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.quiz fieldset.enter { animation: step-in .32s var(--ease-out); }
@keyframes step-in { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
.quiz legend { font-family: var(--font-serif); font-size: clamp(24px, 3vw, 30px); font-weight: 600; line-height: 1.2; margin-bottom: 12px; padding: 0; }
.choices { border-top: 1px solid var(--line); }
.choice { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; padding: 14px 10px 14px 6px; border-bottom: 1px solid var(--line); transition: background-color .15s var(--ease-out); }
.choice:hover { background: var(--tint); }
.choice:has(input:checked) { background: var(--accent-soft); }
.choice input { width: 18px; height: 18px; margin: 3px 0 0; cursor: pointer; }
.choice label { cursor: pointer; font-weight: 500; }
.choice label small { display: block; font-weight: 400; color: var(--muted); font-size: 15px; margin-top: 1px; }
.quiz-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 20px; }
.linkbtn { background: none; border: 0; color: var(--accent); font: 500 15px var(--font-sans); cursor: pointer; padding: 8px 0; text-decoration: underline; text-underline-offset: 3px; }
.linkbtn[hidden] { display: none; }

.result h3 { font-size: clamp(24px, 3vw, 30px); margin: 0 0 6px; }
.result .why { font-size: 15px; color: var(--muted); margin-bottom: 8px; }
.reco { border-top: 1px solid var(--line); padding: 18px 0 2px; }
.reco.ours { border-top: 3px double var(--rule); }
.reco h4 { font-size: 21px; margin: 0 0 6px; }
.reco p { margin-bottom: 8px; }

/* formulaire */
.form { display: grid; gap: 16px; max-width: 640px; border-top: 3px solid var(--rule); padding-top: 18px; }
.form label { font-weight: 600; font-size: 15px; display: block; margin-bottom: 5px; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form select, .form textarea {
  width: 100%; font: 16px var(--font-sans); color: var(--ink);
  border: 1px solid #b9c1bc; border-radius: 3px; padding: 11px 12px; background: #fff;
  transition: border-color .15s var(--ease-out);
}
.form input:hover, .form select:hover, .form textarea:hover { border-color: var(--ink-2); }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.form ::placeholder { color: #6b7178; }
.form textarea { min-height: 130px; resize: vertical; }
.form .row { display: grid; gap: 16px; }
@media (min-width: 640px) { .form .row { grid-template-columns: 1fr 1fr; } }
.form .consent { display: grid; grid-template-columns: 18px 1fr; gap: 10px; font-size: 14px; color: var(--ink-2); }
.form .consent label { font-weight: 400; margin: 0; }
.form .consent input { margin-top: 3px; width: 16px; height: 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-weight: 600; margin: 0; }
.form-status:empty { display: none; }
.form-status.ok { color: var(--accent); }
.form-status.err { color: #a12a1a; }

/* questions fréquentes */
details { border-bottom: 1px solid var(--line); }
details:first-of-type { border-top: 1px solid var(--rule); }
details summary { cursor: pointer; font-weight: 600; padding: 14px 32px 14px 0; position: relative; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: ""; position: absolute; right: 6px; top: 21px; width: 8px; height: 8px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(45deg); transition: transform .2s var(--ease-out); }
details[open] summary::after { transform: rotate(-135deg); top: 25px; }
details p { margin: 0 0 16px; color: var(--ink-2); }

.related { columns: 2 220px; padding-left: 18px; }

/* pied de page clair, sous double filet */
.site-footer { border-top: 3px double var(--rule); padding: 40px 0 36px; font-size: 15px; color: var(--ink-2); }
.footer-statement { font-family: var(--font-serif); font-size: clamp(21px, 2.6vw, 25px); color: var(--ink); max-width: 760px; margin: 0 0 28px; line-height: 1.35; }
.footer-grid { display: grid; gap: 24px 40px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.footer-grid h2 { font-family: var(--font-sans); font-size: 15px; font-weight: 600; margin: 0 0 6px; padding-bottom: 6px; border-bottom: 1px solid var(--rule); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-small { margin: 30px 0 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
  .quiz fieldset.enter { animation: none; }
  .quiz-bar i, .btn, .choice, details summary::after { transition: none; }
}

/* photos d'illustration et auteurs */
.photo { margin: 0 0 34px; }
.photo img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 3px; background: var(--accent-soft); }
.photo figcaption { font-size: 13px; color: var(--muted); padding-top: 8px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.content > .photo + section::before { display: none; }
.content > .photo + section { margin-top: 0; }
.content > .quiz + .photo, .content > .result + .photo { margin-top: 40px; }
.author { display: grid; grid-template-columns: 1fr; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.author:has(img) { grid-template-columns: 72px 1fr; }
.author img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.author p { margin: 0; }
.author-note { font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }
.byline { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); margin: 0; }
.byline img { width: 40px; height: 40px; border-radius: 50%; flex: none; background: var(--accent-soft); }
.byline a { color: var(--ink-2); }
.quiz-promise { font-size: 14px; color: var(--muted); margin: 0 0 14px; }

/* premier écran mobile : la question 1 doit être visible sans défiler */
@media (max-width: 640px) {
  .transparence { font-size: 13px; }
  .edition { display: none; }
  .hero { padding: 24px 0 18px; }
  .hero h1 { font-size: 32px; margin-bottom: 10px; }
  .lede { font-size: 17px; margin-bottom: 10px; }
}
