/* Synetis — feuille de style du site vitrine.
   Identité : registre comptable. Blanc, encre ardoise, un seul accent « vert registre ».
   Titres Newsreader, texte Public Sans, comptes et montants IBM Plex Mono. */

@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader-var.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("../fonts/publicsans-var.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/plexmono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/plexmono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --paper: #ffffff;
  --ink: #17212b;
  --ink-2: #48535e;
  --ink-3: #6b7680;
  --rule: #d9e0dc;
  --rule-strong: #b9c4be;
  --ledger: #f2f6f3;
  --accent: #1d5b47;
  --accent-strong: #123e30;
  --accent-tint: #e4efe9;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --measure: 40rem;
  --gutter: 16px;
  --radius: 4px;
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  font-feature-settings: "kern";
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--accent-tint); }

h1, h2, h3 { margin: 0; color: var(--ink); }
h1, h2 { font-family: var(--serif); font-weight: 450; letter-spacing: -0.012em; font-optical-sizing: auto; }
h1 { font-size: clamp(2.25rem, 1.6rem + 2.8vw, 3.75rem); line-height: 1.06; }
h2 { font-size: clamp(1.6rem, 1.3rem + 1.3vw, 2.25rem); line-height: 1.15; }
h3 { font: 600 1.0625rem/1.35 var(--sans); }
p { margin: 0 0 1em; }
.mono, code { font-family: var(--mono); font-size: 0.9em; font-variant-numeric: tabular-nums; }
.num { font-variant-numeric: tabular-nums; }

.wrap { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 0.5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

/* ── Boutons et liens d'action ─────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 2.875rem; padding: 0.7rem 1.25rem;
  background: var(--accent); color: #fff; border: 1px solid var(--accent); border-radius: var(--radius);
  font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color 0.15s ease;
}
.btn:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }
.btn--small { min-height: 2.375rem; padding: 0.45rem 0.95rem; font-size: 0.9375rem; }
.btn--quiet { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn--quiet:hover { background: var(--ledger); color: var(--ink); border-color: var(--ink-3); }
.link-arrow { font-weight: 600; text-decoration: none; white-space: nowrap; }
.link-arrow::after { content: " →"; }
.link-arrow:hover { text-decoration: underline; }

/* ── En-tête ───────────────────────────────────────────────────────── */
.site-header { border-bottom: 1px solid var(--rule); background: var(--paper); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; font: 500 1.375rem/1 var(--serif); letter-spacing: -0.01em; }
.brand:hover { color: var(--ink); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--rule-strong); border-radius: var(--radius);
  font: 600 0.9375rem var(--sans); color: var(--ink); padding: 0.45rem 0.8rem; cursor: pointer;
}
.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav ul { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.site-nav ul a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 0.9688rem; padding-block: 0.4rem; border-bottom: 2px solid transparent; }
.site-nav ul a:hover { color: var(--ink); }
.site-nav ul a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

@media (max-width: 899px) {
  .js .nav-toggle { display: inline-block; }
  .site-nav { width: 100%; flex-direction: column; align-items: stretch; gap: 1rem; padding-bottom: 1rem; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 0.7rem 0; border-bottom: 1px solid var(--rule); }
  .site-nav ul a[aria-current="page"] { border-bottom-color: var(--rule); color: var(--accent); }
}

/* ── Fil d'Ariane ──────────────────────────────────────────────────── */
.crumbs { padding-top: 1.25rem; font-size: 0.875rem; color: var(--ink-3); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; list-style: none; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 0.5rem; color: var(--rule-strong); }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }

/* ── Sections ──────────────────────────────────────────────────────── */
.section { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); }
.section--ruled { border-top: 1px solid var(--rule); }
.section--ledger { background: var(--ledger); border-block: 1px solid var(--rule); }
.section__head { max-width: var(--measure); margin-bottom: 2.5rem; }
.section__head p { color: var(--ink-2); font-size: 1.125rem; margin-top: 0.75rem; }
.eyebrow { display: block; font: 500 0.8125rem/1.3 var(--mono); color: var(--accent); margin-bottom: 0.9rem; letter-spacing: 0.01em; }
.lead { font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.3rem); line-height: 1.55; color: var(--ink-2); max-width: 36rem; }

/* ── Héros ─────────────────────────────────────────────────────────── */
.hero { padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem) clamp(3rem, 2rem + 4vw, 5.5rem); }
.hero__grid { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 960px) { .hero__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 4rem; } }
.hero h1 { margin-bottom: 1.25rem; max-width: 16ch; }
.page-home .hero h1 { max-width: 14ch; }
.hero .lead { margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 2rem 0 0; padding: 1.25rem 0 0; list-style: none; border-top: 1px solid var(--rule); color: var(--ink-2); font-size: 0.9375rem; }
.hero__facts li::before { content: "—"; color: var(--accent); margin-right: 0.5rem; }

