/* Parcells site components (owner: the kit). Values come from tokens.css; light only.
   Sizes through --t-* tokens; inside an SVG drawing (svg, .draw) a drawing size is allowed.
   A page's own styles go in static/css/p-<group>.css, never here (KIT.md).
   Order: base, layout, type, links and buttons, sign-in note, header, panels, menu, footer, section heads, page hero, page end,
   tags, floating pieces (card, tooltip, legend, chips, segmented, tabs, sliders), frame, tables, FAQ, need, consent,
   documents and fiche, plan and picker, app window, sources, notes, jumps, band, poster, rail, drawings, motion. */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--e-5); }
body {
  margin: 0; background: var(--papier); color: var(--encre);
  font-family: var(--f-texte); font-size: var(--t-body); line-height: var(--l-body);
  font-stretch: var(--chasse-texte); font-weight: var(--g-texte);
  font-variant-numeric: lining-nums tabular-nums; overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
figure { min-width: 0; max-width: 100%; margin: 0; }
figure > *, .grid > *, .doc { min-width: 0; }
p, ul, ol, dl, dd, blockquote { margin: 0; }
strong, b { font-weight: var(--g-fort); }
main { display: block; }
main:focus { outline: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
[hidden] { display: none !important; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: var(--e-2); top: var(--e-2); z-index: 60; padding: var(--e-2) var(--e-3);
  background: var(--encre); color: var(--sur-encre); border-radius: var(--r); font-weight: var(--g-fort); transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* ---------- Layout: 4 / 8 / 12 columns, 1320 px ---------- */
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gouttiere)); margin-inline: auto; padding-inline: var(--gouttiere); }
.grid { display: grid; grid-template-columns: repeat(var(--colonnes), minmax(0, 1fr)); column-gap: var(--inter-colonne); row-gap: var(--e-6); }
.grid > * { grid-column: 1 / -1; min-width: 0; }
@media (min-width: 760px) {
  .s-md-2 { grid-column: span 2; } .s-md-3 { grid-column: span 3; } .s-md-4 { grid-column: span 4; }
  .s-md-5 { grid-column: span 5; } .s-md-6 { grid-column: span 6; } .s-md-8 { grid-column: 1 / -1; }
}
@media (min-width: 1200px) {
  .s-lg-2 { grid-column: span 2; } .s-lg-3 { grid-column: span 3; } .s-lg-4 { grid-column: span 4; }
  .s-lg-5 { grid-column: span 5; } .s-lg-6 { grid-column: span 6; } .s-lg-7 { grid-column: span 7; }
  .s-lg-8 { grid-column: span 8; } .s-lg-9 { grid-column: span 9; } .s-lg-12 { grid-column: 1 / -1; }
}
.measure { max-width: var(--mesure); }
.stack > * + * { margin-top: var(--e-4); }

/* ---------- Section: 1px ink rule above, stacked head (title, then its paragraph directly under, same column). Always. ---------- */
.sec { padding-block: var(--e-section); border-top: var(--filet-w) solid var(--encre); }
.sec--flush { border-top: 0; }
.sec-h { display: grid; gap: var(--e-3); justify-items: start; margin-bottom: var(--e-bloc); }
.sec-h h2 { max-width: 34ch; }
.sec-foot { margin-top: var(--e-bloc); display: flex; flex-wrap: wrap; gap: var(--e-2) var(--e-6); align-items: baseline; }

/* ---------- Type ---------- */
h1, h2, h3 { margin: 0; font-stretch: var(--chasse-titre); font-weight: var(--g-titre); text-wrap: balance; }
h1 { font-size: var(--t-h1); line-height: var(--l-h1); letter-spacing: var(--e-h1); }
.display, h1.display { font-size: var(--t-display); font-weight: var(--g-display); line-height: var(--l-display); letter-spacing: var(--e-display); }
h2 { font-size: var(--t-h2); line-height: var(--l-h2); letter-spacing: var(--e-h2); max-width: 34ch; }
h3 { font-size: var(--t-h3); line-height: var(--l-h3); font-weight: var(--g-h3); font-stretch: var(--chasse-texte); letter-spacing: var(--e-texte); }
.lede { font-size: var(--t-lede); line-height: var(--l-lede); color: var(--encre-2); max-width: 52ch; text-wrap: pretty; }
.t3 { font-size: var(--t-h3); line-height: var(--l-h3); font-weight: var(--g-h3); font-stretch: var(--chasse-texte); letter-spacing: var(--e-texte); }
.cap { margin-top: var(--e-3); max-width: 60ch; font-size: var(--t-small); line-height: var(--l-small); color: var(--encre-2); }
.small { font-size: var(--t-small); line-height: var(--l-small); }
.label { font-size: var(--t-label); font-weight: var(--g-label); line-height: var(--l-label); }
.muted { color: var(--encre-2); }
.ref { font-family: var(--f-ref); font-size: var(--t-ref); line-height: var(--l-ref); font-weight: var(--g-texte); font-stretch: normal; letter-spacing: 0; }
.note { font-size: var(--t-small); line-height: var(--l-small); color: var(--encre-2); }
.prose { max-width: var(--mesure); }
.prose > * + * { margin-top: var(--e-4); }
.prose h2 { margin-top: var(--e-7); }
.prose h3 { margin-top: var(--e-6); }
.prose ul, .prose ol { padding-left: 1.2em; display: grid; gap: var(--e-2); }

