/* PubliRadar, feuille de style des gabarits serveur. Le système de design est
   écrit dans docs/09-vision-produit-design.md : jetons, composants, règles de
   datavis. */

:root {
  --ink: #0e1726;
  --ink-2: #3a4656;
  --muted: #5a6573;
  --brand: #1f6f5c;
  --brand-strong: #17584a;
  --brand-wash: #e9f3ef;
  --accent: #1f6f5c;
  --accent-wash: #e9f3ef;
  --mark: #eb6834;
  --bg: #f5f6f8;
  --card: #ffffff;
  --line: #e3e7ec;
  --line-2: #cfd6de;
  --gold: #6f5310;
  --gold-wash: #fbf3dc;
  --gap: #9a3412;
  --gap-wash: #fdf0e8;
  --data-1: #1f8a63;
  --data-2: #eb6834;
  --data-3: #2a78d6;
  --data-4: #9aa4af;
  --map-0: #e9ecef;
  --map-1: #c7e9d6;
  --map-2: #8fd0ae;
  --map-3: #4fae84;
  --map-4: #1f8a63;
  --map-5: #0d5a40;
  --page: 1200px;
  --radius: 10px;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px;
  --text-xs: 12px; --text-sm: 13px; --text-md: 16px; --text-lg: 20px; --text-xl: 26px; --text-2xl: 34px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.55;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
/* A link in the page body is underlined, not told by its colour alone (WCAG
   1.4.1). The header and footer navigation stay as they are. */
main.container a { text-decoration: underline; text-underline-offset: 0.15em; }
/* In a table the underline stays, lighter, so a column of links does not
   read as a column of rules; it takes its full colour back on hover. */
main.container table.data a { text-decoration-color: var(--line-2); }
main.container table.data a:hover,
main.container table.data a:focus-visible { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ---------- masthead ----------
   One line on a wide screen; under 900 px the sections wrap onto their own
   lines below the brand, every one visible without a sideways swipe (QA B-B1). */
.nav { background: var(--card); border-bottom: 1px solid var(--line); }
.nav-inner {
  max-width: var(--page); margin: 0 auto; padding: 0 24px;
  display: flex; flex-wrap: nowrap; align-items: center; gap: 28px; min-height: 60px;
}
.brand { font-weight: 800; font-size: 19px; color: var(--ink); text-decoration: none; white-space: nowrap; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand .dot { color: var(--brand); }
.nav-links {
  display: flex; flex-wrap: nowrap; gap: 22px; flex: 1; min-width: 0;
  overflow-x: auto; scrollbar-width: none; padding: 18px 0;
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a { display: inline-block; min-height: 24px; line-height: 24px; color: var(--ink-2); font-size: 14px; white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; padding: 8px 12px; background: var(--card); border: 1px solid var(--brand); border-radius: 6px; }
.skip:focus { left: 8px; }
.ref { white-space: nowrap; }
.nav-links a.active { color: var(--brand); font-weight: 650; box-shadow: inset 0 -2px 0 var(--brand); }
.nav-account { margin-left: auto; font-size: 14px; font-weight: 650; white-space: nowrap; }

.container { max-width: var(--page); margin: 0 auto; padding: 24px; }

.crumb { font-size: var(--text-sm); color: var(--muted); margin-bottom: var(--s3); }
.crumb a { display: inline-block; padding: 4px 0; color: var(--muted); text-decoration: underline; }

.page-head { margin-bottom: 20px; }
.page-head h1 { font-size: 28px; letter-spacing: -0.01em; }
h1 { overflow-wrap: anywhere; line-height: 1.2; text-wrap: balance; }
.lede { color: var(--ink-2); margin-top: 6px; }
.src.summary { margin-top: var(--s5); }

.badge {
  display: inline-block; padding: 2px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 600; background: var(--brand-wash);
  color: var(--brand-strong); vertical-align: middle;
}
.badge-pending, .badge-unidentified, .badge-no_signal {
  background: var(--gold-wash); color: var(--gold);
}
.badge-carried { background: var(--gold-wash); color: var(--gold); }

.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; margin-bottom: 18px;
}
.card h2 { font-size: 18px; letter-spacing: -0.005em; }
.card h3 { font-size: 15px; margin-top: 18px; }
.card-sub { font-size: 13px; color: var(--muted); margin: 4px 0 12px; }
/* The reset strips list padding; a plain list in a card takes back the indent its bullets need. */
.card > :is(ul, ol):not([class]), .card details > :is(ul, ol):not([class]) { padding-left: var(--s5); margin: var(--s1) 0 var(--s3); }

.kpi-label { font-size: 12px; color: var(--muted); }
.amounts { list-style: none; padding: 0; margin: 0 0 8px; }
.amounts li { margin-bottom: 4px; }
/* The carried block is set apart on purpose: these marchés are not this
   buyer's, and the separation is the whole point of 03 §3.4. */
.card.carried { border-left: 3px solid var(--gold); }

/* A table wider than its column scrolls inside its own box instead of
   pushing the page; the shadows at either edge say there is more of it. */
table.data {
  display: block; width: 100%; overflow-x: auto; font-size: 14px;
  background:
    linear-gradient(to right, var(--card) 30%, rgba(255, 255, 255, 0)) left / 24px 100% no-repeat local,
    linear-gradient(to left, var(--card) 30%, rgba(255, 255, 255, 0)) right / 24px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgba(14, 23, 38, 0.16), transparent) left / 10px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgba(14, 23, 38, 0.16), transparent) right / 10px 100% no-repeat scroll;
}
table.data > tbody { display: table; width: 100%; border-collapse: collapse; }
table.data th {
  text-align: left; font-size: 12px; color: var(--muted); font-weight: 600;
  padding: 6px 8px; border-bottom: 1px solid var(--line);
}
table.data td { padding: 8px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data tr:last-child td, table.data tr:last-child th { border-bottom: none; }
table.data td.num, table.data th.num { text-align: right; white-space: nowrap; }
table.data tr.self td { background: var(--accent-wash); }
table.data tr.total td { border-top: 2px solid var(--line); background: #fafbfc; }
table.data.pending td { background: var(--gold-wash); }
table.data.calendar meter {
  appearance: none; -webkit-appearance: none; width: 6rem; height: 0.6em;
  margin-left: 6px; vertical-align: middle; border: none; border-radius: 2px;
  background: var(--accent-wash);
}
table.data.calendar meter::-webkit-meter-bar { background: var(--accent-wash); border: none; border-radius: 2px; height: 0.6em; }
table.data.calendar meter::-webkit-meter-optimum-value,
table.data.calendar meter::-webkit-meter-suboptimum-value,
table.data.calendar meter::-webkit-meter-even-less-good-value { background: var(--data-1); border-radius: 2px; }
table.data.calendar meter::-moz-meter-bar { background: var(--data-1); border-radius: 2px; }

/* `white-space` is inherited, and `td.num` sets `nowrap` so a figure never
   breaks away from its unit. Only `.fig` keeps it, from the cell; a gloss, a
   stated gap and a unit label are prose and wrap like prose. */
.sub, .gap, .empty, .unit, td.note { white-space: normal; }
.sub { display: block; font-size: 12px; color: var(--muted); }
td.note { font-size: 12px; color: var(--muted); }
td.proof, table.data.facts td { overflow-wrap: anywhere; }
/* A list shows at most three lines of an objet; its fiche shows it whole. */
.clamp {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: var(--lines, 3);
  line-clamp: var(--lines, 3); overflow: hidden; overflow-wrap: anywhere;
}
.clamp.clamp-2 { -webkit-line-clamp: 2; line-clamp: 2; }
a.whole { overflow-wrap: anywhere; }
a.twin { display: inline-block; min-height: 24px; line-height: 24px; }
@supports not (-webkit-line-clamp: 3) {
  .clamp { display: block; max-height: calc(var(--lines, 3) * 1.55em); }
}
.stack { margin-bottom: 4px; }
.fig { font-variant-numeric: tabular-nums; font-weight: 650; }
.unit { font-size: 12px; color: var(--muted); }

.gap {
  display: inline-block; padding: 1px 7px; border-radius: 4px;
  background: var(--gap-wash); color: var(--gap); font-size: 13px; font-weight: 500;
}
/* `.gap` marks a field the source does not carry or a measure not made;
   `.empty` an expected empty state (no rectificatif, no consultation open). */
.empty { color: var(--muted); font-size: 13px; }
.fig.low { font-weight: 400; }

.src { font-size: 12px; color: var(--muted); margin-top: 10px; }
pre.embed { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; }
.embed-label { display: block; margin-top: 12px; font-size: 13px; color: var(--ink-2); }
textarea.embed { display: block; width: 100%; min-height: 72px; margin-top: 4px; padding: 8px; font: 12px/1.5 ui-monospace, monospace; color: var(--ink); border: 1px solid var(--line-2); border-radius: 6px; resize: vertical; }
.embed-preview img { max-width: 100%; height: auto; }
.volume { font-size: 13px; color: var(--muted); margin-top: 8px; }
.section-head .volume, .card > h2 + .volume { margin: 0; }
.section-head .volume { margin-right: auto; }
nav.pages { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; margin-top: 12px; font-size: 14px; }
details.fold { margin-top: 10px; }
details.fold > summary {
  cursor: pointer; font-size: 13px; color: var(--muted);
  padding: 4px 0; user-select: none;
}
details.fold[open] > summary { color: var(--ink); }
/* A long text printed once (E11-F266): its first lines while closed, whole
   once open, the toggle under it. A browser without ::details-content
   shows the text once open only. */
details.readmore { display: flex; flex-direction: column; margin-top: 0; }
details.readmore > summary { order: 1; list-style: none; color: var(--brand); text-decoration: underline; text-underline-offset: 2px; font-size: var(--text-sm); min-height: 24px; cursor: pointer; }
details.readmore > summary::-webkit-details-marker { display: none; }
details.readmore[open] > summary { display: none; }
#besoin > :not(h2) + dl.facts { margin-top: var(--s4); padding-top: var(--s4); border-top: 1px solid var(--line); }
details.readmore::details-content { content-visibility: visible; }
details.readmore[open] > p.clamp { display: block; -webkit-line-clamp: none; line-clamp: none; overflow: visible; max-height: none; }
ul.reading > li { margin: 0 0 8px; }
ul.reading .calc { display: block; }

footer.site { border-top: 1px solid var(--line); background: var(--card); margin-top: 32px; }
.foot-inner {
  max-width: var(--page); margin: 0 auto; padding: var(--s6) 24px var(--s5);
  font-size: var(--text-xs); color: var(--muted); display: grid; gap: var(--s5);
}
/* The footer groups its links in labelled columns; each link is a line of
   its own, at least 24 px high (WCAG 2.5.8), never cut between two groups. */
.foot-nav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s5); }
.foot-nav .foot-wide { grid-column: span 2; }
.foot-nav .foot-wide ul { columns: 2; column-gap: var(--s5); }
.foot-title { font-size: var(--text-sm); font-weight: 650; color: var(--ink); margin-bottom: var(--s2); }
.foot-nav ul { list-style: none; }
.foot-nav li { break-inside: avoid; }
.foot-nav li a { display: inline-block; padding: var(--s1) 0; min-height: 24px; font-size: var(--text-sm); line-height: 1.4; color: var(--ink-2); }
.foot-fine { display: grid; gap: 6px; border-top: 1px solid var(--line); padding-top: var(--s4); }

.rules { margin: 4px 0 12px; padding-left: 20px; font-size: 13px; color: var(--muted); }
.rules li { margin-bottom: 6px; }
.rules b { color: var(--ink-2); }

.prose .card-sub, .prose td:not(.num) .sub { font-size: 14px; color: var(--ink-2); }

.moved {
  margin: 12px 0 0; padding: 10px 14px; border-radius: 6px;
  border: 1px solid var(--gold); background: var(--gold-wash);
  color: var(--ink-2); font-size: 13px; line-height: 1.5;
}

/* ---------- the search form ---------- */
form.search { max-width: 760px; margin-bottom: 20px; }
form.search > label,
form.search .field label {
  display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 5px;
}
form.search input,
form.search select {
  font: inherit; color: var(--ink); background: var(--card);
  border: 1px solid var(--line-2); border-radius: 6px; width: 100%;
}
form.search input[type="search"] { font-size: 16px; border-radius: 8px; padding: 13px 16px; }
form.search input[type="search"]::placeholder { color: var(--muted); }
form.search .field input,
form.search .field select { font-size: 14px; padding: 10px 12px; }
/* Focus is visible and never removed: the page is served without javascript
   and the keyboard is the only other way to the button. */
form.search input:focus-visible,
form.search select:focus-visible,
form.search button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
form.search button:focus-visible { outline-color: var(--ink); }
.filters {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px; margin: 16px 0 18px;
}
form.search button {
  font: inherit; font-size: 15px; font-weight: 650; color: #fff;
  background: var(--brand); border: 1px solid transparent; border-radius: 8px;
  padding: 11px 24px; cursor: pointer;
}
form.search button:hover { background: var(--brand-strong); }
form.search .row { display: flex; gap: 8px; }
form.search .row input { flex: 1; min-width: 0; }

/* ---------- components of the design system (docs/09 §4) ---------- */

.head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: start; margin-bottom: 20px; }
:is(.head, .fhead) h1 { font-size: 30px; letter-spacing: -0.015em; }
.subtitle { color: var(--ink-2); margin-top: 6px; font-size: 16px; overflow-wrap: anywhere; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 14px; color: var(--ink-2); }
.meta > span + span { padding-left: 14px; border-left: 1px solid var(--line-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chips.identity { list-style: none; margin-top: 10px; gap: 6px; }
.chips.identity .badge { align-self: center; }
.chip {
  display: inline-flex; gap: 6px; align-items: center; padding: 4px 10px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--card);
  font-size: 13px; color: var(--ink-2);
}
/* The header of a fiche (E11-F267): the name and one sentence of what it is
   and where, the contact card beside them, the key facts, the département
   links, then the identifiers; one column under 900 px, the card under the
   sentence. */
.fhead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); grid-template-areas: "who side" "rest side"; grid-template-rows: auto 1fr; gap: 0 var(--s5); align-items: start; margin-bottom: var(--s4); }
.fhead:not(:has(> .side)) { grid-template-columns: minmax(0, 1fr); grid-template-areas: "who" "rest"; }
.fhead > .who { grid-area: who; } .fhead > .side { grid-area: side; display: grid; gap: var(--s3); justify-items: end; } .fhead > .rest { grid-area: rest; }
.fhead .lede { font-size: var(--text-md); overflow-wrap: anywhere; }
.fhead dl.facts { margin-top: var(--s4); }
.fhead .near { font-size: 14px; color: var(--ink-2); margin-top: var(--s4); }
.fhead .ids { font-size: var(--text-xs); color: var(--muted); margin-top: var(--s4); padding-top: var(--s2); border-top: 1px solid var(--line); overflow-wrap: anywhere; }
figure.locator figcaption { font-size: var(--text-xs); color: var(--muted); max-width: 160px; }
.contact { justify-self: stretch; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s4); }
.contact-head { display: flex; justify-content: space-between; align-items: start; gap: var(--s3); margin-bottom: var(--s2); }
.contact h2 { font-size: var(--text-md); }
.contact .locator { width: 96px; flex: none; }
.contact dl { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: var(--s2) var(--s3); font-size: 14px; }
.contact dt { font-size: var(--text-xs); color: var(--muted); padding-top: 2px; }
.contact dd { overflow-wrap: anywhere; }
main.container .contact .act a { display: inline-block; margin-top: var(--s3); padding: var(--s2) var(--s3); border-radius: 8px; background: var(--brand); color: #fff; font-weight: 600; font-size: 14px; text-decoration: none; }
.contact .act-sub { font-size: var(--text-xs); color: var(--muted); margin-top: var(--s1); }
/* The rule of disclosure (E11-F268): an « i » or a link opens a popover
   anchored to it, a sheet at the foot of a phone's screen; « Voir … » opens
   a side panel, full screen on a phone. */
.tiles > li { position: relative; }
.tiles > li:has(> button.info) > .kpi-label { padding-right: 28px; }
button.info { position: absolute; top: 10px; right: 10px; width: 24px; height: 24px; padding: 0; border: 1px solid var(--line-2); border-radius: 50%; background: var(--card); color: var(--muted); cursor: pointer; }
button.info::before { content: "i"; font: italic 700 13px/1 Georgia, serif; }
button.info:hover { color: var(--brand); border-color: var(--brand); }
button.how, button.open-list { all: unset; cursor: pointer; min-height: 24px; color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
figure.map > button.open-list { display: block; width: fit-content; margin-top: 10px; padding: 4px 0; font-size: 13px; }
button.how::after { content: "i"; display: inline-grid; place-items: center; width: 15px; height: 15px; margin-left: 4px; border: 1px solid currentColor; border-radius: 50%; font: italic 700 10px/1 Georgia, serif; vertical-align: 1px; }
:is(button.info, button.how, button.open-list):focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.how-line { margin-top: 10px; font-size: var(--text-sm); }
.base > .how-line { display: inline; }
[popover].note { width: min(62ch, calc(100vw - 24px)); max-height: min(70vh, 640px); overflow-y: auto; padding: var(--s4); border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); color: var(--ink-2); font-size: var(--text-sm); line-height: 1.5; box-shadow: 0 10px 28px rgba(14, 23, 38, 0.16); }
@supports (position-area: block-end) { [popover].note { inset: auto; margin: 6px 0 0; position-area: block-end span-inline-start; position-try-fallbacks: flip-block, flip-inline; } }
[popover].note > * + * { margin-top: var(--s2); }
[popover].note ul:not(.reading) { padding-left: 18px; }
[popover].note li + li { margin-top: var(--s1); }
[popover].note :is(.note-foot, .calc) { color: var(--muted); }
[popover].note ul.reading { list-style: none; }
[popover].note a { color: var(--brand); }
dialog.panel { margin: 0 0 0 auto; width: min(460px, 100vw); height: 100dvh; max-width: none; max-height: none; padding: var(--s5); border: none; background: var(--card); box-shadow: -12px 0 32px rgba(14, 23, 38, 0.18); font-size: 14px; line-height: 1.5; overflow-y: auto; }
dialog.panel::backdrop { background: rgba(14, 23, 38, 0.35); }
dialog.panel header { display: flex; justify-content: space-between; align-items: start; gap: var(--s3); margin-bottom: var(--s3); }
dialog.panel h2 { font-size: 18px; }
dialog.panel p + p { margin-top: var(--s2); }
dialog.panel h3 { font-size: 14px; margin: var(--s4) 0 var(--s2); }
dialog.panel ul { padding-left: 18px; display: grid; gap: 4px; }
dialog.panel button.close { min-height: 24px; padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--card); font: inherit; cursor: pointer; }
@media print {
  [popover].note, dialog.panel { display: block; position: static; inset: auto; width: auto; height: auto; max-height: none; overflow: visible; margin: 6px 0; padding: 0; border: none; box-shadow: none; }
  button.info, button.how::after, button.open-list, figure.map > button.open-list, dialog.panel button.close { display: none; }
}
.callout {
  border-left: 3px solid var(--gold); background: var(--gold-wash);
  padding: 10px 14px; border-radius: 6px; font-size: 13px; color: var(--ink-2); margin-bottom: 16px;
}

