/* Bureau des Marchés · une seule feuille de style.
   Aucune police, image ou ressource externe : polices système, illustrations en SVG dans la page.
   Univers : le dossier administratif et le plan de chantier. Bleu de Prusse pour l'action,
   brique du Nord pour ce qui revient à l'artisan ("Vous"). */

:root {
  color-scheme: light dark;
  --bg: #f6f3ec;
  --surface: #fffdf9;
  --alt: #eee9de;
  --ink: #141c27;
  --muted: #4b5462;
  --line: rgba(20, 28, 39, 0.12);
  --line-strong: rgba(20, 28, 39, 0.26);
  --action: #1b3d6e;
  --action-hover: #122c52;
  --action-ink: #ffffff;
  --tint: #e1e8f2;
  --tint-ink: #173560;
  --brick: #9a3b20;
  --brick-tint: #f5e4db;
  --brick-ink: #7f2f17;
  --grid: rgba(27, 61, 110, 0.075);
  --plan: rgba(27, 61, 110, 0.32);
  --band: #13233b;
  --band-ink: #f1efe9;
  --band-muted: #b9c4d4;
  --band-line: rgba(241, 239, 233, 0.16);
  --shadow: 0 1px 2px rgba(20, 28, 39, 0.05), 0 18px 40px -18px rgba(20, 28, 39, 0.22);
  --selection: #c9d7ec;

  --f-head: "Iowan Old Style", Charter, "Bitstream Charter", "Sitka Heading", "Sitka Text", Cambria, "Noto Serif", Georgia, serif;
  --f-text: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --t-h1: clamp(2.1rem, 1.3vw + 1.6rem, 3.15rem);
  --t-h2: clamp(1.75rem, 1vw + 1.35rem, 2.6rem);
  --t-h3: 1.2rem;
  --t-lead: clamp(1.075rem, 0.3vw + 1rem, 1.25rem);
  --t-body: 1.0625rem;
  --t-small: 0.94rem;
  --t-label: 0.8125rem;

  --nav: 72px;
  --gut: 72px;
  --pad: 128px;
  --r-lg: 14px;
  --r-md: 10px;
  --r-btn: 10px;
  --btn-h: 52px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1318;
    --surface: #161d25;
    --alt: #121921;
    --ink: #ece7dd;
    --muted: #a5aebb;
    --line: rgba(236, 231, 221, 0.12);
    --line-strong: rgba(236, 231, 221, 0.28);
    --action: #a3c3ee;
    --action-hover: #c3d8f5;
    --action-ink: #0b1626;
    --tint: #1c2b40;
    --tint-ink: #c9dbf4;
    --brick: #e7967a;
    --brick-tint: #36211a;
    --brick-ink: #f0b39d;
    --grid: rgba(163, 195, 238, 0.06);
    --plan: rgba(163, 195, 238, 0.28);
    --band: #18212c;
    --band-ink: #ece7dd;
    --band-muted: #aab4c2;
    --band-line: rgba(236, 231, 221, 0.13);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 22px 44px -20px rgba(0, 0, 0, 0.7);
    --selection: #2b4266;
  }
}

@media (max-width: 1023px) {
  :root { --gut: 40px; --pad: 96px; }
}
@media (max-width: 639px) {
  :root { --nav: 60px; --gut: 20px; --pad: 72px; --btn-h: 52px; }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
html {
  scroll-padding-top: calc(var(--nav) + 16px);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: var(--t-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--selection); color: var(--ink); }
h1, h2, h3 {
  font-family: var(--f-head);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.012em;
  margin: 0;
  text-wrap: balance;
  font-variant-numeric: lining-nums;
}
h1 { font-size: var(--t-h1); letter-spacing: -0.02em; }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); line-height: 1.3; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
svg { display: block; }
.muted { color: var(--muted); }
.lead { font-size: var(--t-lead); line-height: 1.55; }
.nowrap { white-space: nowrap; }

