/* Pages de contenu de cesite.be (prix, villes, métiers).
   Même langage que l'accueil — fond bleu nuit, Space Grotesk, accent blanc —
   mais en HTML statique : ces pages doivent se lire sans JavaScript, se charger
   en un instant et rester lisibles par n'importe quel moteur. */
:root {
  --bg: oklch(0.13 0.012 250);
  --bg-deep: oklch(0.10 0.012 250);
  --surface: oklch(0.17 0.014 250);
  --line: oklch(0.30 0.014 250 / 0.45);
  --line-soft: oklch(0.30 0.014 250 / 0.22);
  --fg: oklch(0.97 0.005 250);
  --fg-mute: oklch(0.74 0.012 250);
  --fg-dim: oklch(0.58 0.012 250);
  --font-display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}
/* Le thème suit celui de l'accueil, pas le réglage du système : l'accueil est
   sombre par défaut et retient le choix du visiteur (bouton ☾ / ☀) dans
   localStorage « vds-theme ». Avant, un Mac réglé en clair affichait ces pages
   en blanc juste après un accueil bleu nuit — deux sites différents à l'œil. */
:root[data-theme="light"] {
  --bg: oklch(0.98 0.003 250);
  --bg-deep: oklch(1 0 0);
  --surface: oklch(0.955 0.005 250);
  --line: oklch(0.20 0.014 250 / 0.2);
  --line-soft: oklch(0.20 0.014 250 / 0.1);
  --fg: oklch(0.15 0.012 250);
  --fg-mute: oklch(0.40 0.012 250);
  --fg-dim: oklch(0.55 0.012 250);
}

* { box-sizing: border-box; }
/* L'attribut hidden doit toujours gagner : sans cette règle, un bloc en
   display:flex (le bilan des avis) restait visible alors qu'il était masqué. */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--font-display); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--fg); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 4px; }

/* ── barre ── */
.barre {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px clamp(20px, 4vw, 56px);
  background: color-mix(in oklch, var(--bg-deep) 82%, transparent);
  backdrop-filter: blur(12px) saturate(1.3);
  border-bottom: 1px solid var(--line-soft);
}
.marque { font-weight: 700; font-size: 20px; letter-spacing: -0.02em; text-decoration: none; margin: 0; }
.marque span { color: var(--fg-dim); }
.barre nav { display: flex; align-items: center; gap: clamp(12px, 2.5vw, 28px); font-size: 15px; }
.barre nav a { text-decoration: none; color: var(--fg-mute); }
.barre nav a:hover { color: var(--fg); }
.barre .bouton-nav {
  color: var(--bg-deep); background: var(--fg); padding: 8px 16px;
  border-radius: 999px; font-weight: 600;
}
.barre .bouton-nav:hover { color: var(--bg-deep); opacity: .88; }
@media (max-width: 520px) { .barre nav a:not(.bouton-nav) { display: none; } }

/* ── contenu ── */
main {
  max-width: 50rem; margin: 0 auto;
  padding: clamp(28px, 5vw, 56px) clamp(20px, 4vw, 40px) 0;
}
.fil { font-family: var(--font-mono); font-size: 12.5px; color: var(--fg-dim); margin: 0 0 36px; }
.fil a { color: var(--fg-dim); text-decoration: none; }
.fil a:hover { color: var(--fg); }
.surtitre {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--fg-mute); margin: 0 0 16px;
}
h1 {
  font-size: clamp(2.1rem, 5.4vw, 3.4rem); line-height: 1.04;
  letter-spacing: -0.035em; font-weight: 600; margin: 0 0 28px; text-wrap: balance;
}
.chapo { font-size: clamp(1.1rem, 2vw, 1.28rem); color: var(--fg-mute); margin: 0 0 8px; max-width: 44rem; }
section { padding-top: clamp(40px, 6vw, 64px); }
h2 {
  font-size: clamp(1.4rem, 3vw, 1.85rem); line-height: 1.15;
  letter-spacing: -0.025em; font-weight: 600; margin: 0 0 18px; text-wrap: balance;
}
h3 { font-size: 1.05rem; font-weight: 600; margin: 0 0 6px; letter-spacing: -0.01em; }
p { margin: 0 0 16px; }
section p { color: var(--fg-mute); max-width: 44rem; }
section p strong, section li strong { color: var(--fg); font-weight: 600; }

