/* ---------------------------------------------------------------------
   siteaccessible.fr

   Register: neo-grotesque restraint (Geist, tight, airy, near-monochrome)
   with Swiss structural marking on the data — short accent ticks, ruled
   figure groups, small mono labels. Minimal, but never bare: every number
   that matters is marked.

   SYSTEM
   TYPE    Geist for everything, hierarchy from size and weight.
           Geist Mono only for labels, references and the colophon.
   INK     warm-neutral greys, no blue bias (a blue-biased grey family is
           what sends light surfaces lavender).
   ACCENT  one blue. Ticks, rules, links, figures. Never a fill or a tint.
   --------------------------------------------------------------------- */

:root {
  --paper:      #fcfcfc;
  --paper-pure: #ffffff;
  --paper-sunk: #f4f4f3;
  --ink:        #0f1011;
  --ink-muted:  #53565a;
  --ink-subtle: #6b6f74;
  --rule:       #0f1011;
  --hair:       #e3e3e2;
  --hair-soft:  #eeeeed;
  --accent:     #15509e;
  --accent-deep:#0d3a74;

  --sans: 'Geist', 'Archivo', system-ui, -apple-system, sans-serif;
  --mono: 'Geist Mono', 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --measure: 66ch;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 1rem; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-weight: 500; letter-spacing: -0.035em; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; background: var(--ink); color: var(--paper-pure); padding: 10px 16px; z-index: 20; }
.skip:focus { left: 0; }

.wrap { width: min(100% - 2.5rem, 64rem); margin-inline: auto; }
.narrow { max-width: var(--measure); margin-right: auto; }

/* the mono voice: labels, references, colophon — nothing else */
.brand, .site-nav a, .stats span, .note, .obligations cite,
.site-footer a, .site-footer p, .price-note, .tiers dt { font-family: var(--mono); }

/* ---------- masthead ---------- */
.site-header { border-bottom: 1px solid var(--hair); background: var(--paper); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; gap: .25rem 2rem;
  align-items: baseline; justify-content: space-between; padding-block: 1.1rem;
}
.brand { font-size: .8125rem; letter-spacing: .02em; color: var(--ink); text-decoration: none; font-weight: 500; }
.brand span { color: var(--ink-subtle); }
.site-nav ul { display: flex; flex-wrap: wrap; gap: .25rem 1.75rem; list-style: none; margin: 0; padding: 0; }
.site-nav li { display: flex; }
.site-nav a {
  font-size: .75rem; letter-spacing: .01em; color: var(--ink-muted); text-decoration: none;
  display: inline-block; padding-block: .35rem; min-height: 24px; position: relative;
}
.site-nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: .1rem; height: 1.5px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
}
.site-nav a:hover, .site-nav a:focus-visible { color: var(--ink); }
.site-nav a:hover::after, .site-nav a:focus-visible::after { transform: scaleX(1); }

/* ---------- opening ---------- */
.hero { padding-block: 4.5rem 2.5rem; }
.hero h1 {
  font-size: clamp(2rem, 1.2rem + 3vw, 3.25rem); line-height: 1.04;
  margin: 0 0 1.25rem; max-width: 17ch; text-wrap: balance;
}
.lede { font-size: 1.125rem; line-height: 1.5; color: var(--ink-muted); margin: 0; max-width: 48ch; }

/* key figures: Swiss marking inside a minimal page.
   A heavy rule opens the group, a short accent tick opens each figure. */
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  list-style: none; margin: 3.5rem 0 0; padding: 0;
  border-top: 2px solid var(--rule);
}
.stats > li { padding: 1.25rem 1.75rem 1.25rem 0; border-right: 1px solid var(--hair); }
.stats > li:last-child { border-right: 0; }
.stats > li::before {
  content: ''; display: block; width: 1.5rem; height: 2px;
  background: var(--accent); margin-bottom: .9rem;
}
.stats b, .stats strong {
  display: block; font-size: 2rem; font-weight: 500; line-height: 1;
  letter-spacing: -0.05em; font-variant-numeric: tabular-nums;
}
.stats span {
  display: block; margin-top: .55rem; font-size: .6875rem; line-height: 1.45;
  color: var(--ink-subtle); letter-spacing: .01em;
}

