@font-face { font-family: "Inter"; src: url("../fonts/inter-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --bg: #ffffff; --bg-2: #f6f7fb; --surface: #ffffff;
  --ink: #0f172a; --ink-2: #334155; --muted: #64748b; --line: #e2e8f0;
  --brand: #4f46e5; --brand-2: #7c3aed; --brand-soft: #eef2ff; --brand-text: #4338ca;
  --ok: #047857; --ok-soft: #ecfdf5; --warn: #b45309; --warn-soft: #fffbeb; --danger: #b91c1c;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
  --shadow-lg: 0 30px 60px -20px rgba(30, 27, 75, .35);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0d14; --bg-2: #11141d; --surface: #161a25;
    --ink: #eef0f6; --ink-2: #c8cedb; --muted: #949cb0; --line: #252b3a;
    --brand: #6366f1; --brand-2: #8b5cf6; --brand-soft: #1e1b4b; --brand-text: #a5b4fc;
    --ok: #34d399; --ok-soft: #0d2a22; --warn: #fbbf24; --warn-soft: #2d2410; --danger: #f87171;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4); --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0d14; --bg-2: #11141d; --surface: #161a25;
  --ink: #eef0f6; --ink-2: #c8cedb; --muted: #949cb0; --line: #252b3a;
  --brand: #6366f1; --brand-2: #8b5cf6; --brand-soft: #1e1b4b; --brand-text: #a5b4fc;
  --ok: #34d399; --ok-soft: #0d2a22; --warn: #fbbf24; --warn-soft: #2d2410; --danger: #f87171;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4); --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; }
a { color: var(--brand-text); }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -.025em; }
p { margin: 0; }
svg.i { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 12px; font-weight: 600; font-size: 15.5px; text-decoration: none; border: 1px solid var(--line); color: var(--ink); background: var(--surface); transition: transform .1s, box-shadow .2s, filter .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn.primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; border: 0; box-shadow: 0 8px 20px -8px rgba(79, 70, 229, .7); }
.btn.sm { height: 40px; padding: 0 16px; font-size: 14.5px; border-radius: 10px; }

/* nav */
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 66px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--ink); text-decoration: none; letter-spacing: -.02em; }
.top nav { display: flex; gap: 22px; margin-left: auto; }
.top nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 15px; }
.top nav a:hover { color: var(--brand-text); }
.logo, .top nav a { white-space: nowrap; }
/* Écrans moyens : on garde les entrées principales du menu */
@media (max-width: 1120px) { .top nav { gap: 18px; } .top nav a[href$="#reforme"] { display: none; } }
@media (max-width: 1000px) { .top nav a[href$="#tarifs"], .top nav a[href$="#faq"] { display: none; } }
@media (max-width: 860px) { .top nav { display: none; } .top .btn { margin-left: auto; } }

