/* Design system « En deux clics » : landing produit + outil vivant. Aucune ressource externe.
   Polices (SIL Open Font License 1.1, auto-hébergées dans /fonts) : Inter Tight pour les titres, Plus Jakarta Sans pour le texte.
   Rôles : ink = texte et CTA principal ; green = marque, surlignage, succès ; green-deep = valeurs et liens sur fond clair.
   Formes : pilules pour navigation et boutons, 10px champs, 18px panneaux, 28px fenêtres et bandeaux. */
@font-face {
  font-family: "Jakarta";
  src: url("/fonts/jakarta-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Tight";
  src: url("/fonts/intertight-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f7f6f2;
  --bg-2: #efede6;
  --surface: #ffffff;
  --ink: #0c1014;
  --ink-2: #454b55;
  --ink-3: #7c828c;
  --line: #e6e3da;
  --line-strong: #d3cfc4;
  --green: #19d27f;
  --green-deep: #08784a;
  --green-soft: #dcf7e9;
  --yellow: #ffd84d;
  --danger: #c4321f;
  --r-field: 10px;
  --r-panel: 18px;
  --r-xl: 28px;
  --shadow-sm: 0 1px 2px rgb(12 16 20 / 6%);
  --shadow: 0 1px 2px rgb(12 16 20 / 4%), 0 12px 32px -8px rgb(12 16 20 / 12%);
  --shadow-lg: 0 2px 4px rgb(12 16 20 / 4%), 0 40px 80px -24px rgb(12 16 20 / 28%);
  --display: "Tight", ui-sans-serif, system-ui, sans-serif;
  --font: "Jakarta", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1200px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
h1, h2, .brand, .result-total, .doc-card .row.total { font-family: var(--display); }
body { margin: 0; font: 16px/1.6 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--green-deep); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
svg.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Navigation flottante */
.nav { position: sticky; top: 14px; z-index: 30; padding: 0 16px; }
.nav-in { max-width: 1080px; margin: 0 auto; height: 60px; padding: 0 8px 0 20px; display: flex; align-items: center; gap: 20px; background: rgb(255 255 255 / 86%); backdrop-filter: saturate(1.6) blur(14px); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 17px; letter-spacing: -0.03em; white-space: nowrap; }
.brand-mark { width: 28px; height: 28px; border-radius: 9px; background: var(--ink); display: grid; place-items: center; }
.brand-mark svg { width: 16px; height: 16px; stroke: var(--green); stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.nav-links { display: none; gap: 4px; margin-left: 12px; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-weight: 550; font-size: 14.5px; padding: 8px 12px; border-radius: 999px; }
.nav-links a:hover { color: var(--ink); background: var(--bg); }
.nav .btn { margin-left: auto; }
@media (min-width: 900px) { .nav-links { display: flex; } }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent; font: inherit; font-weight: 650; font-size: 15px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: transform .15s ease, background .15s, box-shadow .15s; }
.btn:active { transform: scale(.98); }
.btn-dark { background: var(--ink); color: #fff; box-shadow: 0 1px 0 rgb(255 255 255 / 12%) inset, var(--shadow-sm); }
.btn-dark:hover { background: #22282f; }
.btn-dark .i { transition: transform .15s; }
.btn-dark:hover .i { transform: translateX(3px); }
.btn-green { background: var(--green); color: var(--ink); }
.btn-green:hover { background: #2fe08f; }
.btn-light { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-light:hover { border-color: var(--ink-3); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 14.5px; }
.btn-block { width: 100%; }

/* Hero */
.hero { position: relative; text-align: center; padding: 72px 0 56px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.pill b { background: var(--green-soft); color: var(--green-deep); padding: 2px 10px; border-radius: 999px; font-weight: 700; }
.hero h1 { font-size: clamp(2.4rem, 1.2rem + 5vw, 4.6rem); line-height: 1.02; letter-spacing: -0.04em; font-weight: 800; margin: 22px auto 22px; max-width: 17ch; text-wrap: balance; }
.mark { position: relative; white-space: nowrap; z-index: 0; }
.mark::before { content: ""; position: absolute; z-index: -1; left: -0.08em; right: -0.08em; bottom: 0.04em; height: 0.42em; background: var(--green); border-radius: 3px; transform: skewX(-8deg); }
.hero .sub { font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.25rem); color: var(--ink-2); max-width: 600px; margin: 0 auto; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 32px 0 22px; }
.checks { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; list-style: none; margin: 0; padding: 0; font-size: 14px; color: var(--ink-2); font-weight: 550; }
.checks li { display: inline-flex; align-items: center; gap: 7px; }
.checks .i { width: 17px; height: 17px; color: var(--green-deep); stroke-width: 2.6; }

/* Papiers flottants (signature : la paperasse qui s'efface) */
.papers { position: absolute; inset: 0; pointer-events: none; display: none; }
@media (min-width: 1100px) { .papers { display: block; } }
.paper { position: absolute; width: 168px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); font-size: 12.5px; font-weight: 650; text-align: left; animation: float 7s ease-in-out infinite; }
.paper span { display: block; height: 6px; border-radius: 3px; background: var(--bg-2); margin-top: 7px; }
.paper span + span { width: 70%; }
.paper .tick { position: absolute; top: -9px; right: -9px; width: 24px; height: 24px; border-radius: 50%; background: var(--green); display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.paper .tick svg { width: 13px; height: 13px; stroke: var(--ink); stroke-width: 3.2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.paper:nth-child(1) { left: 2%; top: 70px; rotate: -8deg; }
.paper:nth-child(2) { left: 6%; top: 300px; rotate: 5deg; animation-delay: -2s; }
.paper:nth-child(3) { right: 2%; top: 90px; rotate: 7deg; animation-delay: -4s; }
.paper:nth-child(4) { right: 7%; top: 320px; rotate: -5deg; animation-delay: -1s; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* Fenêtre produit : l'outil vivant */
.window { position: relative; max-width: 1140px; margin: 0 auto; padding: 10px; border-radius: var(--r-xl); background: linear-gradient(180deg, rgb(255 255 255 / 70%), rgb(255 255 255 / 35%)); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.window::before { content: ""; position: absolute; inset: -60px -40px auto; height: 70%; z-index: -1; background: radial-gradient(60% 60% at 50% 40%, rgb(25 210 127 / 22%), transparent 70%); filter: blur(10px); }
.window-bar { display: flex; align-items: center; gap: 7px; padding: 6px 10px 12px; }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-strong); }
.window-url { margin: 0 auto; transform: translateX(-24px); padding: 4px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 12.5px; color: var(--ink-3); font-weight: 550; }
.app { display: grid; gap: 10px; align-items: start; grid-template-columns: 1fr; }
@media (min-width: 980px) { .app { grid-template-columns: minmax(0, 1fr) 380px; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); }
.step { padding: 24px 26px; border-top: 1px solid var(--line); }
.step:first-child { border-top: 0; }
.step-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.step-num { flex: none; width: 30px; height: 30px; border-radius: 10px; background: var(--ink); color: var(--green); font-size: 14px; font-weight: 800; display: grid; place-items: center; }
.step h3 { font-size: 1.05rem; margin: 0; font-weight: 750; letter-spacing: -0.01em; }
.step-sub { color: var(--ink-3); font-size: 13.5px; margin: 0; }

/* Champs */
.field { margin-top: 16px; }
.field:first-child { margin-top: 0; }
.field > label, .field-label { display: block; font-weight: 650; font-size: 14px; margin-bottom: 7px; }
.hint { display: block; color: var(--ink-3); font-size: 12.5px; font-weight: 500; margin-top: 2px; line-height: 1.45; }
.grid-2 { display: grid; gap: 14px 14px; grid-template-columns: 1fr; margin-top: 16px; }
.grid-2 .field { margin-top: 0; }
@media (min-width: 560px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.input { width: 100%; font: inherit; font-size: 15px; font-weight: 550; color: var(--ink); height: 48px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--r-field); background: var(--bg); transition: border-color .15s, box-shadow .15s, background .15s; }
.input::placeholder { color: var(--ink-3); font-weight: 450; }
.input:hover { border-color: var(--ink-3); }
.input:focus { outline: none; background: var(--surface); border-color: var(--ink); box-shadow: 0 0 0 4px rgb(25 210 127 / 28%); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.input[type=number] { -moz-appearance: textfield; }
.input[type=number]::-webkit-inner-spin-button, .input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.affix { position: relative; }
.affix .input { padding-right: 36px; font-variant-numeric: tabular-nums; }
.affix-unit { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); font-size: 14px; font-weight: 600; pointer-events: none; }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
.choices { display: grid; gap: 8px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .choices { grid-template-columns: 1fr 1fr; } }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; }
.choice span { display: block; height: 100%; padding: 12px 14px 12px 42px; border: 1px solid var(--line-strong); border-radius: var(--r-field); font-size: 14.5px; font-weight: 650; line-height: 1.35; background: var(--surface); transition: border-color .15s, background .15s; position: relative; }
.choice span::before { content: ""; position: absolute; left: 14px; top: 14px; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: var(--surface); transition: border .15s; }
.choice small { display: block; color: var(--ink-3); font-size: 12.5px; font-weight: 500; margin-top: 2px; }
.choice:hover span { border-color: var(--ink-3); }
.choice input:checked + span { border-color: var(--ink); background: var(--bg); box-shadow: inset 0 0 0 1px var(--ink); }
.choice input:checked + span::before { border: 5px solid var(--ink); }
.choice input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 650; font-size: 14.5px; }
.switch input { appearance: none; flex: none; width: 42px; height: 24px; border-radius: 999px; background: var(--line-strong); position: relative; margin: 0; cursor: pointer; transition: background .15s; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / 25%); transition: transform .18s; }
.switch input:checked { background: var(--green); }
.switch input:checked::after { transform: translateX(18px); }
.collapsible[hidden] { display: none; }

/* Résultat */
.result { position: sticky; top: 96px; overflow: hidden; background: var(--ink); color: #fff; border-color: var(--ink); }
.result-head { padding: 24px 24px 20px; }
.result-label { font-size: 13.5px; color: rgb(255 255 255 / 64%); margin: 0 0 6px; font-weight: 550; }
.result-total { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; font-variant-numeric: tabular-nums; margin: 0; color: var(--green); }
.result-total.is-empty { color: rgb(255 255 255 / 32%); }
.result-note { font-size: 12.5px; color: rgb(255 255 255 / 52%); margin: 8px 0 0; }
.lines { list-style: none; margin: 0 14px; padding: 4px 12px; background: rgb(255 255 255 / 6%); border-radius: 14px; }
.lines li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid rgb(255 255 255 / 9%); font-size: 14px; font-weight: 600; }
.lines li:first-child { border-top: 0; }
.lines .what small { display: block; color: rgb(255 255 255 / 50%); font-size: 12px; font-weight: 500; margin-top: 1px; }
.lines .amount { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.facts { margin: 0; padding: 16px 24px 4px; display: grid; gap: 8px; font-size: 13.5px; }
.facts div { display: flex; justify-content: space-between; gap: 12px; }
.facts dt { color: rgb(255 255 255 / 60%); }
.facts dd { margin: 0; font-weight: 700; text-align: right; }
.result-cta { padding: 18px 24px 24px; }
.form-msg { font-size: 13.5px; margin: 10px 0 0; font-weight: 600; }
.form-msg:empty { display: none; }
.form-msg.is-ok { color: var(--green-deep); }
.form-msg.is-error { color: var(--danger); }

/* Sections */
.section { padding: 112px 0 0; }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.kicker { display: inline-block; font-size: 13.5px; font-weight: 700; color: var(--green-deep); margin-bottom: 12px; }
.section h2, .final h2 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem); line-height: 1.08; letter-spacing: -0.04em; font-weight: 800; margin: 0 0 14px; text-wrap: balance; }
.section-head p { color: var(--ink-2); font-size: 1.08rem; margin: 0; }
.features { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .features { grid-template-columns: repeat(4, 1fr); } }
.feature { padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); transition: transform .2s ease, box-shadow .2s ease; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature-icon { width: 46px; height: 46px; border-radius: 13px; background: var(--green-soft); color: var(--green-deep); display: grid; place-items: center; margin-bottom: 18px; }
.feature-icon .i { width: 22px; height: 22px; }
.feature h3 { font-size: 1.1rem; letter-spacing: -0.02em; margin: 0 0 8px; }
.feature p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.feature .rule { display: inline-block; margin-top: 16px; padding: 4px 10px; border-radius: 999px; background: var(--bg); font-size: 12.5px; font-weight: 700; color: var(--ink); }
.how { margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: 1fr; counter-reset: how; }
@media (min-width: 900px) { .how { grid-template-columns: repeat(3, 1fr); } }
.how li { list-style: none; padding: 28px; border-radius: var(--r-panel); background: var(--bg-2); counter-increment: how; }
.how li::before { content: counter(how); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--ink); color: var(--green); font-weight: 800; margin-bottom: 18px; }
.how h3 { margin: 0 0 6px; font-size: 1.1rem; letter-spacing: -0.02em; }
.how p { margin: 0; color: var(--ink-2); font-size: 14.5px; }

/* Bandeau sombre (offre pro) */
.band { position: relative; overflow: hidden; display: grid; gap: 40px; align-items: center; grid-template-columns: 1fr; padding: 56px 28px; border-radius: var(--r-xl); background: var(--ink); color: #fff; }
@media (min-width: 960px) { .band { grid-template-columns: 1.1fr 0.9fr; padding: 72px 64px; } }
.band::after { content: ""; position: absolute; right: -120px; top: -160px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgb(25 210 127 / 35%), transparent 65%); }
.band h2 { color: #fff; }
.band .mark::before { opacity: .9; }
.band p { color: rgb(255 255 255 / 70%); font-size: 1.05rem; margin: 0 0 26px; max-width: 46ch; }
.band .soon { display: inline-flex; gap: 8px; align-items: center; padding: 5px 12px; border-radius: 999px; background: rgb(255 255 255 / 10%); color: var(--green); font-size: 13px; font-weight: 700; margin-bottom: 18px; }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; max-width: 480px; }
.inline-form .input { flex: 1 1 220px; min-width: 0; background: rgb(255 255 255 / 8%); border-color: rgb(255 255 255 / 18%); color: #fff; }
.inline-form .input::placeholder { color: rgb(255 255 255 / 45%); }
.inline-form .input:focus { background: rgb(255 255 255 / 12%); border-color: var(--green); }
.band .hint { color: rgb(255 255 255 / 50%); margin-top: 10px; }
.band .form-msg.is-ok { color: var(--green); }
.doc-card { position: relative; z-index: 1; justify-self: center; width: min(100%, 340px); padding: 26px; border-radius: 18px; background: #fff; color: var(--ink); box-shadow: 0 30px 80px -20px rgb(0 0 0 / 60%); rotate: 3deg; }
.doc-card h4 { margin: 0 0 4px; font-size: 15px; }
.doc-card .meta { font-size: 12px; color: var(--ink-3); margin-bottom: 16px; }
.doc-card .row { display: flex; justify-content: space-between; font-size: 13px; padding: 8px 0; border-top: 1px solid var(--line); }
.doc-card .row b { font-variant-numeric: tabular-nums; }
.doc-card .row.total { border-top: 2px solid var(--ink); font-weight: 800; }
.doc-card .sign { display: flex; gap: 12px; margin-top: 18px; }
.doc-card .sign div { flex: 1; height: 44px; border: 1px dashed var(--line-strong); border-radius: 10px; font-size: 11px; color: var(--ink-3); padding: 6px 8px; }
.doc-card .stamp { position: absolute; top: -14px; right: -14px; padding: 6px 12px; border-radius: 999px; background: var(--green); color: var(--ink); font-size: 12px; font-weight: 800; rotate: -6deg; box-shadow: var(--shadow); }

/* Règles et sources */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 10px; padding: 0 22px; }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 700; font-size: 1.02rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; font-weight: 600; transition: rotate .2s; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { margin: 0 0 18px; color: var(--ink-2); }
.sources { max-width: 820px; margin: 28px auto 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 14px; }
.sources li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); }
.sources .i { color: var(--green-deep); margin-top: 3px; width: 16px; height: 16px; }

/* Appel final et pied de page */
.final { text-align: center; padding: 112px 0; }
.final h2 { margin-bottom: 28px; }
.foot { background: var(--surface); border-top: 1px solid var(--line); }
.foot-in { max-width: var(--wrap); margin: 0 auto; padding: 48px 24px 28px; display: grid; gap: 28px; grid-template-columns: 1fr; font-size: 13.5px; color: var(--ink-2); }
@media (min-width: 860px) { .foot-in { grid-template-columns: 1.2fr 1fr 1fr; } }
.foot strong { color: var(--ink); display: block; margin-bottom: 6px; }
.foot p { margin: 0; }
.legal { max-width: var(--wrap); margin: 0 auto; padding: 0 24px 110px; display: grid; gap: 18px; grid-template-columns: 1fr; font-size: 12.5px; color: var(--ink-3); }
.legal strong { color: var(--ink-2); display: inline; margin-right: 6px; }
@media (min-width: 860px) { .legal { grid-template-columns: 1fr 1fr; padding-bottom: 40px; } }

/* Barre de total mobile */
.mobilebar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 20px; border-radius: 999px; background: var(--ink); color: #fff; box-shadow: var(--shadow-lg); transform: translateY(140%); transition: transform .25s ease; }
.mobilebar.is-on { transform: none; }
.mobilebar strong { color: var(--green); font-size: 1.1rem; font-variant-numeric: tabular-nums; }
@media (min-width: 980px) { .mobilebar { display: none; } }

/* Mobile étroit */
@media (max-width: 559px) {
  .hero { padding-top: 48px; }
  .window { padding: 6px; border-radius: 22px; }
  .window-bar { display: none; }
  .step { padding: 20px 16px; }
  .result-head, .result-cta { padding-left: 18px; padding-right: 18px; }
  .facts { padding-left: 18px; padding-right: 18px; }
  .section { padding-top: 80px; }
  .nav-in { padding-left: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