.page-hero { padding-block: clamp(2rem, 1.5rem + 2.5vw, 3.5rem) clamp(2.5rem, 2rem + 2vw, 3.5rem); border-bottom: 1px solid var(--rule); }
.page-hero h1 { max-width: 20ch; margin-bottom: 1rem; }
.page-hero .lead { max-width: 40rem; margin-bottom: 0; }
.page-hero--split .wrap { display: grid; gap: 2.5rem; align-items: end; }
@media (min-width: 960px) { .page-hero--split .wrap { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); } }

/* ── Document comptable (élément signature) ───────────────────────── */
.doc {
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 var(--rule), 0 14px 32px -24px rgba(23, 33, 43, 0.45);
  font-size: 0.875rem;
  overflow: hidden;
}
.doc__head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 0.9rem 1.1rem; border-bottom: 1px solid var(--rule); background: var(--ledger); }
.doc__title { font: 600 0.9375rem/1.3 var(--sans); }
.doc__meta { font: 400 0.8125rem/1.3 var(--mono); color: var(--ink-3); }
.doc table { width: 100%; border-collapse: collapse; }
.doc th, .doc td { padding: 0.55rem 1.1rem; text-align: left; vertical-align: baseline; border-bottom: 1px solid var(--ledger); }
.doc thead th { font: 500 0.75rem/1.2 var(--mono); color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.04em; border-bottom: 1px solid var(--rule); }
.doc td.acc { font-family: var(--mono); color: var(--accent); width: 4.5rem; }
.doc td.amt, .doc th.amt { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.doc tfoot td { font-weight: 600; border-bottom: 0; border-top: 1px solid var(--ink); }
.doc tfoot td.amt { text-decoration: underline double; text-underline-offset: 0.3em; }
.doc__foot { padding: 0.75rem 1.1rem; border-top: 1px solid var(--rule); color: var(--ink-3); font-size: 0.8125rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.doc-caption { margin-top: 0.75rem; font-size: 0.8125rem; color: var(--ink-3); }
.doc--compact th, .doc--compact td { padding-block: 0.45rem; }
.doc ol, .doc ul { margin: 0; padding: 0.9rem 1.1rem 0.9rem 2.4rem; }
.doc li { margin-bottom: 0.35rem; }
.doc .tag { font: 500 0.75rem/1 var(--mono); padding: 0.2rem 0.4rem; border-radius: 3px; background: var(--accent-tint); color: var(--accent-strong); white-space: nowrap; }
.doc .tag--muted { background: var(--ledger); color: var(--ink-2); }
@media (max-width: 520px) {
  .doc th, .doc td { padding-inline: 0.7rem; }
  .doc .hide-sm { display: none; }
}

/* ── Captures du produit ───────────────────────────────────────────── */
.shot { margin: 0; }
.shot__frame { border: 1px solid var(--rule-strong); border-radius: 6px; overflow: hidden; background: var(--ledger); box-shadow: 0 18px 40px -30px rgba(23, 33, 43, 0.5); }
.shot figcaption { margin-top: 0.75rem; font-size: 0.8125rem; color: var(--ink-3); }

/* ── Registre des modules (accueil, hub) ──────────────────────────── */
.register { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.register li { border-bottom: 1px solid var(--rule); }
.register a { display: grid; grid-template-columns: 1fr; gap: 0.35rem; padding: 1.15rem 0; color: var(--ink); text-decoration: none; }
@media (min-width: 760px) {
  .register a { grid-template-columns: 4.5rem minmax(12rem, 1fr) minmax(0, 1.6fr) 1.5rem; gap: 1.5rem; align-items: baseline; }
}
.register__code { font: 500 0.8125rem var(--mono); color: var(--ink-3); }
.register__name { font: 600 1.0625rem/1.35 var(--sans); }
.register__desc { color: var(--ink-2); }
.register__go { color: var(--accent); justify-self: end; transition: transform 0.15s ease; }
.register a:hover .register__name { color: var(--accent); }
.register a:hover .register__go { transform: translateX(3px); }
@media (max-width: 759px) { .register__go { display: none; } }

/* ── Grilles de contenu ────────────────────────────────────────────── */
.split { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; } }
.split--wide-left { }
@media (min-width: 900px) { .split--wide-left { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); } }
.cols { display: grid; gap: 2rem; }
@media (min-width: 760px) { .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 3rem; } }
@media (min-width: 1040px) { .cols--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cols h3 { margin-bottom: 0.5rem; }
.cols p { color: var(--ink-2); margin: 0; }
.cols > div { padding-top: 1.1rem; border-top: 1px solid var(--rule); }

/* Liste de points vérifiables (pas de puces décoratives) */
.points { list-style: none; margin: 0; padding: 0; }
.points li { padding: 0.85rem 0; border-bottom: 1px solid var(--rule); }
.points li:first-child { border-top: 1px solid var(--rule); }
.points strong { font-weight: 600; }

/* Liste « oui / non » de la page IA */
.yesno { display: grid; gap: 2rem; }
@media (min-width: 860px) { .yesno { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.yesno h3 { padding-bottom: 0.75rem; border-bottom: 1px solid var(--ink); margin-bottom: 0; }

/* ── Article et notes en marge (élément signature) ────────────────── */
.article { padding-block: clamp(2.5rem, 2rem + 2vw, 4rem); }
.prose { max-width: var(--measure); }
.prose h2 { font-size: clamp(1.45rem, 1.25rem + 0.8vw, 1.85rem); margin: 2.5rem 0 0.9rem; }
.prose h3 { margin: 1.75rem 0 0.5rem; }
.prose ul, .prose ol { padding-left: 1.25rem; margin: 0 0 1.25em; }
.prose li { margin-bottom: 0.45em; }
.prose li::marker { color: var(--accent); }
.prose > :first-child { margin-top: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.25rem 0 1.75rem; font-size: 0.9375rem; }
.prose th, .prose td { text-align: left; padding: 0.6rem 0.75rem 0.6rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.prose thead th { border-bottom: 1px solid var(--ink); font-weight: 600; }

.annotated { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 3rem; grid-auto-flow: row dense; }
.annotated > * { grid-column: 1; max-width: var(--measure); }
@media (min-width: 1040px) {
  .annotated { grid-template-columns: minmax(0, var(--measure)) minmax(13rem, 16rem); }
  .annotated > .note { grid-column: 2; align-self: start; margin-top: 0.3rem; }
}
.note {
  font-size: 0.875rem; line-height: 1.5; color: var(--ink-2);
  border-left: 2px solid var(--accent); padding: 0.1rem 0 0.1rem 0.9rem; margin: 0.25rem 0 1.5rem;
}
.note__ref { display: block; font: 500 0.75rem/1.4 var(--mono); color: var(--accent); margin-bottom: 0.3rem; }
.note p { margin: 0; }

.article-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 1.25rem; font-size: 0.875rem; color: var(--ink-3); }
.sources { margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); font-size: 0.875rem; color: var(--ink-2); max-width: var(--measure); }
.sources h2 { font: 600 0.875rem var(--sans); margin: 0 0 0.5rem; }
.sources ul { margin: 0; padding-left: 1.1rem; }
.disclaimer { font-size: 0.875rem; color: var(--ink-3); max-width: var(--measure); }

/* ── FAQ ───────────────────────────────────────────────────────────── */
.faq { padding-block: clamp(2.5rem, 2rem + 2vw, 4rem); }
.faq h2 { margin-bottom: 1.5rem; }
.faq__list { max-width: 48rem; border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; padding: 1rem 2rem 1rem 0; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.25rem; top: 0.95rem; font: 400 1.25rem/1 var(--mono); color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq__answer { padding: 0 0 1.25rem; color: var(--ink-2); max-width: var(--measure); }
.faq__answer p:last-child { margin-bottom: 0; }

/* ── À lire aussi ──────────────────────────────────────────────────── */
.related { padding-block: 0 clamp(2.5rem, 2rem + 2vw, 4rem); }
.related__title { font: 600 0.875rem/1.3 var(--sans); text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); margin-bottom: 1rem; }
.related__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--rule); }
@media (min-width: 760px) { .related__list { grid-template-columns: repeat(3, 1fr); gap: 0 2rem; } }
.related__list a { display: block; padding: 1rem 0; border-bottom: 1px solid var(--rule); text-decoration: none; height: 100%; }
.related__label { display: block; font-weight: 600; color: var(--ink); }
.related__summary { display: block; font-size: 0.9375rem; color: var(--ink-2); margin-top: 0.25rem; }
.related__list a:hover .related__label { color: var(--accent); }