.callout { margin-block: 2.75rem; padding-left: 1.25rem; border-left: 2px solid var(--accent); }
.callout p { margin: 0; color: var(--ink-muted); }

/* ---------- sections, each opened by a tick ---------- */
section { padding-block: 3.5rem; border-top: 1px solid var(--hair); }
section > .wrap > h2::before, section > .wrap > .narrow > h2::before {
  content: ''; display: block; width: 1.5rem; height: 2px;
  background: var(--accent); margin-bottom: 1.1rem;
}
section h2 { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); line-height: 1.15; margin: 0 0 .85rem; text-wrap: balance; }
section p { margin: 0 0 .9rem; }
.note { font-size: .75rem; color: var(--ink-subtle); margin-top: 2rem; line-height: 1.55; }

.obligations { list-style: none; counter-reset: ob; margin: 2.25rem 0 0; padding: 0; }
.obligations > li { counter-increment: ob; padding: 1.75rem 0; border-top: 1px solid var(--hair-soft); }
.obligations > li:first-child { border-top: 0; padding-top: 0; }
.obligations h3 { font-size: 1.125rem; margin: 0 0 .6rem; position: relative; padding-left: 3rem; }
.obligations h3::before {
  content: counter(ob, decimal-leading-zero);
  position: absolute; left: 0; top: .15em; font-family: var(--mono);
  font-size: .8125rem; font-weight: 400; color: var(--accent); font-variant-numeric: tabular-nums;
}
.obligations p { margin: 0 0 .7rem 3rem; color: var(--ink-muted); max-width: var(--measure); }
.obligations p:last-of-type { margin-bottom: 0; }
.obligations cite {
  display: block; margin: .7rem 0 0 3rem; font-style: normal;
  font-size: .6875rem; color: var(--ink-subtle); letter-spacing: .01em; line-height: 1.5;
}

/* ---------- prestations ---------- */
.offers { margin: 2rem 0 0; padding: 0; list-style: none; border-top: 2px solid var(--rule); }
.offer { padding: 1.75rem 0; border-bottom: 1px solid var(--hair-soft); }
.offer h3 { font-size: 1.125rem; margin: 0 0 .25rem; }
.offer-for { color: var(--ink-subtle); margin: 0 0 1rem; font-size: .9375rem; }
.offer-list { list-style: none; margin: 0; padding: 0; font-size: .9375rem; max-width: var(--measure); }
.offer-list li { padding-left: 1.1rem; margin-bottom: .35rem; color: var(--ink-muted); position: relative; }
.offer-list li::before { content: ''; position: absolute; left: 0; top: .72em; width: 5px; height: 1.5px; background: var(--hair); }

.tiers { margin: 1rem 0 1.25rem; padding: 0; max-width: 34rem; }
.tiers > div { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; padding: .45rem 0; border-bottom: 1px solid var(--hair-soft); }
.tiers dt { color: var(--ink-muted); font-size: .75rem; letter-spacing: .01em; }
.tiers dd { margin: 0; font-size: .9375rem; font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }

.price { margin: 1.1rem 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem 1rem; }
.amount { font-size: 1.5rem; font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; letter-spacing: -0.04em; }
.price-note { font-size: .6875rem; color: var(--ink-subtle); letter-spacing: .01em; }

/* ---------- funding ---------- */
#financement { background: var(--paper-sunk); }
#financement ul { list-style: none; margin: 1.5rem 0; padding: 0; max-width: var(--measure); }
#financement li { padding: .4rem 0 .4rem 1.1rem; position: relative; color: var(--ink-muted); }
#financement li::before { content: ''; position: absolute; left: 0; top: .85em; width: 5px; height: 1.5px; background: var(--accent); }