/* ---------- Links and buttons ---------- */
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
.lk { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; font-weight: var(--g-fort); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.lk:hover { text-decoration-thickness: 2px; }
.lk--inv { color: var(--sur-encre); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; height: var(--h-bouton); padding: 0 22px;
  border-radius: var(--r); background: var(--encre); color: var(--sur-encre); font-family: inherit;
  font-size: var(--t-bouton); font-weight: var(--g-fort); line-height: 1; text-decoration: none;
  border: var(--trait-w) solid var(--encre); white-space: nowrap; cursor: pointer;
}
.btn:hover { background: var(--encre-survol); border-color: var(--encre-survol); }
.btn--s { height: var(--h-bouton-s); padding: 0 16px; font-size: var(--t-small); }
.btn--2 { background: transparent; color: var(--encre); }
.btn--2:hover { background: var(--calque); border-color: var(--encre); }
.btn--inv { background: var(--sur-encre); color: var(--encre); border-color: var(--sur-encre); }
.btn--inv:hover { background: var(--calque); border-color: var(--calque); }
.is-drawn { pointer-events: none; }
.cta { display: flex; flex-direction: column; align-items: flex-start; gap: var(--e-2); margin-top: var(--e-6); }
.cta-note { font-size: var(--t-small); line-height: var(--l-small); color: var(--encre-2); }

/* ---------- Sign-in note: official marks, then the sentence; always under its button ---------- */
.auth { display: flex; flex-wrap: wrap; align-items: center; gap: var(--e-1) var(--e-2); font-size: var(--t-small); line-height: var(--l-small); color: var(--encre-2); }
.auth-marks { flex: none; display: inline-flex; align-items: center; gap: var(--e-1); }
.auth-marks svg { width: 14px; height: 14px; }
.auth--inv { color: var(--sur-encre-2); }
.auth--inv .auth-marks { background: var(--sur-encre); padding: 3px 4px; border-radius: var(--r); }

/* ---------- Header ---------- */
.hd { position: relative; z-index: 20; background: var(--papier); border-bottom: var(--filet-w) solid var(--encre); }
.hd-row { height: var(--h-entete); display: flex; align-items: center; gap: var(--e-6); }
.hd-logo { display: block; flex: none; }
.hd-long { height: 32px; width: auto; }
.hd-stamp { display: none; height: 32px; width: 32px; }
.hd-nav { align-self: stretch; }
.hd-list { display: flex; gap: 28px; height: 100%; list-style: none; margin: 0; padding: 0; }
.hd-list > li { position: relative; display: flex; align-items: center; }
.hd-list > li > a, .hd-trig { font-size: var(--t-bouton); text-decoration: none; }
.hd-list > li > a:hover, .hd-trig:hover span, .hd-trig[aria-expanded="true"] span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.hd-list > li > a[aria-current], .hd-trig[aria-current] span, .hd-nojs[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.hd-trig { display: inline-flex; align-items: center; gap: var(--e-1); height: 100%; padding: 0; font-family: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.hd-chev { flex: none; transition: transform var(--duree-1) var(--courbe); }
.hd-trig[aria-expanded="true"] .hd-chev { transform: rotate(180deg); }
.js .hd-nojs, .no-js .hd-trig { display: none; }
.hd-cta { margin-left: auto; }
.hd-panel {
  position: absolute; left: calc(-1 * var(--e-3)); top: 100%; z-index: 21; width: 420px; max-width: calc(100vw - 2 * var(--gouttiere)); padding: var(--e-2);
  background: var(--feuille); border: var(--filet-w) solid var(--filet-doux); border-radius: var(--r); box-shadow: var(--ombre-portee);
  visibility: hidden; opacity: 0; transform: translateY(-6px); transform-origin: 0 0;
  transition: opacity var(--duree-1) linear, transform var(--duree-1) var(--courbe), visibility 0s linear var(--duree-1);
}
.hd-panel.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity var(--duree-1) linear, transform var(--duree-1) var(--courbe), visibility 0s; }
.no-js .hd-panel { display: none; }
.hd-panel ul { list-style: none; margin: 0; padding: 0; }
.hd-p-row { display: grid; gap: 2px; align-content: center; min-height: 64px; padding: var(--e-2) var(--e-3); border-radius: var(--r); color: var(--encre); text-decoration: none; }
.hd-p-row:hover { background: var(--calque); }
.hd-p-t { font-size: var(--t-bouton); line-height: var(--l-label); font-weight: var(--g-fort); }
.hd-p-d { font-size: var(--t-small); line-height: var(--l-small); color: var(--encre-2); }
.hd-p-row[aria-current] .hd-p-t { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.hd-p-all { min-height: var(--h-bouton); margin-top: var(--e-2); }
.hd-panel ul + .hd-p-all { position: relative; }
.hd-panel ul + .hd-p-all::before { content: ""; position: absolute; left: var(--e-3); right: var(--e-3); top: calc(-1 * var(--e-1) - 1px); border-top: var(--filet-w) solid var(--trait-fin); }
.hd-menu {
  display: none; height: var(--h-bouton-s); padding: 0 14px; border: var(--trait-w) solid var(--encre); border-radius: var(--r);
  background: none; color: var(--encre); font: var(--g-fort) var(--t-bouton)/1 var(--f-texte); cursor: pointer;
}
@media (max-width: 899px) {
  .hd-nav { display: none; }
  .hd-menu { display: inline-flex; align-items: center; }
}
@media (max-width: 759px) {
  .hd-row { gap: var(--e-3); }
  .hd-long, .hd-cta { display: none; }
  .hd-stamp { display: block; }
  .hd-menu { margin-left: auto; }
}

/* ---------- Menu (phone) ---------- */
.menu { background: var(--papier); border-top: var(--filet-w) solid var(--encre); padding-block: var(--e-4) var(--e-5); max-height: calc(100dvh - var(--h-entete)); overflow-y: auto; }
.menu ul { list-style: none; margin: 0; padding: 0; font-size: var(--t-valeur); }
.menu a { display: flex; align-items: center; min-height: 48px; text-decoration: none; }
.menu a[aria-current] { font-weight: var(--g-fort); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.menu-h { margin-top: var(--e-4); font-size: var(--t-label); line-height: var(--l-label); font-weight: var(--g-fort); color: var(--encre-2); }
.menu-h:first-child { margin-top: 0; }
.menu-rest { margin-top: var(--e-3); padding-top: var(--e-2); border-top: var(--filet-w) solid var(--trait-fin); }
.menu-note { margin-top: var(--e-3); }

/* ---------- Footer ---------- */
.ft { padding-block: var(--e-7) var(--e-6); border-top: var(--filet-w) solid var(--encre); }
.ft-top { display: grid; gap: var(--e-6); }
.ft-logo { display: block; width: max-content; }
.ft-logo img { height: 32px; width: auto; }
.ft-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--e-5); }
.ft-h { font-size: var(--t-label); line-height: var(--l-label); font-weight: var(--g-fort); font-stretch: var(--chasse-texte); letter-spacing: 0; color: var(--encre-2); margin-bottom: 10px; max-width: none; }
.ft-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: var(--t-small); }
.ft a { text-decoration: none; }
.ft a:hover { text-decoration: underline; }
.ft a[aria-current] { font-weight: var(--g-fort); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.ft-consent { font-weight: var(--g-texte); text-decoration: none; text-align: left; }
.ft-bottom { margin-top: 40px; display: flex; flex-wrap: wrap; gap: var(--e-2) var(--e-5); font-size: var(--t-small); color: var(--encre-2); }
.ft-bottom a { color: var(--encre); }
.ft-lang ul { display: flex; gap: var(--e-4); list-style: none; margin: 0; padding: 0; }
@media (min-width: 760px) { .ft-top { grid-template-columns: 1fr 3fr; } .ft-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Page hero of an inner page: title and lede on one side, the visual on the other ---------- */
.ph { padding-block: var(--e-haut) var(--e-section); }
.ph-row { display: grid; gap: var(--e-6); }
.ph-t { max-width: 20ch; font-size: var(--t-h1); line-height: var(--l-h1); letter-spacing: var(--e-h1); }
.ph .lede { margin-top: var(--e-4); }
.ph-visual { position: relative; min-width: 0; }
.ph-need { display: grid; place-items: center; aspect-ratio: 16 / 10; background: var(--feuille); border: 1px dashed var(--trait-fort); border-radius: var(--r); }
@media (min-width: 1100px) {
  .ph--split .ph-row { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; column-gap: var(--e-7); }
  .ph--split .ph-text { padding-top: var(--e-6); }
}
.crumbs ol { display: flex; flex-wrap: wrap; list-style: none; margin: 0 0 var(--e-4); padding: 0; font-size: var(--t-small); color: var(--encre-2); }
.crumbs li + li::before { content: "›"; margin-inline: var(--e-2); }
.crumbs a { color: var(--encre); }

/* ---------- Page end: « Page suivante », sources line, the .tail that holds them ---------- */
.tail { border-top: var(--filet-w) solid var(--encre); padding-block: var(--e-5); }
.tail-row { display: grid; gap: var(--e-4) var(--e-7); }
@media (min-width: 760px) { .tail-row { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } }
.tail .src-line { padding-block: 0; }
.tail .next { border-top: 0; }
.tail .next-a { padding-block: 0; }
.next { border-top: var(--filet-w) solid var(--encre); }
.next-a { display: inline-flex; flex-direction: column; gap: var(--e-1); padding-block: var(--e-6); text-decoration: none; }
.next-k { font-size: var(--t-small); color: var(--encre-2); }
.next-v { font-size: var(--t-h3); line-height: var(--l-h3); font-weight: var(--g-titre); font-stretch: var(--chasse-titre); letter-spacing: 0; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.12em; }
.next-a:hover .next-v { text-decoration-thickness: 2px; }
.src-line { display: flex; flex-wrap: wrap; gap: var(--e-2) var(--e-5); align-items: baseline; padding-block: var(--e-6); font-size: var(--t-small); line-height: var(--l-small); color: var(--encre-2); }
.src-line p { max-width: var(--mesure); }
.src-line .lk { color: var(--encre); }

/* ---------- Tags and states ---------- */
.fictif { display: inline-block; font-family: var(--f-ref); font-size: var(--t-fictif); font-weight: 400; line-height: var(--l-label); white-space: nowrap; color: var(--encre-2); background: rgba(255, 253, 249, .88); padding: 0 var(--e-1); border-radius: var(--r); }
.fictif.is-abs { position: absolute; z-index: 6; top: 8px; left: 8px; }
.state { display: inline-block; font-size: var(--t-label); font-weight: var(--g-fort); line-height: var(--l-label); padding: 1px var(--e-2); border: 1px solid currentColor; border-radius: var(--r); white-space: nowrap; }
.state--ok { color: var(--ok); } .state--alerte { color: var(--alerte); } .state--danger { color: var(--danger); }

/* ---------- Floating pieces: card, tooltip, legend, chips ---------- */
.flot { position: absolute; z-index: 3; background: var(--app-fond); border-radius: var(--r); box-shadow: var(--ombre-carte); border: 1px solid var(--filet-doux); padding: var(--e-4); font-size: var(--t-small); line-height: 1.4; }
.flot-t { font-weight: var(--g-h3); font-size: var(--t-valeur); line-height: var(--l-h3); }
.flot--inline { position: static; }
.tip { position: absolute; z-index: 2; background: var(--app-fond); border-radius: var(--r); box-shadow: var(--ombre-carte); padding: 7px 10px; font-size: var(--t-label); line-height: var(--l-label); white-space: nowrap; }
.tip b { font-size: var(--t-small); }
.anim .tip--late { opacity: 0; transform: translate(-104%, -120%) translateY(6px); transition: opacity 300ms 1200ms, transform 400ms var(--courbe) 1200ms; }
.anim .in .tip--late { opacity: 1; transform: translate(-104%, -120%); }
.tip--late { transform: translate(-104%, -120%); }
.legend { position: absolute; z-index: 3; left: 14px; bottom: var(--e-3); display: flex; gap: var(--e-3); padding: 6px 10px; font-size: var(--t-label); line-height: var(--l-label); color: var(--encre-2); background: var(--feuille); border-radius: var(--r); box-shadow: var(--ombre-carte); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: var(--r); margin-right: 5px; vertical-align: -1px; }
.chip { display: inline-block; font-family: var(--f-ref); font-size: var(--t-label); font-weight: var(--g-label); line-height: var(--l-label); border: 1px solid var(--app-filet); border-radius: var(--r); padding: 0 6px; margin-right: var(--e-1); }

/* ---------- Segmented control and tabs ---------- */
.seg { display: inline-flex; background: var(--calque); border-radius: var(--r); padding: 3px; box-shadow: var(--ombre-proche); }
.seg button { font: var(--g-label) var(--t-label)/1 var(--f-texte); color: var(--encre-2); background: transparent; border: 0; border-radius: var(--r); padding: 9px var(--e-3); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--feuille); color: var(--encre); box-shadow: 0 1px 2px rgba(43, 32, 24, .14); }
.tabs { max-width: 100%; display: flex; gap: var(--e-4); padding: 0 var(--e-3); border-bottom: 1px solid var(--trait-fort); overflow-x: auto; scrollbar-width: none; white-space: nowrap; scroll-padding-inline: var(--e-6); }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; appearance: none; background: none; border: 0; cursor: pointer; padding: var(--e-3) var(--e-1) calc(var(--e-3) - 2px); font: inherit; font-size: var(--t-small); color: var(--encre-2); box-shadow: inset 0 -2px 0 transparent; }
.tab:hover { color: var(--encre); }
.tab[aria-selected="true"] { color: var(--encre); font-weight: var(--g-h3); box-shadow: inset 0 -2px 0 var(--encre); }
.tab:focus-visible { outline-offset: -3px; }

/* ---------- Sliders ---------- */
.sld { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; font-size: var(--t-label); line-height: var(--l-label); color: var(--encre-2); }
.sld output { color: var(--encre); font-weight: var(--g-fort); }
.sld input { grid-column: 1 / -1; width: 100%; height: 20px; margin: 0; background: none; -webkit-appearance: none; appearance: none; cursor: pointer; }
.sld input::-webkit-slider-runnable-track { height: 4px; border-radius: var(--r); background: var(--dessin-trait); }
.sld input::-moz-range-track { height: 4px; border-radius: var(--r); background: var(--dessin-trait); }
.sld input::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -6px; border-radius: var(--r); background: var(--feuille); border: 2px solid var(--encre); box-shadow: 0 1px 3px rgba(43, 32, 24, .3); }
.sld input::-moz-range-thumb { width: 13px; height: 13px; border-radius: var(--r); background: var(--feuille); border: 2px solid var(--encre); box-shadow: 0 1px 3px rgba(43, 32, 24, .3); }

