:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --ink: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --brand: #0f5c6e;
  --brand-strong: #0b4655;
  --brand-ink: #ffffff;
  --brand-soft: #e6f2f4;
  --accent: #b45309;
  --warn-bg: #fff7e6;
  --warn-line: #c27c0e;
  --ok: #166534;
  --no: #94a3b8;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 6px 20px rgba(15, 23, 42, .06);
  --shadow-lg: 0 2px 4px rgba(15, 23, 42, .06), 0 18px 40px rgba(15, 23, 42, .14);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220; --surface: #131c2e; --ink: #e5e9f0; --muted: #a3b0c2; --line: #263247;
    --brand: #6cc3d5; --brand-strong: #8fd3e1; --brand-ink: #062027; --brand-soft: #14313a; --accent: #f0b35a;
    --warn-bg: #2e2412; --warn-line: #d79a3a; --ok: #7fd39b; --no: #64748b;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 18px 40px rgba(0, 0, 0, .45);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
}
a { color: var(--brand); text-underline-offset: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px;
}
.skip { position: absolute; left: -999px; top: 0; background: var(--surface); padding: 8px 12px; z-index: 30; }
.skip:focus { left: 8px; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 760px) { .wrap { padding: 0 24px; } }

/* header: brand + one-line nav (scrolls horizontally on small screens) */
header.site { background: var(--surface); border-bottom: 1px solid var(--line); position: relative; z-index: 5; }
header.site .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding-top: 12px; padding-bottom: 12px; }
.brand { font-weight: 700; color: var(--ink); text-decoration: none; display: inline-flex; gap: 8px; align-items: center; margin-right: auto; }
.brand svg { flex: none; }
nav.top { display: flex; flex-wrap: nowrap; gap: 4px 18px; font-size: .95rem; overflow-x: auto; white-space: nowrap; max-width: 100%; scrollbar-width: none; }
nav.top::-webkit-scrollbar { display: none; }
nav.top a { text-decoration: none; color: var(--muted); padding: 4px 0; }
nav.top a:hover { color: var(--ink); }
nav.top a[aria-current="page"] { font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-color: var(--brand); text-decoration-thickness: 2px; text-underline-offset: 6px; }
@media (max-width: 759px) { nav.top { width: 100%; font-size: .9rem; gap: 16px; } }

