/* Siren Facile — système visuel (thème clair uniquement, fond blanc)
   Le motif vient du sujet : les cases à chiffres d'un formulaire administratif, encre bleue
   sur papier blanc. Un seul moment fort (le SIREN qui se remplit dans le héros), le reste
   sobre : filets fins, chiffres tabulaires, transitions courtes, rien d'animé sur tactile. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/static/fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800; font-display: swap;
}

:root {
  --bg: #ffffff;
  --bg-tint: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #f8f9fb;
  --ink: #101a38;
  --ink-2: #39435e;
  --muted: #5f6880;
  --line: rgba(16, 26, 56, 0.1);
  --line-strong: rgba(16, 26, 56, 0.2);

  --accent: #1c3fd1;
  --accent-ink: #ffffff;
  --accent-soft: #e9eeff;
  --accent-line: rgba(28, 63, 209, 0.3);

  --ok: #157a4a;      --ok-soft: #e3f4ea;
  --warn: #9a5b00;    --warn-soft: #fdf0d6;
  --bad: #b42318;     --bad-soft: #fde8e6;
  --neutral-soft: #eef0f3;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(20, 24, 31, 0.05), 0 0 0 1px var(--line);
  --shadow: 0 1px 2px rgba(20, 24, 31, 0.04), 0 8px 24px -12px rgba(20, 24, 31, 0.12), 0 0 0 1px var(--line);
  --shadow-lg: 0 2px 4px rgba(20, 24, 31, 0.04), 0 24px 48px -20px rgba(20, 24, 31, 0.22), 0 0 0 1px var(--line);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI Variable", "Segoe UI", Inter, Roboto, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 16px/1.6 var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.skip { position: absolute; left: 12px; top: -48px; z-index: 20; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 8px; }
.skip:focus { top: 8px; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3 { color: var(--ink); font-family: var(--display); letter-spacing: -0.015em; line-height: 1.15; margin: 0 0 0.4em; overflow-wrap: anywhere; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.4rem); font-weight: 700; }
h2 { font-size: 1.2rem; font-weight: 650; letter-spacing: -0.012em; }
h3 { font-size: 1rem; font-weight: 650; letter-spacing: -0.006em; }
p { margin: 0 0 0.9em; }
.num, .stat b, td.num, .mono { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small, small { font-size: 0.85rem; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--accent-soft); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
main { max-width: 1120px; margin: 0 auto; padding: 28px 20px 8px; }
main.landing { max-width: none; padding: 0; }

/* ---------- En-tête ---------- */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand-mark { flex: none; display: block; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 1.14rem; letter-spacing: -0.02em; }
.top nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.top nav a, .top nav .link { color: var(--ink-2); text-decoration: none; font-size: 0.92rem; padding: 6px 10px; border-radius: 8px; }
.top nav .signin { color: var(--accent); font-weight: 600; }
.top nav .credits { font-variant-numeric: tabular-nums; }