.tiles { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 18px; }
.tiles > li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tiles .fig { font-size: var(--text-xl); font-weight: 750; letter-spacing: -0.015em; line-height: 1.15; }
.tiles .fig.low { font-size: 17px; font-weight: 500; }
.tiles .fig .of { font-size: var(--text-md); font-weight: 600; color: var(--ink-2); letter-spacing: 0; }
.tiles .kpi-label { font-size: 13px; font-weight: 500; color: var(--muted); order: -1; }
.tiles .gap { align-self: flex-start; }
/* QA of 2026-10-17 (B2-NF13): the amount tiles of a row share their tracks,
   so their figures sit at one height whatever the length of their titles. */
.tiles.amounts > li { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 2px; align-content: start; }

.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.section-head h2 { font-size: var(--text-lg); letter-spacing: -0.01em; }
.section-head .see-all { font-size: 14px; white-space: nowrap; }
.band { margin: 28px 0 8px; }

/* Layout audit of 2026-10-09 (docs/09 §4): a row the server decided
   (web.layout), full width by default and a pair only when certified; a
   row of tiles or linked cards whose count sets its basis, the last row
   widening, so no cell stays empty. */
.layout-stack { display: grid; gap: 18px; margin-bottom: 18px; }
.layout-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: stretch; margin-bottom: 18px; }
.layout-stack > *, .layout-pair > * { min-width: 0; }
.layout-stack > .card, .layout-pair > .card { margin-bottom: 0; }
.layout-stack > .card h3:not(:first-child), .layout-pair > .card h3:not(:first-child) { margin-top: 20px; }
.layout-stack form.search, .layout-pair form.search { margin: 8px 0 0; }
p.absent { font-size: 13px; color: var(--muted); margin: 0 0 18px; }
details + p.absent { margin-top: 18px; }
.tiles.flow, ul.linked.flow, .uses.flow, ul.people.flow { display: flex; flex-wrap: wrap; --gap: 12px; }
.uses.flow { --gap: 14px; }
ul.people.flow { --gap: 10px; }
.flow > li { flex: 1 1 calc((100% - 3 * var(--gap)) / 4); }
.flow:not(.sources):has(> li:nth-child(5)):not(:has(> li:nth-child(7))) > li,
.flow:not(.sources):has(> li:nth-child(4n+1):last-child) > li { flex-basis: calc((100% - 2 * var(--gap)) / 3); }
.flow:not(.sources):has(> li:nth-child(13)):has(> li:nth-child(12n+1):last-child) > li { flex-basis: calc((100% - 4 * var(--gap)) / 5); }
.tiles.flow.sources > li { flex-basis: calc((100% - var(--gap)) / 2); }
.tiles.flow.sources:has(> li:nth-child(odd):last-child) > li { flex-basis: calc((100% - 2 * var(--gap)) / 3); }
.base { font-size: 12px; color: var(--muted); margin-top: 8px; }