/* hero */
.hero { padding: 72px 0 56px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -30% -10% auto 40%; height: 620px; background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 22%, transparent), transparent); filter: blur(20px); pointer-events: none; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; position: relative; }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: 1fr; gap: 40px; } .hero { padding-top: 44px; } }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 99px; background: var(--brand-soft); color: var(--brand-text); font-weight: 600; font-size: 13.5px; }
a.pill { text-decoration: none; transition: filter .15s; }
a.pill:hover { filter: brightness(.96); }
.pill b { background: var(--brand); color: #fff; border-radius: 99px; padding: 1px 9px; font-size: 12.5px; }
.hero h1 { font-size: clamp(36px, 5.2vw, 58px); font-weight: 800; margin: 20px 0 18px; }
.hero h1 em { font-style: normal; background: linear-gradient(135deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 19px; color: var(--ink-2); max-width: 560px; }
.cta { display: flex; gap: 12px; margin: 30px 0 22px; flex-wrap: wrap; }
.checks { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 14.5px; }
.checks span { display: inline-flex; align-items: center; gap: 6px; }
.checks svg { color: var(--ok); width: 17px; height: 17px; stroke-width: 2.6; }

/* visuel : la vie d'une facture */
.story { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 24px 26px 18px; }
.story-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.story-label { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.story-client { font-size: 18px; font-weight: 700; margin-top: 2px; }
.story-amount { font-size: 22px; font-weight: 800; letter-spacing: -.02em; text-align: right; font-variant-numeric: tabular-nums; }
.story-paid { display: block; width: fit-content; margin: 6px 0 0 auto; font-size: 12.5px; font-weight: 700; letter-spacing: 0; padding: 3px 10px; border-radius: 99px; background: var(--ok-soft); color: var(--ok); }
.story-steps { list-style: none; margin: 0; padding: 18px 0 0; display: grid; gap: 0; }
.story-steps li { display: grid; grid-template-columns: 36px 1fr auto; gap: 14px; align-items: start; position: relative; padding-bottom: 18px; }
.story-steps li:last-child { padding-bottom: 4px; }
.story-steps li:not(:last-child)::before { content: ""; position: absolute; left: 17px; top: 38px; bottom: 2px; width: 2px; background: var(--line); }
.story-steps .dot { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; }
.story-steps .dot svg { width: 18px; height: 18px; stroke-width: 2.4; }
.story-steps .ok .dot { background: var(--ok-soft); color: var(--ok); }
.story-steps .info .dot { background: var(--brand-soft); color: var(--brand-text); }
.story-steps .warn .dot { background: var(--warn-soft); color: var(--warn); }
.story-steps b { display: block; font-size: 15.5px; line-height: 1.3; margin-top: 1px; }
.story-steps li > div span { display: block; font-size: 14px; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.story-steps .warn b { color: var(--warn); }
.story-steps time { font-size: 13px; color: var(--muted); white-space: nowrap; margin-top: 2px; font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .story { padding: 18px 16px 12px; } .story-amount { font-size: 19px; } .story-steps li { grid-template-columns: 32px 1fr; } .story-steps time { grid-column: 2; margin-top: -4px; } .story-steps .dot { width: 32px; height: 32px; } .story-steps li:not(:last-child)::before { left: 15px; top: 34px; } }

/* bandeau compte à rebours */
.band { background: linear-gradient(135deg, #1e1b4b, #312e81 60%, #4c1d95); color: #fff; }
.band .wrap { display: flex; align-items: center; gap: 28px; padding-top: 26px; padding-bottom: 26px; flex-wrap: wrap; }
.band .days { font-size: 46px; font-weight: 800; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.band .days small { display: block; font-size: 13px; font-weight: 500; opacity: .75; letter-spacing: 0; margin-top: 4px; }
.band p { flex: 1; min-width: 260px; font-size: 17px; opacity: .95; }
.band .btn { background: #fff; color: #1e1b4b; border: 0; }

/* sections */
section.s { padding: 88px 0; }
section.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.s-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.s-head .eyebrow { color: var(--brand-text); font-weight: 700; font-size: 13.5px; text-transform: uppercase; letter-spacing: .08em; }
.s-head h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; margin: 10px 0 14px; }
.s-head p { color: var(--muted); font-size: 18px; }
@media (max-width: 600px) { section.s { padding: 64px 0; } }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 26px; box-shadow: var(--shadow); }
.feature .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-text); display: grid; place-items: center; margin-bottom: 16px; }
.feature h3 { font-size: 18px; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 15px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 8px; }
.step::before { counter-increment: step; content: counter(step); width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; display: grid; place-items: center; font-weight: 800; margin-bottom: 14px; }
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 15px; }

.reform { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 860px) { .reform { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 26px; box-shadow: var(--shadow); }
.card h3 { font-size: 18px; margin-bottom: 14px; }
.tl { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.tl li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; }
.tl .dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; margin-top: 2px; }
.tl .done .dot { background: var(--ok); color: #fff; }
.tl .todo .dot { border: 2.5px solid var(--brand); }
.tl .dot svg { width: 13px; height: 13px; stroke-width: 3; }
.tl b { display: block; }
.tl span { color: var(--muted); font-size: 15px; }
.mentions { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mentions li { display: flex; gap: 10px; color: var(--ink-2); }
.mentions svg { color: var(--ok); margin-top: 3px; width: 18px; height: 18px; stroke-width: 2.6; }
.note { margin-top: 18px; padding: 14px 16px; border-radius: 12px; background: var(--warn-soft); color: var(--ink-2); font-size: 14.5px; }
.note b { color: var(--warn); }
.note.pa { background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--line)); padding: 18px 20px; }
.note.pa > b { display: block; color: var(--brand-text); font-size: 15.5px; margin-bottom: 6px; }
.note.pa p { margin: 0 0 10px; }
.note .pro-line { padding-top: 10px; border-top: 1px dashed color-mix(in srgb, var(--brand) 30%, var(--line)); }
.note .soon { display: inline-block; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); border-radius: 99px; padding: 2px 9px; margin-right: 6px; vertical-align: 1px; }
.note-link { font-weight: 600; font-size: 14.5px; text-decoration: none; }
.note-link:hover { text-decoration: underline; }

.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 880px; margin: 0 auto; }
@media (max-width: 760px) { .pricing { grid-template-columns: 1fr; } }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 30px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.plan.pro { border: 2px solid var(--brand); position: relative; }
.plan .tag { position: absolute; top: -13px; left: 30px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-size: 12.5px; font-weight: 700; padding: 4px 12px; border-radius: 99px; }
.plan h3 { font-size: 20px; }
.plan .price { font-size: 40px; font-weight: 800; letter-spacing: -.03em; margin: 10px 0 4px; }
.plan .price small { font-size: 16px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.plan .desc { color: var(--muted); font-size: 15px; margin-bottom: 20px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; flex: 1; }
.plan li { display: flex; gap: 10px; font-size: 15px; color: var(--ink-2); }
.plan li svg { color: var(--ok); width: 18px; height: 18px; margin-top: 3px; stroke-width: 2.6; }
.plan.pro li svg { color: var(--brand-text); }

.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 16.5px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--brand-text); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); margin-top: 12px; font-size: 15.5px; }
.faq + p { margin-top: 28px; }