/* ── Appel à l'action ──────────────────────────────────────────────── */
.cta { margin-block: 0 clamp(3rem, 2rem + 3vw, 5rem); }
.cta { display: grid; gap: 1.5rem; padding: clamp(1.75rem, 1.25rem + 2vw, 2.75rem) var(--gutter); background: var(--accent-tint); border-radius: var(--radius); max-width: calc(72rem - 2 * var(--gutter)); }
@media (min-width: 72rem) { .cta { padding-inline: 2.75rem; } }
@media (min-width: 860px) { .cta { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 3rem; } }
.cta h2 { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.85rem); margin-bottom: 0.5rem; }
.cta p { margin: 0; color: var(--ink-2); max-width: 38rem; }
.cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }

/* ── Tarifs ────────────────────────────────────────────────────────── */
.price-hero { display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; margin-top: 1.25rem; }
.price-hero__amount { font: 450 clamp(2.5rem, 2rem + 2vw, 3.25rem)/1 var(--serif); }
.price-hero__unit { color: var(--ink-2); }

.sim { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 960px) { .sim { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 3rem; } }
.sim__inputs { border-top: 1px solid var(--ink); padding-top: 1.25rem; }
.sim__modes { display: inline-flex; border: 1px solid var(--rule-strong); border-radius: var(--radius); padding: 3px; margin-bottom: 1.5rem; }
.sim__modes button { font: 600 0.9375rem var(--sans); background: none; border: 0; padding: 0.5rem 0.9rem; border-radius: 3px; color: var(--ink-2); cursor: pointer; }
.sim__modes button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.field { margin-bottom: 1.25rem; }
.field label, .field .label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.field .hint { display: block; font-size: 0.875rem; color: var(--ink-3); margin-top: 0.35rem; }
.field input[type="number"], .field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; font: 400 1rem/1.4 var(--sans); color: var(--ink);
  padding: 0.7rem 0.8rem; border: 1px solid var(--rule-strong); border-radius: var(--radius); background: var(--paper);
}
.field input[type="number"] { font-family: var(--mono); font-size: 1.125rem; max-width: 12rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.field textarea { min-height: 7rem; resize: vertical; }
.field--inline { display: flex; gap: 1rem; flex-wrap: wrap; }
.field--inline > div { flex: 1 1 10rem; }
.check { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 500; cursor: pointer; }
.check input { width: 1.1rem; height: 1.1rem; margin-top: 0.2rem; accent-color: var(--accent); flex: none; }
.sim__bank { padding-top: 1.25rem; border-top: 1px solid var(--rule); }
.sim__bank .field { margin: 0.9rem 0 0 1.7rem; }

.sim__result .doc { font-size: 0.9375rem; }
.sim__total { padding: 1.25rem 1.1rem 1rem; border-bottom: 1px solid var(--rule); }
.sim__total-amount { font: 450 clamp(2.25rem, 1.8rem + 1.8vw, 3rem)/1 var(--serif); font-variant-numeric: tabular-nums lining-nums; }
.sim__total-unit { color: var(--ink-2); margin-left: 0.35rem; }
.sim__perlot { margin-top: 0.5rem; color: var(--ink-2); font-size: 0.9375rem; }
.sim__empty { padding: 1.25rem 1.1rem; color: var(--ink-3); }
.sim__notes { margin-top: 1rem; font-size: 0.875rem; color: var(--ink-3); }
.sim__notes p { margin-bottom: 0.4rem; }

.grid-details { margin-top: 2rem; border-top: 1px solid var(--rule); }
.grid-details summary { cursor: pointer; padding: 1rem 0; font-weight: 600; color: var(--accent); }
.grid-details .doc { margin-bottom: 1rem; }

.included { columns: 1; column-gap: 3rem; list-style: none; margin: 0; padding: 0; }
@media (min-width: 760px) { .included { columns: 2; } }
.included li { break-inside: avoid; padding: 0.7rem 0; border-bottom: 1px solid var(--rule); }

/* ── Formulaire de démo ───────────────────────────────────────────── */
.form { max-width: 36rem; }
.form .hp { position: absolute; left: -9999px; }
.form__msg { margin-top: 1rem; font-weight: 500; min-height: 1.5rem; }
.form__msg.is-ok { color: var(--accent); }
.form__msg.is-error { color: #a12a1b; }
.optional { font-weight: 400; color: var(--ink-3); }

/* ── Bloc « à compléter » (identité éditeur manquante) ─────────────── */
.todo { border: 1px dashed #b7791f; background: #fff8eb; color: #6b4410; padding: 0.75rem 1rem; border-radius: var(--radius); font-size: 0.9375rem; }

/* ── Pied de page ──────────────────────────────────────────────────── */
.site-footer { background: var(--ledger); border-top: 1px solid var(--rule); padding-top: 3rem; font-size: 0.9375rem; }
.site-footer__grid { display: grid; gap: 2rem; }
@media (min-width: 760px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer__brand p { color: var(--ink-2); margin-top: 0.9rem; max-width: 22rem; }
.site-footer__title { font: 600 0.8125rem/1.3 var(--sans); text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); margin-bottom: 0.75rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.45rem; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 2.5rem; padding-block: 1.25rem; border-top: 1px solid var(--rule); color: var(--ink-3); font-size: 0.875rem; }

/* ── 404 ───────────────────────────────────────────────────────────── */
.notfound { padding-block: 4rem 6rem; }

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

/* ── Étapes (séquence réelle : l'ordre compte) ────────────────────── */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; border-top: 1px solid var(--ink); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: 0 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--rule); }
.steps li::before { content: counter(step); grid-row: span 2; font: 450 1.75rem/1 var(--serif); color: var(--accent); }
.steps h3 { margin-bottom: 0.35rem; }
.steps p { margin: 0; color: var(--ink-2); max-width: 44rem; }
@media (min-width: 900px) { .steps li { grid-template-columns: 3.5rem minmax(14rem, 0.6fr) minmax(0, 1.4fr); } .steps li::before { grid-row: auto; } }
.steps--compact li { grid-template-columns: 2rem minmax(0, 1fr) !important; padding: 0.9rem 0; }
.steps--compact li::before { grid-row: span 2 !important; font-size: 1.35rem; }

/* ── Correctifs de mise en page ───────────────────────────────────── */
figure { margin: 0; }
.hero__grid, .page-hero--split .wrap, .split, .sim { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .page-hero--split .wrap { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
  .sim { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
}
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split--wide-left { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
}
.doc { overflow-x: auto; }
.doc th, .doc td { padding-inline: 0.8rem; }
.prose table { display: block; overflow-x: auto; }
@media (min-width: 600px) { .prose table { display: table; } }

/* Notes en marge : flottantes, alignées sur le paragraphe qui les suit. */
.annotated.prose { max-width: none; }
.annotated { display: block; }
.annotated > * { max-width: var(--measure); }
@media (min-width: 1040px) {
  .annotated { padding-right: 19rem; max-width: calc(var(--measure) + 19rem); }
  .annotated > .note { float: right; clear: right; width: 16rem; margin: 0.45rem -19rem 1rem 0; }
  .annotated > h2 + .note { margin-top: -2.4rem; }
}

/* ════════════════════════════════════════════════════════════════════
   Couche « dossier » — octobre 2026
   ════════════════════════════════════════════════════════════════════ */
:root {
  --deep: #123e30;
  --deep-2: #0d3127;
  --deep-ink: #eef5f1;
  --deep-muted: #a8c4b7;
  --tone-appel: #9ed7b9;
  --tone-ag: #e2c27d;
  --tone-compta: #d7e4dd;
}

/* En-tête collant, discret */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, 0.92); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); }

