/* A11y Kit – READ FRANCE SAS. Shared neutral base (outils.vread.fr) + product accent (blue). */
:root {
  --bg: #f8fafc;
  --bg-soft: #f1f5f9;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --line: #dbe2ea;
  --field: #64748b;
  --accent: #1d4ed8;
  --accent-strong: #1e40af;
  --accent-ink: #ffffff;
  --accent-soft: #e8efff;
  --warn-bg: #fff7e6;
  --warn-line: #a15c00;
  --ok-bg: #e8f5ec;
  --ok-line: #1d7a3e;
  --bad-bg: #fdecec;
  --bad-line: #b42318;
  --focus: #b3470b;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 4px 16px rgba(15, 23, 42, .06);
  --shadow-lg: 0 10px 30px rgba(15, 23, 42, .14);
  --max: 70rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1120;
    --bg-soft: #111a2e;
    --card: #131c31;
    --text: #e8edf5;
    --muted: #aab6c8;
    --line: #2a3650;
    --field: #8391a7;
    --accent: #8fb0ff;
    --accent-strong: #b3c9ff;
    --accent-ink: #0b1430;
    --accent-soft: #1b2a4d;
    --warn-bg: #2e2412;
    --warn-line: #f0b24a;
    --ok-bg: #12291b;
    --ok-line: #6fd08f;
    --bad-bg: #331616;
    --bad-line: #ff9b92;
    --focus: #ffb26b;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, .5);
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-wrap: anywhere;
}
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
img, svg { max-width: 100%; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: clamp(1.85rem, 4.2vw, 2.75rem); margin: .2em 0 .4em; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); margin-top: 2.2rem; }
h3 { font-size: 1.15rem; }
code { font-size: .92em; background: var(--bg-soft); padding: .05em .3em; border-radius: 4px; }

.skip { position: absolute; left: .5rem; top: -4rem; background: var(--accent); color: var(--accent-ink); padding: .6rem 1rem; border-radius: var(--radius); z-index: 30; }
.skip:focus { top: .5rem; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* Header: one line on every screen (menu in a <details> below 60rem) */
.site-header { border-bottom: 1px solid var(--line); background: var(--card); position: relative; z-index: 20; }
.header-row { display: flex; align-items: center; gap: 1rem; min-height: 3.75rem; }
.brand { font-weight: 800; font-size: 1.1rem; color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: .55rem; }
.brand-mark { display: inline-grid; place-items: center; min-width: 2.6rem; height: 1.9rem; padding: 0 .35rem; border-radius: 8px; background: var(--accent); color: var(--accent-ink); font-size: .78rem; font-weight: 800; }
.brand-text { display: inline-flex; flex-direction: column; line-height: 1.1; }
.brand-by { font-size: .66rem; font-weight: 700; letter-spacing: .08em; color: var(--muted); }
.header-desktop { display: none; margin-left: auto; align-items: center; gap: 1.25rem; }
.site-nav ul, .lang-switch ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .2rem 1rem; }
.site-nav a, .lang-switch a { text-decoration: none; padding: .3rem 0; display: inline-block; color: var(--text); font-weight: 500; font-size: .98rem; }
.site-nav a:hover, .lang-switch a:hover { color: var(--accent); }
.site-nav a[aria-current="page"] { color: var(--accent); text-decoration: underline; text-underline-offset: 6px; }
.site-nav a.nav-cta { background: var(--accent-soft); color: var(--accent); padding: .3rem .8rem; border-radius: 999px; font-weight: 700; }
.lang-switch ul { gap: .1rem .5rem; }
.lang-switch a { font-size: .85rem; color: var(--muted); font-weight: 600; }
.lang-switch a[aria-current="true"] { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.menu { margin-left: auto; }
.menu summary { list-style: none; cursor: pointer; font-weight: 700; border: 1px solid var(--line); border-radius: 8px; padding: .4rem .8rem; display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary::before { content: ""; width: 1rem; height: .75rem; background: linear-gradient(currentColor 0 0) top / 100% 2px no-repeat, linear-gradient(currentColor 0 0) center / 100% 2px no-repeat, linear-gradient(currentColor 0 0) bottom / 100% 2px no-repeat; }
.menu[open] summary { background: var(--bg-soft); }
.menu-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--card); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); padding: .5rem 16px 1rem; }
.menu-panel .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
.menu-panel .site-nav a { display: block; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.menu-panel .site-nav a.nav-cta { display: inline-block; margin-top: .6rem; border: 0; }
.menu-panel .lang-switch { margin-top: .6rem; }
.menu-panel .lang-switch a { padding: .5rem .3rem; }
@media (min-width: 60rem) {
  .header-desktop { display: flex; }
  .menu { display: none; }
}

main { padding-bottom: 3rem; }
.hero { padding: 2rem 0 1rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 46rem; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin: 0 0 .4rem; }
.fine { font-size: .9rem; color: var(--muted); margin: .4rem 0; }
.note { font-size: .95rem; color: var(--muted); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .7rem .9rem; }
.text-link { font-weight: 600; }
.badges { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; list-style: none; margin: 1rem 0; }
.badges li { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: .15rem .75rem; font-size: .9rem; }

/* Landing hero: text + product visual */
.lp-hero { display: grid; gap: 2rem; padding: 2.5rem 0 1.5rem; align-items: center; }
.lp-hero h1 { margin-top: .1em; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.4rem; margin: 1.4rem 0 .6rem; }
.limits { border-left: 3px solid var(--line); padding-left: .7rem; }
.lp-hero-visual { margin: 0; text-align: center; }
.lp-hero-visual figcaption { font-size: .85rem; color: var(--muted); margin-top: .6rem; }
.doc-stack { position: relative; display: block; width: min(100%, 22rem); aspect-ratio: 760 / 1075; margin: 0 auto; }
.doc-stack .doc { position: absolute; inset: 0; width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-lg); }
.doc-stack .doc-3 { transform: translate(14%, 4%) rotate(7deg) scale(.92); opacity: .9; }
.doc-stack .doc-2 { transform: translate(7%, 2%) rotate(3.5deg) scale(.96); }
.doc-stack .doc-1 { transform: rotate(-2deg); }
.doc-stack:hover .doc-1 { transform: rotate(-1deg) translateY(-4px); }
@media (prefers-reduced-motion: no-preference) { .doc-stack .doc { transition: transform .25s ease; } }
@media (min-width: 56rem) {
  .lp-hero { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 3rem; padding-top: 3.5rem; }
  .lp-hero.solo { grid-template-columns: 1fr; }
}
@media (max-width: 55.99rem) { .doc-stack { width: min(70%, 17rem); margin-right: 22%; } }