/* ---------- Boutons ---------- */
button, .button {
  -webkit-tap-highlight-color: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 550; font-size: 0.95rem; line-height: 1;
  padding: 12px 18px; min-height: 44px;
  border-radius: 10px; border: 0;
  background: var(--surface); color: var(--ink);
  box-shadow: var(--shadow-sm);
  cursor: pointer; text-decoration: none; user-select: none;
  transition: transform 160ms var(--ease-out), background-color 150ms ease, box-shadow 150ms ease;
}
button:active, .button:active { transform: scale(0.97); }
button.primary, .button.primary {
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 1px 2px rgba(20, 24, 31, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.18), inset 0 -1px 0 rgba(0, 0, 0, 0.12);
}
button.big, .button.big { padding: 15px 22px; font-size: 1rem; border-radius: 12px; }
button.block, .button.block { width: 100%; }
button:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
button.link { background: none; box-shadow: none; padding: 0; min-height: 0; color: var(--accent); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
button.link:active { transform: none; }
button.link.danger { color: var(--bad); }
.top nav button.link { color: var(--ink-2); text-decoration: none; padding: 6px 10px; }
form.inline { display: inline; }
.arrow { transition: transform 160ms var(--ease-out); }

@media (hover: hover) and (pointer: fine) {
  .top nav a:hover, .top nav button.link:hover { background: var(--line); color: var(--ink); }
  .button:hover, button:hover:not(:disabled) { box-shadow: var(--shadow); }
  .button.primary:hover, button.primary:hover:not(:disabled) { background: color-mix(in srgb, var(--accent) 90%, #000); }
  .button:hover .arrow, button:hover .arrow { transform: translateX(2px); }
  a:hover { text-decoration-thickness: 2px; }
}

/* ---------- Cartes ---------- */
.card { background: var(--surface); border-radius: var(--radius-lg); padding: 24px; margin: 0 0 20px; box-shadow: var(--shadow); }
.card.flat { box-shadow: var(--shadow-sm); }
.narrow { max-width: 560px; margin-left: auto; margin-right: auto; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.card-head h2, .card-head h1 { margin: 0; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-size: 0.9rem; margin-bottom: 14px; }

/* ---------- Messages ---------- */
.error, .alert, .notice {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 14px; border-radius: 12px; margin: 0 0 14px; font-size: 0.94rem;
}
.error { background: var(--bad-soft); color: var(--bad); }
.alert { background: var(--warn-soft); color: var(--ink); }
.alert strong { color: var(--warn); }
.notice { background: var(--accent-soft); color: var(--ink); }
.alert svg, .error svg, .notice svg { flex: none; margin-top: 2px; }
.alert svg { color: var(--warn); }
.notice svg { color: var(--accent); }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px 3px 8px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 600; white-space: nowrap; line-height: 1.5;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.b-trouve { background: var(--ok-soft); color: var(--ok); }
.b-a_verifier { background: var(--warn-soft); color: var(--warn); }
.b-ferme { background: var(--bad-soft); color: var(--bad); }

/* ---------- Accueil ---------- */
.hero { padding: 64px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: start; }
.hero h1 { font-size: clamp(2.3rem, 1.3rem + 3.6vw, 3.9rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.02; margin-bottom: 20px; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 34em; margin-bottom: 28px; }

/* Le motif de la marque : un SIREN réel dans des cases de formulaire */
.comb { margin: 0 0 28px; }
.comb figcaption { font-size: 0.92rem; color: var(--ink-2); margin-bottom: 8px; }
.comb-row { display: flex; align-items: center; flex-wrap: wrap; row-gap: 12px; }
.cell {
  width: clamp(28px, 7.6vw, 42px); height: clamp(40px, 10vw, 56px);
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 600; font-size: clamp(1.2rem, 3.6vw, 1.75rem); color: var(--accent);
  border: 1.5px solid var(--ink); border-left-width: 0;
  animation: ink 260ms var(--ease-out) both;
}
.cell:first-child { border-left-width: 1.5px; border-radius: 6px 0 0 6px; }
.cell:nth-child(3), .cell:nth-child(6) { margin-right: 8px; border-radius: 0 6px 6px 0; }
.cell:nth-child(4), .cell:nth-child(7) { border-left-width: 1.5px; border-radius: 6px 0 0 6px; }
.cell:nth-child(9) { border-radius: 0 6px 6px 0; }
.cell:nth-child(2) { animation-delay: 90ms; } .cell:nth-child(3) { animation-delay: 180ms; }
.cell:nth-child(4) { animation-delay: 300ms; } .cell:nth-child(5) { animation-delay: 390ms; }
.cell:nth-child(6) { animation-delay: 480ms; } .cell:nth-child(7) { animation-delay: 600ms; }
.cell:nth-child(8) { animation-delay: 690ms; } .cell:nth-child(9) { animation-delay: 780ms; }
@keyframes ink { from { color: transparent; transform: translateY(3px); } to { color: var(--accent); transform: none; } }
.stamp {
  margin-left: 14px; padding: 3px 10px; border: 2px solid var(--ok); border-radius: 6px;
  color: var(--ok); font-family: var(--display); font-weight: 700; font-size: 1rem;
  transform: rotate(-4deg); animation: stamp 240ms 1050ms var(--ease-out) both;
}
@keyframes stamp { from { opacity: 0; transform: rotate(-4deg) scale(1.5); } to { opacity: 1; transform: rotate(-4deg) scale(1); } }

.trust { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.trust li { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: 0.95rem; }
.trust svg { color: var(--ok); flex: none; }

.upload-card { background: var(--surface); border: 1.5px solid var(--ink); border-radius: 14px; padding: 14px; }
.upload-card form { display: grid; gap: 12px; }
.resume { margin: 2px 2px 12px; font-weight: 600; font-size: 0.94rem; }
.upload-foot { text-align: center; margin: 12px 0 2px; font-size: 0.85rem; color: var(--muted); }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--neutral-soft); border-radius: 10px; }
.tabs[hidden] { display: none; }
.tabs button { min-height: 40px; padding: 8px 10px; background: none; box-shadow: none; color: var(--ink-2); border-radius: 7px; font-size: 0.9rem; }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.dropzone {
  position: relative; display: grid; justify-items: center; gap: 6px; text-align: center;
  padding: 40px 20px 34px; border-radius: 10px; cursor: pointer;
  background: var(--surface-2);
  outline: 1.5px dashed var(--line-strong); outline-offset: -1.5px;
  transition: outline-color 150ms ease, background-color 150ms ease;
}
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.dropzone-icon { color: var(--accent); margin-bottom: 4px; transition: transform 200ms var(--ease-out); }
.dropzone strong { font-family: var(--display); font-size: 1.15rem; }
.dropzone .hint { color: var(--muted); font-size: 0.9rem; }
.dropzone small { color: var(--muted); margin-top: 6px; }
.dropzone.over { outline-color: var(--accent); background-color: var(--accent-soft); }
.dropzone.over .dropzone-icon, .dropzone.has-file .dropzone-icon { transform: translateY(-3px); }
.dropzone:focus-within { outline-color: var(--accent); }
.file-name { display: none; margin-top: 10px; padding: 6px 12px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); font-weight: 600; font-size: 0.88rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dropzone.has-file .file-name { display: inline-block; }
.paste-label { display: block; font-size: 0.9rem; color: var(--ink-2); margin-bottom: 6px; }
textarea {
  width: 100%; font: inherit; font-size: 16px; line-height: 1.5; padding: 11px 12px; border-radius: 10px; border: 0; resize: vertical;
  background: var(--surface-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong);
}
textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
#paste-sample { margin-top: 8px; font-size: 0.88rem; }
@media (hover: hover) and (pointer: fine) {
  .dropzone:hover { outline-color: var(--accent-line); }
  .dropzone:hover .dropzone-icon { transform: translateY(-2px); }
}

.section { padding: 80px 0; }
.section.tint { background: var(--bg-tint); }
.section-head { max-width: 640px; margin: 0 0 32px; }
.section h2, .section-head h2 { font-size: clamp(1.6rem, 1.15rem + 1.6vw, 2.3rem); font-weight: 700; letter-spacing: -0.025em; }
.section-head p { color: var(--ink-2); font-size: 1.05rem; }
.kicker { display: block; color: var(--accent); font-size: 0.88rem; font-weight: 600; margin-bottom: 8px; }

/* Avant / après */
.demo { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.4fr); gap: 20px; align-items: center; }
.demo-panel { background: var(--surface); border-radius: 10px; border: 1px solid var(--line-strong); overflow: hidden; min-width: 0; }
.demo-panel header { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 0.82rem; color: var(--muted); }
.demo-panel header b { color: var(--ink); font-weight: 600; }
.demo-scroll { overflow-x: auto; }
.demo table { font-size: 0.88rem; }
.demo th { background: var(--surface-2); }
.demo td, .demo th { padding: 9px 14px; white-space: nowrap; }
.demo .siren { color: var(--accent); font-family: var(--display); font-weight: 600; font-size: 0.95rem; }
.demo-arrow { color: var(--accent); }
.demo-caption { color: var(--muted); font-size: 0.9rem; margin-top: 16px; }

.why { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; }
.why p { color: var(--ink-2); max-width: 36em; }
.timeline { list-style: none; margin: 8px 0 0; padding: 0 0 0 26px; border-left: 2px solid var(--line-strong); display: grid; gap: 32px; }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; left: -34px; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 2px solid var(--muted); }
.timeline li.next::before { background: var(--accent); border-color: var(--accent); }
.timeline time { font-family: var(--display); font-weight: 700; font-size: 1.25rem; color: var(--ink); }
.timeline li.next time { color: var(--accent); }
.timeline p { margin: 4px 0 0; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 14px; }
.steps li::before { content: counter(step); display: block; font-family: var(--display); font-weight: 700; font-size: 2rem; color: var(--accent); line-height: 1; margin-bottom: 10px; }
.steps h3 { font-size: 1.15rem; margin-bottom: 4px; }
.steps p { color: var(--ink-2); font-size: 0.96rem; margin: 0; }

.proof { display: grid; grid-template-columns: 1fr 1.5fr; gap: 56px; align-items: center; }
.proof-figure b { display: block; font-family: var(--display); font-weight: 700; font-size: clamp(2.8rem, 2rem + 3vw, 4.2rem); letter-spacing: -0.03em; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.proof-figure span { color: var(--ink-2); }
.proof p { color: var(--ink-2); max-width: 38em; }

.estimator { display: grid; grid-template-columns: auto 130px 1fr; gap: 16px; align-items: center; padding: 18px 20px; margin-bottom: 16px; border: 1.5px solid var(--ink); border-radius: 12px; background: var(--surface); }
.estimator[hidden] { display: none; }
.estimator label { font-weight: 600; }
.estimator input { font-family: var(--display); font-weight: 600; font-size: 1.25rem; width: 100%; }
.estimator output { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.estimator output b { font-family: var(--display); font-size: 1.8rem; color: var(--accent); font-variant-numeric: tabular-nums; }
.estimator output span { color: var(--ink-2); font-size: 0.92rem; }
.prices tr.free td { background: var(--ok-soft); }
.included { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 8px; }
.included li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); font-size: 0.95rem; }
.included svg { color: var(--ok); flex: none; margin-top: 3px; }
.pricing-note { color: var(--ink-2); margin-top: 18px; }

.faq { max-width: 760px; }
.faq details { border-top: 1px solid var(--line-strong); }
.faq details:last-child { border-bottom: 1px solid var(--line-strong); }
.faq summary { cursor: pointer; padding: 15px 0; font-weight: 600; list-style-position: outside; }
.faq details p { color: var(--ink-2); margin: 0 0 16px; max-width: 40em; }

.cta-band { background: var(--ink); color: var(--bg); border-radius: 14px; padding: 44px 48px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: var(--bg); font-size: clamp(1.4rem, 1rem + 1.4vw, 2rem); margin: 0 0 6px; }
.cta-band p { margin: 0; opacity: 0.8; }
.cta-band .button { background: var(--bg); color: var(--ink); }

.cabinet-hero { max-width: 760px; padding: 32px 0 36px; }
.cabinet-hero h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.1rem); letter-spacing: -0.03em; line-height: 1.05; }
.cabinet-hero .small { margin-top: 10px; }