.after-points { margin-top: 1.5rem; }

/* ── Hero : la pile de pièces ─────────────────────────────────────── */
.hero { overflow: hidden; }
.hero__text { padding-top: clamp(0rem, 2vw, 2rem); }
.stack { display: grid; grid-template-columns: minmax(0, 1fr); position: relative; }
.stack__back, .stack__front { grid-area: 1 / 1; }
.stack__back { justify-self: end; width: min(100%, 25rem); transform: rotate(2.2deg); transform-origin: 80% 0; }
.stack__front { align-self: start; width: min(100%, 33rem); margin-top: 15.5rem; position: relative; z-index: 1; }
.stack__caption { grid-area: 2 / 1; margin-top: 1.25rem; max-width: 33rem; }
@media (max-width: 599px) {
  .stack__back { width: 92%; }
  .stack__front { margin-top: 16.5rem; width: 100%; }
}

.sheet {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 3px;
  box-shadow: 0 1px 2px rgba(23, 33, 43, 0.06), 0 20px 40px -28px rgba(23, 33, 43, 0.55);
  padding: 1.25rem 1.35rem 1.35rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--ink-2);
}
.sheet__from { font-weight: 600; color: var(--ink); }
.sheet__from span, .sheet__to span { font-weight: 400; color: var(--ink-3); }
.sheet__to { margin: 0.9rem 0 0 auto; width: fit-content; max-width: 60%; color: var(--ink); font-weight: 500; }
.sheet__title { font: 450 1.15rem/1.25 var(--serif); color: var(--ink); margin: 1rem 0 0.6rem; }
.sheet__lines { width: 100%; border-collapse: collapse; }
.sheet__lines td { padding: 0.3rem 0; border-bottom: 1px solid var(--ledger); }
.sheet__lines .amt { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--ink); }
.sheet__total td { font-weight: 600; color: var(--ink); border-bottom: 0; padding-top: 0.5rem; }
.sheet__pay { display: grid; grid-template-columns: 4.75rem 1fr; gap: 0.9rem; align-items: center; margin-top: 0.9rem; padding-top: 0.9rem; border-top: 1px dashed var(--rule-strong); }
.sheet__qr svg { display: block; width: 100%; height: auto; }
.sheet__label { display: block; font-size: 0.6875rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.05em; }
.sheet__ogm { display: block; font: 500 0.875rem/1.3 var(--mono); color: var(--ink); margin: 0.2rem 0 0.45rem; letter-spacing: 0.02em; }