main { padding: 24px 0 56px; }
h1 { font-size: clamp(1.7rem, 4.2vw, 2.4rem); line-height: 1.15; letter-spacing: -.02em; margin: .2em 0 .4em; }
h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); line-height: 1.25; letter-spacing: -.01em; margin: 1.6em 0 .5em; }
h3 { font-size: 1.1rem; margin: 1.2em 0 .4em; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 62ch; }
.pill { display: inline-block; font-size: .8rem; font-weight: 600; padding: 3px 12px; border-radius: 99px; background: var(--brand-soft); color: var(--ink); }
.callout { background: var(--warn-bg); border-left: 4px solid var(--warn-line); padding: 12px 14px; border-radius: 8px; margin: 16px 0; }
.callout p { margin: .3em 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.grid { display: grid; gap: 16px; }
@media (min-width: 760px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 8px 16px;
  border-radius: 10px; border: 1px solid var(--brand); background: var(--brand); color: var(--brand-ink);
  font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
}
.btn:hover { background: var(--brand-strong); border-color: var(--brand-strong); }
.btn.secondary { background: transparent; color: var(--brand); }
.btn.secondary:hover { background: var(--brand-soft); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-lg { min-height: 52px; padding: 12px 22px; font-size: 1.05rem; box-shadow: 0 6px 16px rgba(15, 92, 110, .25); }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }

/* ---------- marketing sections ---------- */
.hero { display: grid; gap: 32px; align-items: center; padding: 16px 0 8px; }
@media (min-width: 900px) { .hero { grid-template-columns: 1.08fr .92fr; gap: 48px; padding: 32px 0 16px; } }
.eyebrow { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .85rem; font-weight: 600; color: var(--brand); background: var(--brand-soft); border-radius: 99px; padding: 4px 12px; margin: 0; }
.hero h1 { margin-top: .45em; }
.hero .sub { font-size: 1.12rem; color: var(--muted); max-width: 58ch; margin: 0 0 20px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 8px 0 12px; }
.text-link { font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.trust { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: .92rem; }
.trust li::before { content: "✓"; color: var(--ok); font-weight: 700; margin-right: 6px; }
.price-line { margin: 0; color: var(--muted); font-size: .95rem; }
.price-line strong { color: var(--ink); font-size: 1.05rem; }

/* tilted stack of real document pages */
.stack { position: relative; margin: 8px auto 0; width: min(100%, 440px); aspect-ratio: 1 / 1.08; }
.stack img { position: absolute; width: 68%; height: auto; aspect-ratio: 720 / 1018; border-radius: 6px; background: #fff; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.stack img:nth-child(1) { left: 2%; top: 7%; transform: rotate(-7deg); }
.stack img:nth-child(2) { left: 30%; top: 4%; transform: rotate(5deg); }
.stack img:nth-child(3) { left: 16%; top: 0; transform: rotate(-1deg); z-index: 2; }
.stack .tag { position: absolute; z-index: 3; right: 0; bottom: 4%; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-size: .85rem; font-weight: 600; box-shadow: var(--shadow); }
@media (max-width: 899px) { .stack { width: min(100%, 360px); } }

.section { margin: 56px 0 0; }
.section > h2:first-child, .section-head h2 { margin-top: 0; }
.section-head { max-width: 70ch; margin-bottom: 20px; }
.section-head p { color: var(--muted); margin: 0; }
.kicker { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); margin-bottom: 6px; }
.fact h3 { margin: 0 0 6px; font-size: 1.05rem; }
.fact p { margin: 0 0 8px; color: var(--muted); }
.fact .src { font-size: .85rem; margin: 0; }
.fact .num { display: inline-flex; width: 32px; height: 32px; border-radius: 9px; align-items: center; justify-content: center; background: var(--brand-soft); color: var(--brand); font-weight: 800; margin-bottom: 10px; }

.gallery { display: grid; gap: 20px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery figure { margin: 0; }
.gallery a { display: block; border-radius: 8px; }
.gallery img { display: block; width: 100%; height: auto; aspect-ratio: 720 / 1018; border-radius: 8px; border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; transition: transform .15s ease, box-shadow .15s ease; }
.gallery a:hover img { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.gallery figcaption { font-size: .9rem; margin-top: 10px; color: var(--muted); }
.gallery figcaption strong { display: block; color: var(--ink); }

.doc-list { columns: 1; padding-left: 0; list-style: none; margin: 24px 0 0; }
@media (min-width: 760px) { .doc-list { columns: 2; column-gap: 32px; } }
.doc-list li { break-inside: avoid; padding: 8px 0 8px 30px; position: relative; border-bottom: 1px solid var(--line); }
.doc-list li::before { content: ""; position: absolute; left: 0; top: 12px; width: 18px; height: 18px; border-radius: 5px; background: var(--brand-soft); border: 1px solid var(--brand); }
.doc-list li::after { content: ""; position: absolute; left: 6px; top: 15px; width: 5px; height: 9px; border: solid var(--brand); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.doc-list small { color: var(--muted); }

.compare-wrap { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
table.compare { border-collapse: collapse; width: 100%; font-size: .95rem; }
@media (max-width: 559px) { table.compare { font-size: .88rem; } table.compare th, table.compare td { padding: 10px 8px; } table.compare td.y, table.compare td.n { width: 24%; } }
table.compare th, table.compare td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.compare thead th { background: var(--bg); font-size: .9rem; }
table.compare thead th.pk { background: var(--brand); color: var(--brand-ink); }
table.compare td.y, table.compare td.n { text-align: center; width: 18%; font-weight: 700; }
table.compare td.y { color: var(--ok); }
table.compare td.n { color: var(--no); }
table.compare tbody tr:last-child th, table.compare tbody tr:last-child td { border-bottom: 0; }
table.compare tbody th { font-weight: 500; }

.who { display: grid; gap: 16px; }
@media (min-width: 760px) { .who { grid-template-columns: 1fr 1fr; } }
.who ul { margin: 0; padding-left: 20px; }
.who li { margin: 4px 0; }
.who h3 { margin-top: 0; }

.offer { display: grid; gap: 24px; border: 2px solid var(--brand); border-radius: 16px; background: var(--surface); padding: 24px; box-shadow: var(--shadow-lg); }
@media (min-width: 760px) { .offer { grid-template-columns: 1.2fr .8fr; padding: 32px; align-items: start; } }
.offer h2 { margin-top: 0; }
.offer ul { padding-left: 0; list-style: none; margin: 12px 0 0; }
.offer li { padding: 5px 0 5px 28px; position: relative; }
.offer li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
.offer .buy { background: var(--bg); border-radius: var(--radius); padding: 20px; }
.offer .amount { font-size: 2.6rem; font-weight: 800; letter-spacing: -.02em; line-height: 1; margin: 4px 0 6px; }
.offer .amount small { font-size: 1rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.offer .vat { font-size: .88rem; color: var(--muted); margin: 0 0 16px; }
.offer .btn { width: 100%; }
.offer .fine { font-size: .85rem; color: var(--muted); margin: 12px 0 0; }

.faq details { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 0; margin: 10px 0; }
.faq summary { padding: 14px 16px; }
.faq details > *:not(summary) { margin: 0; padding: 0 16px 14px; color: var(--muted); }

.about p { margin: 4px 0; }
.about .muted { font-size: .92rem; }
.about-intro { max-width: 70ch; }
.about-intro h2 { margin: 0 0 6px; }
/* Founders (same block on every outils.vread.fr site) */
.founders { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 16px; }
.founder { display: grid; align-content: start; grid-template-columns: 96px 1fr; gap: 14px 18px; align-items: center; margin: 0; padding: 18px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; }
.founder-photo { display: block; width: 96px; height: 96px; border-radius: 50%; object-fit: cover; background: var(--line); box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px var(--line); }
.about .founder-name { margin: 0; font-size: 1.1rem; line-height: 1.3; color: var(--ink); }
.about .founder-role { margin: 3px 0 0; font-size: .8rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--brand); }
.about .founder-bio { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.55; }
@media (min-width: 720px) { .founders { grid-template-columns: 1fr 1fr; gap: 20px; } .founder { grid-template-columns: 112px 1fr; padding: 22px; } .founder-photo { width: 112px; height: 112px; } }
.about-foot { display: grid; gap: 8px 24px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
@media (min-width: 760px) { .about-foot { grid-template-columns: 1fr auto; align-items: center; } }

.sources { font-size: .9rem; color: var(--muted); }
.sources ol { padding-left: 20px; }
.sources li { margin: 4px 0; }
sup.ref a { text-decoration: none; font-weight: 700; padding: 0 1px; }

.upsell { margin: 16px 0; border: 1px solid var(--brand); background: var(--brand-soft); border-radius: var(--radius); padding: 16px 18px; display: grid; gap: 12px; align-items: center; }
@media (min-width: 760px) { .upsell { grid-template-columns: 1fr auto; } }
.upsell p { margin: 0; }
.upsell .btn { white-space: nowrap; }
.inline-pack { margin: 16px 0; }

/* sticky bottom CTA (mobile only) */
.sticky-cta { display: none; }
@media (max-width: 759px) {
  .sticky-cta { display: flex; position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(15, 23, 42, .12); }
  .sticky-cta span { font-size: .92rem; font-weight: 600; }
  .sticky-cta .btn { min-height: 44px; padding: 8px 14px; }
  body.has-sticky footer.site { padding-bottom: 72px; }
}

/* questionnaire */
form fieldset { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin: 0 0 16px; padding: 12px 16px 16px; }
form legend { font-weight: 700; padding: 0 6px; font-size: 1.05rem; }
.field { margin: 12px 0 0; }
.field > label, .field > .label { display: block; font-weight: 600; margin-bottom: 4px; }
.hint { display: block; font-weight: 400; color: var(--muted); font-size: .9rem; }
input[type="text"], input[type="email"], input[type="url"], input[type="date"], select, textarea {
  width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--bg); color: var(--ink); font: inherit;
}
textarea { min-height: 80px; resize: vertical; }
.choices { display: grid; gap: 4px 16px; border: none; padding: 0; margin: 0; min-width: 0; }
.choices > legend { padding: 0; font-weight: 600; margin-bottom: 4px; }
@media (min-width: 600px) { .choices.cols { grid-template-columns: 1fr 1fr; } }
.choice { display: flex; gap: 8px; align-items: flex-start; padding: 6px 0; }
.choice input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--brand); }
.redirect { margin-top: 10px; }
.redirect:empty { display: none; }
.tool-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }
.tool-head h2 { margin-bottom: 0; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 12px 0 16px; display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--muted); font-size: .95rem; }
.steps li { counter-increment: s; display: flex; gap: 8px; align-items: center; }
.steps li::before { content: counter(s); display: inline-flex; width: 24px; height: 24px; border-radius: 50%; align-items: center; justify-content: center; background: var(--brand); color: var(--brand-ink); font-size: .8rem; font-weight: 700; }

/* results */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid var(--line); margin: 16px 0 0; }
.tabs button { font: inherit; background: none; border: 1px solid transparent; border-bottom: none; padding: 10px 12px; min-height: 44px; border-radius: 8px 8px 0 0; color: var(--ink); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--surface); border-color: var(--line); font-weight: 700; margin-bottom: -1px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-top: none; border-radius: 0 0 var(--radius) var(--radius); padding: 16px; }
.doc { overflow-wrap: anywhere; }
.doc-title { margin-top: 0; }
.doc-sub { color: var(--muted); font-style: italic; }
.doc-note { background: var(--warn-bg); border-left: 4px solid var(--warn-line); padding: 8px 12px; border-radius: 4px; font-size: .95rem; }
.doc table { border-collapse: collapse; width: 100%; margin: 8px 0 16px; font-size: .95rem; }
.doc th, .doc td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; }
.doc thead th { background: var(--brand-soft); }
.doc-kv th { width: 40%; background: var(--brand-soft); }
.doc-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.doc-table { min-width: 720px; }
.doc-table td, .doc-table th { overflow-wrap: normal; word-break: normal; hyphens: auto; }
@media print { .doc-table { min-width: 0; } }
.doc-check { list-style: none; padding-left: 0; }
.doc-check li { margin: 4px 0; }
.doc-label { border: 2px dashed var(--muted); border-radius: 6px; padding: 10px 14px; font-family: ui-monospace, Consolas, monospace; font-size: .92rem; }
.doc-label p { margin: 2px 0; }
.blank { display: inline-block; min-width: 10em; border-bottom: 1px dotted var(--muted); height: 1.2em; }
.status { min-height: 1.5em; color: var(--ok); font-weight: 600; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

details { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 10px 14px; margin: 8px 0; }
summary { cursor: pointer; font-weight: 600; min-height: 28px; }
.src-list li { margin: 6px 0; }
footer.site { border-top: 1px solid var(--line); background: var(--surface); font-size: .92rem; color: var(--muted); }
footer.site .wrap { padding-top: 24px; padding-bottom: 28px; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 10px; }
.price { font-size: 1.6rem; font-weight: 800; }
.badge-soon { background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--ink); }
table.plain { border-collapse: collapse; width: 100%; }
table.plain th, table.plain td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; }
.table-scroll { overflow-x: auto; }