/* ── chiffres locaux ── */
.chiffre {
  font-size: clamp(1.15rem, 2.3vw, 1.4rem); line-height: 1.4; color: var(--fg) !important;
  border-left: 2px solid var(--fg); padding-left: 18px; margin: 0 0 24px;
}
.registre { margin: 0 0 18px; border-top: 1px solid var(--line-soft); }
.registre .ligne {
  display: flex; justify-content: space-between; align-items: baseline; gap: 8px 24px;
  flex-wrap: wrap; padding: 13px 0; border-bottom: 1px solid var(--line-soft);
}
.registre dt { margin: 0; }
.registre dd {
  margin: 0; font-family: var(--font-mono); font-size: 14px; color: var(--fg-mute);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.source { font-size: 13.5px; color: var(--fg-dim) !important; }

/* ── formules ── */
.formules { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.2rem), 1fr)); margin-bottom: 16px; }
.formule { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 14px; padding: 22px; }
.formule.en-avant { border-color: var(--fg); }
.formule p { font-size: 15px; margin: 0; color: var(--fg-mute); }
.formule .prix {
  font-size: 2.3rem; font-weight: 600; letter-spacing: -0.04em; line-height: 1;
  color: var(--fg); margin: 10px 0 14px; font-variant-numeric: tabular-nums;
}
/* « HTVA » : la même petite étiquette que dans le cadre des tarifs de l'accueil —
   mono, capitales, discrète, sous le montant. Collée au prix en gros caractères,
   elle jurait avec le reste du site. */
.formule .prix small {
  display: block; margin-top: 7px; font-family: var(--font-mono); font-size: 10.5px;
  font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-dim);
}
.note { font-size: 14.5px; color: var(--fg-dim) !important; }

/* ── listes ── */
.coches, .etapes { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-soft); }
.coches li, .etapes li { padding: 13px 0 13px 30px; border-bottom: 1px solid var(--line-soft); position: relative; color: var(--fg-mute); }
.coches li::before { content: "→"; position: absolute; left: 0; color: var(--fg); font-family: var(--font-mono); }
.etapes { counter-reset: etape; }
.etapes li { counter-increment: etape; padding-left: 44px; }
.etapes li::before {
  content: "0" counter(etape); position: absolute; left: 0; top: 15px;
  font-family: var(--font-mono); font-size: 13px; color: var(--fg-dim);
}

/* ── questions ── */
details { border-bottom: 1px solid var(--line-soft); }
details:first-of-type { border-top: 1px solid var(--line-soft); }
summary { cursor: pointer; padding: 16px 28px 16px 0; font-weight: 500; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 2px; top: 13px; font-size: 22px; color: var(--fg-mute); font-weight: 400; }
details[open] summary::after { content: "−"; }
details p { padding-bottom: 8px; }

/* ── appel ── */
.appel {
  margin-top: clamp(48px, 7vw, 80px); padding: clamp(28px, 4vw, 44px);
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: 18px;
}
.appel h2 { margin-bottom: 10px; }
.bouton {
  display: inline-block; margin-top: 8px; background: var(--fg); color: var(--bg-deep);
  text-decoration: none; font-weight: 600; padding: 14px 26px; border-radius: 999px;
  overflow-wrap: anywhere;
}
.bouton:hover { opacity: .88; }

/* ── pied ── */
.pied { margin-top: clamp(56px, 8vw, 96px); border-top: 1px solid var(--line-soft); padding: 44px clamp(20px, 4vw, 56px) 56px; font-size: 15px; color: var(--fg-mute); }
.pied-grille { max-width: 72rem; margin: 0 auto; display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
.pied h2 { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-dim); font-weight: 500; margin: 0 0 14px; }
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.pied a { color: var(--fg-mute); text-decoration: none; overflow-wrap: anywhere; }
.pied a:hover { color: var(--fg); }
.pied .marque { color: var(--fg); margin-bottom: 10px; }

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