/* Le tampon */
.doc--entry { position: relative; }
.stamp {
  position: absolute; right: 1.1rem; bottom: 0.7rem;
  display: inline-flex; flex-direction: column; align-items: center;
  padding: 0.3rem 0.6rem 0.25rem;
  border: 2px solid var(--accent); border-radius: 4px;
  color: var(--accent);
  font: 500 0.8125rem/1.1 var(--mono); text-transform: uppercase; letter-spacing: 0.14em;
  transform: rotate(-7deg);
  opacity: 0.88;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.stamp small { font-size: 0.625rem; letter-spacing: 0.08em; opacity: 0.8; margin-top: 0.1rem; }
.doc--entry .doc__foot { padding-right: 9.5rem; }
@media (max-width: 520px) { .doc--entry .doc__foot { padding-right: 1.1rem; padding-bottom: 3.2rem; } }

/* Séquence d'ouverture : l'écriture s'inscrit, s'équilibre, se tamponne.
   L'état final est l'état de base : sans animation, tout est déjà là. */
@keyframes ts-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes ts-line { from { opacity: 0; transform: translateX(-6px); } }
@keyframes ts-total { from { opacity: 0; } }
@keyframes ts-stamp { 0% { opacity: 0; transform: rotate(-16deg) scale(1.6); } 70% { opacity: 0.95; transform: rotate(-6deg) scale(0.96); } }
.stack__back { animation: ts-in 0.6s ease-out 0.05s both; }
.stack__front { animation: ts-in 0.6s ease-out 0.2s both; }
.stack .doc--entry tbody tr { animation: ts-line 0.4s ease-out both; }
.stack .doc--entry tbody tr:nth-child(1) { animation-delay: 0.55s; }
.stack .doc--entry tbody tr:nth-child(2) { animation-delay: 0.75s; }
.stack .doc--entry tbody tr:nth-child(3) { animation-delay: 0.95s; }
.stack .doc--entry tfoot td { animation: ts-total 0.35s ease-out 1.25s both; }
.stack .stamp { animation: ts-stamp 0.42s cubic-bezier(0.2, 0.8, 0.3, 1) 1.6s both; }

/* ── Feuilleter les modules ───────────────────────────────────────── */
.browse { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; align-items: start; }
.browse__preview { display: none; }
@media (min-width: 1040px) {
  .browse { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .browse__preview { display: block; position: sticky; top: 6rem; }
  .register a { grid-template-columns: 6.5rem minmax(0, 1fr) 1.5rem; }
  .register__desc { grid-column: 2; grid-row: 2; font-size: 0.9375rem; }
  .register__go { grid-column: 3; grid-row: 1; }
  .register li { transition: background-color 0.15s ease; }
  .register li.is-active { background: var(--ledger); }
  .register li.is-active .register__name { color: var(--accent); }
  .register li a { padding-inline: 0.9rem; }
}
.browse__sheet { animation: ts-in 0.25s ease-out both; }
.browse__sheet .doc { box-shadow: 0 1px 0 var(--rule), 0 24px 44px -30px rgba(23, 33, 43, 0.55); }

/* ── Bande « Une année de copropriété » ───────────────────────────── */
.section--deep { background: var(--deep); color: var(--deep-ink); }
.section--deep h2 { color: #fff; }
.section--deep .section__head p { color: var(--deep-muted); }
.year { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.6rem; }
.year__months { display: none; }
.year__event {
  padding: 0.55rem 0.75rem;
  border-left: 3px solid var(--tone);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.9375rem; line-height: 1.35;
  color: var(--deep-ink);
}
.year__month { display: inline-block; min-width: 3.5rem; font: 500 0.75rem var(--mono); color: var(--deep-muted); margin-right: 0.5rem; }
.year__event--appel { --tone: var(--tone-appel); }
.year__event--ag { --tone: var(--tone-ag); }
.year__event--compta { --tone: var(--tone-compta); }
@media (min-width: 900px) {
  .year { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-flow: row dense; gap: 0.5rem 0.4rem; }
  .year__months { display: contents; }
  .year__months span {
    grid-row: 1; padding: 0 0 0.6rem; border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    font: 500 0.75rem var(--mono); color: var(--deep-muted); text-transform: uppercase; letter-spacing: 0.06em;
  }
  .year__event { grid-column: var(--start) / span var(--span); font-size: 0.8125rem; border-left: 0; border-top: 3px solid var(--tone); padding: 0.5rem 0.55rem; }
  .year__month { display: none; }
}
.year__legend { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; list-style: none; margin: 2rem 0 0; padding: 0; font-size: 0.875rem; color: var(--deep-muted); }
.year__legend li::before { content: ""; display: inline-block; width: 0.75rem; height: 0.75rem; margin-right: 0.5rem; vertical-align: -0.05rem; background: var(--tone); border-radius: 2px; }
.year__all { margin: 1.25rem 0 0; color: var(--deep-ink); max-width: 46rem; }

/* ── Exemples de prix ─────────────────────────────────────────────── */
.quotes { display: grid; grid-template-columns: minmax(0, 1fr); background: var(--paper); border: 1px solid var(--rule-strong); border-radius: var(--radius); }
@media (min-width: 760px) { .quotes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.quote { display: flex; flex-direction: column; gap: 0.15rem; padding: 1.5rem 1.5rem 1.4rem; }
.quote + .quote { border-top: 1px solid var(--rule); }
@media (min-width: 760px) { .quote + .quote { border-top: 0; border-left: 1px solid var(--rule); } }
.quote__name { font: 500 0.75rem var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); }
.quote__lots { color: var(--ink-2); margin-bottom: 0.75rem; }
.quote__total { font: 450 clamp(2rem, 1.6rem + 1.2vw, 2.6rem)/1 var(--serif); font-variant-numeric: lining-nums tabular-nums; color: var(--ink); }
.quote__unit { font-size: 0.875rem; color: var(--ink-3); margin-top: 0.4rem; }

/* Micro-interactions sobres */
.btn { transition: background-color 0.15s ease, transform 0.15s ease; }
.btn:active { transform: translateY(1px); }
.link-arrow::after { display: inline-block; transition: transform 0.15s ease; }
.link-arrow:hover::after { transform: translateX(3px); }

/* Pile : l'écriture devant ; l'avis derrière, décalé vers le bas pour laisser voir le montant et le QR. */
.stack__front { grid-area: 1 / 1; align-self: start; justify-self: start; margin-top: 0; width: min(100%, 32rem); z-index: 2; }
.stack__back { grid-area: 1 / 1; align-self: start; justify-self: end; margin-top: 14.5rem; width: min(88%, 23rem); transform: rotate(2.4deg); transform-origin: 50% 0; z-index: 1; }
@media (max-width: 599px) {
  .stack__front { width: 100%; }
  .stack__back { margin-top: 16rem; width: 88%; }
}
.doc--entry .doc__foot { padding-right: 11rem; }
@media (max-width: 520px) { .doc--entry .doc__foot { padding-right: 0.8rem; padding-bottom: 3.4rem; } }
@media (min-width: 1040px) { .browse .register a { row-gap: 0.2rem; column-gap: 1.25rem; padding-block: 1rem; } }
.hover-hint { display: none; }
@media (min-width: 1040px) and (hover: hover) { .hover-hint { display: inline; } }

/* ════════ Pile générique (accueil + pages fonctionnalités) ════════ */
.stack { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; }
.stack__front { grid-area: auto; grid-row: 1; justify-self: start; width: min(100%, 32rem); margin-top: 0; position: relative; z-index: 2; }
.stack__back { grid-area: auto; grid-row: 2; justify-self: end; width: min(90%, 24rem); margin-top: calc(-1 * var(--overlap, 5rem)); transform: rotate(2.2deg); transform-origin: 50% 0; z-index: 1; }
.stack__caption { grid-area: auto; grid-row: 3; margin-top: 1.4rem; max-width: 32rem; }
@media (max-width: 599px) { .stack__front { width: 100%; } .stack__back { width: 90%; } }
.page-hero--split .stack { margin-top: 0.5rem; }

/* Le tampon déborde du coin de la pièce, comme un vrai coup de tampon. */
.stack__front .stamp { right: -0.6rem; bottom: -1rem; z-index: 3; background: rgba(255, 255, 255, 0.55); }
.doc--entry .doc__foot { padding-right: 1.1rem; }
@media (max-width: 520px) { .doc--entry .doc__foot { padding-bottom: 0.75rem; } .stack__front .stamp { right: 0.4rem; } }

/* Séquence d'ouverture, généralisée à la pièce de devant */
.stack .doc--entry tbody tr, .stack .doc--entry tfoot td { animation: none; }
.stack__front .doc tbody tr { animation: ts-line 0.4s ease-out both; }
.stack__front .doc tbody tr:nth-child(1) { animation-delay: 0.5s; }
.stack__front .doc tbody tr:nth-child(2) { animation-delay: 0.65s; }
.stack__front .doc tbody tr:nth-child(3) { animation-delay: 0.8s; }
.stack__front .doc tbody tr:nth-child(4) { animation-delay: 0.95s; }
.stack__front .doc tbody tr:nth-child(5) { animation-delay: 1.1s; }
.stack__front .doc tfoot td { animation: ts-total 0.35s ease-out 1.2s both; }
.stack__front .stamp { animation: ts-stamp 0.42s cubic-bezier(0.2, 0.8, 0.3, 1) 1.5s both; }

/* Contenus des pièces */
.sheet__text { margin: 0.6rem 0 0; font-size: 0.8125rem; }
.sheet__text strong { color: var(--ink); }
.sheet__muted { color: var(--ink-3); }
.sheet .sheet__from + .sheet__title { margin-top: 0.8rem; }
.doc tr.is-mark td { background: var(--accent-tint); font-weight: 600; }
.msg { margin-top: 0.85rem; padding: 0.6rem 0.75rem; background: var(--ledger); border-radius: 3px; }
.msg p { margin: 0.2rem 0 0; color: var(--ink); }
.msg__who { font: 500 0.6875rem var(--mono); color: var(--ink-3); }
.msg--syndic { background: var(--accent-tint); margin-left: 1.5rem; }

/* Groupes du hub */
.browse__group { font: 500 0.8125rem var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); margin: 2.25rem 0 0.75rem; }
.browse__group:first-child { margin-top: 0; }

/* ════════ Bande de déroulé : une vraie séquence, donc numérotée ════════ */
.flow-band { padding-block: clamp(2.75rem, 2rem + 3vw, 4.5rem); }
.flow-band .section__head { margin-bottom: 2rem; }
.flow { list-style: none; margin: 0; padding: 0; counter-reset: flow; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.flow li { counter-increment: flow; position: relative; padding: 0 0 1.5rem 2.75rem; }
.flow li::before {
  content: counter(flow); position: absolute; left: 0; top: -0.1rem;
  width: 1.85rem; height: 1.85rem; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.45); font: 450 1rem/1 var(--serif); color: #fff;
}
.flow li::after { content: ""; position: absolute; left: 0.92rem; top: 1.9rem; bottom: 0.2rem; width: 1px; background: rgba(255, 255, 255, 0.2); }
.flow li:last-child::after { display: none; }
.flow h3 { color: #fff; font-size: 1rem; margin-bottom: 0.3rem; }
.flow p { margin: 0; color: var(--deep-muted); font-size: 0.9375rem; line-height: 1.5; }
@media (min-width: 900px) {
  .flow { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.5rem; }
  .flow li { padding: 2.75rem 0 0; }
  .flow li::after { left: 2.3rem; right: -1.1rem; top: 0.92rem; bottom: auto; width: auto; height: 1px; }
}
.page-hero--split .wrap { align-items: center; }
.stack__front .stamp { right: 1.25rem; bottom: -2.1rem; }
@media (max-width: 520px) { .stack__front .stamp { right: 0.75rem; bottom: -2.1rem; } }

/* La pièce de derrière glisse juste sous le bord de celle de devant :
   rien n'est coupé, et le tampon chevauche les deux feuilles. */
.stack__back { margin-top: -1.1rem; padding-top: 0; }
.sheet { padding-top: 1.6rem; }
.sheet__lines .amt { white-space: nowrap; padding-left: 0.75rem; vertical-align: bottom; }
@media (min-width: 900px) { .flow { grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); } }
.sheet__agenda { margin: 0.6rem 0 0; padding-left: 1.2rem; font-size: 0.8125rem; color: var(--ink); }
.sheet__agenda li { margin-bottom: 0.2rem; }
.page-hero--split .article-meta { margin-top: 1.25rem; }
/* Une pièce-tableau placée derrière garde son en-tête lisible sous le bord de celle de devant. */
.stack__back > .doc .doc__head { padding-top: 1.75rem; }
.sheet__csv { margin: 0.8rem 0 0; font: 400 0.6875rem/1.7 var(--mono); color: var(--ink-2); white-space: pre; overflow-x: auto; }
.tag--warn { background: #fdf1dc; color: #7a4b0c; }
.sheet--file .sheet__from { padding-right: 8.5rem; }
.doc td.amt--wrap { white-space: normal; }
.stack__back .sheet__from { padding-right: 8.5rem; }
html { scroll-padding-top: 5.5rem; }
.flow--plain li::before { content: ""; width: 0.6rem; height: 0.6rem; top: 0.45rem; left: 0.6rem; border: 0; background: var(--tone-appel); }
.flow--plain li::after { display: none; }
@media (min-width: 900px) { .flow--plain li { padding-top: 1.6rem; border-top: 1px solid rgba(255, 255, 255, 0.25); } .flow--plain li::before { top: -0.3rem; left: 0; } }
.sheet__lines .amt--wrap { white-space: normal; text-align: right; }
