:root {
  --primary: #4F46E5; --primary-soft: #E0E7FF; --text: #0F172A; --muted: #64748B; --bg: #F5F6FB; --card: #fff; --line: #E2E8F0; --accent: #0D9488;
}
@media (prefers-color-scheme: dark) {
  :root { --primary: #A5B4FC; --primary-soft: #312E81; --text: #E2E8F0; --muted: #94A3B8; --bg: #0B1020; --card: #131A2E; --line: #243049; --accent: #5EEAD4; }
}
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.6 -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: var(--text); background: var(--bg); }
a { color: var(--primary); text-decoration: none; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; max-width: 1080px; margin: 0 auto; }
.nav nav { display: flex; gap: 18px; align-items: center; }
.nav nav a:not(.btn) { color: var(--muted); }
.brand { font-weight: 800; font-size: 18px; color: var(--text); display: flex; align-items: center; gap: 8px; }
.logo { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: #4F46E5; color: #fff; }
.btn { display: inline-block; background: #4F46E5; color: #fff; padding: 12px 22px; border-radius: 12px; font-weight: 600; }
.btn.small { padding: 8px 14px; }
.btn.ghost { background: transparent; color: var(--primary); border: 1px solid var(--line); }
.hero { padding: 56px 0 40px; text-align: center; background: radial-gradient(ellipse at top, var(--primary-soft), transparent 70%); }
.hero h1 { font-size: clamp(30px, 5vw, 48px); line-height: 1.15; margin: 8px 0 16px; }
.hero h1 span { color: var(--primary); }
.eyebrow { color: var(--accent); font-weight: 700; margin: 0; }
.lead { max-width: 720px; margin: 0 auto 24px; color: var(--muted); font-size: 18px; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 12px; }
.small { font-size: 14px; } .muted { color: var(--muted); }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; padding-top: 40px; padding-bottom: 40px; }
.grid3 article, .plan, details { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.grid3 h3 { margin: 0 0 6px; font-size: 18px; }
.grid3 p { margin: 0; color: var(--muted); }
.pricing { padding: 48px 0; text-align: center; }
.pricing h2, .faq h2 { font-size: 30px; margin-bottom: 4px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 28px 0; text-align: left; }
.plan { position: relative; }
.plan.featured { border: 2px solid var(--primary); }
.plan .tag { position: absolute; top: -12px; right: 16px; background: #4F46E5; color: #fff; font-size: 12px; padding: 2px 10px; border-radius: 99px; }
.plan h3 { margin: 0; }
.price { font-size: 30px; font-weight: 800; color: var(--primary); margin: 6px 0; }
.price small { font-size: 14px; color: var(--muted); font-weight: 500; }
.plan ul { padding-left: 18px; margin: 0; color: var(--muted); }
.faq { padding-bottom: 48px; }
details { margin-bottom: 10px; }
summary { font-weight: 600; cursor: pointer; }
.footer { border-top: 1px solid var(--line); padding: 24px 0; color: var(--muted); }
.footer .wrap { display: flex; gap: 18px; flex-wrap: wrap; }
.legal { max-width: 780px; padding: 32px 20px 64px; }
.legal h1 { font-size: 30px; } .legal h2 { font-size: 20px; margin-top: 28px; }
@media (max-width: 640px) { .nav nav a:not(.btn) { display: none; } }

/* ── Site pages (SEO 2026-11): logo, store links, screenshots, guides, tools ── */
:root { --paper: #fff; --ink: #111827; --warn-soft: #FEF3C7; --warn: #92400E; }
@media (prefers-color-scheme: dark) { :root { --warn-soft: #422006; --warn: #FCD34D; } }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.hero .lead strong { color: var(--text); font-weight: 600; }
.stores { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 14px 0 6px; }
.store { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--text); font-weight: 600; font-size: 15px; }
.store svg { width: 20px; height: 20px; fill: currentColor; }
.store.soon { color: var(--muted); font-weight: 500; }
.section { padding: 48px 0; }
.section > h2, .center-title { font-size: 30px; margin: 0 0 6px; text-align: center; }
.section > .sub { text-align: center; color: var(--muted); margin: 0 auto 28px; max-width: 720px; }
.shots { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.shots figure { margin: 0; width: 240px; text-align: center; }
.shots img { width: 240px; height: auto; aspect-ratio: 560 / 1217; border-radius: 28px; border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(15, 23, 42, .12); background: var(--card); }
.shots figcaption { color: var(--muted); font-size: 14px; margin-top: 8px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; counter-reset: step; }
.steps li { list-style: none; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px; position: relative; }
.steps li::before { counter-increment: step; content: counter(step); display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-weight: 800; margin-bottom: 8px; }
.steps h3 { margin: 0 0 4px; font-size: 18px; } .steps p { margin: 0; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.cards a { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px; color: var(--text); }
.cards a:hover { border-color: var(--primary); }
.cards h3 { margin: 0 0 6px; font-size: 18px; color: var(--primary); } .cards p { margin: 0; color: var(--muted); }
.footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; margin-bottom: 14px; }
.footer .cols b { display: block; color: var(--text); margin-bottom: 6px; }
.footer .cols a { display: block; color: var(--muted); padding: 2px 0; }
.footer .wrap.legalline { display: flex; gap: 18px; flex-wrap: wrap; }

/* Guides */
.article { max-width: 820px; padding: 24px 20px 56px; }
.crumbs { font-size: 14px; color: var(--muted); margin: 0 0 8px; }
.crumbs a { color: var(--muted); text-decoration: underline; }
.article h1 { font-size: clamp(28px, 4.5vw, 40px); line-height: 1.2; margin: 6px 0 12px; }
.article h2 { font-size: 24px; margin-top: 40px; } .article h3 { font-size: 19px; margin-top: 26px; }
.article p, .article li { color: var(--text); }
.article .lead { color: var(--muted); font-size: 18px; margin: 0 0 18px; }
.article a { text-decoration: underline; }
.article a.btn { text-decoration: none; }
.updated { color: var(--muted); font-size: 14px; }
.toc { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 20px; margin: 18px 0; }
.toc b { display: block; margin-bottom: 4px; } .toc ol { margin: 0; padding-left: 20px; }
.note { background: var(--primary-soft); border-radius: 14px; padding: 14px 18px; margin: 18px 0; }
.note.warn { background: var(--warn-soft); color: var(--warn); }
.quote { border-left: 4px solid var(--primary); margin: 16px 0; padding: 4px 16px; color: var(--muted); font-style: italic; }
.table-wrap { overflow-x: auto; margin: 16px 0; }
table.data { border-collapse: collapse; width: 100%; font-size: 15px; background: var(--card); border-radius: 12px; overflow: hidden; }
table.data th, table.data td { padding: 8px 12px; border-bottom: 1px solid var(--line); text-align: left; }
table.data th { background: var(--primary-soft); }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; }
.cta-box { background: var(--card); border: 2px solid var(--primary); border-radius: 18px; padding: 22px; margin: 32px 0; }
.cta-box h2 { margin-top: 0; font-size: 22px; }

/* Free tools (quittance, avis, IRL) */
.tool { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px; margin: 20px 0; }
.tool h2 { margin-top: 0; font-size: 22px; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 16px; }
.fields label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 600; }
.fields label.wide { grid-column: 1 / -1; }
.fields input, .fields select, .fields textarea { font: inherit; font-weight: 400; padding: 9px 11px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); }
.fields textarea { min-height: 64px; resize: vertical; }
.tool .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.tool button.btn { border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.result { margin-top: 16px; font-size: 18px; }
.result b { color: var(--primary); }
.doc { background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 6px; padding: 32px; margin-top: 18px; font-size: 15px; line-height: 1.55; }
.doc h2 { text-align: center; font-size: 22px; margin: 0 0 4px; color: var(--ink); }
.doc .period { text-align: center; color: #4B5563; margin: 0 0 20px; }
.doc .parties { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.doc .parties div { white-space: pre-line; }
.doc table { width: 100%; border-collapse: collapse; margin: 14px 0; }
.doc td { padding: 6px 0; border-bottom: 1px solid #E5E7EB; }
.doc td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.doc tr.total td { font-weight: 700; border-bottom: 2px solid #111827; }
.doc .sign { margin-top: 26px; text-align: right; white-space: pre-line; }
.doc .legal-note { margin-top: 22px; font-size: 12px; color: #6B7280; }
.privacy { font-size: 13px; color: var(--muted); margin-top: 10px; }
@media print {
  body { background: #fff; }
  body * { visibility: hidden; }
  .doc, .doc * { visibility: visible; }
  .doc { position: absolute; left: 0; top: 0; width: 100%; border: 0; margin: 0; padding: 0; }
}
@media (max-width: 760px) {
  .shots { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; scroll-snap-type: x mandatory; padding: 0 4px 12px; }
  .shots figure { flex: 0 0 200px; width: 200px; scroll-snap-align: center; }
  .shots img { width: 200px; }
}
.doc .parties div::first-line { font-weight: 700; }
@media (max-width: 640px) { .doc { padding: 18px; } .tool { padding: 16px; } }

/* ── Roles for status, actions and charts (back office 2026-11): a light and a dark value each ── */
:root {
  --on-primary: #fff; --btn-primary: #4F46E5; --surface-soft: #EEF0F7; --overlay: rgb(15 23 42 / .45);
  --ok: #047857; --ok-soft: #D1FAE5; --danger: #B91C1C; --danger-soft: #FEE2E2; --info: #1D4ED8; --info-soft: #DBEAFE;
  --chart-1: #4F46E5; --chart-2: #0D9488; --shadow: 0 10px 30px rgb(15 23 42 / .12);
}
@media (prefers-color-scheme: dark) {
  :root {
    --on-primary: #fff; --btn-primary: #4F46E5; --surface-soft: #1A2238; --overlay: rgb(0 0 0 / .6);
    --ok: #6EE7B7; --ok-soft: #064E3B; --danger: #FCA5A5; --danger-soft: #450A0A; --info: #93C5FD; --info-soft: #1E3A8A;
    --chart-1: #7469E0; --chart-2: #0F9C8C; --shadow: 0 10px 30px rgb(0 0 0 / .45);
  }
}