a { color: var(--action); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible {
  outline: 3px solid var(--action);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: calc(1200px + 2 * var(--gut));
  margin: 0 auto;
  padding: 0 var(--gut);
}

.skip {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 50;
  padding: 10px 16px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* Liens de texte : soulignement qui se dessine */
.link {
  color: var(--action);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.3s var(--ease);
}
.link:hover { background-size: 0 1px; background-position: 100% 100%; }

/* En-tête */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  height: var(--nav);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  min-width: 0;
}
.mark { flex: none; width: 38px; height: 38px; }
.mark-bg { fill: var(--action); }
.mark-paper { fill: var(--surface); }
.mark-fold { fill: none; stroke: var(--action); stroke-width: 2.5; stroke-linejoin: round; }
.mark-lines { stroke: var(--action); stroke-width: 3; stroke-linecap: round; }
.mark-seal { fill: var(--brick); }
.mark-check { fill: none; stroke: var(--surface); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-color-scheme: dark) {
  .mark-bg { fill: #24456f; }
  .mark-paper { fill: #f1efe9; }
  .mark-fold, .mark-lines { stroke: #24456f; }
  .mark-seal { fill: #c4573a; }
  .mark-check { stroke: #f1efe9; }
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-name { font-family: var(--f-head); font-weight: 600; font-size: 1.2rem; letter-spacing: -0.01em; }
.brand-tag { font-size: var(--t-label); color: var(--muted); white-space: nowrap; }

.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav ul { display: flex; gap: 28px; list-style: none; }
.site-nav a:not(.btn) {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 0;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1.5px;
  background-position: 0 85%;
  background-repeat: no-repeat;
  transition: background-size 0.3s var(--ease);
}
.site-nav a:not(.btn):hover { background-size: 100% 1.5px; }
.site-nav .btn { white-space: nowrap; }

@media (max-width: 959px) {
  .site-nav ul { display: none; }
}
@media (max-width: 639px) {
  .mark { width: 34px; height: 34px; }
  .brand-name { font-size: 1.06rem; }
  .brand-tag { display: none; }
}

/* Boutons : un style plein, un style secondaire */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--btn-h);
  padding: 0 26px;
  border-radius: var(--r-btn);
  font: 600 1rem/1.2 var(--f-text);
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.985); }
.btn--primary { background: var(--action); color: var(--action-ink); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 8px 18px -10px var(--action); }
.btn--primary:hover { background: var(--action-hover); }
.btn--secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--secondary:hover { border-color: var(--ink); background: var(--surface); }
.btn--sm { --btn-h: 42px; padding: 0 18px; font-size: 0.94rem; box-shadow: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (prefers-color-scheme: dark) { .btn--primary { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4); } }

/* Sections */
main > section { padding: var(--pad) 0; }
main > section + section { border-top: 1px solid var(--line); }
.section-alt { background: var(--alt); }
.section-head { display: grid; gap: 16px; margin-bottom: 56px; max-width: 40rem; }
.section-head p { font-size: var(--t-lead); color: var(--muted); }
@media (max-width: 639px) { .section-head { margin-bottom: 36px; } }

/* Mots-clés "Nous" / "Vous" : la même couleur partout */
.who {
  display: inline-flex;
  align-items: center;
  font-family: var(--f-text);
  font-size: var(--t-label);
  font-weight: 650;
  letter-spacing: 0.01em;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.who--nous { background: var(--tint); color: var(--tint-ink); }
.who--vous { background: var(--brick-tint); color: var(--brick-ink); }
.who--both { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }

/* Hero */
.hero { padding: 64px 0 96px; overflow: hidden; }
.hero > .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 64px;
  align-items: center;
}
.hero-text { display: grid; gap: 28px; }
.hero h1 { max-width: 21ch; }
.h1-accent { display: block; margin-top: 0.35em; color: var(--action); }
.hero .lead { color: var(--muted); max-width: 36rem; }
.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 8px 40px;
  margin: 8px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.hero-facts > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 4px; }
.hero-facts dt { font-size: var(--t-label); color: var(--muted); max-width: 16ch; line-height: 1.35; }
.hero-facts dd { margin: 0; font-family: var(--f-head); font-weight: 600; font-size: 1.6rem; line-height: 1.1; font-variant-numeric: lining-nums; }

.hero-visual { position: relative; padding: 28px 0 28px 28px; }
.plan {
  position: absolute;
  inset: 0 -48px -24px 0;
  border-radius: var(--r-lg);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(120% 90% at 40% 50%, #000 55%, transparent 100%);
  mask-image: radial-gradient(120% 90% at 40% 50%, #000 55%, transparent 100%);
}

.dossier {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px var(--r-lg) var(--r-lg) var(--r-lg);
  box-shadow: var(--shadow);
}
.dossier::before,
.dossier::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.dossier::before { transform: translate(10px, 10px); opacity: 0.75; }
.dossier::after { transform: translate(20px, 20px); opacity: 0.45; }
.dossier-tab {
  position: absolute;
  left: -1px;
  bottom: 100%;
  padding: 6px 16px 5px;
  font-size: var(--t-label);
  font-weight: 650;
  color: var(--brick-ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
}
.dossier-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--line-strong);
}
.dossier-head h2 { font-size: 1.2rem; }
.dossier-head span { font-size: var(--t-label); color: var(--muted); }
.dossier-list { list-style: none; }
.dossier-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px;
  border-bottom: 1px solid var(--line);
  font-size: 0.97rem;
}
.dossier-list li.is-vous:first-of-type, .dossier-list li:not(.is-vous) + .is-vous { border-top: 1px dashed var(--line-strong); }
.doc { display: flex; align-items: center; gap: 12px; }
.doc svg { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.is-vous .doc svg { stroke: var(--brick); }
.tag {
  flex: none;
  font-size: var(--t-label);
  font-weight: 650;
  line-height: 1;
  border-radius: 999px;
  padding: 6px 11px;
  white-space: nowrap;
}
.tag--nous { background: var(--tint); color: var(--tint-ink); }
.tag--vous { background: var(--brick-tint); color: var(--brick-ink); }
.dossier-list li:last-child { border-bottom: 0; }

@media (max-width: 1023px) {
  .hero { padding: 64px 0 88px; }
  .hero > .wrap { grid-template-columns: 1fr; gap: 56px; }
  .hero h1 { max-width: 20ch; }
  .hero-visual { max-width: 560px; }
}
@media (max-width: 639px) {
  .hero { padding: 40px 0 64px; }
  .hero-text { gap: 24px; }
  .hero .btn-row .btn { width: 100%; }
  .hero-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 16px; }
  .hero-facts dd { font-size: 1.3rem; }
  .hero-facts dt { font-size: 0.78rem; }
  .hero-visual { padding: 26px 18px 18px 0; }
  .plan { inset: 0 -20px -10px -20px; }
  .dossier-head, .dossier-list li { padding-left: 16px; padding-right: 16px; }
  .dossier-list li { font-size: 0.93rem; padding-top: 11px; padding-bottom: 11px; }
  .dossier-head span { display: none; }
  .dossier::before { transform: translate(7px, 7px); }
  .dossier::after { transform: translate(14px, 14px); }
}

/* Étapes : une frise */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  top: 23px;
  left: 24px;
  right: 24px;
  border-top: 1.5px dashed var(--line-strong);
}
.step { position: relative; display: grid; align-content: start; justify-items: start; gap: 14px; }
.step-num {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--bg);
  border: 1.5px solid var(--action);
  color: var(--action);
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 10px;
  position: relative;
}
.step:first-child .step-num { background: var(--action); color: var(--action-ink); }
.step h3 { font-size: 1.3rem; }
.step p { color: var(--muted); }
@media (max-width: 1023px) {
  .steps { grid-template-columns: 1fr 1fr; gap: 48px 40px; }
  .steps::before { display: none; }
}
@media (max-width: 639px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { grid-template-columns: 48px 1fr; column-gap: 18px; row-gap: 10px; padding-bottom: 36px; }
  .step:last-child { padding-bottom: 0; }
  .step > :not(.step-num) { grid-column: 2; }
  .step-num { grid-row: 1 / span 3; margin: 0; }
  .step::before {
    content: "";
    position: absolute;
    left: 23px;
    top: 52px;
    bottom: 4px;
    border-left: 1.5px dashed var(--line-strong);
  }
  .step:last-child::before { display: none; }
  .step h3 { font-size: 1.2rem; }
}

/* Prix : un barème comme sur une facture */
.prix-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 72px;
  align-items: start;
}
.prix-intro { display: grid; gap: 24px; justify-items: start; position: sticky; top: calc(var(--nav) + 40px); }
.ticks { list-style: none; display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; }
.ticks svg { width: 20px; height: 20px; margin-top: 3px; fill: none; stroke: var(--action); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.bareme {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 8px 32px 28px;
}
.bareme-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 20px 0 16px;
  border-bottom: 2px solid var(--ink);
}
.bareme-head h3 { font-size: 1.15rem; }
.bareme-head span { font-size: var(--t-label); color: var(--muted); }
.bareme-rows { margin: 0; }
.bareme-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.bareme-row dt { font-weight: 600; align-self: baseline; }
.bareme-row .amount {
  margin: 0;
  font-family: var(--f-head);
  font-weight: 600;
  font-size: clamp(1.9rem, 1vw + 1.5rem, 2.5rem);
  line-height: 1;
  white-space: nowrap;
  text-align: right;
  font-variant-numeric: lining-nums tabular-nums;
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
}
.bareme-row .desc { margin: 0; color: var(--muted); font-size: 0.97rem; max-width: 34rem; }
.bareme-row--main {
  margin: 0 -16px;
  padding: 24px 16px;
  background: var(--tint);
  border-radius: var(--r-md);
  border-bottom: 0;
}
.bareme-row--main .amount { color: var(--action); }
@media (prefers-color-scheme: dark) { .bareme-row--main .amount { color: var(--tint-ink); } }
.bareme-row--main .desc { color: var(--tint-ink); }
.bareme-example {
  margin-top: 20px;
  padding: 14px 16px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
  font-size: 0.97rem;
  color: var(--muted);
}
.bareme-example strong { color: var(--ink); }
@media (max-width: 1023px) {
  .prix-grid { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .prix-intro { display: contents; }
  .prix-intro h2 { margin-bottom: 16px; }
  .prix-intro .lead { margin-bottom: 40px; }
  .bareme { order: 3; margin-bottom: 32px; }
  .prix-intro .ticks { order: 4; margin-bottom: 28px; }
  .prix-intro .btn { order: 5; align-self: flex-start; }
}
@media (max-width: 639px) {
  .bareme { padding: 4px 20px 20px; }
  .bareme-row { grid-template-columns: 1fr; padding: 20px 0; }
  .bareme-row .amount { grid-row: auto; grid-column: auto; text-align: left; order: -1; }
  .bareme-row--main { margin: 0 -10px; padding: 20px 10px; }
  .prix-intro .btn { width: 100%; }
}

/* Qui fait quoi */
.roles { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 2px solid var(--ink); }
.role { padding: 36px 48px 8px 0; }
.role + .role { padding: 36px 0 8px 48px; border-left: 1px solid var(--line); }
.role h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; font-size: 1.45rem; }
.role h3 .who { font-size: 0.95rem; padding: 7px 12px; }
.role--vous .ticks svg { stroke: var(--brick); }
.role-note {
  margin-top: 48px;
  font-size: var(--t-small);
  color: var(--muted);
  max-width: 70ch;
}
@media (max-width: 899px) {
  .roles { grid-template-columns: 1fr; }
  .role { padding: 28px 0 8px; }
  .role + .role { padding: 32px 0 0; margin-top: 24px; border-left: 0; border-top: 1px solid var(--line); }
}