footer.site { border-top: 1px solid var(--line); margin-top: 56px; }
footer.site .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 24px 20px 32px; color: var(--muted); font-size: 0.85rem; }
footer.site a { color: var(--ink-2); }

/* ---------- Tableaux ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow-sm); background: var(--surface); }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.82rem; color: var(--muted); font-weight: 600; background: var(--surface-2); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.data td { font-size: 0.9rem; }
.data td.line { color: var(--muted); font-variant-numeric: tabular-nums; width: 1%; }
.data td.client { font-weight: 550; }
.data .siren { font-family: var(--mono); font-size: 0.84rem; white-space: nowrap; }
.data .remarks { color: var(--muted); font-size: 0.82rem; max-width: 280px; }

/* ---------- Diagnostic ---------- */
.meta { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.88rem; }
.filename { color: var(--ink-2); margin: 0 0 2px; overflow-wrap: anywhere; }
.stat.ok::before { background: var(--ok); } .stat.ok b { color: var(--ok); }
.stat.warn::before { background: var(--warn); } .stat.warn b { color: var(--warn); }
.stat.bad::before { background: var(--bad); } .stat.bad b { color: var(--bad); }
.split { height: 8px; border-radius: 999px; overflow: hidden; display: flex; background: var(--neutral-soft); margin: 4px 0 18px; }
.split i { display: block; height: 100%; }
.split .ok { background: var(--ok); } .split .warn { background: var(--warn); } .split .bad { background: var(--bad); } .split .none { background: var(--line-strong); }
.action { border-radius: var(--radius-lg); padding: 24px; background: var(--surface); box-shadow: var(--shadow); display: grid; gap: 4px; align-content: start; }
.action.primary-action { box-shadow: 0 0 0 2px var(--accent), var(--shadow); }
.action .step-n { color: var(--accent); font-weight: 600; font-size: 0.88rem; }
.action p { color: var(--ink-2); }
.action .buttons { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.price-tag { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }

/* ---------- Suivi ---------- */
.progress-card { text-align: center; padding: 48px 24px; }
.spinner { width: 44px; height: 44px; margin: 0 auto 18px; border-radius: 50%; border: 3px solid var(--accent-soft); border-top-color: var(--accent); animation: spin 700ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.bar { height: 10px; border-radius: 999px; background: var(--neutral-soft); overflow: hidden; max-width: 460px; margin: 16px auto 8px; }
.bar i { display: block; height: 100%; width: 100%; background: var(--accent); border-radius: inherit; transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform 600ms var(--ease-out); }
.progress-count { font-variant-numeric: tabular-nums; color: var(--ink-2); }
.private-link { display: flex; align-items: center; gap: 10px; max-width: 640px; margin: 22px auto 0; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); box-shadow: var(--shadow-sm); text-align: left; }
.private-link code { flex: 1; font-family: var(--mono); font-size: 0.82rem; word-break: break-all; color: var(--ink-2); }
.private-link.message { max-width: none; margin: 0; align-items: flex-start; }
.private-link pre { flex: 1; margin: 0; white-space: pre-wrap; font: inherit; font-size: 0.92rem; color: var(--ink-2); }
.copy-btn { min-height: 34px; padding: 8px 12px; font-size: 0.85rem; }

/* ---------- Page de résultats : un document de travail, pas un tableau de bord ---------- */
.results { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; padding-top: 12px; }
.results-head h1 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.9rem); letter-spacing: -0.03em; line-height: 1.05; margin: 2px 0 8px; }
.filename { color: var(--muted); font-size: 0.92rem; margin: 0; overflow-wrap: anywhere; }
.lead-line { color: var(--ink-2); font-size: 1.05rem; margin: 0 0 16px; }
.lead-line b { color: var(--ink); }
.split { height: 6px; border-radius: 3px; overflow: hidden; display: flex; gap: 2px; background: var(--neutral-soft); margin: 0 0 24px; }
.split i { display: block; height: 100%; transition: width 240ms var(--ease-out); }
.split .ok { background: var(--ok); } .split .warn { background: #d99a2b; } .split .bad { background: var(--bad); } .split .none { background: var(--line-strong); }
.callout { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 24px; color: var(--ink); }
.callout svg { color: var(--bad); flex: none; margin-top: 3px; }

.todo { margin: 0 0 40px; }
.todo h2, .clients h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 14px; }
.pick { padding: 16px 0 18px; border-top: 1.5px solid var(--ink); }
.pick + .pick { border-top-width: 1px; border-top-color: var(--line-strong); }
.pick header { display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; margin-bottom: 10px; }
.pick header strong { font-family: var(--display); font-size: 1.1rem; font-weight: 700; overflow-wrap: anywhere; }
.pick header span { color: var(--muted); font-size: 0.92rem; }
.pick-note { color: var(--muted); font-size: 0.86rem; margin: -4px 0 10px; }
.options { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; }
.option {
  display: grid; gap: 2px; justify-content: stretch; justify-items: start; align-content: start; text-align: left; padding: 11px 13px; min-height: 0; line-height: 1.35;
  font-weight: 400; background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: 8px; box-shadow: none;
  transition: border-color 120ms ease, background-color 120ms ease;
}
.option strong { font-weight: 650; font-size: 0.96rem; overflow-wrap: anywhere; }
.option span { color: var(--ink-2); font-size: 0.86rem; }
.option .siren { color: var(--accent); font-family: var(--display); font-weight: 600; }
.option.selected { border-color: var(--accent); background: var(--accent-soft); }
button.none-of { background: none; box-shadow: none; min-height: 0; padding: 8px 0 0; color: var(--muted); font-size: 0.88rem; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
button.none-of.selected { color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .option:hover { border-color: var(--accent); box-shadow: none; }
  button.none-of:hover { color: var(--ink); box-shadow: none; }
}
.todo-more { margin: 8px 0 0; font-size: 0.92rem; }
.htmx-request .option { opacity: 0.6; }

.views { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0 0 10px; border-bottom: 1px solid var(--line-strong); }
.views a, .views .view { padding: 8px 0; color: var(--ink-2); text-decoration: none; font-weight: 550; font-size: 0.94rem; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.views span span, .views a span { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.views a[aria-current="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.ledger-wrap { overflow-x: auto; }
.ledger { font-size: 0.93rem; }
.ledger th { background: none; padding: 10px 14px 8px 0; font-size: 0.82rem; }
.ledger td { padding: 11px 14px 11px 0; }
.ledger td b { font-weight: 600; overflow-wrap: anywhere; }
.ledger small { display: block; color: var(--muted); font-size: 0.82rem; }
.ledger .siren, .ledger .siret { font-family: var(--display); color: var(--accent); font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ledger .siret { color: var(--ink-2); font-weight: 500; }
.state { font-size: 0.86rem; font-weight: 600; white-space: nowrap; }
.s-trouve { color: var(--ok); } .s-a_verifier { color: var(--warn); } .s-ferme { color: var(--bad); } .s-introuvable, .s-ignoree { color: var(--muted); }

.results-side { position: sticky; top: 84px; padding: 18px; border: 1.5px solid var(--ink); border-radius: 12px; background: var(--surface); }
.results-side h2 { font-size: 1.15rem; font-weight: 700; margin-bottom: 6px; }
.results-side h3 { font-size: 0.98rem; margin-bottom: 2px; }
.results-side p { color: var(--ink-2); font-size: 0.92rem; margin: 0 0 10px; }
.results-side .price-tag { display: block; color: var(--ink); font-family: var(--display); font-size: 2rem; margin-bottom: 6px; }
.side-link { display: block; margin-top: 10px; font-size: 0.92rem; }
.side-block { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line-strong); }
.side-block details { margin-top: 10px; font-size: 0.9rem; }
.side-block summary { cursor: pointer; color: var(--accent); }
.side-block pre { white-space: pre-wrap; font: inherit; font-size: 0.86rem; color: var(--ink-2); margin: 10px 0; }
.side-block.quiet p { color: var(--muted); font-size: 0.84rem; display: flex; gap: 6px; align-items: center; margin-bottom: 4px; }
.side-block.quiet .link { font-size: 0.84rem; }
.pager { display: flex; gap: 12px; justify-content: center; align-items: center; margin: 24px 0; color: var(--muted); }

/* ---------- Formulaires ---------- */
.mapping { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 18px 0 20px; }
.mapping label, .stack label { display: grid; gap: 6px; font-weight: 550; font-size: 0.92rem; }
.mapping small { font-weight: 600; margin-left: 6px; }
.stack { display: grid; gap: 14px; }
input, select {
  font: inherit; font-size: 16px; /* évite le zoom iOS */
  padding: 11px 12px; border-radius: 10px; border: 0; min-height: 44px;
  background: var(--surface-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: box-shadow 150ms ease; max-width: 100%;
}
input:focus, select:focus { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
.ok { color: var(--ok); } .warn { color: var(--warn); }
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }

/* ---------- Paiement, compte ---------- */
.summary { display: grid; gap: 10px; padding: 16px; border-radius: 12px; background: var(--surface-2); box-shadow: var(--shadow-sm); margin: 16px 0; }
.summary div { display: flex; justify-content: space-between; gap: 12px; min-width: 0; }
.summary .num { white-space: nowrap; }
.summary .total { border-top: 1px solid var(--line); padding-top: 10px; font-weight: 700; font-size: 1.1rem; }
.packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 12px 0 20px; }
.pack { border-radius: var(--radius); padding: 18px; display: grid; gap: 6px; background: var(--surface-2); box-shadow: var(--shadow-sm); }
.pack strong { font-size: 1.05rem; }
.pack span { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.credit-pill { display: inline-flex; align-items: baseline; gap: 6px; padding: 10px 16px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); }
.credit-pill b { font-size: 1.6rem; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }

.account-nav { display: flex; gap: 16px; margin: 0 0 18px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.account-nav a { text-decoration: none; color: var(--ink-2); font-weight: 550; }
.account-nav a[aria-current="page"] { color: var(--accent); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; }
.filters a { padding: 5px 11px; border-radius: 999px; background: var(--neutral-soft); color: var(--ink-2); text-decoration: none; font-size: 0.88rem; }
.filters a[aria-current="true"] { background: var(--accent); color: var(--accent-ink); }
.dossier-form { display: flex; gap: 6px; min-width: 200px; }
.dossier-form input { min-height: 36px; padding: 6px 8px; font-size: 0.9rem; width: 100%; }
.dossier-form button { min-height: 36px; padding: 6px 10px; }
.danger-card h2 { color: var(--bad); }
.oauth { display: grid; gap: 8px; margin: 16px 0; }
.oauth .button { width: 100%; }
.oauth-sep { text-align: center; color: var(--muted); font-size: 0.85rem; margin: 4px 0 12px; }
.cabinet-form { max-width: 420px; margin-bottom: 20px; }
.checker { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0 10px; }
.checker input { flex: 1 1 220px; font-family: var(--display); font-size: 1.15rem; }
.guide-list { list-style: none; padding: 0; display: grid; gap: 16px; }
.guide-list a { font-weight: 600; }
.guide-list p { margin: 2px 0 0; color: var(--ink-2); }
.guide-cta { margin-top: 28px; padding: 18px 20px; border: 1.5px solid var(--ink); border-radius: 12px; }
.admin-actions { display: flex; gap: 8px; }
.prose h2 { margin-top: 1.6em; }
.prose li { margin: 6px 0; color: var(--ink-2); }
.prose p { color: var(--ink-2); }
.center { text-align: center; }
.big-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin: 0 auto 16px; background: var(--accent-soft); color: var(--accent); }
.big-icon.bad { background: var(--bad-soft); color: var(--bad); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .why, .proof { grid-template-columns: 1fr; gap: 32px; }
  /* Sur petit écran, le dépôt passe avant l'exemple : c'est l'action principale de la page. */
  .hero-grid { gap: 0; }
  .hero-text { display: contents; }
  .hero-text h1 { order: 1; } .hero-text .lead { order: 2; }
  .upload-card { order: 3; margin-bottom: 28px; }
  .comb { order: 4; } .trust { order: 5; }
  .demo { grid-template-columns: minmax(0, 1fr); }
  .demo-arrow { margin: 0 auto; transform: rotate(90deg); }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  /* Sur petit écran, le fichier passe avant la liste : le téléchargement ne doit pas être enfoui. */
  .results { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .results-main { display: contents; }
  .results-side { position: static; order: 3; margin-bottom: 32px; }
  .results-head { order: 1; } .callout { order: 2; } .todo { order: 2; } .clients { order: 4; }
  .ledger .wide { display: none; }
  .estimator { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .wrap, main { padding-left: 16px; padding-right: 16px; }
  main.landing { padding: 0; }
  .hero { padding: 32px 0 48px; }
  .section { padding: 52px 0; }
  .card { padding: 18px; border-radius: 16px; }
  .cta-band { padding: 28px; }
  .top nav a.hide-sm, .top nav form.inline { display: none; }
  .lead { font-size: 1.05rem; }
  .stamp { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .cell, .stamp { animation: none; }
  button:active, .button:active { transform: none; }
  .dropzone-icon, .arrow, .bar i { transition: none; }
  .dropzone.over .dropzone-icon, .dropzone.has-file .dropzone-icon { transform: none; }
  .spinner { animation-duration: 1.6s; }
}
.spaced { margin-top: 20px; }
.narrow-prose { max-width: 760px; margin-left: auto; margin-right: auto; }
.summary svg, .card p svg { vertical-align: -3px; }
label.paste-label { display: grid; gap: 6px; margin: 0; }
label.paste-label input { width: 100%; }
.accept { display: flex; gap: 8px; align-items: flex-start; font-size: 0.88rem; font-weight: 400; color: var(--ink-2); margin-bottom: 10px; }
.accept input { min-height: 0; width: 16px; height: 16px; margin-top: 3px; flex: none; }

.callout.tip svg { color: var(--accent); }
h1[tabindex="-1"]:focus { outline: none; }
.related { margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--line-strong); }
.related h2 { margin-top: 0; font-size: 1.05rem; }
.related ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