/* ---------- App window frame ---------- */
.cadre { position: relative; border-radius: var(--r); overflow: hidden; background: var(--feuille); border: 1px solid var(--filet-doux); box-shadow: var(--ombre-fenetre); isolation: isolate; aspect-ratio: 16 / 9; }
.cadre--fixe { aspect-ratio: auto; height: 540px; }
@media (min-width: 1200px) { .cadre--fixe { height: auto; aspect-ratio: 16 / 9; } }

/* ---------- Tables, plain and filtered ---------- */
.tbl { max-width: 100%; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: var(--t-small); line-height: var(--l-small); }
.table caption { text-align: left; padding-bottom: var(--e-3); font-weight: var(--g-fort); }
.table th { text-align: left; vertical-align: bottom; font-weight: var(--g-fort); padding: var(--e-2) var(--e-4) var(--e-2) 0; border-bottom: var(--trait-w) solid var(--encre); }
.table td { vertical-align: top; padding: var(--e-3) var(--e-4) var(--e-3) 0; border-bottom: 1px solid var(--trait-fin); }
.table tbody tr:hover { background: var(--calque); }
.table .num { text-align: right; white-space: nowrap; }
.table th:last-child, .table td:last-child { padding-right: 0; }
@media (max-width: 759px) { .table { min-width: 600px; } }
.filt-bar { display: flex; flex-wrap: wrap; gap: var(--e-2); align-items: center; margin-bottom: var(--e-4); }
.filt-bar button { font: var(--g-label) var(--t-label)/1.35 var(--f-texte); color: var(--encre); background: var(--feuille); border: 1px solid var(--trait-fort); border-radius: var(--r); padding: var(--e-1) 10px; cursor: pointer; }
.filt-bar button[aria-pressed="true"] { background: var(--encre); color: var(--sur-encre); border-color: var(--encre); }
.filt-count { margin-left: auto; color: var(--encre-2); font-size: var(--t-small); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--trait-fort); max-width: calc(var(--mesure) + 8ch); }
.faq-i { border-bottom: 1px solid var(--trait-fort); }
.faq-i summary { display: flex; justify-content: space-between; align-items: center; gap: var(--e-5); padding: var(--e-5) 0; cursor: pointer; list-style: none; font-size: var(--t-h3); line-height: var(--l-h3); font-weight: var(--g-h3); }
.faq-i summary::-webkit-details-marker { display: none; }
.faq-plus { position: relative; flex: none; width: 16px; height: 16px; transition: transform var(--duree-1) var(--courbe); }
.faq-plus::before, .faq-plus::after { content: ""; position: absolute; background: var(--encre); }
.faq-plus::before { left: 0; right: 0; top: calc(50% - 0.75px); height: 1.5px; }
.faq-plus::after { top: 0; bottom: 0; left: calc(50% - 0.75px); width: 1.5px; }
.faq-i[open] .faq-plus { transform: rotate(45deg); }
.faq-a { padding-bottom: var(--e-5); max-width: var(--mesure); color: var(--encre-2); }