.lp-section { margin-top: 3.5rem; }
.lp-section > h2 { margin-top: 0; }
.cards-3 { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.ticks { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: .7rem; }
.ticks li { display: flex; gap: .6rem; align-items: flex-start; }
.tick { flex: none; width: 1.25rem; height: 1.25rem; margin-top: .2rem; color: var(--ok-line); }
.gallery { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); margin: 1.2rem 0; }
.gallery figure { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem; box-shadow: var(--shadow); }
.gallery img { display: block; width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--line); aspect-ratio: 760 / 1075; object-fit: cover; object-position: top; max-height: 26rem; }
.gallery figcaption { font-weight: 600; margin-top: .6rem; font-size: .95rem; }

.offer-card { display: grid; gap: 1.5rem; background: var(--card); border: 2px solid var(--accent); border-radius: 16px; padding: 1.5rem; box-shadow: var(--shadow-lg); }
.offer-card h2 { margin: 0 0 .3rem; font-size: clamp(1.3rem, 2.4vw, 1.6rem); }
.offer-side { display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; }
.offer-price { font-size: 2.6rem; font-weight: 800; line-height: 1; margin: 0 0 .6rem; }
@media (min-width: 56rem) { .offer-card { grid-template-columns: 1.4fr 1fr; padding: 2rem 2.2rem; } .offer-side { border-left: 1px solid var(--line); padding-left: 2rem; } }

