/* Serenaudit — page de vente
   Direction : dossier d'audit bien tenu. Vert « validé » sur fond blanc légèrement vert, encre bleu nuit,
   jaune réservé aux éléments « en attente ». Une seule apparence claire, couleurs toutes explicites. */
:root {
  --bg: #F5F8F7;
  --surface: #FFFFFF;
  --ink: #10202B;
  --muted: #52616B;
  --line: #DCE4E1;
  --brand: #0B5D4B;
  --brand-hover: #084A3C;
  --brand-soft: #E2F0EB;
  --pending: #E8B931;
  --night: #10202B;
  --night-ink: #E9F0EE;
  --night-muted: #9DB0AB;
  --f-display: "Schibsted Grotesk", "Segoe UI", system-ui, sans-serif;
  --f-body: "Public Sans", "Segoe UI", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.12; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.6vw, 3.9rem); font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 800; letter-spacing: -0.02em; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0; }
a { color: var(--brand); }
.mono { font-family: var(--f-mono); font-size: 0.85em; font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.fine { font-size: 0.85rem; color: var(--muted); }
.eyebrow { font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); margin-bottom: 12px; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
section { padding-block: 88px; scroll-margin-top: 64px; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--brand); color: #fff; text-decoration: none; font-weight: 600;
  font-family: var(--f-body); font-size: 1rem; border: 0; cursor: pointer;
  padding: 14px 22px; border-radius: 10px; transition: background 0.15s, transform 0.15s;
}
.btn:hover { background: var(--brand-hover); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--pending); outline-offset: 2px;
}
.btn-sm { padding: 9px 16px; font-size: 0.92rem; border-radius: 8px; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { background: var(--surface); }
.btn-dark { background: var(--ink); }
.btn-dark:hover { background: var(--ink); }
.btn-block { width: 100%; }

/* En-tête */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(245, 248, 247, 0.92);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}
.top-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 800; font-size: 1.25rem; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.logo-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--brand); display: grid; place-items: center; }
.logo-mark svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.links { display: flex; gap: 22px; margin-left: auto; }
.links a { color: var(--muted); text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.links a:hover { color: var(--ink); }

/* Hero */
.hero { padding-block: 72px 96px; }
.hero-in { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.hero-copy .eyebrow { margin-bottom: 0; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.reassure { font-size: 0.9rem; color: var(--muted); max-width: 36em; }

.dossier {
  margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 22px; display: grid; gap: 18px; min-width: 0;
  box-shadow: 0 1px 0 var(--line), 0 24px 48px -28px rgba(16, 32, 43, 0.35);
}
.dossier-head > div { display: grid; gap: 2px; }
.dossier-head strong { font-family: var(--f-display); font-size: 1.1rem; }
.dossier-head .muted { font-size: 0.88rem; }
.tag { display: inline-block; justify-self: start; background: var(--brand-soft); color: var(--brand); padding: 2px 8px; border-radius: 6px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.proofs { list-style: none; margin: 0; padding: 0; display: grid; }
.proofs li { display: grid; grid-template-columns: 20px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); font-size: 0.95rem; }
.proofs li .mono { color: var(--muted); font-size: 0.8rem; text-align: right; }
.ok, .wait { width: 18px; height: 18px; border-radius: 50%; display: inline-block; position: relative; }
.ok { background: var(--brand); }
.ok::after { content: ""; position: absolute; left: 6px; top: 3px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.wait { background: var(--surface); box-shadow: inset 0 0 0 2px var(--pending); }
.wait::after { content: ""; position: absolute; left: 8px; top: 4px; width: 2px; height: 6px; background: var(--pending); border-radius: 1px; }
.grid32-wrap { display: grid; gap: 8px; }
.grid32-label { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--muted); }
.grid32-label .mono { color: var(--brand); font-weight: 500; }
.grid32 { display: grid; grid-template-columns: repeat(16, 1fr); gap: 4px; }
.grid32 span { aspect-ratio: 1; max-width: 100%; border-radius: 3px; background: var(--line); }
.grid32 span.on { background: var(--brand); }
.dossier .btn { justify-self: start; pointer-events: none; }

/* Douleur */
.pain { background: var(--night); color: var(--night-ink); }
.pain h2 { max-width: 18em; }
.pain-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.pain-grid article { display: grid; gap: 8px; align-content: start; border-top: 2px solid var(--pending); padding-top: 18px; }
.pain-grid p { color: var(--night-muted); }

/* Étapes */
.how h2 { max-width: 20em; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; display: grid; gap: 10px; align-content: start; }
.steps li::before { content: counter(s); font-family: var(--f-display); font-weight: 800; font-size: 1.1rem; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.steps p { color: var(--muted); }

/* Indicateurs */
.indic { background: var(--surface); border-block: 1px solid var(--line); }
.indic h2 { max-width: 20em; }
.table-wrap { margin-top: 36px; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
table { border-collapse: collapse; width: 100%; min-width: 620px; font-size: 0.95rem; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
th { font-family: var(--f-mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); background: var(--bg); }
td.mono { color: var(--brand); white-space: nowrap; font-weight: 500; }
td:nth-child(2) { color: var(--muted); }
.indic .fine { margin-top: 16px; max-width: 60em; }

/* Offre */
.offer-in { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 56px; align-items: center; }
.offer-copy { display: grid; gap: 18px; min-width: 0; }
.offer-copy .eyebrow { margin-bottom: 0; }
.offer-copy > p { color: var(--muted); max-width: 34em; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--brand); }
.checks li::after { content: ""; position: absolute; left: 6px; top: 7px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.price-card { background: var(--surface); border: 2px solid var(--brand); border-radius: 18px; padding: 28px; display: grid; gap: 14px; position: relative; }
.badge { justify-self: start; background: var(--pending); color: var(--ink); font-weight: 600; font-size: 0.8rem; padding: 4px 10px; border-radius: 999px; }
.price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.amount { font-family: var(--f-display); font-weight: 800; font-size: 3.2rem; letter-spacing: -0.03em; line-height: 1; }
.per { color: var(--muted); }
.was { color: var(--muted); font-size: 0.92rem; }

/* Formulaire */
.form-section { background: var(--brand-soft); }
.form-in { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; }
.form-in > div { display: grid; gap: 12px; }
.form-in > div .eyebrow { margin-bottom: 0; }
.form { background: var(--surface); border-radius: 16px; padding: 28px; display: grid; gap: 18px; border: 1px solid var(--line); min-width: 0; }
.hp { position: absolute; left: -9999px; }
.choice { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.choice legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.radio { display: grid; grid-template-columns: 20px 1fr; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; }
.radio:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.radio input { margin: 4px 0 0; accent-color: var(--brand); width: 18px; height: 18px; }
.radio span { display: grid; gap: 2px; }
.radio small { color: var(--muted); font-size: 0.88rem; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-weight: 600; font-size: 0.92rem; }
.field label .muted { font-weight: 400; }
input:not([type="radio"]), select, textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg);
  border: 1.5px solid var(--line); border-radius: 8px; padding: 11px 12px; width: 100%;
}
textarea { resize: vertical; }
input:not([type="radio"]):focus, select:focus, textarea:focus { border-color: var(--brand); background: var(--surface); }

/* FAQ */
.faq h2 { margin-bottom: 32px; }
.qa { display: grid; gap: 10px; max-width: 820px; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; }
summary { cursor: pointer; font-weight: 600; padding: 18px 28px 18px 0; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-family: var(--f-mono); font-size: 1.3rem; color: var(--brand); }
details[open] summary::after { content: "−"; }
details p { padding-bottom: 18px; color: var(--muted); max-width: 46em; }

/* Pied de page */
.foot { border-top: 1px solid var(--line); padding-block: 40px calc(40px + env(safe-area-inset-bottom, 0px)); }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.foot-in > div:first-child { display: grid; gap: 10px; max-width: 30em; }
.foot-links { display: grid; gap: 6px; font-size: 0.92rem; color: var(--muted); align-content: start; }

/* Responsive */
@media (max-width: 920px) {
  .hero-in, .offer-in, .form-in { grid-template-columns: 1fr; gap: 40px; }
  .links { display: none; }
  .top .btn-sm { margin-left: auto; }
}
@media (max-width: 720px) {
  section { padding-block: 64px; }
  .hero { padding-block: 40px 64px; }
  .pain-grid, .steps { grid-template-columns: 1fr; }
  .row2 { grid-template-columns: 1fr; }
  .form, .price-card { padding: 22px; }
  .dossier { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