/* ---------- Unknown figure: « ··· » with its tooltip ---------- */
.need { position: relative; color: var(--encre-2); border-bottom: 1px dotted currentColor; cursor: help; white-space: nowrap; }
.need:hover::after, .need:focus::after {
  content: attr(data-need); position: absolute; left: 0; top: calc(100% + 6px); z-index: 30; width: max-content; max-width: min(320px, 80vw); white-space: normal; text-align: left;
  font-family: var(--f-texte); font-size: var(--t-label); font-weight: var(--g-label); line-height: var(--l-label); color: var(--sur-encre); background: var(--encre); padding: var(--e-1) var(--e-2); border-radius: var(--r);
}
.need:focus-visible { outline-offset: 2px; }

/* ---------- Consent banner (only when GA is set) ---------- */
.consent { position: fixed; left: var(--gouttiere); right: var(--gouttiere); bottom: var(--gouttiere); z-index: 40; max-width: 720px; margin-inline: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--e-3) var(--e-5); padding: var(--e-4) var(--e-5); background: var(--feuille); border: 1px solid var(--filet-doux); box-shadow: var(--ombre-carte); border-radius: var(--r); }
.consent-text { flex: 1 1 300px; font-size: var(--t-small); line-height: var(--l-small); }
.consent-actions { display: flex; gap: var(--e-3); }
.consent-actions .btn { min-width: 112px; }

/* ---------- Documents: feuille, soft shadow ---------- */
.doc { position: relative; background: var(--feuille); border: 1px solid var(--filet-doux); border-radius: var(--r); box-shadow: var(--ombre-portee); }
.doc--flat { border: 0; box-shadow: none; }

/* ---------- Fiche parcelle: the six-cell sheet ---------- */
.sheet { font-size: var(--t-small); line-height: var(--l-small); }
.sheet > .fictif { position: absolute; left: var(--e-3); top: calc(-1 * var(--e-5)); }
.sheet-t { display: flex; justify-content: space-between; align-items: baseline; gap: var(--e-3); padding: var(--e-4) var(--e-4) 0; font-size: var(--t-label); }
.sheet-t b { font-weight: var(--g-fort); }
.sheet-vals { transition: opacity var(--duree-1) linear; }
.is-swapping .sheet-vals { opacity: 0; }
.sheet-ad { padding: var(--e-1) var(--e-4) var(--e-3); border-bottom: 1px solid var(--trait-fin); }
.sheet-ad strong { display: block; font-size: var(--t-fig); line-height: 1.2; font-weight: var(--g-h3); font-stretch: var(--chasse-titre); }
.sheet-ad span { color: var(--encre-2); }
.cells { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.cell { padding: 10px var(--e-4); border-bottom: 1px solid var(--trait-fin); min-width: 0; }
.cell:nth-child(odd) { border-right: 1px solid var(--trait-fin); }
.cell dt { font-size: var(--t-label); font-weight: var(--g-label); line-height: var(--l-label); color: var(--encre-2); }
.cell dd { margin: 0; }
.cell .v { display: block; font-size: var(--t-valeur); font-weight: var(--g-h3); line-height: 1.3; overflow-wrap: anywhere; }
.cell .ref, .cell .sub { display: block; color: var(--encre-2); }
.cell .sub { font-size: var(--t-label); line-height: var(--l-label); }
.sheet-ft { display: flex; gap: 10px; padding: var(--e-3) var(--e-4) var(--e-4); }
.sheet-ft .btn { flex: 1; padding: 0 10px; }

/* ---------- Fiche parcelle with six tabs ---------- */
.f6 { font-size: var(--t-small); line-height: var(--l-small); }
.f6-head { padding: var(--e-4) var(--e-4) var(--e-3); }
.f6-head .fictif { margin-bottom: var(--e-3); }
.f6-t { display: flex; flex-wrap: wrap; gap: var(--e-1) var(--e-3); align-items: baseline; }
.f6-t b { font-weight: var(--g-h3); }
.f6-t .ref { color: var(--encre-2); }
.f6-ad { margin-top: var(--e-1); font-size: var(--t-fig); line-height: var(--l-h3); font-weight: var(--g-h3); font-stretch: var(--chasse-titre); }
.f6-panel { padding: var(--e-3) var(--e-4) var(--e-4); }
.f6-panel:focus-visible { outline-offset: -3px; }
.f6-ft { display: flex; flex-wrap: wrap; align-items: center; gap: var(--e-3) var(--e-4); padding: var(--e-3) var(--e-4); border-top: 1px solid var(--trait-fin); }
.f-grp { display: flex; flex-wrap: wrap; align-items: center; gap: var(--e-2); margin-top: var(--e-4); font-weight: var(--g-h3); }
.f-grp:first-child { margin-top: 0; }
.f-rows { list-style: none; margin: var(--e-2) 0 0; padding: 0; }
.f-rows li { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: var(--e-1) var(--e-3); align-items: baseline; padding: var(--e-2) 0; border-bottom: 1px solid var(--trait-fin); }
.f-k { color: var(--encre-2); }
.f-v { font-weight: var(--g-h3); }
.f-rows .ref { text-align: right; white-space: nowrap; color: var(--encre-2); }
.f-rows li.is-cite { padding-inline: var(--e-4); }
.f-rows li.is-cite::before, .f-rows li.is-cite::after { content: ""; position: absolute; top: var(--e-1); bottom: var(--e-1); width: 6px; border: 2px solid var(--repere); }
.f-rows li.is-cite::before { left: 0; border-right: 0; }
.f-rows li.is-cite::after { right: 0; border-left: 0; }
.f-rows li.is-cite .ref { color: var(--encre); font-weight: var(--g-label); }
@media (max-width: 539px) {
  .f-rows li { grid-template-columns: minmax(0, 1fr) auto; }
  .f-rows li .ref { grid-column: 1 / -1; text-align: left; }
}
.f-zone { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--e-2) var(--e-3); padding-bottom: var(--e-3); border-bottom: 1px solid var(--trait-fin); }
.f-z { font-family: var(--f-ref); font-size: var(--t-small); font-weight: var(--g-label); border: 1px solid var(--trait-fort); border-radius: var(--r); padding: 0 var(--e-2); }
.f-zone .lk { margin-left: auto; }
.f-src { margin-top: var(--e-4); font-size: var(--t-label); line-height: var(--l-label); color: var(--encre-2); }
.f-note { display: grid; gap: var(--e-3); justify-items: start; }
.f-note p { padding: var(--e-3); border: 1px solid var(--trait-fin); border-radius: var(--r); background: var(--papier); }