.faq { display: grid; gap: .6rem; max-width: 52rem; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 1.1rem; }
.faq summary { cursor: pointer; font-weight: 700; padding: .9rem 0; min-height: 44px; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq-a { padding: .2rem 0 .6rem; }
.about { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.25rem; box-shadow: var(--shadow); }
.about h2 { font-size: 1.3rem; margin: 0 0 .5rem; }
.about-intro { max-width: 70ch; }
.about-intro p:last-child { margin-bottom: 0; }
/* Founders (same block on every outils.vread.fr site) */
.founders { list-style: none; margin: 1.3rem 0 0; padding: 0; display: grid; gap: 1rem; }
.founder { display: grid; align-content: start; grid-template-columns: 96px 1fr; gap: .9rem 1.1rem; align-items: center; margin: 0; padding: 1.1rem; 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(--card), 0 0 0 4px var(--line); }
.about .founder-name { margin: 0; font-size: 1.1rem; line-height: 1.3; color: var(--text); }
.about .founder-role { margin: .2rem 0 0; font-size: .8rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--accent); }
.about .founder-bio { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.55; }
@media (min-width: 45rem) { .founders { grid-template-columns: 1fr 1fr; gap: 1.25rem; } .founder { grid-template-columns: 112px 1fr; padding: 1.4rem; } .founder-photo { width: 112px; height: 112px; } .about { padding: 2rem 2.25rem; } }
.about .about-foot { margin: 1.3rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); }
.sources-line { margin-top: 2rem; }

/* Mobile sticky order bar */
.cta-bar { display: none; }
@media (max-width: 55.99rem) {
  .cta-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; align-items: center; justify-content: space-between; gap: .8rem; padding: .6rem 16px calc(.6rem + env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(15, 23, 42, .12); font-weight: 700; }
  .cta-bar .btn { min-height: 44px; }
  body:has(.cta-bar) .site-footer { padding-bottom: 5.5rem; }
}

/* Generator page: audit promo next to the hero */
.audit-promo { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1.1rem; align-items: start; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 1.2rem; box-shadow: var(--shadow-lg); }
.audit-promo h2 { font-size: 1.2rem; margin: 0 0 .4rem; }
.audit-promo p { margin: .4rem 0; }
.promo-thumb img { display: block; width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--line); transform: rotate(-3deg); box-shadow: var(--shadow); }
.save-box { margin-top: 1.5rem; }
.save-title { margin-bottom: .2rem; }

.callout { border-left: 5px solid var(--warn-line); background: var(--warn-bg); padding: .9rem 1rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.2rem 0; }
.callout.info { border-color: var(--accent); background: var(--accent-soft); }
.callout.ok { border-color: var(--ok-line); background: var(--ok-bg); }
.callout > :first-child { margin-top: 0; }
.callout > :last-child { margin-bottom: 0; }
.upsell { border: 2px solid var(--accent); background: var(--card); border-radius: var(--radius); padding: 1rem 1.2rem; margin: 1.2rem 0; box-shadow: var(--shadow); }
.upsell p { margin: .3rem 0; font-weight: 600; }

.grid { display: grid; gap: 1.5rem; }
@media (min-width: 64rem) {
  .gen-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: start; }
  /* the whole preview column fits the viewport, so it stays in view while the form scrolls */
  .preview-col { position: sticky; top: 1rem; max-height: calc(100vh - 2rem); display: flex; flex-direction: column; }
  .preview-col > h2 { margin-top: 0; }
  .preview-col .preview { flex: 1 1 auto; min-height: 12rem; max-height: none; }
  .gen-grid > section:first-child > h2 { margin-top: 0; }
}
.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; background: var(--card); box-shadow: var(--shadow); }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.prose { max-width: 46rem; }
.who-list { max-width: 46rem; padding-left: 1.2rem; }
.who-list li { margin: .5rem 0; }
.who-list + .callout { max-width: 46rem; }
.next-list { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: 1.1rem; max-width: 46rem; }
.next-list li { border-left: 3px solid var(--accent); padding-left: 1rem; }
.next-list h3 { margin: 0 0 .25rem; font-size: 1.05rem; }
.next-list p { margin: 0; }
.fr-only { max-width: 40rem; }

fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1rem 1.2rem; margin: 0 0 1.2rem; min-width: 0; background: var(--card); }
legend { font-weight: 700; font-size: 1.1rem; padding: 0 .4rem; }
.field { margin: .9rem 0; }
.field > label, .field > .label { display: block; font-weight: 600; margin-bottom: .25rem; }
.hint { display: block; color: var(--muted); font-size: .93rem; font-weight: 400; margin-bottom: .3rem; }
input[type="text"], input[type="url"], input[type="email"], input[type="tel"], input[type="date"], input[type="number"], select, textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--card); border: 1px solid var(--field); border-radius: 8px; padding: .5rem .6rem;
}
textarea { min-height: 5.5rem; resize: vertical; }
.choices { border: 0; padding: 0; margin: .9rem 0; background: transparent; }
.choices legend { font-size: 1rem; font-weight: 600; padding: 0; margin-bottom: .25rem; }
.choice { display: flex; gap: .55rem; align-items: flex-start; margin: .3rem 0; }
.choice input { margin-top: .35rem; width: 1.1rem; height: 1.1rem; flex: none; accent-color: var(--accent); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; font: inherit; font-weight: 700; border-radius: 10px; padding: .55rem 1rem; border: 2px solid var(--accent); background: var(--accent); color: var(--accent-ink); cursor: pointer; text-decoration: none; min-height: 44px; }
.btn.secondary { background: var(--card); color: var(--accent); }
.btn:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--accent-ink); }
.btn.secondary:hover { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.btn-lg { font-size: 1.1rem; padding: .8rem 1.4rem; box-shadow: 0 6px 16px rgba(29, 78, 216, .25); }
.btn-row { display: flex; flex-wrap: wrap; gap: .6rem; margin: .8rem 0; }

.verdict { border-radius: var(--radius); padding: .9rem 1rem; border: 2px solid var(--line); background: var(--bg-soft); }
.verdict h3 { margin: 0 0 .3rem; font-size: 1.05rem; }
.verdict p { margin: .3rem 0; }

.preview { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; background: var(--card); max-height: 75vh; overflow: auto; box-shadow: var(--shadow); }
.preview h1 { font-size: 1.5rem; }
.preview h2 { font-size: 1.2rem; margin-top: 1.4rem; }
.preview h3 { font-size: 1.05rem; }
.doc-choice { display: flex; flex-wrap: wrap; gap: .1rem 1rem; }

table { border-collapse: collapse; width: 100%; font-size: .95rem; background: var(--card); }
th, td { border: 1px solid var(--line); padding: .45rem .55rem; text-align: left; vertical-align: top; }
thead th { background: var(--bg-soft); }
.table-scroll { overflow-x: auto; }

.results { margin-top: 1rem; }
.result-item { border: 1px solid var(--line); border-left: 5px solid var(--bad-line); border-radius: 0 var(--radius) var(--radius) 0; padding: .7rem .9rem; margin: .7rem 0; background: var(--card); }
.result-item.review { border-left-color: var(--warn-line); }
.result-item h4 { margin: 0 0 .2rem; font-size: 1rem; }
.result-item ul { margin: .3rem 0; padding-left: 1.2rem; }
.result-item code { word-break: break-all; }

.price { font-size: 1.8rem; font-weight: 800; }
.status-pill { display: inline-block; background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: 999px; padding: .1rem .7rem; font-weight: 700; font-size: .9rem; }

.site-footer { border-top: 1px solid var(--line); background: var(--card); padding: 1.5rem 0 2rem; font-size: .93rem; color: var(--muted); }
.site-footer ul { list-style: none; padding: 0; margin: .5rem 0; display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
.legal-text { max-width: 48rem; }
.src-list li { margin: .35rem 0; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* Order page (octave-pay-gas checkout, only built while SALES_OPEN is true) */
.checkout { max-width: 44rem; }
.checkout .card { margin: 1rem 0; }
.checkout-form label.field { display: block; margin: .9rem 0; }
.checkout-form label.field > span { display: block; font-weight: 600; margin-bottom: .25rem; }
.checkout-form input, .checkout-form select, .checkout-form textarea { min-height: 44px; }
.field-group { border: 1px solid var(--line); border-radius: var(--radius); padding: .3rem 1rem .8rem; margin: 1rem 0; min-width: 0; }
.field-group legend { font-size: 1rem; }
label.check { display: flex; gap: .6rem; align-items: flex-start; margin: 1rem 0; }
label.check input { margin-top: .3rem; width: 1.2rem; height: 1.2rem; flex: none; accent-color: var(--accent); }
.pay-button { font: inherit; font-weight: 700; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 10px; padding: .85rem 1.2rem; cursor: pointer; width: 100%; min-height: 48px; }
.pay-button[disabled] { opacity: .6; cursor: progress; }
#payment-element { margin: 1rem 0; min-height: 2rem; }
/* Quote / bank-transfer form (only built with quotesEnabled: true) */
.devis-box summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.devis-box[open] summary { margin-bottom: .6rem; }
.pay-button.secondary { background: var(--card); color: var(--accent); border: 2px solid var(--accent); }
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.status { font-weight: 700; }
.status.ok { color: var(--ok-line); }
.status.err { color: var(--bad-line); }
.small { font-size: .93rem; }
.muted { color: var(--muted); }

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