.final { text-align: center; }
.final h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; margin-bottom: 14px; }
.final p { color: var(--muted); font-size: 18px; margin-bottom: 28px; }

footer { border-top: 1px solid var(--line); padding: 36px 0 44px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; gap: 20px; justify-content: space-between; flex-wrap: wrap; align-items: center; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--ink); }

/* pages de texte (mentions légales) */
.doc { max-width: 760px; margin: 0 auto; padding: 56px 24px 80px; }
.doc h1 { font-size: 34px; margin-bottom: 24px; }
.doc h2 { font-size: 20px; margin: 30px 0 10px; }
.doc p { color: var(--ink-2); margin-bottom: 10px; }
.doc .todo { background: var(--warn-soft); padding: 2px 6px; border-radius: 6px; color: var(--warn); }

/* ---------- guides (ex. recevoir ses factures) ---------- */
.wrap.narrow { max-width: 860px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.guide-hero { padding: 44px 0 30px; background: linear-gradient(180deg, var(--brand-soft), var(--bg)); border-bottom: 1px solid var(--line); }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.guide h1 { font-size: clamp(30px, 4.4vw, 44px); font-weight: 800; margin-bottom: 16px; }
.guide .lead { font-size: 18.5px; color: var(--ink-2); }
.guide .meta { font-size: 14px; color: var(--muted); margin-top: 12px; }
.tldr { margin: 30px 0 10px; padding: 22px 24px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.tldr h2 { font-size: 18px; margin-bottom: 12px; }
.tldr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tldr li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); }
.tldr li svg { color: var(--ok); width: 20px; height: 20px; margin-top: 2px; stroke-width: 2.6; }
.tldr li:last-child svg { color: var(--warn); }
.g-section { padding: 30px 0 6px; }
.g-section h2 { font-size: clamp(22px, 3vw, 28px); font-weight: 800; margin-bottom: 12px; }
.g-section p { color: var(--ink-2); margin-bottom: 12px; }
.g-steps { margin: 6px 0 0; padding: 0; list-style: none; counter-reset: g; display: grid; gap: 12px; }
.g-steps li { counter-increment: g; position: relative; padding: 16px 18px 16px 62px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink-2); }
.g-steps li::before { content: counter(g); position: absolute; left: 16px; top: 14px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.g-steps b { color: var(--ink); }
.g-list { margin: 0 0 12px; padding-left: 22px; color: var(--ink-2); display: grid; gap: 6px; }
.g-cta { margin: 18px 0 10px; }
.cmp-wrap { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); margin-top: 8px; }
table.cmp { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.cmp th, table.cmp td { padding: 14px 14px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); }
table.cmp thead th { background: var(--bg-2); font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
table.cmp tbody tr:last-child th, table.cmp tbody tr:last-child td { border-bottom: 0; }
table.cmp tbody th { font-size: 16px; font-weight: 700; white-space: nowrap; }
table.cmp td:nth-child(4) { color: var(--ink-2); }
table.cmp td:last-child { text-align: right; }
.yes, .part { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13.5px; line-height: 1.3; }
.yes { color: var(--ok); }
.part { color: var(--warn); }
.yes::before, .part::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
details.method { margin-top: 14px; padding: 14px 18px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); }
details.method summary { cursor: pointer; font-weight: 600; color: var(--ink-2); }
details.method p { font-size: 14.5px; margin: 10px 0 0; }
@media (max-width: 760px) {
  table.cmp thead { display: none; }
  table.cmp, table.cmp tbody, table.cmp tr, table.cmp th, table.cmp td { display: block; width: 100%; }
  table.cmp tr { padding: 16px; border-bottom: 1px solid var(--line); }
  table.cmp tbody tr:last-child { border-bottom: 0; }
  table.cmp th, table.cmp td { border: 0; padding: 3px 0; text-align: left; }
  table.cmp td:nth-child(2)::before { content: "Recevoir : "; color: var(--muted); font-weight: 500; font-size: 13.5px; }
  table.cmp td:nth-child(3)::before { content: "Émettre : "; color: var(--muted); font-weight: 500; font-size: 13.5px; }
  table.cmp td:last-child { text-align: left; padding-top: 8px; }
}