/* ---------- Master plan (partials/plan.html): never scaled, a window onto the sheet ---------- */
.planche { position: relative; overflow: hidden; height: 300px; background: var(--feuille); border: 1px solid var(--filet-doux); border-radius: var(--r); box-shadow: var(--ombre-fenetre); }
@media (min-width: 760px) { .planche { height: 440px; } }
.plan-svg {
  position: absolute; max-width: none; width: var(--pw); height: var(--ph);
  left: clamp(calc(100% - var(--pw)), calc(var(--ox-s, 50%) - var(--fx-s)), 0px);
  top: clamp(calc(100% - var(--ph)), calc(var(--oy-s, 50%) - var(--fy-s)), 0px);
}
@media (min-width: 760px) {
  .plan-svg { left: clamp(calc(100% - var(--pw)), calc(var(--ox, 50%) - var(--fx)), 0px); top: clamp(calc(100% - var(--ph)), calc(var(--oy, 50%) - var(--fy)), 0px); }
}
svg .plan-cote { font-family: var(--f-ref); font-size: var(--t-dessin); fill: var(--encre); }
.plan-fictif { position: absolute; left: var(--e-2); top: var(--e-2); z-index: 2; }
.plan-fictif, .plan-commune, .plan-coord, .plan-scale, .plan-north { pointer-events: none; }
.plan-commune, .plan-coord, .plan-scale, .plan-north { position: absolute; z-index: 2; font-family: var(--f-ref); font-size: var(--t-ref); line-height: var(--l-ref); color: var(--encre-2); background: var(--feuille); padding: 1px var(--e-1); border-radius: var(--r); }
.plan-commune { left: var(--e-2); top: calc(var(--e-2) + 20px); }
.plan-north { right: var(--e-4); top: var(--e-4); display: flex; flex-direction: column-reverse; align-items: center; gap: 2px; color: var(--encre); }
.plan-scale { left: var(--e-4); bottom: var(--e-3); display: grid; gap: 2px; color: var(--encre); }
.plan-scale-t { display: flex; justify-content: space-between; width: 104px; }
.plan-coord { right: var(--e-3); bottom: var(--e-3); }
@media (max-width: 759px) { .plan-coord { display: none; } }
svg .plan-mk text { font-family: var(--f-ref); font-size: var(--t-dessin); font-weight: var(--g-label); fill: var(--feuille); }
.pick { display: grid; gap: var(--e-6); }
.pick-side { position: relative; z-index: 2; }
@media (min-width: 1200px) { .pick { grid-template-columns: minmax(0, 1fr) 368px; align-items: end; column-gap: var(--e-6); } }
.pick-parcels path { fill: transparent; stroke: transparent; stroke-width: 2; pointer-events: none; }
.pick.is-live .pick-parcels path { pointer-events: all; cursor: pointer; }
.pick.is-live .pick-parcels path:hover { stroke: var(--encre); }
.pick.is-live .pick-parcels path[aria-pressed="true"] { cursor: default; stroke: transparent; }
.pick-parcels path:focus { outline: none; }
.pick-parcels path:focus-visible { stroke: var(--focus); stroke-width: 3; }
.pick-repere { transition: transform var(--duree-2) var(--courbe); }
.pick-for { transition: opacity var(--duree-1) linear; }
.pick-for.is-off { opacity: 0; }
.pick-hint { margin-top: var(--e-4); font-size: var(--t-small); line-height: var(--l-small); color: var(--encre-2); }