/* Charts: bars are elements sized by a variable, the map is SVG. The
   values are printed beside the marks, never in them. */
figure.chart { margin: 4px 0 0; }
figure.chart figcaption { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
ol.columns { list-style: none; display: flex; align-items: flex-end; gap: 4px; height: 170px; padding-top: 4px; }
ol.columns li { flex: 1; min-width: 0; max-width: 88px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.col-bar { display: block; width: 100%; max-width: 44px; height: calc(var(--h) * 120px); min-height: 2px; background: var(--data-1); border-radius: 4px 4px 0 0; }
ol.columns li.current .col-bar { background: var(--mark); }
/* Orange sits under the colour-blind distance from the series green: the mark it
   singles out is also named in bold ink. */
ol.columns li.current .col-label, ol.bars li.current .bar-label { color: var(--ink); font-weight: 750; }
.col-value { font-size: 11px; color: var(--ink-2); font-variant-numeric: tabular-nums; margin-bottom: 3px; white-space: nowrap; }
.col-label { font-size: 11px; color: var(--muted); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.col-label .sub { display: none; }
ol.bars { list-style: none; display: grid; gap: 8px; }
ol.bars li { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(60px, 1fr) auto; gap: 12px; align-items: center; font-size: 14px; }
.bar-label { min-width: 0; overflow-wrap: anywhere; }
.bar-track { display: block; height: 10px; background: var(--map-0); border-radius: 5px; overflow: hidden; }
.bar-fill { display: block; height: 100%; width: calc(var(--w) * 100%); background: var(--data-1); border-radius: 5px; }
ol.bars li.current .bar-fill { background: var(--mark); }
.bar-value { font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; min-width: 3ch; }
details.more { margin-top: 8px; }
details.more > summary { cursor: pointer; font-size: 14px; color: var(--brand); font-weight: 600; padding: 4px 0; list-style: none; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::after { content: " ▾"; }
details.more[open] > summary::after { content: " ▴"; }
details.more > ol.bars { margin-top: 8px; }
.split { display: flex; gap: 2px; height: 14px; border-radius: 7px; overflow: hidden; }
.seg { display: block; width: calc(var(--w) * 100%); min-width: 2px; }
.s1 { background: var(--data-1); }
.s2 { background: var(--data-2); }
.s3 { background: var(--data-3); }
.s4 { background: var(--data-4); }
ul.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 13px; color: var(--ink-2); }
ul.legend li { display: inline-flex; align-items: center; gap: 6px; }
.key { display: inline-block; flex: none; width: 11px; height: 11px; border-radius: 3px; }
.gauge { display: block; height: 8px; margin-top: 6px; background: var(--map-0); border-radius: 4px; overflow: hidden; }
.gauge > span { display: block; height: 100%; width: calc(var(--w) * 100%); background: var(--data-1); }
svg.spark { display: block; width: 100%; height: 40px; }
svg.spark polyline { fill: none; stroke: var(--data-1); stroke-width: 2; }
figure.map svg { display: block; width: 100%; height: auto; max-height: 520px; }
/* A map alone on its row (E11-F168): capped, its legend and data beside it,
   so a full-width card keeps no large void; under 900 px it is full width. */
.layout-stack > .card > figure.map, figure.map.side:not(:has(> .map-aside)) { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); grid-template-rows: auto auto auto auto auto 1fr; column-gap: 28px; align-items: start; }
.layout-stack > .card > figure.map > figcaption, figure.map.side > figcaption { grid-column: 1 / -1; }
.layout-stack > .card > figure.map > svg, figure.map.side > svg { grid-column: 1; grid-row: 2 / 7; }
.layout-stack > .card > figure.map > :is(ul.legend, button.open-list), figure.map.side > :is(ul.legend, .map-note, button.open-list, .map-aside) { grid-column: 2; }
.layout-stack > .card > figure.map > ul.legend, figure.map.side > ul.legend { margin-top: 0; }
.map-note .base { margin-top: 6px; }
.map-aside { margin-top: 14px; }
/* The years beside the map (E11-F168): a chart column the server sized to
   hold every year and value, beside a map of 320 to 520 px; where the card
   is too narrow for both, the chart goes under the map. The chart is as
   tall as the map leaves beside it. */
.card:has(> figure.map.side) { container-type: inline-size; }
@media (min-width: 901px) {
  @container (min-width: 610px) {
    figure.map.side.y262 { display: grid; grid-template-columns: minmax(0, 520px) minmax(262px, 1fr); grid-template-rows: auto auto auto auto auto 1fr; column-gap: 28px; align-items: start; }
    figure.map.side.y262 .map-aside ol.columns { height: max(110px, calc(min(520px, 100cqw - 290px) * 0.775 - 178px)); }
  }
  @container (min-width: 708px) {
    figure.map.side.y360 { display: grid; grid-template-columns: minmax(0, 520px) minmax(360px, 1fr); grid-template-rows: auto auto auto auto auto 1fr; column-gap: 28px; align-items: start; }
    figure.map.side.y360 .map-aside ol.columns { height: max(110px, calc(min(520px, 100cqw - 388px) * 0.775 - 178px)); }
  }
  @container (min-width: 808px) {
    figure.map.side.y460 { display: grid; grid-template-columns: minmax(0, 520px) minmax(460px, 1fr); grid-template-rows: auto auto auto auto auto 1fr; column-gap: 28px; align-items: start; }
    figure.map.side.y460 .map-aside ol.columns { height: max(110px, calc(min(520px, 100cqw - 488px) * 0.775 - 178px)); }
  }
  @container (min-width: 908px) {
    figure.map.side.y560 { display: grid; grid-template-columns: minmax(0, 520px) minmax(560px, 1fr); grid-template-rows: auto auto auto auto auto 1fr; column-gap: 28px; align-items: start; }
    figure.map.side.y560 .map-aside ol.columns { height: max(110px, calc(min(520px, 100cqw - 588px) * 0.775 - 178px)); }
  }
  @container (min-width: 1008px) {
    figure.map.side.y660 { display: grid; grid-template-columns: minmax(0, 520px) minmax(660px, 1fr); grid-template-rows: auto auto auto auto auto 1fr; column-gap: 28px; align-items: start; }
    figure.map.side.y660 .map-aside ol.columns { height: max(110px, calc(min(520px, 100cqw - 688px) * 0.775 - 178px)); }
  }
}
.map-aside ol.columns { height: 170px; }
figure.map use, svg.locator use { stroke: #fff; stroke-width: 0.8; }
figure.map a:hover use, figure.map a:focus use { stroke: var(--ink); stroke-width: 1.5; }
.m0 { fill: var(--map-0); background: var(--map-0); }
.m1 { fill: var(--map-1); background: var(--map-1); }
.m2 { fill: var(--map-2); background: var(--map-2); }
.m3 { fill: var(--map-3); background: var(--map-3); }
.m4 { fill: var(--map-4); background: var(--map-4); }
.m5 { fill: var(--map-5); background: var(--map-5); }
svg .inset { fill: none; stroke: var(--line-2); stroke-width: 1; }
svg.locator { width: 160px; height: auto; display: block; }
svg.locator .m0 { fill: #d5dbe2; }
svg.locator .here { fill: var(--mark); }
.timeline { margin: 8px 0 4px; container-type: inline-size; }
/* The two thresholds are NARROW and WIDE of web/timeline_layout.py plus the track margin. */
.track { display: none; position: relative; margin: 0 10px; --a: var(--an); --b: var(--bn); --axis: calc(var(--a) + 14px); height: calc(var(--axis) + var(--b) + 14px); }
.track::before { content: ""; position: absolute; left: 0; right: 0; top: var(--axis); height: 2px; background: var(--line-2); }
.track .dot { position: absolute; top: calc(var(--axis) - 5px); left: calc(var(--x) * 100%); width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--data-1); border: 2px solid var(--card); }
.track .dot.ahead { background: var(--card); border: 2px dashed var(--data-1); }
.track .now { position: absolute; top: calc(var(--axis) - 12px); left: calc(var(--x) * 100%); width: 2px; height: 26px; background: repeating-linear-gradient(to bottom, var(--mark) 0 4px, transparent 4px 7px); }
.band-span { position: absolute; top: calc(var(--axis) - 8px); height: 18px; left: calc(var(--x) * 100%); width: calc(var(--w) * 100%); min-width: 6px; background: var(--map-1); border-radius: 9px; opacity: 0.8; }
.tl-label { --k: var(--kn); --y: var(--yn); --t: var(--tn); position: absolute; top: calc(var(--axis) + var(--y)); left: calc(var(--x) * 100%); transform: translateX(calc(var(--k) * -100%)); text-align: var(--t); font-size: 12px; color: var(--muted); white-space: nowrap; line-height: 17px; }
.tl-label b { display: block; color: var(--ink); font-weight: 600; font-size: 13px; }
.tl-label.band-label { font-weight: 650; color: var(--brand-strong); }
ol.steps { list-style: none; display: grid; gap: 6px; font-size: 14px; }
ol.steps li { border-left: 3px solid var(--data-1); padding-left: 10px; }
ol.steps li.ahead { border-left-style: dashed; color: var(--ink-2); }
@container (min-width: 460px) {
  .track { display: block; }
  ol.steps { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}
@container (min-width: 780px) {
  .track { --a: var(--aw); --b: var(--bw); }
  .tl-label { --k: var(--kw); --y: var(--yw); --t: var(--tw); }
}
ol.steps time { display: block; font-size: 12px; color: var(--muted); }

.people { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.people li { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-size: 14px; }
dl.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px 20px; font-size: 14px; }
dl.facts dt { font-size: 12px; color: var(--muted); }
dl.facts dd { overflow-wrap: anywhere; }
/* Rows of `--cols` facts at most, set so no fact is left alone on a row. */
@media (min-width: 561px) {
  dl.facts.even { grid-template-columns: repeat(auto-fill, minmax(max(140px, calc((100% - (var(--cols) - 1) * 20px) / var(--cols))), 1fr)); }
}

/* The accueil. */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--s3) 40px; align-items: center; }
.hero-grid .tiles { margin: 0; }
.map-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 28px; align-items: start; }
table.narrow, .narrow { max-width: 760px; }
.hero { padding: 28px 0 8px; max-width: 860px; }
.hero h1 { font-size: var(--text-2xl); letter-spacing: -0.02em; }
.hero .lede { font-size: 18px; margin-top: 12px; }
.hero form.search { margin-top: 24px; }
.hero-grid.solo { grid-template-columns: minmax(0, 1fr); }
.hero form.search.intent {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; max-width: none;
}
.hero form.search.intent + form.search { margin-top: 0; }
.intent-title { font-weight: 700; margin-bottom: 10px; }
.intent-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.intent-row .field { min-width: 0; }
.intent-row button { min-height: 42px; white-space: nowrap; }
.example { margin-top: 28px; margin-bottom: 0; border-color: var(--brand); }
.example-head a { display: inline-block; padding: 2px 0; }
.example-head { display: flex; justify-content: space-between; align-items: center; font-size: var(--text-sm); margin-bottom: 8px; }
.tag {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--brand-strong); background: var(--brand-wash); border-radius: 4px; padding: 2px 7px;
}
.example h2 { font-size: 18px; letter-spacing: -0.005em; }
.example h2 a { color: var(--ink); }
.example-none { margin: var(--s3) 0 var(--s5); color: var(--ink-2); }
.example-lead { display: flex; flex-direction: column; gap: var(--s1); margin: var(--s3) 0 var(--s5); }
.example-lead .fig { font-size: 36px; font-weight: 750; letter-spacing: -0.02em; line-height: 1.1; }
.example-lead .sub { font-size: 14px; color: var(--ink-2); }
.example .tiles { margin-bottom: var(--s5); }
.example .tiles > li { padding: 10px 12px; }
.example .tiles .fig { font-size: 22px; }
.example .card-title { font-size: 14px; color: var(--ink-2); margin: 0 0 var(--s2); }
.example .base { margin-top: var(--s3); }
.example-reading { grid-column: -2; align-self: start; }
.example-reading details.fold { margin-top: 0; }
main.container .example a.button { display: block; text-align: center; margin-top: var(--s5); }
.proof .kicker { font-size: var(--text-sm); color: var(--muted); }
.proof h2 { font-size: var(--text-lg); letter-spacing: -0.01em; margin: 2px 0 6px; }
.proof .consequence { color: var(--ink-2); }
.single-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.single-figure { display: flex; flex-direction: column; gap: 4px; }
.single-figure .fig { font-size: var(--text-lg); font-weight: 750; }
.single-figure .gauge { height: 6px; }
.single-figure .sub { font-size: var(--text-sm); color: var(--muted); }
.proof .tile-link { display: inline-block; margin-top: 8px; font-size: var(--text-sm); font-weight: 600; }
.proof .totals { font-size: var(--text-sm); color: var(--muted); margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
main.container .hero .ctas > a { flex: 1 1 200px; display: inline-flex; align-items: center; justify-content: center; text-align: center; min-height: 46px; }
main.container a.button, a.button {
  display: inline-block; padding: 10px 18px; border-radius: 8px; font-weight: 650; font-size: 15px;
  background: var(--brand); color: #fff; text-decoration: none;
}
main.container a.button.ghost, a.button.ghost { background: var(--card); color: var(--brand); border: 1px solid var(--line-2); }
.uses { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.uses.pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.uses li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.uses h3 { font-size: 16px; margin-bottom: 6px; }
.uses p { font-size: 14px; color: var(--ink-2); }
.uses .who { font-size: 12px; font-weight: 650; color: var(--brand); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 6px; }
/* The guides (03 §3.21): the arc of a landing page. */
.guide-hero { padding-top: 12px; }
.guide-hero form.search { margin-top: 20px; margin-bottom: 0; }
.chip.free { background: var(--brand-wash); border-color: transparent; color: var(--brand-strong); font-weight: 600; }
.uses.moves li { border-top: 3px solid var(--brand); }
ul.proof { list-style: none; display: grid; gap: 10px; font-size: 15px; color: var(--ink-2); }
ul.proof li { padding-left: 26px; position: relative; }
ul.proof li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 800; }
.faq details.fold > summary { font-size: 15px; font-weight: 600; color: var(--ink); padding: 8px 0; }
.faq details.fold > p { font-size: 14px; color: var(--ink-2); margin: 0 0 8px; }
.guide-action { border-top: 4px solid var(--brand); }
.pro { border: 1px solid var(--line); border-top: 4px solid var(--brand); }
.plan { margin: 14px 0; max-width: 560px; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.plan .price { font-size: 24px; font-weight: 750; }
.plan ul { margin: 8px 0 0 18px; font-size: 14px; color: var(--ink-2); }
.skeleton { display: grid; gap: 8px; filter: blur(2px); }
.skeleton span { display: block; height: 12px; background: var(--line); border-radius: 4px; width: calc(var(--w) * 100%); }

/* ---------- E11-F91, lot C: the fiche avis ---------- */
.notice-tiles { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.notice-tiles > li.deadline { grid-column: span 2; gap: 4px; }
.notice-tiles > li.deadline.open { border-color: var(--brand); box-shadow: inset 4px 0 0 var(--brand); }
.countdown { font-size: var(--text-md); font-weight: 650; color: var(--ink-2); }
.deadline.open .countdown { font-weight: 700; color: var(--brand-strong); }
main.container .actions.primary a.main, main.container .actions.primary .answer > a {
  display: inline-block; padding: 8px 14px; border-radius: 8px; font-weight: 650; font-size: 14px;
  background: var(--brand); color: #fff; text-decoration: none;
}
main.container .actions.primary a.main:hover, main.container .actions.primary .answer > a:hover { background: var(--brand-strong); }
.actions.primary .answer { display: inline-flex; flex-direction: column; gap: 2px; }
ul.linked { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-top: 12px; }
ul.linked > li { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; min-width: 0; font-size: 14px; }
ul.linked .card-title { font-weight: 600; }
dl.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
dl.pair dt { font-size: 12px; color: var(--muted); }
dl.pair .fig { font-size: 15px; }
.holders .kpi-label { display: block; }
details.more > ul.linked { margin-top: 8px; }
.teaser .skeleton { margin-top: 12px; padding: 10px 12px; border: 1px dashed var(--line-2); border-radius: 8px; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: center; }
.teaser .skeleton span { height: 10px; }
.teaser h3 { margin-top: 12px; }
.teaser .section-head { margin-bottom: 0; }

/* ---------- E11-F96: methodology, legal and error pages ----------
   A long page reads in a narrow column beside its anchored table of
   contents; the error pages lead back to the search and the sections. */
.doc { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 32px; align-items: start; }
.doc > * { min-width: 0; }
.doc.solo { grid-template-columns: minmax(0, 1fr); }
.doc-body .card { scroll-margin-top: 16px; }
.doc-body p.card-sub, .doc-body .rules, .doc-body p.src, .doc-body .card > ul:not([class]) { max-width: 68ch; }
.doc-body p.card-sub, .doc-body .rules, .doc-body .card > ul:not([class]) { font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.doc-body .rules li { margin-bottom: 10px; }
.doc-body table.data th.num { white-space: normal; }
.doc-body table.data td:first-child { min-width: 8em; }
.toc { position: sticky; top: 16px; font-size: var(--text-sm); }
.toc-title { font-size: var(--text-xs); font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 8px; }
.toc ol { list-style: none; display: grid; gap: 2px; border-left: 2px solid var(--line); }
main.container .toc a { display: block; padding: 5px 10px; color: var(--ink-2); text-decoration: none; margin-left: -2px; border-left: 2px solid transparent; }
main.container .toc a:hover { color: var(--brand); border-left-color: var(--brand); }
.doc-body .tiles { margin: 12px 0 6px; }
.tiles .fig.day { font-size: var(--text-md); font-weight: 650; }
.tiles.sources > li p { font-size: var(--text-sm); color: var(--ink-2); }
.tiles.sources .kpi-label { color: var(--ink); font-weight: 650; }
ul.gauges { list-style: none; display: grid; gap: 12px; margin: 8px 0 4px; }
ul.gauges li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: baseline; font-size: 14px; }
ul.gauges .fig { font-weight: 650; font-variant-numeric: tabular-nums; }
ul.gauges .gauge { grid-column: 1 / -1; margin-top: 2px; }
.credit { border-left: 3px solid var(--line-2); padding: 4px 12px; margin-top: 14px; }
.error-head .code { font-size: var(--text-sm); font-weight: 650; color: var(--brand); letter-spacing: 0.04em; }
.error-head { max-width: 760px; }
.error-head form.search { margin-top: 20px; }
ul.go { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
ul.go li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; font-size: 14px; color: var(--ink-2); }
ul.go li a { display: block; font-weight: 650; font-size: var(--text-md); margin-bottom: 4px; }

/* ---------- E11-F93: the radar des échéances and the attributions récentes ---------- */
.radar-form { padding-top: 14px; padding-bottom: 14px; }
.radar-form form.search { max-width: none; margin: 0; }
.radar-form .filters { grid-template-columns: repeat(4, minmax(0, 1fr)) auto; align-items: end; margin: 0 0 10px; }
.radar-form .field.submit button { padding: 9px 22px; }
.radar-count { margin: -4px 0 12px; }
.radar-count .fig { font-size: var(--text-xl); font-weight: 750; letter-spacing: -0.015em; }
.radar-count .unit { font-size: 15px; color: var(--ink-2); }
table.data.radar-list td:first-child, table.data.award-list td:first-child { white-space: nowrap; }
table.data.radar-list td .sub a, table.data.award-list td .sub a { color: var(--muted); }
.pro-count { margin-top: 12px; }
.radar-side { display: grid; gap: 24px; }
.map-grid > *, .radar-side > * { min-width: 0; }
figure.map use.current { stroke: var(--mark); stroke-width: 2.5; }
.award-head .locator { width: 150px; }

/* ---------- E11-F92, lot A: the search page ----------
   Box and button on one row, filters folded under 900 px and always open
   above it where the browser can style the fold's content, the tabs as a
   bar with their counters, results as compact cards. */
.search-page form.search { max-width: none; margin-bottom: 0; }
.search-page form.search button { white-space: nowrap; }
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin-top: var(--s3); }
.search-page form.search button.open-list:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.search-page form.search button.open-list { all: unset; white-space: nowrap; cursor: pointer; padding: 6px 14px; border: 1px solid var(--line-2); border-radius: 8px; color: var(--brand); font-size: 14px; font-weight: 650; }
.search-page form.search dialog.panel button.close { width: auto; padding: 6px 10px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); font-size: 14px; font-weight: 400; }
.search-filters .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; }
.panel-submit { margin-top: var(--s5); }
.search-filters select { min-height: 44px; }
.filter-block { border: 0; min-width: 0; margin-top: var(--s4); }
.filter-block > legend { float: left; width: 100%; padding: 0 0 var(--s2); font-size: var(--text-sm); font-weight: 700; color: var(--ink); }
.filter-block > :not(legend) { clear: both; }
.filter-block .filters { margin: 0; }
.locked-line { margin: 0 0 var(--s2); }
form.search .field :is(input, select):disabled { background: var(--bg); border-style: dashed; color: var(--muted); cursor: not-allowed; }
form.search .field:has(:disabled) label { color: var(--muted); font-weight: 500; }
svg.lock { vertical-align: -1px; margin-left: 3px; }
.locked-control { color: var(--muted); cursor: not-allowed; }
.chip.locked-control { border-style: dashed; }
.search-page details.syntax { margin-top: var(--s2); }
.result-tabs {
  display: flex; flex-wrap: nowrap; gap: 6px; overflow-x: auto; scrollbar-width: none;
  margin: 0 0 14px; border-bottom: 1px solid var(--line);
}
.result-tabs::-webkit-scrollbar { display: none; }
main.container .result-tabs a { text-decoration: none; }
.result-tabs a {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; padding: 10px 14px;
  color: var(--ink-2); font-weight: 600; white-space: nowrap; max-width: 22rem;
}
.result-tabs a .fig { color: var(--ink); }
.result-tabs a.active { color: var(--brand); box-shadow: inset 0 -3px 0 var(--brand); }
.tiles-head { font-size: 13px; font-weight: 600; color: var(--muted); margin: 14px 0 8px; }
ol.results {
  list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px; margin-top: 12px;
}
ol.results > li.result {
  border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; min-width: 0;
  display: flex; flex-direction: column; gap: 2px;
}
.result-name { font-weight: 650; font-size: 15px; line-height: 1.35; overflow-wrap: anywhere; }
.result-name a { display: inline-block; padding: 2px 0; }
.result-name a.clamp { display: -webkit-box; }
.result-id { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.result-key { margin-top: 6px; font-size: 14px; }

/* ---------- E11-F95, lot H: the reference amounts and the statistics ----------
   Bars whose rows open the codes they count, a code's quartiles as a box on
   an axis from zero, its labels in HTML so they keep their size. */
.amounts-search { padding-top: 14px; padding-bottom: 14px; }
.amounts-search form.search { max-width: 760px; margin: 0; }
.amounts-search form.search .row input { flex: 1; min-width: 0; font-size: 16px; padding: 10px 14px; }
.amounts-dated { margin: -8px 0 0; }
ol.bars.opening > li { display: block; }
ol.bars.opening > li > details > summary {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(60px, 1fr) auto; gap: 12px;
  align-items: center; cursor: pointer; list-style: none; padding: 4px 6px; margin: 0 -6px; border-radius: 6px;
}
ol.bars.opening > li > details > summary::-webkit-details-marker { display: none; }
ol.bars.opening > li > details > summary:hover { background: var(--brand-wash); }
ol.bars.opening > li > details > summary .bar-label::before { content: "▸ "; color: var(--brand); }
ol.bars.opening details[open] > summary .bar-label::before { content: "▾ "; }
ol.bars.opening details > figure.chart { margin: 8px 0 14px 18px; padding-left: 12px; border-left: 2px solid var(--line); }
ol.bars.opening details > figure.chart figcaption:empty { display: none; }
ol.bars.opening details > .see-all { margin: -6px 0 14px 32px; font-size: 14px; font-weight: 600; }
figure.quartiles { margin: 8px 0 4px; }
.qbox { position: relative; height: 120px; margin: 0 4px 0 18px; }
.qbox svg { position: absolute; left: 0; right: 0; top: 34px; width: 100%; height: 48px; overflow: visible; }
.qbox .baseline, .qbox .tick { stroke: var(--line-2); stroke-width: 2; vector-effect: non-scaling-stroke; }
.qbox .box { fill: var(--map-1); stroke: var(--data-1); stroke-width: 2; vector-effect: non-scaling-stroke; }
.qbox .median { stroke: var(--mark); stroke-width: 3; vector-effect: non-scaling-stroke; }
.q-label { position: absolute; left: calc(var(--x) * 100%); font-size: 12px; color: var(--muted); white-space: nowrap; line-height: 1.3; }
.q-label b { color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums; }
.q-label.above { top: 6px; }
.q-label.below { top: 84px; }
.q-label.below.row1 { top: 100px; }
.q-label.mid { transform: translateX(-50%); }
.q-label.end { transform: translateX(-100%); }
.q-zero { position: absolute; left: -16px; top: 66px; font-size: 11px; line-height: 16px; color: var(--muted); }
.stats-tiles .gauge { margin-top: 6px; }
ol.bars.opening .bar-value, .aligned-bars ol.bars .bar-value { min-width: 7ch; }

.hero-capture { margin: var(--s3) 0 0; font-size: 15px; background: var(--brand-wash); border-radius: var(--radius); padding: 10px 14px; }
.hero-capture a { color: var(--brand-strong); font-weight: 600; }
.skeleton-rows { display: grid; margin-top: var(--s2); mask-image: linear-gradient(#000 30%, transparent); }
.skeleton-rows .skeleton { grid-template-columns: 1fr 2.4fr 1.6fr 1fr 1.2fr; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }

/* ---------- design audit of 2026-10-08, point 4: fiches entreprise and acheteur ----------
   The sections as one row of anchors held at the top while the page
   scrolls, the next échéance as the highlighted tile, the lists as compact
   rows: the end or the day on the left, the marché in the middle, the
   amount on the right. */
.toc.row {
  position: sticky; top: 0; z-index: 5; background: var(--bg);
  margin: 0 0 8px; padding: 8px 0; border-bottom: 1px solid var(--line);
}
.toc.row ol { display: flex; flex-wrap: nowrap; gap: 6px; overflow-x: auto; scrollbar-width: none; border-left: none; }
.toc.row ol::-webkit-scrollbar { display: none; }
main.container .toc.row a {
  white-space: nowrap; padding: 4px 12px; margin-left: 0; border: 1px solid var(--line);
  border-radius: 999px; background: var(--card); font-weight: 600; color: var(--ink-2);
}
main.container .toc.row a:hover, main.container .toc.row a:focus-visible { border-color: var(--brand); color: var(--brand-strong); }
.toc.row ~ [id], .toc.row ~ * [id] { scroll-margin-top: 56px; }
.tiles > li.next { border: 2px solid var(--brand); padding: 13px 15px; }
main.container .tiles > li.next .tile-link { margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--brand-strong); }
ol.rows { list-style: none; display: grid; }
ol.rows > li {
  display: grid; grid-template-columns: 8.5em minmax(0, 1fr) auto; gap: 2px 16px; align-items: start;
  padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px;
}
ol.rows > li:last-child { border-bottom: none; }
ol.rows .when { font-weight: 700; font-variant-numeric: tabular-nums; }
ol.rows .what { min-width: 0; }
ol.rows .amount { text-align: right; }
ol.rows .amount .fig { white-space: nowrap; }
details.more > ol.rows { margin-top: 4px; }
.pill { display: inline-block; margin-top: 4px; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.pill-found { background: var(--brand-wash); color: var(--brand-strong); }
.pill-near { background: var(--gold-wash); color: var(--gold); }
.pill-none { background: var(--map-0); color: var(--ink-2); }
.timeline .track .dot.plain { width: 10px; height: 10px; margin-left: -5px; top: calc(var(--axis) - 4px); }

@media (max-width: 900px) {
  .fhead { grid-template-columns: minmax(0, 1fr); grid-template-areas: "who" "side" "rest"; }
  .fhead > .side { justify-items: start; margin-top: var(--s4); }
  .nav-inner { flex-wrap: wrap; column-gap: 18px; row-gap: 0; }
  .nav-links { order: 2; flex-basis: 100%; flex-wrap: wrap; column-gap: 18px; row-gap: 4px; overflow: visible; padding: 0 0 12px; }
  .nav-account { order: 1; padding-top: 14px; }
  .brand { padding-top: 14px; }
  /* E11-F92, lot A: the search page. */
  ol.results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .uses, .uses.pair, .hero-grid, .map-grid, .single-grid { grid-template-columns: 1fr; }
  .notice-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .head { grid-template-columns: 1fr; }
  .head svg.locator { display: none; }
  /* Layout audit of 2026-10-09: a certified pair stacks, a flow of tiles goes two by two. */
  .layout-pair { grid-template-columns: 1fr; }
  .layout-pair > div > p.trial-line { margin-top: 0; }
  .flow > li, .flow:not(.sources):has(> li:nth-child(5)):not(:has(> li:nth-child(7))) > li, .flow:not(.sources):has(> li:nth-child(4n+1):last-child) > li,
  .flow:not(.sources):has(> li:nth-child(13)):has(> li:nth-child(12n+1):last-child) > li,
  .tiles.flow.sources > li, .tiles.flow.sources:has(> li:nth-child(odd):last-child) > li { flex-basis: calc((100% - var(--gap)) / 2); }
  .uses.flow { display: grid; grid-template-columns: 1fr; }
  .layout-stack > .card > figure.map, figure.map.side, figure.map.side:not(:has(> .map-aside)) { display: block; }
  .layout-stack > .card > figure.map > ul.legend, figure.map.side > ul.legend { margin-top: 10px; }
  .notice-tiles > li:last-child:nth-child(even) { grid-column: span 2; }
  .nav-inner, .foot-inner, .container { padding-left: 16px; padding-right: 16px; }
  .foot-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-nav > nav:last-child { grid-column: 1 / -1; }
  .foot-nav > nav:last-child ul { display: flex; flex-wrap: wrap; column-gap: var(--s5); }
  .container { padding-top: 16px; padding-bottom: 16px; }
  .card { padding: 16px; }
  table.data td, table.data th { overflow-wrap: break-word; }
  .doc { grid-template-columns: 1fr; gap: 12px; }
  .toc { position: static; }
  .toc-title { display: none; }
  .toc ol { display: flex; flex-wrap: wrap; gap: 6px; border-left: none; }
  .toc.row ol { padding-bottom: 4px; }
  main.container .toc a { border: 1px solid var(--line); border-radius: 999px; background: var(--card); padding: 4px 12px; margin-left: 0; }
  /* E11-F93 */
  .radar-form .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* E11-F97, lot F */
  .pricing ul.plans { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .search-page.card { padding-block: 12px; }
  .search-page details.syntax { margin-top: 4px; }
  .filter-bar { flex-wrap: nowrap; overflow-x: auto; margin-top: 6px; gap: 6px; padding-bottom: 2px; }
  .filter-bar > * { flex: none; white-space: nowrap; }
  .page-head.searched { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  dialog.panel { width: 100vw; }
  [popover].note { position: fixed; inset: auto 0 0 0; position-area: none; margin: 0; width: 100vw; max-width: none; max-height: 75dvh; border-radius: 14px 14px 0 0; padding: var(--s4) var(--s4) var(--s5); box-shadow: 0 -10px 28px rgba(14, 23, 38, 0.2); }
  /* E11-F95, lot H */
  .qbox { height: auto; }
  .qbox svg { position: static; display: block; margin: 8px 0 10px; }
  .q-label, .q-label.mid, .q-label.end { position: static; display: block; transform: none; font-size: 13px; }
  .q-zero { top: 40px; }
  ol.bars.opening > li > details > summary { grid-template-columns: minmax(0, 1fr) auto; }
  ol.bars.opening > li > details > summary .bar-track { grid-column: 1 / -1; grid-row: 2; }
  ol.bars.opening details > figure.chart { margin-left: 4px; }
  ol.bars.opening details > .see-all { margin-left: 18px; }
  /* E11-F92, lot A: the search page; the four tabs on two rows, so none is off screen. */
  ol.results { grid-template-columns: 1fr; }
  .result-tabs { flex-wrap: wrap; }
  .search-filters .filters { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles .fig { font-size: 20px; }
  .filters { grid-template-columns: 1fr; }
  form.search button { width: 100%; }
  form.search .row { flex-direction: column; }
  .tiles.sources { grid-template-columns: 1fr; }
  /* QA of 2026-10-17 (B2-NF14): the median heads the quartiles, the two quarters paired under it. */
  .tiles.quartiles > li.mid { order: -1; grid-column: 1 / -1; }
  ul.linked.flow, .tiles.flow.sources, ul.people.flow { display: grid; grid-template-columns: 1fr; }
  .page-head h1, h1, :is(.head, .fhead) h1 { font-size: 22px; }
  .hero h1 { font-size: 27px; }
  .intent-row { grid-template-columns: 1fr; }
  .hero-grid { gap: 8px; }
  .example { margin-top: 0; }
  .example-lead .fig { font-size: 30px; }
  ol.bars li { grid-template-columns: minmax(0, 1fr) auto; }
  ol.bars .bar-track { grid-column: 1 / -1; grid-row: 2; }
  dl.facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  dl.facts:has(> div:only-child) { grid-template-columns: minmax(0, 1fr); }
  .section-head h2 { font-size: 18px; }
  .col-value, .col-label { font-size: 9px; letter-spacing: -0.02em; text-overflow: clip; }
  /* E11-F168: a long years series scrolls rather than cutting its years. */
  .map-aside ol.columns { overflow-x: auto; position: relative; }
  .map-aside ol.columns li { min-width: 26px; }
  /* E11-F93 */
  .radar-form .filters { grid-template-columns: 1fr; }
  table.data.radar-list td:first-child, table.data.award-list td:first-child { white-space: normal; }
  /* E11-F97, lot F */
  .pricing-hero h1 { font-size: 27px; }
  .pricing-hero .lede { font-size: 16px; }
  table.data.compare td.what { padding-top: var(--s2); }
  .pricing table.data.compare td:not(.what) { width: 100%; }

  /* Design audit point 4: a compact row puts its marché under its day and amount. */
  ol.rows > li { grid-template-columns: minmax(0, 1fr) auto; }
  ol.rows .what { grid-column: 1 / -1; grid-row: 2; }
  body ol.rows.notices > li { grid-template-columns: minmax(0, 1fr); }

  /* A list table becomes one card per row, each cell labelled by its
     column. A figure table keeps its columns and scrolls. */
  table.data.list { display: block; background: none; overflow: visible; }
  table.data.list tbody, table.data.list tr, table.data.list td { display: block; }
  table.data.list tr:first-child:has(th) { display: none; }
  table.data.list tr { padding: 8px 0; border-bottom: 1px solid var(--line); }
  table.data.list tr:last-child { border-bottom: none; }
  table.data.list td { border: none; padding: 2px 0; text-align: left; white-space: normal; }
  table.data.list td[data-label] { display: table; width: 100%; }
  table.data.list td[data-label]::before {
    content: attr(data-label); display: table-cell; width: 36%; padding-right: 10px;
    font-size: 12px; line-height: 1.4; color: var(--muted); vertical-align: top;
  }
}

/* ---------- E11-F90: fiche entreprise and its group ---------- */
.people .entity-count { display: block; margin-top: 4px; font-size: 13px; color: var(--ink-2); }
.people .entity-name { display: block; font-weight: 600; overflow-wrap: anywhere; }
.people .entity-by { display: block; margin-top: 6px; font-size: 13px; color: var(--ink-2); }
.people li { min-width: 0; background: var(--card); }
.people li.self { border-color: var(--brand); background: var(--brand-wash); }
.people li.pending { background: var(--gold-wash); }
.people .gauge { margin-top: 6px; }
.people details.proof { margin-top: 6px; }
.people details.proof > summary { font-size: 12px; padding: 3px 0; }
.people details.proof .src { overflow-wrap: anywhere; margin-top: 4px; }
details.more > ul.people { margin-top: 10px; }
details.pending-fold > ul.people { margin-top: 10px; }
.meta > span.badge { border-left: none; padding-left: 9px; }

/* ---------- E11-F94, lot G: acheteurs accessibles and CPV × département ----------
   The territory is chosen on the map beside the form; the ranking reads as
   bars, its full table folded; the open consultations sit beside the form
   that follows them. */
.acc-choose .map-grid { align-items: center; }
.acc-choose.compact .map-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.acc-choose.compact figure.map svg { max-height: 340px; }
.acc-side form.search { max-width: none; margin: 0; }
.acc-side .filters { grid-template-columns: 1fr; margin: 0 0 12px; }
.chips.sorts { margin-top: 0; }
.chips.sorts .chip { text-decoration: none; font-weight: 600; }
.chips.sorts .chip.current { background: var(--brand-wash); border-color: var(--brand); color: var(--brand-strong); }
table.data.acc-table th.num { white-space: normal; }
.card .card-title { font-size: var(--text-md); margin: 0 0 10px; }
figure.chart + ul.amounts { margin-top: 14px; }
#echeances form.subscribe, .layout-pair form.subscribe { max-width: none; }
.layout-pair > * > form.subscribe { margin-top: 0; }
.layout-pair > * > p.trial-line { margin-top: 14px; }
.layout-pair > * > p.trial-line + form.subscribe { margin-top: var(--s4); }

@media print {
  .nav-links, form.search, details.more > summary { display: none; }
  details.more > ol.bars, details.fold > * { display: block; }
  .card, .tiles > li { break-inside: avoid; }
  body { background: #fff; }
  .col-bar, .bar-fill, .seg, .gauge > span, figure.map use, svg.locator use, .key { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}

/* ---------- E20-F1, E14-F23: the e-mail form (web/templates/subscribe.html) ---------- */
form.subscribe {
  max-width: 640px; margin-top: var(--s5); padding: var(--s4) var(--s5);
  background: var(--brand-wash); border-radius: var(--radius);
}
form.subscribe .title { font-size: var(--text-md); font-weight: 750; margin: 0; }
form.subscribe .purpose { font-size: 14px; color: var(--ink-2); margin: 2px 0 var(--s3); }
form.subscribe label { display: block; font-size: var(--text-sm); font-weight: 600; color: var(--ink-2); margin-bottom: 5px; }
form.subscribe .row { display: flex; flex-wrap: wrap; gap: var(--s2); }
form.subscribe input {
  flex: 1 1 220px; min-width: 0; font: inherit; font-size: 16px; color: var(--ink); background: var(--card);
  border: 1px solid var(--line-2); border-radius: 8px; padding: 10px 14px;
}
form.subscribe input::placeholder { color: var(--muted); }
form.subscribe button {
  flex: 0 1 auto; font: inherit; font-size: 15px; font-weight: 650; color: #fff; white-space: nowrap;
  background: var(--brand); border: 1px solid transparent; border-radius: 8px;
  padding: 10px 18px; cursor: pointer;
}
form.subscribe button:hover { background: var(--brand-strong); }
form.subscribe input:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
form.subscribe button:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
form.subscribe .consent { font-size: var(--text-xs); color: var(--muted); margin-top: var(--s2); }
form.subscribe .trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.card > form.subscribe, .pro > form.subscribe { margin-top: var(--s4); }
.container > form.subscribe { margin-bottom: var(--s5); }
.subscribed p:last-child { margin-top: var(--s3); }
.subscribed .lede + .lede { margin-top: var(--s2); }
@media print { form.subscribe, .account-call { display: none; } }

/* E13-F49, E13-F50: the free account's invitation (macros.account_call). */
.account-call {
  margin-top: var(--s5); padding: var(--s4) var(--s5);
  background: var(--brand-wash); border-radius: var(--radius);
}
.account-call > :is(.title, p) { max-width: 640px; }
.fhead .account-call { margin-top: var(--s4); padding: var(--s3) var(--s4); }
.fhead .account-call .title { font-size: 15px; }
.account-call .title { font-size: var(--text-md); font-weight: 750; margin: 0; }
.account-call p { font-size: 14px; color: var(--ink-2); margin: 2px 0 var(--s3); }
.account-call p:last-child { margin: 0; }
.card > .account-call, .pro > .account-call { margin-top: var(--s4); }

/* ---------- E11-F97, lot F: the tarifs page ---------- */
.pricing { max-width: 1080px; }
.pricing-hero { padding: 20px 0 8px; max-width: 760px; }
.pricing-hero h1 { font-size: var(--text-2xl); letter-spacing: -0.02em; }
.pricing-hero .lede { font-size: 18px; margin-top: 12px; }
ul.plans { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); margin-top: var(--s5); }
.plan-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s5); display: flex; flex-direction: column; gap: var(--s2); min-width: 0; }
.plan-card.pro { border: 2px solid var(--brand); }
.plan-card h2 { font-size: var(--text-lg); }
.plan-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2); }
.plan-card .price { font-size: var(--text-xl); font-weight: 750; letter-spacing: -0.015em; font-variant-numeric: tabular-nums; }
.plan-card .terms { font-size: 14px; color: var(--ink-2); }
.plan-card ul.holds { margin: var(--s2) 0 var(--s3) 18px; font-size: 14px; color: var(--ink-2); display: grid; gap: var(--s1); flex: 1; align-content: start; }
.plan-card > a.button { align-self: flex-start; }
p.beyond { font-size: 14px; color: var(--ink-2); margin-top: var(--s3); }
p.trial-line { margin-top: var(--s4); padding: var(--s3) var(--s4); background: var(--brand-wash); border-radius: var(--radius); font-size: 15px; color: var(--ink-2); }
p.trial-line strong { color: var(--brand-strong); }
table.data.compare { width: 100%; }
table.data.compare th:not(:first-child), table.data.compare td:not(.what) { width: 26%; }
table.data.compare td.what { font-weight: 600; color: var(--ink); }
.faq .card { padding-top: var(--s2); padding-bottom: var(--s2); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: none; }
.faq summary { cursor: pointer; font-weight: 650; padding: var(--s3) 0; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: " ▾"; color: var(--brand); }
.faq details[open] > summary::after { content: " ▴"; }
.faq details > :is(p, ul) { max-width: 72ch; color: var(--ink-2); padding-bottom: var(--s3); }
.faq details > ul:not([class]) { margin-bottom: 0; }

/* ---------- E11-F105a: radar months, the year and the days a cut month counts ---------- */
ol.columns:has(.sub) { height: 204px; }
ol.columns:has(.sub) .col-label { height: 3.9em; line-height: 1.3; }
ol.columns .col-label .sub { display: block; white-space: pre; font-size: inherit; color: var(--ink-2); }
ol.columns li.partial .col-bar { background: repeating-linear-gradient(-45deg, var(--data-1) 0 1.5px, var(--map-1) 1.5px 6px); border: 2px solid var(--data-1); border-bottom: 0; }
ol.columns li.partial:first-child .col-label, ol.columns li.partial:last-child .col-label { overflow: visible; max-width: none; }
ol.columns li.partial:first-child { align-items: flex-start; }
ol.columns li.partial:last-child { align-items: flex-end; }
ol.columns li.partial:last-child .col-label { text-align: right; }

/* E11-F106: a month series in a narrow card prints its values short, the
   exact value kept for screen readers and in the title */
ol.columns { container-type: inline-size; }
.col-value .short { display: none; }
@container (max-width: 600px) {
  ol.columns:has(> li:nth-child(10)) .col-value .short { display: inline; }
  ol.columns:has(> li:nth-child(10)) .col-value .full { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
/* QA of 2026-10-17 (B-N4): on a phone, seven columns of six-digit values touch. */
@container (max-width: 400px) {
  ol.columns:has(> li:nth-child(7)) .col-value .short { display: inline; }
  ol.columns:has(> li:nth-child(7)) .col-value .full { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* E11-F104: text for screen readers only */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* E11-F233: a link out of the site says it opens a new tab */
a .ext { margin-left: 0.15em; font-size: 0.85em; }

/* ---------- E11-F10: /stats opened, the accueil's link and the citations ---------- */
.tiles .tile-link { padding: 2px 0; font-size: var(--text-sm); font-weight: 600; }
.fold.cite .src { overflow-wrap: anywhere; }
#offre-unique ol.columns li.partial, #avis-par-an ol.columns li.partial { align-items: center; }
#offre-unique ol.columns li.partial .col-label, #avis-par-an ol.columns li.partial .col-label { text-align: center; }
ol.columns li.thin .col-bar { background: transparent; border: 2px dashed var(--data-1); border-bottom: 0; }
#offre-unique .col-label { text-align: center; }

/* QA of 2026-10-17, round 2 (B2-N23, A2-N20): every target outside the maps at
   least 24 px (WCAG 2.5.8); an inline link grows by its padding, its line unmoved. */
nav.pages a { display: inline-block; min-width: 24px; min-height: 24px; line-height: 24px; text-align: center; }
.section-head .see-all, a.tile-link:not(.clamp) { display: inline-block; min-height: 24px; line-height: 24px; }
a.clamp { min-height: 24px; }
table.data td a:not(.clamp, .twin), .bar-label a, .sub > a, .entity-name a, p > a:only-child:not(.clamp, .button) { padding-block: 5px; }

/* The state of an avis de marché in words (founder request of 2026-10-20):
   the colour only repeats the label. */
.state { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px;
  font-size: var(--text-xs); font-weight: 650; line-height: 18px; width: fit-content; }
.state-open { background: var(--brand-wash); color: var(--brand-strong); }
.state-soon { background: var(--gold-wash); color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.state-closed, .state-cancelled, .state-undated, .state-implausible { background: var(--map-0); color: var(--ink-2); }
ol.results > li.result.soon { border-color: var(--gold); }
.until { color: var(--muted); font-size: var(--text-sm); }
.actions { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; font-size: var(--text-sm); }
main.container .actions a { display: inline-flex; align-items: center; min-height: 24px; font-weight: 600; }
main.container .actions a.secondary { font-weight: 400; color: var(--ink-2); }
.summary-line { margin: 4px 0 8px; }
.summary-line .fig { font-weight: 750; }
.sortbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 6px 0 4px;
  font-size: var(--text-sm); color: var(--ink-2); }
.sortbar .label { font-weight: 650; color: var(--ink); }
main.container .sortbar a { display: inline-flex; align-items: center; min-height: 28px; padding: 2px 12px;
  border: 1px solid var(--line-2); border-radius: 999px; background: var(--card); color: var(--ink-2);
  text-decoration: none; font-weight: 600; }
main.container .sortbar a[aria-current] { background: var(--brand-wash); border-color: var(--brand); color: var(--brand-strong); }
main.container .sortbar a:hover { border-color: var(--brand); color: var(--brand-strong); }
.group-head { font-size: var(--text-md); margin: 18px 0 0; }
.order-note { font-size: var(--text-sm); color: var(--muted); margin: 2px 0 0; }
details.past { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 10px; }
details.past > summary { cursor: pointer; min-height: 24px; }
details.past > summary .group-title { font-size: var(--text-md); font-weight: 700; color: var(--ink-2); }
ol.rows.notices > li { grid-template-columns: 11.5em minmax(0, 1fr); }
ol.rows.notices .when .state { display: flex; margin-top: 4px; }
.actions.primary { align-items: center; margin: 8px 0 12px; font-size: var(--text-md); }
ul.directory { columns: 16rem; column-gap: 24px; margin: 0; padding-left: 0; list-style: none; font-size: 14px; }
ul.directory li { break-inside: avoid; padding: 2px 0; }