/* ---------- menu : entrée mise en avant ---------- */
.top nav a.nav-hot { color: var(--brand-text); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.top nav a.nav-hot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }

/* ---------- accueil : plateformes gratuites ---------- */
.plat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1000px) { .plat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .plat-grid { grid-template-columns: 1fr; } }
.plat-card { display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; transition: transform .15s, box-shadow .15s, border-color .15s; }
.plat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.plat-top { display: flex; align-items: center; gap: 12px; }
.plat-top b { font-size: 18px; }
.plat-logo { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font-weight: 800; font-size: 18px; color: #fff; background: hsl(var(--h, 245) 62% 52%); flex: none; }
.plat-logo.guide { background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.plat-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.t-ok, .t-part { font-size: 12.5px; font-weight: 600; padding: 3px 9px; border-radius: 99px; }
.t-ok { background: var(--ok-soft); color: var(--ok); }
.t-part { background: var(--warn-soft); color: var(--warn); }
.plat-card p { font-size: 14.5px; color: var(--muted); flex: 1; }
.plat-cta { font-weight: 700; color: var(--brand-text); font-size: 15px; }
.plat-card.plat-guide { background: linear-gradient(160deg, var(--brand-soft), var(--surface)); border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); }
.plat-note { margin-top: 20px; text-align: center; font-size: 13.5px; color: var(--muted); max-width: 860px; margin-left: auto; margin-right: auto; }
section[id] { scroll-margin-top: 72px; }

/* ---------- calculateur de pénalités ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); margin: 30px 0 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden; }
@media (max-width: 760px) { .calc { grid-template-columns: 1fr; } }
.calc-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 14px; padding: 24px; align-content: start; }
.calc-form .full { grid-column: 1 / -1; }
@media (max-width: 480px) { .calc-form { grid-template-columns: 1fr; padding: 18px 16px; } }
.calc-f { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.calc-f > label, .calc-f legend { font-size: 13.5px; font-weight: 600; color: var(--ink-2); padding: 0; }
.calc-f legend { margin-bottom: 6px; }
.calc-in { width: 100%; height: 46px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; font-size: 16px; }
.calc-in:focus { outline: 2px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 1px; border-color: var(--brand); }
.calc-in.sm { width: 78px; height: 36px; padding: 0 8px; font-size: 15px; }
.calc-unit { position: relative; }
.calc-unit .calc-in { padding-right: 34px; font-weight: 600; }
.calc-unit span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; }
.calc-hint { font-size: 12.5px; color: var(--muted); }
.calc-warn { font-size: 13.5px; color: var(--warn); background: var(--warn-soft); border-radius: 10px; padding: 9px 12px; margin: 0; }
.calc-warn[hidden], .opt[hidden], .calc-copy[hidden] { display: none; }
.seg { display: flex; padding: 3px; border-radius: 11px; background: var(--bg-2); border: 1px solid var(--line); height: 46px; }
.seg label { flex: 1; position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: grid; place-items: center; height: 100%; border-radius: 8px; font-size: 13.5px; font-weight: 600; color: var(--muted); cursor: pointer; text-align: center; line-height: 1.15; padding: 0 2px; }
.seg input:checked + span { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.seg input:focus-visible + span { outline: 2px solid var(--brand); }
.opts { display: grid; gap: 8px; }
.opt { display: flex; gap: 12px; align-items: flex-start; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line); cursor: pointer; transition: border-color .15s, background .15s; }
.opt:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.opt:has(> input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.opt > input { margin: 4px 0 0; accent-color: var(--brand); flex: none; width: 16px; height: 16px; }
.opt b { display: block; font-size: 14.5px; color: var(--ink); }
.opt small { display: block; font-size: 13px; color: var(--muted); }
.opt small.opt-custom { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.calc-res { padding: 26px 24px; background: linear-gradient(165deg, var(--brand-soft), var(--surface) 70%); border-left: 1px solid var(--line); display: flex; flex-direction: column; }
@media (max-width: 760px) { .calc-res { border-left: 0; border-top: 1px solid var(--line); } }
@media (max-width: 480px) { .calc-res { padding: 20px 16px; } }
.res-k { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-text); }
.res-total { font-size: clamp(34px, 5vw, 44px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin: 6px 0 4px; font-variant-numeric: tabular-nums; }
.res-sub { font-size: 14px; color: var(--ink-2); }
.res-lines { margin: 18px 0 0; }
.res-lines div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.res-lines dt { color: var(--ink-2); }
.res-lines dt small { display: block; font-size: 12.5px; color: var(--muted); }
.res-lines dd { margin: 0; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.res-lines .tot { border-bottom: 0; font-size: 16px; }
.res-lines .tot dt { color: var(--ink); font-weight: 700; }
.res-formula { margin-top: 12px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.res-segs { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.res-segs li { display: flex; justify-content: space-between; gap: 10px; }
.res-segs b { color: var(--ink-2); font-weight: 600; white-space: nowrap; }
.calc-res .calc-warn { margin-top: 12px; }
.calc-res .res-cta { margin-top: 20px; width: 100%; }
.res-cta-sub { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 8px; }
.calc-copy { margin: 0 0 8px; padding: 18px 20px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-2); }
.copy-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.copy-head b { font-size: 14px; }
.calc-copy p { color: var(--ink-2); font-size: 15px; }
.rate-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 8px 0 14px; }
@media (max-width: 700px) { .rate-cards { grid-template-columns: 1fr; } }
.rate-card { padding: 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; gap: 6px; }
.rate-v { font-size: 30px; font-weight: 800; letter-spacing: -.03em; color: var(--brand-text); line-height: 1.1; }
.rate-card b { font-size: 15px; }
.g-section .rate-card p { font-size: 14px; margin: 0; }
.g-section .formula { font-weight: 700; color: var(--ink); background: var(--brand-soft); border-radius: 12px; padding: 14px 18px; text-align: center; }
.example { padding: 16px 18px 6px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); margin-bottom: 14px; }
.quote { margin: 0 0 12px; padding: 14px 18px; border-left: 4px solid var(--brand); background: var(--bg-2); border-radius: 0 12px 12px 0; color: var(--ink-2); font-style: italic; }
.calc-pitch { display: flex; align-items: center; gap: 20px; margin-top: 8px; padding: 20px 22px; border-radius: 16px; background: linear-gradient(135deg, var(--brand-soft), var(--surface)); border: 1px solid color-mix(in srgb, var(--brand) 30%, var(--line)); }
.calc-pitch b { font-size: 17px; }
.g-section .calc-pitch p { margin: 4px 0 0; font-size: 14.5px; }
@media (max-width: 600px) { .calc-pitch { flex-direction: column; align-items: stretch; } }
.hist-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); margin-bottom: 10px; }
table.hist { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; min-width: 520px; }
table.hist th, table.hist td { padding: 10px 14px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.hist th:first-child { text-align: left; }
table.hist thead th { background: var(--bg-2); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; white-space: normal; }
table.hist tbody tr:last-child > * { border-bottom: 0; }
table.hist tbody tr:first-child { background: color-mix(in srgb, var(--brand-soft) 60%, transparent); font-weight: 600; }
.top nav a[aria-current="page"] { color: var(--brand-text); font-weight: 600; }

/* ---------- menu mobile (bouton ☰) ---------- */
.top .btn .xs, .menu-btn, .menu-btn .ic-close { display: none; }
@media (max-width: 860px) {
  .top .wrap { gap: 10px; }
  .menu-btn { display: grid; place-items: center; width: 42px; height: 42px; flex: none; padding: 0; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
  .menu-btn svg { width: 22px; height: 22px; }
  .top.open .menu-btn .ic-open { display: none; }
  .top.open .menu-btn .ic-close { display: block; }
  .top.open nav { display: flex; flex-direction: column; gap: 0; margin: 0; position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100vh - 66px); overflow-y: auto; padding: 6px 16px 14px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); }
  .top.open nav a, .top.open nav a[href$="#reforme"], .top.open nav a[href$="#tarifs"], .top.open nav a[href$="#faq"] { display: flex; align-items: center; gap: 8px; padding: 14px 4px; font-size: 16.5px; border-bottom: 1px solid var(--line); }
  .top.open nav a:last-child { border-bottom: 0; }
}
@media (max-width: 420px) { .top .btn .lg { display: none; } .top .btn .xs { display: inline; } .top .btn.sm { padding: 0 14px; } }

/* ---------- accueil : mini-calculateur ---------- */
section.s.mini { background: linear-gradient(180deg, var(--bg), var(--brand-soft)); padding-top: 24px; }
.mini-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
@media (max-width: 900px) { .mini-wrap { grid-template-columns: 1fr; gap: 32px; } }
.mini-text .eyebrow { color: var(--brand-text); font-weight: 700; font-size: 13.5px; text-transform: uppercase; letter-spacing: .08em; }
.mini-text h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; margin: 10px 0 14px; }
.mini-text p { color: var(--muted); font-size: 18px; margin-bottom: 18px; }
.mini-text p b { color: var(--ink); }
.mini-link { font-weight: 600; }
.mini-card { padding: 26px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
@media (max-width: 480px) { .mini-card { padding: 20px 16px; } }
.mini-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 22px; }
@media (max-width: 420px) { .mini-fields { grid-template-columns: 1fr; } }
.mini-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.mini-actions .btn { flex: 1 1 auto; }