/* Engagements : bande sombre */
.band { background: var(--band); color: var(--band-ink); border-top: 0 !important; }
.band + section { border-top: 0; }
.band .section-head p { color: var(--band-muted); }
.pledges {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--band-line);
}
.pledges li { padding: 32px 32px 0 0; display: grid; align-content: start; gap: 12px; }
.pledges li + li { padding-left: 32px; border-left: 1px solid var(--band-line); }
.pledges svg { width: 32px; height: 32px; margin-bottom: 8px; fill: none; stroke: var(--band-ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.pledges svg :last-child { stroke: #f0a587; }
.pledges h3 { font-size: 1.2rem; }
.pledges p { color: var(--band-muted); font-size: 0.97rem; }
@media (max-width: 1023px) {
  .pledges { grid-template-columns: 1fr 1fr; }
  .pledges li { padding: 28px 28px 28px 0; }
  .pledges li + li { padding-left: 0; border-left: 0; }
  .pledges li:nth-child(even) { padding-left: 28px; padding-right: 0; border-left: 1px solid var(--band-line); }
  .pledges li:nth-child(n + 3) { border-top: 1px solid var(--band-line); }
}
@media (max-width: 639px) {
  .pledges { grid-template-columns: 1fr; }
  .pledges li, .pledges li:nth-child(even) { padding: 24px 0; border-left: 0; }
  .pledges li + li { border-top: 1px solid var(--band-line); }
  .pledges li:last-child { padding-bottom: 0; }
}

/* Questions fréquentes : ouvertes en entier */
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 72px; align-items: start; }
.faq-grid .section-head { margin-bottom: 0; position: sticky; top: calc(var(--nav) + 40px); }
.faq { margin: 0; border-top: 2px solid var(--ink); }
.faq > div { padding: 24px 0; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
.faq dt { font-family: var(--f-head); font-weight: 600; font-size: 1.2rem; line-height: 1.3; }
.faq dd { margin: 0; color: var(--muted); max-width: 62ch; }
@media (max-width: 1023px) {
  .faq-grid { grid-template-columns: 1fr; gap: 36px; }
  .faq-grid .section-head { position: static; }
}

/* Contact */
.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  align-items: center;
  padding: 56px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
}
.contact-text { display: grid; gap: 16px; }
.contact-text p { font-size: var(--t-lead); color: var(--muted); max-width: 44ch; }
.contact-action { display: grid; gap: 16px; justify-items: start; }
.contact .email {
  font-family: var(--f-head);
  font-size: clamp(1.25rem, 0.8vw + 1rem, 1.6rem);
  font-weight: 600;
  color: var(--ink);
  text-decoration-color: var(--line-strong);
}
.contact .email:hover { text-decoration-color: currentColor; color: var(--action); }
@media (max-width: 1023px) {
  .contact-card { grid-template-columns: 1fr; gap: 32px; padding: 40px; }
}
@media (max-width: 639px) {
  .contact-card { padding: 28px 20px; }
  .contact-action, .contact .btn { width: 100%; }
}

/* Pages de texte (accord, mentions, confidentialité, désinscription, 404) */
.page { padding: 72px 0 112px; }
.page-head {
  display: grid;
  gap: 16px;
  max-width: 46rem;
  padding-bottom: 40px;
  margin-bottom: 48px;
  border-bottom: 2px solid var(--ink);
}
.page-head h1 { font-size: clamp(2rem, 1.4vw + 1.5rem, 3rem); }
.page-head p { font-size: var(--t-lead); color: var(--muted); }
.prose { max-width: 46rem; }
.prose h2 { font-size: clamp(1.35rem, 0.5vw + 1.2rem, 1.7rem); margin: 56px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 28px 0 8px; font-size: 1.15rem; }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 24px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--muted); }
.prose ol.articles { list-style: none; padding: 0; counter-reset: art; margin-bottom: 32px; }
.prose ol.articles > li {
  counter-increment: art;
  position: relative;
  padding: 22px 0 22px 56px;
  border-top: 1px solid var(--line);
  margin: 0;
}
.prose ol.articles > li::before {
  content: counter(art);
  position: absolute;
  left: 0;
  top: 20px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1.5px solid var(--action);
  color: var(--action);
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 1rem;
}
.prose ol.articles ul { margin: 12px 0 0; }
.parties {
  padding: 24px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  margin-bottom: 32px;
  box-shadow: var(--shadow);
}
.parties p + p { margin-top: 12px; }
.notice {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 4px 14px;
  padding: 20px 24px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--tint);
  color: var(--tint-ink);
  margin: 32px 0;
}
.notice::before {
  content: "";
  grid-row: 1 / span 3;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 999px;
  border: 1.75px solid currentColor;
  background:
    linear-gradient(currentColor, currentColor) 50% 5px / 2px 8px no-repeat,
    linear-gradient(currentColor, currentColor) 50% 15px / 2px 2px no-repeat;
}
.notice p { margin: 0; grid-column: 2; }
.notice a { color: inherit; }
/* Champs à compléter : visibles mais discrets */
.todo {
  display: inline;
  padding: 0 4px;
  border-radius: 4px;
  background: var(--alt);
  color: var(--muted);
  font-size: 0.9em;
  font-style: italic;
  box-shadow: inset 0 -1px 0 var(--line-strong);
  white-space: nowrap;
}
.table-wrap { overflow-x: auto; margin: 0 0 20px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
th, td { text-align: left; vertical-align: top; padding: 14px 18px; border-bottom: 1px solid var(--line); }
tbody tr:last-child td { border-bottom: 0; }
thead th { font-size: var(--t-label); font-weight: 650; color: var(--muted); background: var(--alt); border-bottom-color: var(--line-strong); }
dl.facts { display: grid; grid-template-columns: minmax(160px, 15em) 1fr; margin: 0 0 16px; border-top: 1px solid var(--line); }
dl.facts dt, dl.facts dd { padding: 12px 0; border-bottom: 1px solid var(--line); margin: 0; }
dl.facts dt { font-weight: 600; padding-right: 16px; }
.page-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 24px; }
@media (max-width: 639px) {
  .page { padding: 40px 0 72px; }
  .page-head { padding-bottom: 28px; margin-bottom: 36px; }
  .parties { padding: 20px; }
  .prose ol.articles > li { padding-left: 46px; }
  .prose ol.articles > li::before { width: 30px; height: 30px; font-size: 0.95rem; }
  .table-wrap { margin-left: calc(-1 * var(--gut)); margin-right: calc(-1 * var(--gut)); border-radius: 0; border-left: 0; border-right: 0; }
  th, td { padding: 12px var(--gut); }
  th + th, td + td { padding-left: 8px; }
  dl.facts { grid-template-columns: 1fr; }
  dl.facts dt { border-bottom: 0; padding-bottom: 0; }
  dl.facts dd { padding-top: 4px; }
  .page .btn { width: 100%; }
}

/* Pied de page */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--alt);
  padding: 72px 0 40px;
  font-size: var(--t-small);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
}
.footer-grid h2 {
  font-family: var(--f-text);
  font-size: var(--t-label);
  font-weight: 650;
  color: var(--muted);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}
.footer-grid ul { list-style: none; display: grid; gap: 4px; }
.footer-grid p { color: var(--muted); }
.footer-brand p { margin-top: 16px; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer .footer-grid li a { display: inline-block; padding: 6px 0; background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-position: 0 85%; background-repeat: no-repeat; transition: background-size 0.3s var(--ease); }
.site-footer .footer-grid li a:hover { color: var(--action); background-size: 100% 1px; }
.legal-row {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--t-label);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}
@media (max-width: 899px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 639px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .site-footer { padding: 56px 0 32px; }
  .site-footer .brand-tag { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .btn:hover, .btn:active { transform: none; }
}

@media print {
  .site-header, .site-footer, .skip, .plan { display: none; }
  body { background: #fff; color: #000; }
  .band { background: #fff; color: #000; }
}