@media print {
  header.site, footer.site, .no-print, form, .tabs, .intro, .btn-row, .callout.screen-only, .hero, .section, .sticky-cta, .upsell { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  main { padding: 0; }
  .panel { border: none; padding: 0; }
  .panel[hidden] { display: none !important; }
  .print-all .panel[hidden] { display: block !important; }
  .print-all .panel { break-after: page; }
  .doc a { color: #000; }
  .doc a[href]::after { content: " (" attr(href) ")"; font-size: 9pt; }
  .doc th, .doc td { border-color: #888; }
  .doc thead th, .doc-kv th { background: #eee; }
  .doc-note { background: #f4f4f4; border-left-color: #666; }
}
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.price small { font-size: 1rem; font-weight: 400; color: var(--muted); }

/* Commander (only emitted when SALES_OPEN=true) */
.checkout { max-width: 680px; }
.checkout .card { margin: 16px 0; }
.checkout-form label.field { display: block; margin: .8em 0; }
.checkout-form label.field span { display: block; font-weight: 600; margin-bottom: .25em; }
.checkout-form input[type=email], .checkout-form input[type=text] { width: 100%; font: inherit; padding: .6em; min-height: 44px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); }
.field-group { border: 1px solid var(--line); border-radius: 8px; padding: 4px 12px 8px; margin: 1em 0; min-width: 0; }
.field-group legend { font-weight: 700; padding: 0 .3em; }
label.check { display: flex; gap: .6em; align-items: flex-start; margin: 1em 0; }
label.check input { margin-top: .3em; width: 20px; height: 20px; flex: none; }
#payment-element { margin: 1em 0; min-height: 120px; }
.pay-button { font: inherit; font-weight: 700; background: var(--brand); color: var(--brand-ink); border: 0; border-radius: 8px; padding: .85em 1.2em; cursor: pointer; width: 100%; min-height: 48px; }
.pay-button[disabled] { opacity: .6; cursor: progress; }
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.small { font-size: .9rem; }
.muted { color: var(--muted); }
.status { font-weight: 700; }
.status.ok { color: var(--ok); }
.status.err { color: #b3261e; }
@media (prefers-color-scheme: dark) { .status.err { color: #f28b82; } }

/* breadcrumb (pack, obligations) and role definitions (obligations) */
.crumbs { font-size: .9rem; color: var(--muted); margin: 0 0 8px; }
.crumbs a { color: var(--muted); }
.roles { margin: 0 0 1em; }
.roles dt { font-weight: 700; margin-top: .8em; }
.roles dd { margin: .2em 0 0; }

/* Cross-site block « Autres outils READ FRANCE » (same markup on every outils.vread.fr site) */
footer.site nav.rf-network { display: block; margin: 0 0 14px; }
.rf-network-title { margin: 0 0 .3rem; font-weight: 600; color: var(--ink); }
.rf-network ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; }
.rf-network li { margin: 0; }
.rf-network a { display: inline-block; padding: .2rem 0; }