/* ---------- Drawn app window ---------- */
.aw-frame { display: grid; grid-template-columns: 52px minmax(0, 1fr); font-size: var(--t-small); line-height: var(--l-small); background: var(--feuille); border: 1px solid var(--filet-doux); border-radius: var(--r); box-shadow: var(--ombre-fenetre); overflow: hidden; }
.aw-rail { display: flex; flex-direction: column; align-items: center; gap: var(--e-2); padding: var(--e-3) 0; border-right: 1px solid var(--trait-fin); }
.aw-ico { display: flex; align-items: center; justify-content: center; gap: var(--e-2); width: 34px; height: 34px; border-radius: var(--r); color: var(--encre-2); }
.aw-ico.is-on { background: var(--calque); color: var(--encre); }
.aw-sep { width: 22px; height: 1px; background: var(--trait-fin); }
.ico { width: 20px; height: 20px; flex: none; }
.aw-rail--labels { align-items: stretch; padding: var(--e-3); }
.aw-rail--labels .aw-ico { width: auto; justify-content: flex-start; padding: 0 var(--e-2); }
.aw-rail--labels .aw-sep { width: auto; }
.aw-frame:has(.aw-rail--labels) { grid-template-columns: 220px minmax(0, 1fr); }
.aw-main { min-width: 0; display: flex; flex-direction: column; }
.aw-bar { display: flex; align-items: center; gap: var(--e-3); padding: var(--e-2) var(--e-3); border-bottom: 1px solid var(--trait-fin); }
.aw-search { flex: 1; min-width: 0; padding: var(--e-1) var(--e-3); color: var(--encre-2); background: var(--feuille); border: 1px solid var(--trait-fin); border-radius: var(--r); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aw-body { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); min-height: 420px; }
.aw--noside .aw-body { grid-template-columns: minmax(0, 1fr); }
.aw-map { position: relative; overflow: hidden; background: var(--feuille); border-right: 1px solid var(--trait-fin); }
.aw--noside .aw-map { border-right: 0; }
.aw-map > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.aw-layers { position: absolute; right: var(--e-3); top: var(--e-3); padding: var(--e-1) var(--e-3); font-size: var(--t-label); font-weight: var(--g-label); background: var(--feuille); border-radius: var(--r); box-shadow: var(--ombre-proche); }
.aw-side { min-width: 0; overflow: hidden; }
@media (max-width: 759px) {
  .aw-frame, .aw-frame:has(.aw-rail--labels) { grid-template-columns: minmax(0, 1fr); }
  .aw-rail, .aw-map { display: none; }
  .aw-body { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .aw--noside .aw-map { display: block; min-height: 300px; }
}

/* ---------- Sources: logo wall (home, 6 columns) and full wall (data page, 3 / 2 / 1) ---------- */
.src-wall { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--trait-fin); border: 1px solid var(--trait-fin); border-radius: var(--r); overflow: hidden; }
@media (min-width: 760px) { .src-wall { grid-template-columns: repeat(6, 1fr); } }
.src-cell { background: var(--feuille); display: grid; place-items: center; height: 72px; padding: var(--e-3); }
.src-cell svg { max-width: 132px; max-height: 52px; width: 100%; height: var(--logo-h, 100%); }
@media (max-width: 759px) { .src-cell svg { max-width: 104px; max-height: 44px; } }
.src-word { font-weight: var(--g-titre); font-size: var(--t-valeur); letter-spacing: 0.02em; font-stretch: var(--chasse-titre); }
.src-foot { display: flex; flex-wrap: wrap; gap: var(--e-2) var(--e-5); align-items: baseline; margin-top: 20px; }
.src-foot a { font-weight: var(--g-fort); }
.wall { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); grid-auto-rows: 1fr; column-gap: var(--e-6); border-top: var(--trait-w) solid var(--encre); }
.wall-c { border-bottom: 1px solid var(--trait-fin); min-width: 0; }
.wall-a { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: var(--e-4); align-items: start; height: 100%; padding: var(--e-4) 0; color: inherit; text-decoration: none; }
a.wall-a:hover .wall-p { text-decoration: underline; }
.wall-logo { display: flex; align-items: center; width: 104px; height: 44px; }
.wall-logo svg { width: 100%; height: var(--logo-h, 100%); }
.wall-logo--name { font-size: var(--t-h3); line-height: var(--l-h3); font-weight: var(--g-h3); color: var(--encre); }
.wall-t { display: grid; gap: 2px; min-width: 0; }
.wall-p { font-weight: var(--g-fort); }
.wall-d { color: var(--encre-2); }
.wall-x { font-size: var(--t-small); line-height: var(--l-small); color: var(--encre-2); }
@media (min-width: 760px) { .wall { grid-template-columns: repeat(2, minmax(0, 1fr)); } .wall-a { grid-template-columns: 132px minmax(0, 1fr); } .wall-logo { width: 132px; height: 52px; } }
@media (min-width: 1200px) { .wall { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Notes and jumps ---------- */
.notes { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--e-5) var(--inter-colonne); margin-top: var(--e-7); }
.notes:first-child { margin-top: 0; }
.notes-i { min-width: 0; padding-top: var(--e-4); border-top: 1px solid var(--trait-fin); }
.notes-i h3 { margin-bottom: var(--e-2); }
.notes-i p { color: var(--encre-2); max-width: 46ch; }
.notes-i .lk { display: inline-block; margin-top: var(--e-3); }
@media (min-width: 760px) { .notes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .notes--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.jumps ul { list-style: none; margin: 0; padding: 0; border-top: var(--trait-w) solid var(--encre); }
.jumps li { border-bottom: 1px solid var(--trait-fin); }
.jumps a { display: flex; align-items: center; gap: var(--e-4); padding: var(--e-4) 0; color: var(--encre); text-decoration: none; font-size: var(--t-h3); line-height: var(--l-h3); font-weight: var(--g-h3); }
.jumps a span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.jumps a:hover span { text-decoration-thickness: 2px; }
.jumps .ico { width: 28px; height: 28px; }

/* ---------- Closing band: the only full ground ---------- */
.band { position: relative; overflow: hidden; background: var(--encre); color: var(--sur-encre); padding-block: var(--e-section); }
.band-row { display: grid; gap: var(--e-bloc); align-items: center; }
.band h2 { color: var(--sur-encre); max-width: 18ch; }
.band-row:not(.band-row--draw) h2 { max-width: none; }
.band-act { display: flex; flex-wrap: wrap; align-items: center; gap: var(--e-3) var(--e-5); margin-top: var(--e-6); }
.band .lk { font-weight: var(--g-fort); }
.band-note { margin-top: var(--e-2); font-size: var(--t-small); line-height: var(--l-small); color: var(--sur-encre-2); }
.band-vis { position: relative; height: 240px; perspective: 900px; }
.band-plane { position: absolute; left: 50%; top: 50%; width: 520px; height: 340px; margin: -170px 0 0 -260px; transform: rotateX(58deg) rotateZ(25deg); }
.band-plane svg { width: 100%; height: 100%; }
@media (min-width: 1200px) { .band-row--draw { grid-template-columns: 6fr 6fr; } }
@media (max-width: 759px) { .band-vis { display: none; } }

/* ---------- Video poster: section from above, four layer bands ---------- */
.poster { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: var(--dessin-sol); box-shadow: var(--ombre-fenetre); border: 1px solid var(--filet-doux); }
.poster > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.bande-l { position: absolute; left: 0; right: 0; bottom: var(--e-3); display: grid; grid-template-columns: repeat(4, 1fr); z-index: 3; pointer-events: none; }
.bande-l span { justify-self: start; margin-left: 10px; font-family: var(--f-ref); font-size: var(--t-label); line-height: var(--l-label); background: rgba(255, 253, 249, .94); color: var(--encre); padding: 2px var(--e-2); border-radius: var(--r); white-space: nowrap; }
@media (max-width: 759px) { .bande-l { bottom: var(--e-2); } .bande-l span { margin-left: 3px; padding: 1px 3px; } }
.p-fiche { position: absolute; z-index: 3; width: 248px; bottom: 56px; right: calc(25% - 124px); background: var(--app-fond); border-radius: var(--r); box-shadow: var(--ombre-carte); padding: var(--e-4); display: grid; gap: 10px; font-size: var(--t-small); line-height: 1.35; }
.p-fiche .f-addr { font-size: var(--t-fig); font-weight: var(--g-h3); line-height: 1.2; font-stretch: var(--chasse-titre); }
.p-fiche .ref { color: var(--encre-2); }
.row { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 0 var(--e-3); padding: 7px 0; border-bottom: 1px solid var(--dessin-fin); }
.row .k { color: var(--encre-2); }
.row .v { font-weight: var(--g-fort); text-align: right; }
.row .r { grid-column: 1 / -1; font-family: var(--f-ref); font-size: var(--t-ref); color: var(--encre-2); }
.play { position: absolute; z-index: 4; left: 50%; top: 50%; width: 88px; height: 88px; margin: -44px 0 0 -44px; padding: 0; overflow: hidden; border-radius: var(--r); background: var(--encre); border: 2px solid var(--papier); display: grid; place-items: center; box-shadow: var(--ombre-carte); cursor: default; transition: transform var(--duree-1) var(--courbe); }
.play::before { content: ""; position: absolute; inset: 0; background: var(--repere); opacity: 0; transition: opacity var(--duree-1) linear; }
.play svg { position: relative; margin-left: 4px; transition: transform var(--duree-1) var(--courbe); }
.play:hover, .play:focus-visible { transform: translateY(-2px); }
.play:hover::before, .play:focus-visible::before { opacity: 1; }
.play:hover svg, .play:focus-visible svg { transform: scale(1.15); }
.p-meta { position: absolute; z-index: 4; top: 14px; right: 14px; font-family: var(--f-ref); font-size: var(--t-label); line-height: var(--l-label); background: rgba(255, 253, 249, .94); border-radius: var(--r); padding: 2px var(--e-2); color: var(--encre-2); }
.p-zone { position: absolute; z-index: 3; left: var(--x); top: var(--y); font-family: var(--f-ref); font-size: var(--t-label); line-height: var(--l-label); background: var(--feuille); color: var(--encre); padding: 1px 6px; border: 1px solid var(--encre); border-radius: var(--r); white-space: nowrap; }
.p-px { position: absolute; z-index: 3; left: var(--x); top: var(--y); display: inline-flex; align-items: center; gap: var(--e-1); }
.p-px i { width: 10px; height: 10px; border-radius: 50%; background: var(--prix-5); border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .35); }
.p-px b { font-family: var(--f-ref); font-size: var(--t-label); font-weight: var(--g-label); line-height: var(--l-label); background: var(--feuille); color: var(--prix-5); padding: 1px 6px; border-radius: var(--r); white-space: nowrap; box-shadow: var(--ombre-proche); }
.p-px em { font-style: normal; }
@media (max-width: 899px) { .p-fiche { display: none; } }
@media (max-width: 759px) {
  .play { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
  .play svg { width: 22px; height: 22px; }
  .p-px { left: var(--xp, var(--x)); }
  .p-px em { display: none; }
  .p-zone { left: var(--xp, var(--x)); top: var(--yp, var(--y)); padding: 0 3px; }
  .p-px b { padding: 0 3px; }
}

/* ---------- Rail with panes: steps on one side, one drawn pane on the other ---------- */
.temps { display: grid; gap: 20px; }
.temps-n { display: flex; flex-direction: column; }
@media (min-width: 1200px) { .temps { grid-template-columns: minmax(260px, 4fr) 8fr; gap: var(--e-7); align-items: start; } }
.onglets { display: grid; grid-template-columns: 1fr 1fr; gap: var(--e-2); }
@media (min-width: 1200px) {
  .temps-n { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: repeat(var(--n), auto); }
  .onglets { grid-column: 1; grid-row: 1 / span var(--n); grid-template-columns: minmax(0, 1fr); grid-template-rows: subgrid; gap: 0; border-top: 1px solid var(--trait-fin); }
}
.onglet { position: relative; text-align: left; font: inherit; color: inherit; background: transparent; border: 1px solid var(--trait-fin); border-radius: var(--r); padding: var(--e-3) 14px; cursor: pointer; display: grid; grid-template-columns: auto 1fr; gap: 2px var(--e-3); overflow: hidden; }
@media (min-width: 1200px) {
  .onglet { border: 0; border-bottom: 1px solid var(--trait-fin); border-radius: 0; padding: 20px 0 20px var(--e-1); }
  .onglet--l { padding-bottom: calc(20px + var(--e-5) + var(--e-1)); }
}
.onglet .n { font-family: var(--f-ref); font-size: var(--t-ref); color: var(--encre-2); padding-top: var(--e-1); }
.onglet .v { font-size: var(--t-h3); font-weight: var(--g-h3); line-height: var(--l-h3); }
.onglet .l { grid-column: 2; font-size: var(--t-body); line-height: var(--l-body); color: var(--encre-2); display: none; max-width: 40ch; }
.onglet[aria-selected="true"] { background: var(--feuille); border-color: var(--encre); }
@media (min-width: 1200px) {
  .onglet .l { display: block; }
  .onglet[aria-selected="true"] { background: transparent; }
  .onglet[aria-selected="true"] .v { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
}
.onglet .prog { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--encre); transform: scaleX(0); transform-origin: 0 50%; }
.auto .onglet[aria-selected="true"] .prog { animation: prog 7s linear forwards; }
@keyframes prog { to { transform: scaleX(1); } }
.ligne-m { order: 1; font-size: var(--t-small); line-height: var(--l-small); color: var(--encre-2); margin-top: var(--e-3); }
@media (min-width: 1200px) { .ligne-m { display: none; } }
.etape-l { order: 2; display: none; gap: var(--e-4); margin-top: var(--e-2); font-size: var(--t-small); line-height: var(--l-small); }
.etape-l.is-on { display: flex; }
@media (min-width: 1200px) {
  .etape-l, .etape-l.is-on { display: flex; position: relative; z-index: 1; grid-column: 1; grid-row: var(--i); align-self: end; justify-self: start; margin: 0; padding: 0 0 20px var(--e-5); }
}
.volet { position: absolute; inset: 0; transition: opacity 300ms linear; }
@media (max-width: 759px) { .temps .cadre--fixe { height: 360px; } }
.volet[hidden] { display: block !important; visibility: hidden; opacity: 0; }

/* ---------- Drawing: aerial ---------- */
.aerien { position: absolute; inset: 0; width: 100%; height: 100%; }
.aerien--notrees circle { display: none; }
.pd { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--resultat); border: 2.5px solid #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .35); }
.anim .pd { transform: scale(0); transition: transform 420ms var(--ressort) var(--d, 0ms); }
.pd::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 2px solid #fff; opacity: 0; }
.anim .in .pd { transform: none; }
.anim .in .pd::after { animation: ripple 900ms ease-out calc(var(--d, 0ms) + 200ms) 1; }
@keyframes ripple { from { opacity: .9; transform: scale(.4); } to { opacity: 0; transform: scale(1.4); } }
.aer-sel { fill: var(--repere); fill-opacity: .14; stroke: var(--repere); stroke-width: 2; }

/* ---------- Drawing: 3D PLU volume, pitch 60°, bearing −25° ---------- */
.v3d { position: relative; overflow: hidden; container-type: size; --s: min(.85cqw, 1.4cqh); --pitch: 60deg; --bear: 25deg; }
.v3d .cam { position: absolute; inset: 0; perspective: calc(var(--s) * 280); perspective-origin: 50% 30%; }
.v3d .scene { position: absolute; inset: 0; transform-style: preserve-3d; transform: translate(var(--vx, 0), var(--vy, 6%)) rotateX(var(--pitch)) rotateZ(var(--bear)); }
.v3d .sol { position: absolute; left: 50%; top: 50%; transform-style: preserve-3d; }
.v3d .sol::before { content: ""; position: absolute; inset: calc(var(--s) * -260); background: repeating-linear-gradient(90deg, transparent 0 calc(var(--s) * 26 - 1px), #c9c6b2 calc(var(--s) * 26 - 1px) calc(var(--s) * 26)), repeating-linear-gradient(0deg, transparent 0 calc(var(--s) * 26 - 1px), #c9c6b2 calc(var(--s) * 26 - 1px) calc(var(--s) * 26)), #e4e6cd; transform: translateZ(-1px); }
.sol-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.v3d .bx { position: absolute; transform-style: preserve-3d; transform: translateZ(var(--z)); }
.anim .v3d .bx { transition: transform 620ms var(--courbe) var(--d, 0ms); }
.v3d .f { position: absolute; display: block; }
.anim .v3d .f { transition: opacity 420ms var(--d, 0ms); }
.v3d .f.t { inset: 0; }
.v3d .f.n, .v3d .f.s { left: 0; width: 100%; transform-origin: 0 0; transform: rotateX(90deg); }
.v3d .f.n { top: 0; }
.v3d .f.w, .v3d .f.e { top: 0; height: 100%; transform-origin: 0 0; transform: rotateY(-90deg); }
.v3d .f.w { left: 0; }
.v3d .env .f { border: 1px solid rgba(31, 79, 158, .55); }
.v3d .env .t { background: rgba(110, 155, 230, .30); }
.v3d .env .n, .v3d .env .s { background: rgba(59, 120, 216, .38); }
.v3d .env .w, .v3d .env .e { background: rgba(42, 92, 180, .46); }
.v3d .toit .f { border: 1px solid rgba(98, 62, 170, .6); }
.v3d .toit .t { background: rgba(160, 128, 226, .5); }
.v3d .toit .n, .v3d .toit .s { background: rgba(140, 102, 217, .55); }
.v3d .toit .w, .v3d .toit .e { background: rgba(115, 80, 196, .62); }
.v3d .proj .t { background: #f8eedb; } .v3d .proj .s, .v3d .proj .n { background: #ecd9b4; } .v3d .proj .e, .v3d .proj .w { background: #dcc49a; }
.v3d .proj .f { border: 1px solid #c7a979; }
.v3d .vois .t { background: #c4c8cc; } .v3d .vois .s, .v3d .vois .n { background: #aeb3b8; } .v3d .vois .e, .v3d .vois .w { background: #979da3; }
.v3d .vois .f { border: 1px solid #868c92; }
.anim .v3d:not(.on) .drop { transform: translateZ(calc(var(--z) + 46px)); }
.anim .v3d:not(.on) .drop > .f { opacity: 0; }
.v3d .l3d { position: absolute; width: 0; height: 0; transform-style: preserve-3d; }
.v3d .l3d > span { position: absolute; left: 0; top: 0; white-space: nowrap; font-family: var(--f-ref); font-size: var(--t-ref); color: #1f2a22; background: rgba(255, 253, 249, .92); border-radius: var(--r); padding: 1px 6px; transform: translateZ(var(--h)) rotateZ(calc(-1 * var(--bear))) rotateX(calc(-1 * var(--pitch))) translate(-50%, -130%); }
.anim .v3d .l3d > span { transition: opacity 300ms 1000ms; }
.v3d .l3d-sol > span { transform: translate(-50%, -50%) rotate(90deg); }
.anim .v3d:not(.on) .l3d > span { opacity: 0; }

/* ---------- Drawing: charts (DVF curves, commune gauge) ---------- */
.chart-legend { display: flex; flex-wrap: wrap; gap: var(--e-1) var(--e-4); font-size: var(--t-label); line-height: var(--l-label); color: var(--encre-2); }
.chart-legend i { display: inline-block; width: 14px; height: 3px; border-radius: var(--r); margin-right: 6px; vertical-align: 3px; }
.chart-box { position: relative; aspect-ratio: 556 / 304; }
.chart-box svg { width: 100%; height: 100%; position: absolute; inset: 0; }
svg.dvf .ax { font-family: var(--f-ref); font-size: calc(13.5px * var(--k, 1.5)); fill: var(--dessin-note); }
@media (max-width: 759px) { svg.dvf .ax-min { display: none; } }
.anim svg.dvf .seg, .anim svg.dvf .pt { opacity: 0; transition: opacity 200ms calc(var(--i) * 110ms); }
.anim svg.dvf .pt { transform-box: fill-box; transform-origin: center; transform: scale(.3); transition: opacity 200ms calc(var(--i) * 110ms), transform 360ms var(--ressort) calc(var(--i) * 110ms); }
.anim svg.dvf .fan { opacity: 0; transition: opacity 600ms 900ms; }
.anim .in svg.dvf .seg, .anim .in svg.dvf .pt, .anim .in svg.dvf .fan { opacity: 1; }
.anim .in svg.dvf .pt { transform: none; }
.gauge { width: 112px; height: 112px; }
.anim .gauge .tick.on { opacity: .18; transition: opacity 160ms calc(var(--i) * 18ms); }
.anim .in .gauge .tick.on { opacity: 1; }
svg .g-num { font-family: var(--f-texte); font-weight: var(--g-titre); font-size: 46px; font-stretch: var(--chasse-titre); fill: var(--note-bon); }
svg .g-of { font-family: var(--f-ref); font-size: 24px; fill: var(--dessin-note); }

/* ---------- Drawing: bilan with working sliders ---------- */
.bil { position: relative; z-index: 3; background: var(--app-fond); border-radius: var(--r); box-shadow: var(--ombre-carte); border: 1px solid var(--filet-doux); padding: var(--e-4); display: grid; align-content: space-between; gap: var(--e-3); }
.bil-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.bil-h strong { display: block; font-size: var(--t-fig); font-weight: var(--g-h3); line-height: 1.2; font-stretch: var(--chasse-titre); }
.bil-h .ref { display: block; color: var(--encre-2); }
.bil-m { display: grid; gap: 10px var(--e-5); align-items: end; }
@media (min-width: 760px) { .bil-m { grid-template-columns: 1fr 1fr; } }
.bil-m .k, .bil-figs span { display: block; font-size: var(--t-label); line-height: 1.3; color: var(--encre-2); }
.bil-big { display: flex; align-items: baseline; gap: var(--e-3); flex-wrap: wrap; }
.bil-big output:first-child { font-size: var(--t-fig-xl); font-weight: var(--g-h3); line-height: 1.1; font-stretch: var(--chasse-titre); }
.bil-figs { display: grid; grid-template-columns: 1fr 1fr; gap: var(--e-3); }
.bil-figs b { display: block; font-size: var(--t-valeur); font-weight: var(--g-h3); white-space: nowrap; }
.marg { display: grid; gap: 6px; }
.marg-scale { position: relative; height: 10px; border-radius: var(--r); background: linear-gradient(90deg, #f1d6cf 0 33.3%, #f6e7c3 33.3% 66.6%, #d6e8dc 66.6%); }
.marg-c { position: absolute; inset: 0; transition: transform 300ms var(--courbe); }
.marg-c i { position: absolute; left: -2px; top: -5px; width: 4px; height: 20px; border-radius: var(--r); background: var(--encre); }
.marg-ticks { display: flex; justify-content: space-between; font-family: var(--f-ref); font-size: var(--t-ref); color: var(--encre-2); }
.sls { display: grid; gap: var(--e-3); }
@media (min-width: 760px) { .sls { grid-template-columns: 1fr 1fr; gap: var(--e-5); } }
@media (max-width: 759px) {
  .bil-h strong { font-size: var(--t-valeur); }
  .bil-h .ref:last-child { display: none; }
}

/* ---------- Drawing: board (Mes terrains) ---------- */
.board { position: absolute; inset: 0; --bg: 10px; --lp: 8px; padding: var(--e-7) 14px 14px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--bg); background: var(--dessin-sol); }
.col { display: grid; gap: var(--e-2); align-content: start; min-width: 0; background: var(--dessin-col); border-radius: var(--r); padding: var(--lp); }
.col-h { font-size: var(--t-label); font-weight: var(--g-fort); color: var(--encre-2); line-height: var(--l-h3); min-height: 1.25em; }
.card { position: relative; display: grid; background: var(--app-fond); border-radius: var(--r); padding: 9px 10px; font-size: var(--t-label); line-height: 1.3; box-shadow: 0 1px 2px rgba(43, 32, 24, .10), 0 4px 10px -4px rgba(43, 32, 24, .18); }
.card .ref { font-size: var(--t-ref); }
.card small { color: var(--encre-2); font-size: var(--t-label); }
.anim .card.mv { transform: translateX(calc(-100% - var(--bg) - 2 * var(--lp))); transition: transform 760ms var(--courbe) 500ms; }
.anim .in .card.mv { transform: none; }
@media (max-width: 759px) {
  .board { --bg: 6px; --lp: 4px; padding: var(--e-7) var(--e-2) var(--e-2); }
  .card .own, .card .addr { display: none; }
  .card { padding: 7px 6px; }
}

/* ---------- Motion: transform and opacity only. html.anim-off (reduced motion, ?anim=off, #fixe) shows the final state ---------- */
.anim [data-anim] .a-fade { opacity: 0; transition: opacity var(--duree-3) var(--courbe) var(--a-delay, 0ms); }
.anim [data-anim] .a-pose { opacity: 0; transform: scale(.35); transform-box: fill-box; transform-origin: center; transition: transform 520ms var(--courbe) var(--a-delay, 380ms), opacity 240ms linear var(--a-delay, 380ms); }
.anim [data-anim] .a-mark { opacity: 0; transition: opacity 400ms linear var(--a-delay, 760ms); }
.anim [data-anim] .a-rise { transform: translateY(18px); transition: transform 640ms var(--courbe) var(--a-delay, 620ms); }
.anim [data-anim].in .a-fade, .anim [data-anim].in .a-pose, .anim [data-anim].in .a-mark { opacity: 1; transform: none; }
.anim [data-anim].in .a-rise { transform: none; }
.anim-off *, .anim-off *::before, .anim-off *::after { transition: none !important; animation: none !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