/* ---------- contact ---------- */
.contact-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.btn {
  display: inline-block; font-size: .875rem; font-weight: 500;
  background: var(--ink); color: var(--paper-pure); text-decoration: none;
  padding: .8rem 1.5rem; border: 1.5px solid var(--ink);
}
.btn:hover, .btn:focus-visible { background: var(--accent-deep); border-color: var(--accent-deep); color: var(--paper-pure); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover, .btn-ghost:focus-visible { background: var(--ink); color: var(--paper-pure); }

/* ---------- colophon ---------- */
.site-footer { border-top: 2px solid var(--rule); padding-block: 1.75rem; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: .25rem 1.75rem; list-style: none; margin: 0 0 .9rem; padding: 0; }
.site-footer li { display: flex; }
.site-footer a { font-size: .75rem; color: var(--ink-muted); text-decoration: none; display: inline-block; padding-block: .3rem; min-height: 24px; }
.site-footer a:hover, .site-footer a:focus-visible { color: var(--accent); }
.site-footer p { margin: 0; font-size: .6875rem; color: var(--ink-subtle); letter-spacing: .01em; }

@media (max-width: 48rem) {
  .wrap { width: min(100% - 2rem, 64rem); }
  .hero { padding-block: 2.75rem 1.5rem; }
  .stats { grid-template-columns: 1fr; }
  .stats > li { border-right: 0; border-bottom: 1px solid var(--hair-soft); padding-right: 0; }
  .stats > li:last-child { border-bottom: 0; }
  section { padding-block: 2.5rem; }
  .obligations h3 { padding-left: 0; }
  .obligations h3::before { position: static; display: block; margin-bottom: .3rem; }
  .obligations p, .obligations cite { margin-left: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .site-nav a::after { transition: transform .15s ease; }
}

.brand { display: inline-block; padding-block: .3rem; min-height: 24px; }

/* =====================================================================
   OBSERVATOIRE

   La page de données. Le système reste le même — une accent, des filets,
   des ticks — mais le statut n'est pas codé par la couleur : il est codé
   par la densité. Un manquement est plein et sombre, une conformité est
   bleue, un indéterminé est un contour vide. Deux teintes, aucune
   sémaphore rouge/vert, et la lecture tient en noir et blanc.
   ===================================================================== */

.vh {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.eyebrow {
  font-family: var(--mono); font-size: .6875rem; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-subtle); margin: 0 0 1.5rem;
}

/* the opening: one number, large enough to be the page's thesis */
.obs-hero { padding-block: 4rem 2.5rem; }
.obs-hero h1 { max-width: 22ch; font-size: clamp(1.875rem, 1.1rem + 2.6vw, 2.875rem); }
.headline {
  display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  gap: 1.5rem 3rem; align-items: start;
  margin-top: 2.5rem; padding-top: 2.25rem; border-top: 2px solid var(--rule);
}
.headline-figure { margin: 0; }
.headline-figure b {
  display: block; font-size: clamp(4rem, 2rem + 11vw, 8.5rem); font-weight: 500;
  line-height: .82; letter-spacing: -0.055em; font-variant-numeric: tabular-nums;
}
.headline-figure span {
  display: block; margin-top: 1rem; max-width: 34ch;
  font-family: var(--mono); font-size: .6875rem; line-height: 1.5;
  color: var(--ink-subtle); letter-spacing: .01em;
}
.headline-figure span::before {
  content: ''; display: block; width: 1.5rem; height: 2px;
  background: var(--accent); margin-bottom: .75rem;
}
.headline .lede { max-width: 44ch; }

/* ---------- tables ---------- */
.table-scroll { overflow-x: auto; margin-top: 2.25rem; }
table.data {
  width: 100%; border-collapse: collapse; font-size: .875rem;
  font-variant-numeric: tabular-nums;
}
table.data caption {
  text-align: left; font-family: var(--mono); font-size: .6875rem;
  letter-spacing: .02em; color: var(--ink-subtle); padding-bottom: .85rem;
}
table.data th, table.data td { padding: .6rem .9rem .6rem 0; text-align: left; vertical-align: baseline; }
table.data thead th {
  font-family: var(--mono); font-weight: 400; font-size: .625rem;
  letter-spacing: .04em; text-transform: uppercase; color: var(--ink-subtle);
  border-bottom: 2px solid var(--rule); padding-bottom: .6rem; white-space: nowrap;
}
table.data tbody th { font-weight: 400; color: var(--ink); padding-right: 1.5rem; width: 30%; min-width: 11rem; }
table.data tbody tr { border-bottom: 1px solid var(--hair-soft); }
table.data tbody tr:last-child { border-bottom: 0; }
table.data td.n { text-align: right; white-space: nowrap; color: var(--ink-muted); }
table.data td.n.strong { color: var(--ink); font-weight: 500; }
table.data td.n.muted { color: var(--ink-subtle); }
table.data td.src { font-size: .6875rem; line-height: 1.45; color: var(--ink-subtle); min-width: 13rem; }
/* 2.5.8 : ces liens ne sont pas « dans une phrase », l'exemption ne joue pas. */
table.data td.src a { display: inline-block; padding-block: .35rem; min-height: 24px; }
table.data td.viz { width: 32%; min-width: 7rem; }
table.data.checks tbody th { width: 34%; min-width: 13rem; }

/* ---------- proportional bars ---------- */
.bar { display: flex; height: 10px; width: 100%; background: var(--paper-sunk); overflow: hidden; }
.bar.solo { background: none; align-items: flex-end; border-bottom: 1px solid var(--hair-soft); }
.seg { display: block; width: var(--w); height: 100%; }
.is-fail { background: var(--ink); }
.is-pass { background: var(--accent); }
.is-unknown {
  background: repeating-linear-gradient(
    135deg, var(--hair) 0 2px, transparent 2px 5px
  );
}
.is-na { background: var(--hair-soft); }
.is-accent { background: var(--accent); }

/* ---------- map ---------- */
.map { margin: 2.25rem 0 0; }
.map svg { display: block; width: 100%; height: auto; }
.map circle { stroke-width: 1.25; }
.map figcaption {
  display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; align-items: center;
  margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--hair);
  font-family: var(--mono); font-size: .6875rem; color: var(--ink-subtle); letter-spacing: .01em;
}
.key { display: inline-flex; align-items: center; gap: .5rem; }
.swatch { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.sw-dot { background: var(--ink); }
.key-note { margin-left: auto; }

/* ---------- two columns ---------- */
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: 0 3rem; }

/* ---------- method and questions ---------- */
.limits { list-style: none; margin: 1.25rem 0 1.5rem; padding: 0; max-width: var(--measure); }
.limits li { padding: .4rem 0 .4rem 1.1rem; position: relative; color: var(--ink-muted); }
.limits li::before { content: ''; position: absolute; left: 0; top: .85em; width: 5px; height: 1.5px; background: var(--hair); }

.faq { margin: 2rem 0 0; }
.faq dt {
  font-weight: 500; margin-top: 1.75rem; padding-top: 1.75rem;
  border-top: 1px solid var(--hair-soft); text-wrap: balance;
}
.faq dt:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.faq dd { margin: .6rem 0 0; color: var(--ink-muted); max-width: var(--measure); }

code { font-family: var(--mono); font-size: .9em; }

@media (max-width: 48rem) {
  .headline { grid-template-columns: 1fr; gap: 1.75rem; }
  .headline-figure span { max-width: none; }
  .two-col { gap: 0; }
  table.data tbody th { min-width: 11rem; }
  table.data.checks tbody th { min-width: 12rem; }
  .key-note { margin-left: 0; }
}

.figures .stats { margin-top: 0; }

/* ---------- le tampon de relevé ---------- */
.stamp-band { padding-block: 1.25rem; border-top: 1px solid var(--hair); }
.stamp {
  margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem .75rem;
  font-family: var(--mono); font-size: .75rem; letter-spacing: .01em; color: var(--ink);
}
.stamp-key { color: var(--ink-subtle); }
.stamp-key::before {
  content: ''; display: inline-block; width: .75rem; height: 2px; background: var(--accent);
  margin-right: .5rem; vertical-align: .22em;
}
.stamp-sep { color: var(--hair); }
@media (max-width: 48rem) {
  .stamp { gap: .2rem .6rem; font-size: .6875rem; }
  .stamp-sep { display: none; }
  .stamp-key { flex: 1 0 100%; margin-top: .45rem; }
  .stamp-key:first-child { margin-top: 0; }
}

/* ---------- listes de définitions des pages légales ---------- */
.legal-list { margin: 1.75rem 0 0; padding: 0; max-width: var(--measure); }
.legal-list dt {
  font-family: var(--mono); font-size: .6875rem; letter-spacing: .02em;
  color: var(--ink-subtle); padding-top: .9rem; border-top: 1px solid var(--hair-soft);
}
.legal-list dt:first-child { padding-top: 0; border-top: 0; }
.legal-list dd { margin: .3rem 0 .9rem; }

/* ---------- corrections de revue ---------- */
/* 1.4.11 : ces barres portent de l'information, donc 3:1 minimum contre le
   papier. Plutôt qu'un aplat sombre, un trait : le contour porte le contraste,
   les remplissages restent clairs. #767676 donne 4,5:1 contre #fcfcfc. */
.bar {
  background: var(--paper-sunk);
  box-shadow: inset 0 0 0 1px #767676;
}
.is-unknown { background: repeating-linear-gradient(135deg, #767676 0 2px, transparent 2px 5px); }
.is-na { background: repeating-linear-gradient(90deg, #767676 0 1px, transparent 1px 4px); }
.map .outline { fill: #f4f4f3; stroke: #767676; stroke-width: 1; }

/* Le conteneur de défilement doit être atteignable au clavier. */
.table-scroll:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.bar-key {
  display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; align-items: center;
  margin: 2rem 0 0; font-family: var(--mono); font-size: .6875rem;
  color: var(--ink-subtle); letter-spacing: .01em;
}
.bar-key .swatch { border-radius: 2px; }
.sw-fail { background: var(--ink); }
.sw-pass { background: var(--accent); }
.sw-unknown { background: repeating-linear-gradient(135deg, #767676 0 2px, #f4f4f3 2px 5px); box-shadow: inset 0 0 0 1px #767676; }
.sw-na { background: repeating-linear-gradient(90deg, #767676 0 1px, #f4f4f3 1px 4px); box-shadow: inset 0 0 0 1px #767676; }
.suppressed { color: var(--ink-subtle); }

/* état de la page courante, visible et pas seulement exposé aux AT */
.site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }

/* ---------- carte nommée ---------- */
.map { position: relative; }
.map .dot { stroke-width: 1; cursor: pointer; }
.map .dot-fail { fill: var(--ink); stroke: var(--ink); fill-opacity: .85; }
.map .dot-pass { fill: var(--accent); stroke: var(--accent-deep); fill-opacity: .95; }
.map .dot-unknown { fill: #f4f4f3; stroke: #767676; }
.map .dot:hover, .map .dot:focus-visible { stroke: var(--accent); stroke-width: 3; outline: none; }

.tip {
  position: absolute; z-index: 5; max-width: 22rem; pointer-events: none;
  background: var(--ink); color: var(--paper-pure);
  padding: .7rem .85rem; font-size: .8125rem; line-height: 1.4;
  display: flex; flex-direction: column; gap: .2rem;
}
.tip[hidden] { display: none; }
.tip strong { font-weight: 500; }
.tip-state { font-family: var(--mono); font-size: .6875rem; letter-spacing: .02em; color: #c9ccd0; }
.tip-score { font-size: .75rem; color: #e4e6e8; }
.tip-list, .tip-note { font-size: .6875rem; color: #b9bcc0; line-height: 1.45; }

table.data.communes tbody th { width: auto; min-width: 9rem; font-weight: 500; }
table.data.communes td.missing { font-size: .75rem; color: var(--ink-muted); line-height: 1.45; min-width: 18rem; }
table.data.communes { font-size: .8125rem; }

/* ---------- marque ---------- */
.brand { display: inline-flex; align-items: center; }
.brand img { display: block; margin-right: .5rem; }

/* ---------- citation de source dans un encadré ---------- */
.callout cite { display: block; margin-top: .7rem; font-style: normal; font-family: var(--mono); font-size: .6875rem; color: var(--ink-subtle); }
