/* PUBLIC-1 E4 : polices auto-hebergees (sous-ensemble latin, meme provenance que /analyses/fonts/, voir fonts/README.md) -- plus aucun
   appel a Google Fonts (transfert de l'IP du visiteur a Google, LG Munich I, 20 janvier 2022). */
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/newsreader-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/newsreader-500.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/newsreader-600.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/newsreader-italic-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-sans-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-sans-500.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/ibm-plex-sans-600.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-mono-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-mono-500.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Kolem, registre (UI6-E3). Port au pixel pres de
   docs/ui/MAQUETTE_UI_REGISTRE_2026-09-18.html, classes .ui-d-* renommees
   .kr-* (page reelle, plus un fragment demo : pas de prefixe de portee
   necessaire, mais on garde .kr comme racine pour ne jamais toucher les
   styles par defaut du navigateur en dehors de l'app). */

:root {
  --paper: #fbfaf7; --ink: #1a1f1c; --secondary: #5c645f; --hairline: #e3e1da;
  --accent: #1f6b53; --accent-soft: #e2efe9; --bad: #a8342c; --bad-soft: #f6e4e1;
  --warn: #8a6414; --warn-soft: #f5ecd6; --grey: #8b8d89; --grey-soft: #ece9e2;
  --highlight: #fff3a3;
  --font-serif: "Newsreader", "Source Serif 4", Georgia, serif;
  --font-sans: "IBM Plex Sans", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "Geist Mono", monospace;
}
html, body { height: 100%; margin: 0; background: var(--paper); }
[hidden] { display: none !important; }
* { box-sizing: border-box; }
.kr, .kr * { box-sizing: border-box; }
.kr {
  height: 100vh; display: flex; flex-direction: column;
  background: var(--paper); color: var(--ink); font-family: var(--font-sans);
  font-size: 13px; line-height: 1.45; overflow: hidden;
}
.kr a { color: var(--accent); }
.kr-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; }
.kr *:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.kr button, .kr input, .kr select { font-family: inherit; }

/* Top bar */
.kr-topbar { height: 52px; min-height: 52px; display: flex; align-items: center;
  gap: 20px; padding: 0 16px; border-bottom: 1px solid var(--hairline);
  background: var(--paper); flex: 0 0 auto; position: relative; }
.kr-wordmark { font-family: var(--font-serif); font-weight: 600; font-size: 22px;
  color: var(--ink); flex: 0 0 auto; }
/* S48 3a : .kr-search est desormais un conteneur pour DEUX controles cote a
   cote (Lieu, Distance) -- l'habillage (bordure, fond, padding) qui portait
   auparavant sur .kr-search seul est descendu sur .kr-search-lieu. */
.kr-search { flex: 1 1 auto; min-width: 0; display: flex; align-items: stretch; gap: 10px; position: relative; }
/* R10a/R10b : groupe sous le champ (plafond communes, lien d'import de zone,
   refus d'import) -- position absolue relative a .kr-search (pas
   .kr-search-lieu, tous deux ses enfants directs) pour ne jamais agrandir
   la barre de 52px du bandeau. */
.kr-search-below { position: absolute; top: 100%; left: 0; display: flex; align-items: center;
  gap: 10px; flex-wrap: wrap; margin-top: 4px; z-index: 19; }
.kr-import-zone-link { border: 0; background: none; color: var(--secondary); font-size: 11px;
  text-decoration: underline; cursor: pointer; padding: 0; }
.kr-import-zone-link:hover, .kr-import-zone-link:focus-visible { color: var(--accent); }
.kr-import-zone-msg { font-size: 11px; color: var(--bad); background: #ffffff; border: 1px solid var(--bad-soft);
  border-radius: 3px; padding: 4px 8px; margin: 0; }
.kr-search-lieu { flex: 1 1 auto; min-width: 0; display: flex; align-items: center;
  gap: 8px; border: 1px solid var(--hairline); border-radius: 3px; padding: 6px 10px;
  background: #ffffff; position: relative; }
.kr-search-icon { color: var(--secondary); flex: 0 0 auto; }
.kr-search-input { flex: 1 1 auto; min-width: 0; border: 0; outline: none;
  background: transparent; font-family: var(--font-sans); font-size: 13px; color: var(--ink); }
.kr-search-input:focus-visible { outline: none; }
.kr-search-lieu:focus-within { border-color: var(--accent); }
.kr-search-clear { flex: 0 0 auto; border: 0; background: none; color: var(--secondary);
  font-size: 15px; line-height: 1; padding: 0 2px; cursor: pointer; }
.kr-search-clear:hover, .kr-search-clear:focus-visible { color: var(--ink); }
/* R10a : pastilles de selection (commune ou EPCI) dans le champ du bandeau. */
.kr-search-chips { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 0;
  flex: 0 1 auto; min-width: 0; }
.kr-search-chip { display: flex; align-items: center; gap: 4px; background: var(--accent-soft);
  color: var(--ink); border-radius: 3px; padding: 2px 4px 2px 8px; font-size: 12px; white-space: nowrap; }
.kr-search-chip-remove { border: 0; background: none; color: var(--secondary); cursor: pointer;
  font-size: 13px; line-height: 1; padding: 0 2px; }
.kr-search-chip-remove:hover, .kr-search-chip-remove:focus-visible { color: var(--ink); }
.kr-search-limit-msg { font-size: 11px; color: var(--bad); background: #ffffff;
  border: 1px solid var(--bad-soft); border-radius: 3px; padding: 4px 8px; margin: 0; }
/* R09 : pastille + popover a curseur (remplace le controle segmente
   5/10/20/30/50 km -- 3b/S48). */
.kr-distance-pill { position: relative; flex: 0 0 auto; }
.kr-dist-toggle { border: 1px solid var(--hairline); border-radius: 3px; background: #ffffff;
  color: var(--ink); font-size: 12px; padding: 0 12px; height: 100%; cursor: pointer; }
.kr-dist-toggle:hover, .kr-dist-toggle[aria-expanded="true"] { border-color: var(--accent); }
.kr-dist-popover { position: absolute; top: calc(100% + 4px); left: 50%; transform: translateX(-50%);
  width: 220px; max-width: calc(100vw - 32px); background: #ffffff; border: 1px solid var(--hairline);
  border-radius: 3px; padding: 14px 14px 10px; box-shadow: 0 4px 10px rgba(0,0,0,.08); z-index: 21; }
#kr-dist-range { width: 100%; display: block; }
.kr-dist-ticklabels { position: relative; height: 14px; margin-top: 2px; }
.kr-dist-ticklabels span { position: absolute; transform: translateX(-50%); font-size: 10px; color: var(--secondary); }
/* Positions en % de la piste (min=5, max=50 -- (valeur-5)/45*100), une regle
   par graduation visible : le curseur va bien plus loin (step=5 sur toute la
   plage), seules ces cinq valeurs portent un libelle. */
.kr-dist-ticklabels span:nth-child(1) { left: 11.1%; }
.kr-dist-ticklabels span:nth-child(2) { left: 33.3%; }
.kr-dist-ticklabels span:nth-child(3) { left: 55.6%; }
.kr-dist-ticklabels span:nth-child(4) { left: 77.8%; }
.kr-dist-ticklabels span:nth-child(5) { left: 100%; }
.kr-dist-value { display: block; text-align: center; font-size: 12px; color: var(--ink); margin-top: 8px; font-variant-numeric: tabular-nums; }
.kr-suggest { position: absolute; top: calc(100% + 4px); left: -1px; right: -1px;
  background: #ffffff; border: 1px solid var(--hairline); border-radius: 3px;
  list-style: none; margin: 0; padding: 4px 0; z-index: 20;
  box-shadow: 0 4px 10px rgba(0,0,0,.08); max-height: 260px; overflow-y: auto; }
.kr-suggest li { padding: 0; }
.kr-suggest .kr-suggest-repli { padding: 7px 12px; font-size: 12px; color: var(--secondary); border-bottom: 1px solid var(--hairline); }
.kr-suggest button { width: 100%; text-align: left; background: none; border: 0;
  padding: 7px 12px; font-size: 13px; color: var(--ink); cursor: pointer; }
.kr-suggest button:hover, .kr-suggest button.is-active { background: #f3f1ea; }
.kr-nav { flex: 0 0 auto; display: flex; gap: 18px; }
.kr-navlink { color: var(--secondary); text-decoration: none; font-size: 13px; }
.kr-navlink.is-active { color: var(--ink); border-bottom: 1px solid var(--accent); padding-bottom: 2px; }
.kr-navlink:hover { color: var(--ink); }

/* Filter row */
.kr-filterrow { display: flex; align-items: center;
  gap: 12px; padding: 8px 16px; border-bottom: 1px solid var(--hairline);
  flex-wrap: wrap; flex: 0 0 auto; }
.kr-chips { list-style: none; display: flex; gap: 8px; margin: 0; padding: 0; flex-wrap: wrap; }
/* UI6-E10 point 1 : mention non cliquable, distincte des pastilles de filiere. */
.kr-centre-mention { color: var(--secondary); font-size: 12px; }
.kr-filterrow-right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-left: auto; }
.kr-counts { color: var(--secondary); font-size: 12px; font-variant-numeric: tabular-nums; }
.kr-density, .kr-segmented { display: flex; border: 1px solid var(--hairline); border-radius: 3px; overflow: hidden; }
.kr-density-btn, .kr-seg-btn { border: 0; background: #ffffff; color: var(--secondary);
  font-size: 12px; padding: 4px 10px; cursor: pointer; }
.kr-density-btn + .kr-density-btn, .kr-seg-btn + .kr-seg-btn { border-left: 1px solid var(--hairline); }
.kr-density-btn.is-active { background: var(--ink); color: var(--paper); }
.kr-seg-btn.is-active { background: var(--accent); color: #ffffff; }

/* Breadcrumb */
.kr-breadcrumb { display: flex; align-items: center; gap: 8px; padding: 8px 16px;
  border-bottom: 1px solid var(--hairline); font-size: 12.5px; color: var(--secondary);
  flex: 0 0 auto; flex-wrap: wrap; }
.kr-back { color: var(--accent); text-decoration: none; font-weight: 600; background: none; border: 0; cursor: pointer; padding: 0; font-size: inherit; }
.kr-back:hover { text-decoration: underline; }
.kr-crumb-sep { color: var(--hairline); }
.kr-crumb-strong { color: var(--ink); font-weight: 600; }

.kr-empty { flex: 1 1 auto; overflow-y: auto; color: var(--ink); }

/* Écran d'accueil (UI7-E1) */
.kr-home { display: flex; flex-direction: column; align-items: center; min-height: 100%; }
.kr-home-inner { width: 100%; max-width: 900px; padding: 56px 16px 24px; display: flex;
  flex-direction: column; align-items: center; text-align: center; }
/* R05 : max-width elargi pour le nouveau h1, plus court, tienne sur 2
   lignes maximum a 1280px (mesure en navigateur) -- 15ch le repliait sur
   4 lignes. Jamais de coupure forcee (word-break), seul le point de
   wrap naturel des mots change. */
.kr-home-title { font-family: var(--font-serif); font-weight: 600; font-size: 40px; line-height: 1.2;
  margin: 0 0 14px; color: var(--ink); max-width: 28ch; }
.kr-home-subtitle { font-family: var(--font-sans); font-size: 17px; color: var(--secondary);
  margin: 0 0 28px; max-width: 60ch; }
.kr-home-search { width: 100%; max-width: 620px; display: flex; align-items: stretch; gap: 10px;
  margin: 0 0 14px; }
.kr-home-searchbar { position: relative; flex: 1 1 auto; min-width: 0; display: flex; align-items: center;
  gap: 8px; border: 1px solid var(--hairline); border-radius: 3px; padding: 10px 12px; background: #ffffff; }
.kr-home-searchbar:focus-within { border-color: var(--accent); }
.kr-home-search-input { flex: 1 1 auto; min-width: 0; border: 0; outline: none; background: transparent;
  font-family: var(--font-sans); font-size: 14px; color: var(--ink); }
.kr-home-search-btn { flex: 0 0 auto; padding: 0 20px; font-size: 13px; }
.kr-home-stats { font-family: var(--font-sans); font-size: 13px; color: var(--secondary);
  font-variant-numeric: tabular-nums; margin: 0 0 22px; }
.kr-home-lede { font-family: var(--font-sans); font-size: 15px; line-height: 1.5; color: var(--secondary);
  max-width: 65ch; margin: 0 0 40px; }

.kr-home-columns { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
  text-align: left; margin-bottom: 36px; }
.kr-home-col .kr-h3 { margin-bottom: 6px; }
.kr-home-list { list-style: none; margin: 0; padding: 0; }
.kr-home-depts-bloc { width: 100%; text-align: left; }
.kr-home-depts { list-style: none; margin: 0; padding: 0; column-width: 190px; column-gap: 24px; font-size: 13px; line-height: 1.7; }
.kr-home-row-empty { padding: 10px 0; color: var(--secondary); font-size: 12.5px; font-style: italic; }
.kr-home-row { width: 100%; display: flex; align-items: flex-start; justify-content: space-between;
  gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--hairline); background: none; border-left: 0;
  border-right: 0; border-top: 0; text-align: left; cursor: pointer; color: inherit; font: inherit; }
.kr-home-row:hover .kr-home-row-name { color: var(--accent); }
.kr-home-row-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.kr-home-row-name { font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.kr-home-row-meta { font-size: 11.5px; color: var(--secondary); line-height: 1.3; }
.kr-home-row-side { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.kr-home-row-date { font-family: var(--font-mono); font-size: 11px; color: var(--secondary);
  font-variant-numeric: tabular-nums; }
.kr-home-row-tag { font-size: 11px; color: var(--secondary); white-space: nowrap; }

.kr-home-examples { width: 100%; text-align: left; font-size: 12.5px; color: var(--secondary);
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.kr-home-examples-label { margin-right: 2px; }
.kr-home-example { background: none; border: 1px solid var(--hairline); border-radius: 3px;
  padding: 4px 10px; font-size: 12px; color: var(--accent); cursor: pointer; }
.kr-home-example:hover { background: var(--accent-soft); }

.kr-home-footer { width: 100%; border-top: 1px solid var(--hairline); padding: 16px 16px 28px;
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.kr-home-footlinks { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.kr-home-footlinks a, .kr-home-footlink-btn { font-size: 12.5px; color: var(--accent);
  text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; }
.kr-home-footlinks a:hover, .kr-home-footlink-btn:hover { text-decoration: underline; }
.kr-home-mentions { max-width: 60ch; font-size: 12px; color: var(--secondary); }
.kr-home-footnote { font-size: 11.5px; color: var(--secondary); max-width: 60ch; margin: 4px 0 0; }

/* Main two pane, shared by list and map views */
.kr-main { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: 58% 42%; }
/* UI-8 suite (2026-09-23) : #kr-main-list seul (le tableau du registre, pas
   la carte -- .kr-main est PARTAGEE entre #kr-main-list et #kr-main-map,
   commentaire ci-dessus) surcharge le partage 58/42 par une colonne droite
   de largeur FIXE, cf. mesure : a 1280px, .kr-listpane ne recoit que 726px
   (58% moins bordure/gouttiere) alors que les 6 colonnes du tableau, chacune
   contrainte par un contenu en white-space: nowrap (puces .kr-pill,
   .kr-num), exigent ensemble ~873px -- la colonne Distance, derniere du
   tableau, se faisait entierement rejeter hors du cadre visible par
   kr-tablewrap { overflow-x: hidden }. Largeur fixe choisie sur le precedent
   deja eprouve de .kr-right (vue Dossier, 340px) : .kr-listpane recoit tout
   le reste (1fr), soit 920px a 1280 et 1080px a 1440, marge confortable
   au-dessus des ~890px necessaires. #kr-main-map n'est PAS touchee : son
   volet (resultats compacts + fiche) n'a pas le meme contenu en nowrap et
   n'etait pas signale tronque. */
#kr-main-list { grid-template-columns: minmax(0, 1fr) 360px; }
.kr-listpane { min-height: 0; display: flex; flex-direction: column; border-right: 1px solid var(--hairline); }
.kr-tablewrap { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.kr-recordpane { position: relative; min-height: 0; overflow-y: auto; padding: 20px 24px 40px; }
/* S48 2a : bouton de fermeture de la fiche, zone cliquable 32px, ancre en
   haut a droite du volet (kr-recordpane, seul ancetre positionne). */
.kr-fiche-close { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 3px;
  background: transparent; color: var(--secondary); cursor: pointer; }
.kr-fiche-close:hover { background: var(--grey-soft); color: var(--ink); }

/* Table */
.kr-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.kr-table thead th { position: sticky; top: 0; background: var(--paper); text-align: left;
  font-weight: 600; color: var(--secondary); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.03em; padding: 8px 10px; border-bottom: 1px solid var(--hairline);
  z-index: 1; cursor: pointer; user-select: none; }
.kr-table thead th:hover { color: var(--ink); }
.kr-table thead th.is-sorted { color: var(--ink); }
.kr-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kr-approx { color: var(--secondary); cursor: help; }
.kr-dans-commune { color: var(--secondary); font-style: italic; }
.kr-table tbody tr { border-bottom: 1px solid var(--hairline); cursor: pointer; }
.kr-table tbody tr:not(.kr-row-more) td { height: 34px; padding: 4px 10px; vertical-align: middle; }
.kr.is-comfortable .kr-table tbody tr:not(.kr-row-more) td { height: 48px; padding: 8px 10px; }
.kr-table tbody tr:hover { background: #f3f1ea; }
.kr-table tbody tr.is-selected { background: #eef4f1; border-left: 2px solid var(--accent); }
.kr-table tbody tr.is-selected td:first-child { padding-left: 8px; }
.kr-col-dossier { min-width: 200px; }
.kr-dossier-name { display: block; font-weight: 600; color: var(--ink); }
.kr-dossier-commune { display: block; color: var(--secondary); font-size: 11px; margin-top: 1px; }
.kr-sub { color: var(--secondary); font-size: 11.5px; }
.kr-avisdate { display: block; font-family: var(--font-mono); font-size: 11px; color: var(--secondary);
  font-variant-numeric: tabular-nums; margin-bottom: 2px; }
.kr-issueref { display: block; font-family: var(--font-mono); font-size: 10px; color: var(--secondary);
  font-variant-numeric: tabular-nums; margin-top: 2px; }
.kr-issueplain { color: var(--secondary); }
.kr-row-more td { padding: 8px 10px; color: var(--secondary); font-style: italic; cursor: default; }
.kr-row-more:hover { background: transparent; }
.kr-tablefoot { border-top: 1px solid var(--hairline); padding: 8px 12px; color: var(--secondary);
  font-size: 12px; margin: 0; }

/* Pills */
.kr-pill { display: inline-block; border-radius: 3px; padding: 1px 7px; font-size: 11px;
  font-weight: 600; white-space: nowrap; }
.kr-pill-red { background: var(--bad-soft); color: var(--bad); }
.kr-pill-green { background: var(--accent-soft); color: var(--accent); }
.kr-pill-amber { background: var(--warn-soft); color: var(--warn); }
.kr-pill-grey { background: var(--grey-soft); color: var(--secondary); }

/* Record pane */
.kr-eyebrow { color: var(--secondary); font-size: 12px; margin: 0 0 6px; font-family: var(--font-mono); }
.kr-title { font-family: var(--font-serif); font-weight: 600; font-size: 24px; margin: 0 0 8px; color: var(--ink); }
.kr-status { margin: 0 0 16px; color: var(--ink); }
.kr-recordactions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.kr-btn { display: inline-block; border-radius: 3px; padding: 6px 12px; font-size: 12px;
  font-weight: 600; cursor: pointer; text-decoration: none; border: 1px solid transparent; }
.kr-btn-primary { background: var(--accent); color: #ffffff; border-color: var(--accent); }
.kr-btn-primary:hover { background: #195a45; }
.kr-btn-outline { background: transparent; border-color: var(--accent); color: var(--accent); }
.kr-btn-outline:hover { background: var(--accent-soft); }

.kr-proptable { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.kr-proptable tr { border-bottom: 1px solid var(--hairline); }
.kr-proptable tr:first-child { border-top: 1px solid var(--hairline); }
.kr-proptable th { text-align: left; font-weight: 400; color: var(--secondary); padding: 8px 12px 8px 0;
  width: 42%; vertical-align: top; }
.kr-proptable td { padding: 8px 0; color: var(--ink); vertical-align: top; }
.kr-propsub { display: block; color: var(--secondary); font-size: 12px; margin-top: 2px; }
.kr-pieces a { margin-right: 2px; text-decoration: underline; }

.kr-section { margin-bottom: 24px; }
.kr-h3 { font-family: var(--font-serif); font-weight: 600; font-size: 15px; margin: 0 0 12px; color: var(--ink); }

/* UI6-E9 : "Ce que dit l'autorite environnementale" en lignes de texte,
   plus de grille de carres (kr-themegrid/kr-insufficient*, retirees). */
.kr-sq { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 1px; margin-top: 4px; }
.kr-sq-red { background: var(--bad); }
.kr-sq-green { background: var(--accent); }
.kr-theme-bloc { margin-bottom: 10px; }
.kr-theme-line { display: flex; align-items: flex-start; gap: 6px; margin: 0 0 8px; font-size: 13px; color: var(--ink); }
.kr-theme-grise { color: var(--secondary); }
.kr-theme-citation { margin: 0 0 4px 15px; color: var(--secondary); font-size: 12.5px; }
/* RECONC-E2-6c56c8f : badge attribuant une reformulation Kolem, jamais l'AE
   elle-meme (critique_ae est un resume LLM, pas un verbatim -- thematiques.js). */
.kr-kolem-label { display: inline-block; padding: 0 5px; border-radius: 3px;
  background: var(--accent-soft); color: var(--accent); font-size: 10.5px;
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; }
/* UI7-A A1 : resume et recommandations d'une extraction historique
   (statut analyse_sommaire), rendus par thematiques.js::sommaireHtml. */
.kr-statut-avis { color: var(--secondary); }
.kr-recos { margin: 0 0 10px 18px; padding: 0; font-size: 12.5px; color: var(--ink); }
.kr-recos li { margin: 0 0 4px; }

.kr-cumul { list-style: none; margin: 0; padding: 0; }
.kr-cumul li { padding: 6px 0; border-bottom: 1px solid var(--hairline); color: var(--secondary); font-size: 12.5px; }
.kr-cumul li:last-child { border-bottom: 0; }
.kr-footnote { color: var(--secondary); font-size: 11px; margin-top: 8px; }

/* Map view */
.kr-mapwrap { position: relative; overflow: hidden; background: #eef0ec; border-right: 1px solid var(--hairline); }
#kr-map { width: 100%; height: 100%; }
/* R14/R02 : bouton flottant, centre en haut de la carte -- au-dessus des
   tuiles et des marqueurs (z-index superieur a .kr-legend, meme registre
   que les controles MapLibre natifs). */
.kr-search-zone-btn { position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  z-index: 401; border: 1px solid var(--hairline); border-radius: 3px; background: #ffffff;
  color: var(--ink); font-size: 12.5px; font-weight: 600; padding: 7px 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,.12); cursor: pointer; }
.kr-search-zone-btn:hover { border-color: var(--accent); }
.kr-search-zone-btn:disabled { color: var(--secondary); cursor: default; }
.kr-search-zone-btn:disabled:hover { border-color: var(--hairline); }
.kr-legend { position: absolute; top: 14px; left: 14px; background: var(--paper);
  border: 1px solid var(--hairline); border-radius: 3px; padding: 10px 12px; z-index: 400; max-width: 190px; }
/* UI-10 (2026-09-24) : .kr-legend est desormais <details>/<summary> (legende
   repliable sous 720px, cf media query plus bas) -- le marqueur natif de
   <summary> (triangle de disclosure) est retire ICI, hors media query, pour
   qu'un rendu a 1280/1440 reste identique au pixel pres a l'ancien <h3>. */
.kr-legend summary { margin: 0 0 8px; font-size: 11px; text-transform: uppercase; letter-spacing: .03em;
  color: var(--secondary); font-weight: 600; font-family: var(--font-sans); list-style: none; cursor: default; }
.kr-legend summary::-webkit-details-marker { display: none; }
.kr-legend summary::marker { content: ""; }
.kr-legend ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.kr-legend li { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ink); }
.kr-sw { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; display: inline-block; }
.kr-sw-annulee { background: var(--bad); }
.kr-sw-maintenue { background: var(--accent); }
.kr-sw-encours { background: var(--warn); }
.kr-sw-close { background: var(--grey); }
.kr-sw-aucun { background: transparent; border: 2px solid var(--ink); }

.kr-mapfoot { position: absolute; left: 14px; bottom: 14px; display: flex; flex-direction: column;
  gap: 6px; z-index: 400; }
.kr-mapfoot-label { font-size: 11px; color: var(--secondary); background: rgba(251,250,247,.9);
  padding: 3px 7px; border-radius: 3px; width: fit-content; border: 1px solid var(--hairline); }
.kr-baselayer { display: flex; border: 1px solid var(--hairline); border-radius: 3px; overflow: hidden; background: var(--paper); }
.kr-baselayer button { border: 0; background: transparent; padding: 5px 12px; font-size: 12px; color: var(--secondary); cursor: pointer; }
.kr-baselayer button.is-active { background: var(--accent); color: #ffffff; }
.kr-note { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); background: var(--paper);
  border: 1px solid var(--hairline); border-radius: 3px; padding: 8px 14px; font-size: 11px; line-height: 1.5;
  color: var(--secondary); text-align: center; max-width: 320px; z-index: 400; margin: 0; }
.kr-map-tooltip small { display: block; margin-top: 3px; font-size: 10px; color: var(--secondary); }
/* UI-9 E3 : reprend le gabarit de .kr-note (boite discrete), place en haut plutot
   qu'en bas pour ne jamais chevaucher kr-map-note (compte de dossiers). */
.kr-inst-zoomnote { top: 14px; bottom: auto; }
/* S47 : boutons d'installations, colonne au bord droit de la carte, en
   haut a 10 px. Fond = couleur de la filiere (posee par js/installations.js depuis
   /api/installations/style), pictogramme blanc ; inactif = meme bouton a 40 %. */
.kr-installations { position: absolute; top: 10px; right: 10px; z-index: 400; display: flex;
  flex-direction: column; align-items: flex-end; gap: 6px; }
/* S48 1a : la case "Toutes les eoliennes" passe a GAUCHE du bouton rond
   eolien, centree verticalement sur lui, meme ligne -- plus rien sous le
   bouton (etait un deuxieme item empile dans la colonne). */
.kr-inst-eolien-row { display: flex; align-items: center; gap: 6px; }
.kr-inst-btn { width: 36px; height: 36px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; color: #ffffff;
  background: var(--grey); opacity: 0.4; flex: 0 0 auto; }
.kr-inst-btn.is-active { opacity: 1; }
.kr-inst-btn svg { display: block; width: 20px; height: 20px; }
.kr-inst-all { display: flex; align-items: center; gap: 5px; padding: 3px 7px; font-size: 11px;
  color: var(--ink); background: var(--paper); border: 1px solid var(--hairline);
  border-radius: 3px; cursor: pointer; white-space: nowrap; }
.kr-inst-all input { margin: 0; }
.kr-map-lien { display: block; margin-top: 6px; padding: 0; border: 0; background: none;
  font: inherit; font-weight: 600; color: var(--accent); text-decoration: underline; cursor: pointer; }

.kr-mapside { min-height: 0; display: flex; flex-direction: column; }
.kr-resultsbox { flex: 0 0 40%; max-height: 40%; overflow-y: auto; border-bottom: 1px solid var(--hairline); }
.kr-results { list-style: none; margin: 0; padding: 0; }
.kr-row { border-bottom: 1px solid var(--hairline); }
.kr-row:hover, .kr-row.is-hover { background: #f3f1ea; }
.kr-row.is-selected { background: var(--accent-soft); }
.kr-rowbtn { display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 10px 16px;
  background: none; border: 0; text-align: left; cursor: pointer; color: inherit; }
.kr-dot-mini { width: 9px; height: 9px; border-radius: 50%; margin-top: 4px; flex-shrink: 0; }
.kr-dot-mini.kr-state-annulee { background: var(--bad); }
.kr-dot-mini.kr-state-maintenue { background: var(--accent); }
.kr-dot-mini.kr-state-encours { background: var(--warn); }
.kr-dot-mini.kr-state-close { background: var(--grey); }
.kr-dot-mini.kr-state-aucun { background: transparent; border: 2px solid var(--ink); }
/* INF-GRANTS E4 (2026-09-23) : voir .kr-issue-indisponible ci-dessous, meme
   motif (dashed, --secondary) pour rester distinct de kr-state-aucun. */
.kr-dot-mini.kr-state-indisponible { background: transparent; border: 2px dashed var(--secondary); }
.kr-rowmain { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.kr-rowname { font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.kr-rowmeta { font-size: 11.5px; color: var(--secondary); line-height: 1.3; }
.kr-rowside { flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.kr-distance { font-family: var(--font-mono); font-size: 12px; color: var(--ink); font-variant-numeric: tabular-nums; }
.kr-date { font-family: var(--font-mono); font-size: 11px; color: var(--secondary); font-variant-numeric: tabular-nums; }
.kr-more { padding: 12px 16px; text-align: center; font-size: 12px; color: var(--secondary); }

/* Dossier view */
.kr-maindossier { flex: 1 1 auto; min-height: 0; display: flex; overflow: hidden; }
/* UI6-E8 : vue Methode, meme systeme que la vue Dossier (feuille 720px,
   .kr-center/.kr-sheet), sans sommaire ni pieces -- plein ecran, un seul
   panneau central. */
.kr-mainmethode { flex: 1 1 auto; min-height: 0; display: flex; overflow: hidden; }
.kr-methode-link { font-size: 12px; }
.kr-left { width: 260px; flex: 0 0 260px; background: #f3f2ee; border-right: 1px solid var(--hairline);
  height: 100%; overflow-y: auto; padding: 18px 16px 16px; display: flex; flex-direction: column; }
.kr-somtitle { font-family: var(--font-sans); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--secondary); margin: 0 0 8px; font-weight: 600; }
.kr-somlist { list-style: none; margin: 0; padding: 0; }
.kr-somrow { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  background: transparent; border: none; border-left: 3px solid transparent; padding: 7px 10px;
  text-align: left; cursor: pointer; color: var(--secondary); }
.kr-somrow:hover { background: #ecebe5; }
.kr-somrow.is-active { background: var(--paper); color: var(--ink); }
.kr-somname { font-size: 13px; line-height: 1.3; }
.kr-sommeta { font-size: 11.5px; color: var(--secondary); }
.kr-issue-annulee { border-left-color: var(--bad); }
.kr-issue-maintenue { border-left-color: var(--accent); }
.kr-issue-encours { border-left-color: var(--warn); }
.kr-issue-close { border-left-color: var(--grey); }
.kr-issue-aucun { border-left-color: transparent; }
/* INF-GRANTS E4 (2026-09-23) : etat exceptionnel "indisponible" (droits
   kolem_app) -- border-left-style dashed pour rester visible ET distinct
   de kr-issue-aucun (transparent) sans ajouter une couleur pleine
   pouvant se confondre avec un des quatre etats de donnee reels. */
.kr-issue-indisponible { border-left-color: var(--secondary); border-left-style: dashed; }
.kr-somplus { margin: 8px 10px 0; font-size: 11.5px; color: var(--secondary); }
.kr-leftfoot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--hairline); display: flex; flex-direction: column; gap: 8px; }
.kr-quietbtn { background: none; border: none; padding: 2px 0; text-align: left; color: var(--accent);
  font-size: 12.5px; text-decoration: underline; cursor: pointer; }

/* UI7-B B12 (releve 05) : align-items par defaut vaut "stretch" -- .kr-sheet
   (flex item) etait etire a la hauteur VISIBLE de .kr-center (~452px) au
   lieu de croitre avec son contenu (mesure : rect.height 452px contre
   scrollHeight 1660px sur la page Methode). Le padding-bottom de .kr-sheet
   (44px) s'appliquait donc juste apres les 452 premiers pixels de contenu,
   et tout le reste debordait hors de la carte (fond/bordure), sans le
   moindre espacement en bas de page -- "texte de fin de page collé en bas".
   flex-start laisse .kr-sheet prendre sa hauteur reelle ; .kr-center garde
   son scroll (overflow-y: auto) sur cette hauteur desormais correcte. */
.kr-center { flex: 1 1 auto; min-width: 0; height: 100%; overflow-y: auto; padding: 32px 24px;
  display: flex; justify-content: center; align-items: flex-start; }
.kr-sheet { width: 100%; max-width: 720px; background: var(--paper); border: 1px solid var(--hairline);
  padding: 36px 44px 44px; }
.kr-runhead { font-family: var(--font-mono); font-size: 11px; color: var(--secondary); margin: 0 0 20px;
  font-variant-numeric: tabular-nums; }
/* UI7-B B12 (releve 06) : formulaire de contact. */
.kr-contact-form { display: flex; flex-direction: column; gap: 16px; max-width: 480px; margin: 0 0 32px; }
.kr-field { display: flex; flex-direction: column; gap: 4px; }
.kr-field label { font-family: var(--font-sans); font-size: 12.5px; font-weight: 600; color: var(--ink); }
.kr-field-optional { font-weight: 400; color: var(--secondary); }
.kr-field input, .kr-field textarea { font-family: var(--font-sans); font-size: 13.5px; color: var(--ink);
  background: var(--paper); border: 1px solid var(--hairline); border-radius: 3px; padding: 8px 10px;
  resize: vertical; }
.kr-field input:focus, .kr-field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
/* Honeypot : masque visuellement et retire du rendu graphique sans depend
   d'un display:none seul (defense en profondeur avec aria-hidden + tabindex
   -1 dans le HTML, cf contact.js). */
.kr-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.kr-contact-status { font-family: var(--font-sans); font-size: 12.5px; color: var(--secondary); margin: 4px 0 0; min-height: 1.4em; }
/* UI6-E10 point 6 : seule occurrence visible de l'UUID, pied du rapport. */
.kr-refinterne { font-family: var(--font-mono); font-size: 11px; color: var(--secondary);
  margin-top: 32px; padding-top: 12px; border-top: 1px solid var(--hairline); }
.kr-doctitle { font-family: var(--font-serif); font-weight: 600; font-size: 28px; margin: 0 0 8px;
  line-height: 1.2; color: var(--ink); }
.kr-docsubtitle { font-family: var(--font-sans); font-size: 15px; color: var(--secondary); margin: 0 0 26px; }
.kr-h2 { font-family: var(--font-serif); font-weight: 600; font-size: 19px; margin: 0 0 12px; color: var(--ink); }
.kr-syn { margin-bottom: 30px; }
.kr-syntext { font-family: var(--font-serif); font-size: 16.5px; line-height: 1.55; max-width: 65ch; margin: 0; color: var(--ink); }
.kr-mark { background: var(--highlight); }
.kr-supref { margin-left: 1px; }
.kr-cite { background: none; border: none; padding: 0; font-size: 0.7em; line-height: 1; color: var(--accent);
  cursor: pointer; font-weight: 600; vertical-align: super; }
.kr-cite:hover { text-decoration: underline; }
.kr-cite.is-current { text-decoration: underline; }
.kr-runningtext { font-family: var(--font-serif); font-size: 15px; line-height: 1.55; color: var(--ink); margin: 12px 0 0; }
.kr-doctable { margin-bottom: 10px; width: 100%; border-collapse: collapse; }
.kr-tablecaption { text-align: left; font-family: var(--font-sans); font-size: 11px; color: var(--secondary);
  margin-bottom: 6px; caption-side: top; }
.kr-doctable th { font-family: var(--font-sans); font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--secondary); text-align: left; border-bottom: 1px solid var(--hairline); padding: 0 10px 6px 0; font-weight: 600; }
.kr-doctable td { border-bottom: 1px solid var(--hairline); padding: 10px 10px 10px 0; vertical-align: top;
  font-family: var(--font-sans); font-size: 13px; }
.kr-doctable td:first-child { font-weight: 600; white-space: nowrap; }
.kr-doctablequote { font-family: var(--font-serif); font-style: italic; font-size: 14px; color: var(--ink); }
.kr-chrono { display: grid; grid-template-columns: 128px 1fr; row-gap: 10px; column-gap: 16px; margin: 0; }
.kr-chrono dt { font-family: var(--font-mono); font-size: 12.5px; color: var(--secondary); font-variant-numeric: tabular-nums; padding-top: 1px; }
.kr-chrono dd { font-family: var(--font-serif); font-size: 15px; margin: 0; line-height: 1.4; }
.kr-cumuls { list-style: none; margin: 0; padding: 0; }
.kr-cumuls li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--hairline); font-size: 14px; }
.kr-cumuls li:last-child { border-bottom: none; }
/* UI7-A A2 : couverture du perimetre (dossiers pas encore analyses en detail),
   bloc effets cumules de la fiche (dossier.js) et du volet (registre.js). */
.kr-couverture { margin-top: 12px; color: var(--secondary); }
.kr-linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; cursor: pointer; }
.kr-linkbtn:hover, .kr-linkbtn:focus-visible { color: var(--accent); }
.kr-link { font-family: var(--font-serif); }
.kr-cumulmeta { font-family: var(--font-mono); font-size: 11.5px; color: var(--secondary); white-space: nowrap; font-variant-numeric: tabular-nums; }
.kr-reserves { margin: 0; padding-left: 18px; font-family: var(--font-serif); font-size: 15px; line-height: 1.5; }
.kr-reserves li { margin-bottom: 6px; }

.kr-right { width: 340px; flex: 0 0 340px; background: var(--paper); border-left: 1px solid var(--hairline);
  height: 100%; overflow-y: auto; padding: 20px 20px 24px; }
.kr-rightheading { margin-bottom: 14px; font-size: 17px; }
.kr-pieceslist { list-style: none; margin: 0 0 24px; padding: 0; }
.kr-piece { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--hairline); }
.kr-docicon { width: 16px; height: 20px; flex: 0 0 16px; color: var(--secondary); }
.kr-piecename { flex: 1 1 auto; font-size: 13px; }
.kr-open { font-size: 12.5px; white-space: nowrap; }
.kr-excerptbox { border-top: 1px solid var(--hairline); padding-top: 16px; }
.kr-excerptlabel { font-family: var(--font-sans); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--secondary); margin: 0 0 10px; font-weight: 600; }
.kr-excerpthead { font-family: var(--font-mono); font-size: 11px; color: var(--secondary); margin: 0 0 8px; font-variant-numeric: tabular-nums; }
.kr-excerptpage { background: #fbfaf7; border: 1px solid var(--hairline); padding: 16px; }
.kr-excerptpage p { font-family: var(--font-serif); font-size: 14px; line-height: 1.6; margin: 0; }
.kr-hl { background: var(--highlight); }
.kr-excerptpageno { font-family: var(--font-mono); font-size: 11px; color: var(--secondary); margin: 8px 0 0; font-variant-numeric: tabular-nums; }

/* Print (dossier view only, E5) */
@media print {
  .kr-topbar, .kr-filterrow, .kr-breadcrumb, .kr-left, .kr-right { display: none !important; }
  .kr-maindossier, .kr-mainmethode { display: block !important; height: auto !important; overflow: visible !important; }
  .kr-center { overflow: visible !important; height: auto !important; padding: 0 !important; }
  .kr-sheet { border: none !important; max-width: none !important; padding: 0 !important; }
  html, body, .kr { height: auto !important; overflow: visible !important; }
}

/* Responsive */
@media (max-width: 720px) {
  .kr-topbar { flex-wrap: wrap; height: auto; padding: 8px 16px; }
  .kr-search { order: 3; flex: 1 1 100%; margin-top: 6px; flex-wrap: wrap; }
  .kr-search-lieu { flex: 1 1 100%; }
  .kr-distance-pill { flex: 0 0 auto; margin-top: 6px; }
  .kr-dist-popover { left: 0; transform: none; }
  /* front-releve3, R3b : anomalie mesuree en verification independante --
  sous 720px, .kr-main est le conteneur qui defile reellement (overflow-y:
  auto ci-dessous) pour la liste comme pour la liste-sous-carte
  (.kr-resultsbox, max-height:none juste apres) ; le bouton de retour est
  fixed par rapport au viewport, donc une ligne de la liste finit
  systematiquement par passer sous lui pendant le defilement. Marge de
  securite en pied de liste egale au gabarit du bouton (40px + 16px de marge
  + un peu de jeu), pour qu'aucune ligne ne reste bloquee juste dessous a la
  fin du defilement. */
  .kr-main { display: block; overflow-y: auto; padding-bottom: 72px; }
  .kr-listpane { border-right: 0; border-bottom: 1px solid var(--hairline); }
  .kr-tablewrap { overflow-y: visible; max-height: none; }
  .kr-recordpane { overflow-y: visible; }
  .kr-mapwrap { flex: 0 0 45vh; height: 45vh; border-right: 0; border-bottom: 1px solid var(--hairline); }
  .kr-mapside { min-height: 0; }
  .kr-resultsbox { max-height: none; }
  .kr-maindossier, .kr-mainmethode { flex-direction: column; height: auto; overflow: visible; }
  .kr-left, .kr-center, .kr-right { width: 100%; flex: 0 0 auto; height: auto; overflow: visible; }
  .kr-center { order: 1; padding: 20px 14px; }
  .kr-right { order: 2; border-left: none; border-top: 1px solid var(--hairline); }
  .kr-left { order: 3; border-right: none; border-top: 1px solid var(--hairline); }
  /* front-releve3, R3b : meme anomalie que .kr-main ci-dessus, sur les pages
  dossier/methode/contact (.kr-mainmethode/.kr-maindossier, defilement de
  page a cette largeur) -- marge de securite en pied de fiche pour ne jamais
  laisser le dernier champ ou bouton du formulaire juste sous le bouton de
  retour fixed (mesure : "Envoyer" du formulaire de contact collait au
  bouton flottant). */
  .kr-sheet { padding: 24px 20px 72px; }
  .kr-home-inner { padding: 32px 16px 20px; }
  .kr-home-title { font-size: 26px; max-width: none; }
  .kr-home-subtitle { font-size: 14px; }
  .kr-home-search { flex-direction: column; }
  .kr-home-search-btn { width: 100%; padding: 10px 0; }
  .kr-home-columns { grid-template-columns: 1fr; gap: 24px; }

  /* ── UI-10 (2026-09-24), rendu mobile 390x844 : aucun debordement
  horizontal de page, structure et CSS seuls, aucun libelle nouveau. ── */

  /* Registre : tableau -> liste de cartes empilees (E1 mesure : les six
  colonnes, chacune en white-space nowrap, exigent ensemble largement plus
  que 390px -- kr-tablewrap etant en overflow-x:hidden, le contenu etait
  jusqu'ici silencieusement tronque plutot que de faire deborder la page).
  data-label pose par registre.js::renderTable(), texte IDENTIQUE a celui
  du <th> correspondant (jamais un libelle invente ici). */
  .kr-table thead { display: none; }
  .kr-table, .kr-table tbody { display: block; width: 100%; }
  .kr-table tbody tr:not(.kr-row-more) { display: block; border: 1px solid var(--hairline);
  border-radius: 4px; padding: 10px 12px 2px; margin: 0 0 10px; }
  .kr.is-comfortable .kr-table tbody tr:not(.kr-row-more) { padding: 14px 14px 4px; }
  .kr-table tbody tr:not(.kr-row-more) td,
  .kr.is-comfortable .kr-table tbody tr:not(.kr-row-more) td { display: block; height: auto;
  padding: 0 0 8px; text-align: left; white-space: normal; }
  .kr-table td.kr-col-dossier { padding-bottom: 8px; margin-bottom: 4px;
  border-bottom: 1px solid var(--hairline); }
  .kr-table td[data-label]::before { content: attr(data-label); display: block;
  color: var(--secondary); font-size: 10.5px; text-transform: uppercase;
  letter-spacing: 0.03em; margin-bottom: 2px; }
  .kr-table th:nth-child(6), .kr-table td:nth-child(6) { min-width: 0; }
  .kr-public .kr-table th:nth-child(5), .kr-public .kr-table td:nth-child(5) { min-width: 0; }
  .kr-table tbody tr.is-selected td:first-child { padding-left: 0; }

  /* Fiche (volet liste) : pleine largeur deja acquise, .kr-listpane et
  .kr-recordpane sont des blocs empiles pleine largeur par defaut des que
  .kr-main passe en display:block ci-dessus -- rien a ajouter ici. Le
  bouton fermer, lui, reste hors champ tant que le tableau entier le
  precede dans le flux empile : registre.js::selectDossier() defile
  jusqu'a lui sur un choix explicite (pas l'ouverture automatique du
  premier resultat apres une recherche), borne a la meme largeur ici. */

  /* Pastilles de filiere : seule exception au "pas de defilement lateral"
  (consigne de session) -- une rangee compacte en defilement horizontal
  INTERNE plutot que le retour a la ligne par defaut de .kr-chips, qui
  rendrait la hauteur du bandeau imprevisible (nombre de filieres variable
  selon le perimetre). */
  .kr-filterrow { row-gap: 8px; }
  .kr-chips { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch;
  max-width: 100%; padding-bottom: 2px; }
  .kr-chips .kr-filpill { flex: 0 0 auto; }

  /* Carte : legende repliable (details/summary natif, sans JS) -- fermee
  par defaut sous 720px (carte.js ouvre .kr-legend explicitement a plus de
  720px, cf commentaire sur ce meme point dans carte.js) pour ne jamais
  chevaucher .kr-inst-zoomnote (meme bande du haut, cf app.css plus haut) ;
  l'utilisateur la deplie au besoin, comme n'importe quel <details>. */
  .kr-legend summary { cursor: pointer; list-style: revert; }
  .kr-legend:not([open]) { padding-bottom: 6px; }

  /* R14/R02, mesure en navigateur (front-releve2) : sous 720px .kr-mapwrap
  fait toute la largeur, donc le centre (50%) du bouton "Rechercher dans
  cette zone" tombe dans la boite de .kr-legend (top:14px, left:14px,
  max-width:190px) meme repliee -- chevauchement systematique, pas un cas
  limite. Descendu sous la ligne fermee de la legende ; ne couvre pas le cas
  ou l'utilisateur la deplie manuellement (details/summary, hors scope ici). */
  .kr-search-zone-btn { top: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  .kr * { transition: none !important; animation: none !important; }
}

/* ── Session 2026-09-19, retours de recette DV (remarques 04, 05, 06, 07,
   11, 12, 15, 16, 17, 22, 24). Variables existantes uniquement, aucune
   couleur en dur hors des ombres. ── */

/* 17, 22 : logo dans la barre haute */
.kr-brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: inherit; cursor: pointer; }
.kr-logo { display: block; flex: 0 0 auto; }

/* S48 3c : pastilles de filiere (remplacent le chip "Toutes filieres" a
   popover). Couleur posee dynamiquement en style inline depuis la valeur
   filiere_color servie par /api/search (src/kolem/taxonomie.py, jamais une
   couleur ecrite ici). */
.kr-filpill-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--hairline);
  border-radius: 999px; padding: 3px 10px; font-size: 12px; background: #ffffff; color: var(--ink);
  cursor: pointer; }
.kr-filpill-btn:hover { border-color: var(--secondary); }
.kr-filpill.is-active .kr-filpill-btn { background: var(--accent-soft); border-color: var(--accent); }
.kr-filpill-dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; background: var(--pill-color, var(--grey)); }
.kr-filpill-count { color: var(--secondary); font-variant-numeric: tabular-nums; }

/* S48 3c : chips a popover (rayon, filieres) entierement retires -- la
   rangee de filtres ne porte plus que les pastilles de filiere ci-dessus. */

/* 04 : export et partage en icones */
.kr-iconbtn { display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; padding: 0; border: 1px solid var(--accent);
  border-radius: 3px; background: transparent; color: var(--accent); cursor: pointer; }
.kr-iconbtn:hover { background: var(--accent-soft); }
.kr-iconbtn svg { width: 16px; height: 16px; }
.kr-sharewrap { position: relative; display: inline-flex; }
.kr-sharemenu { position: absolute; top: calc(100% + 4px); right: 0; z-index: 30;
  min-width: 220px; margin: 0; padding: 4px; list-style: none; background: var(--paper);
  border: 1px solid var(--hairline); border-radius: 3px;
  box-shadow: 0 4px 10px rgba(0,0,0,.08); }
.kr-sharemenu[hidden] { display: none; }
.kr-sharemenuitem { display: block; width: 100%; text-align: left; border: 0;
  background: transparent; color: var(--ink); font: inherit; font-size: 12.5px;
  padding: 6px 8px; border-radius: 2px; cursor: pointer; text-decoration: none; }
.kr-sharemenuitem:hover { background: var(--accent-soft); color: var(--accent); }

/* 05 : ligne d'effet cumule cliquable sur toute sa largeur */
.kr-cumuls li { padding: 0; }
.kr-cumul-line { display: flex; justify-content: space-between; align-items: baseline;
  gap: 16px; width: 100%; padding: 8px 0; color: inherit; text-decoration: none;
  cursor: pointer; }
.kr-cumul-line:hover .kr-cumulname,
.kr-cumul-line:focus-visible .kr-cumulname { text-decoration: underline; }

/* 11 : dossier sans nom, le repli se lit comme un repli */
.kr-dossier-fallback, .kr-title-fallback { color: var(--secondary); font-style: italic; }

/* 24 : cellule Avis AE cliquable */
.kr-avis-link { color: inherit; text-decoration: none; cursor: pointer; }
.kr-avis-link:hover { text-decoration: underline; }

/* DOSSIERS-CARTE : invite discrete au-dessus de la note de comptage, jamais cliquable (disparait au premier clic). */
.kr-map-invite { position: absolute; left: 50%; bottom: 64px; transform: translateX(-50%); margin: 0;
  background: var(--paper); border: 1px solid var(--hairline); border-radius: 3px; padding: 6px 12px;
  font-size: 12px; color: var(--ink); z-index: 400; pointer-events: none; white-space: nowrap; max-width: calc(100% - 28px); }

/* 16 : survol de la carte */
.kr-map-tooltip { font-size: 12px; line-height: 1.4; color: var(--secondary);
  max-width: 220px; }
.kr-map-tooltip strong { display: block; color: var(--ink); font-weight: 600; }
.maplibregl-popup-content { padding: 8px 10px; }

/* 07, 12 : plus de defilement horizontal, gouttiere reservee pour que la barre
   verticale ne recouvre plus la derniere colonne */
.kr-tablewrap { overflow-x: hidden; scrollbar-gutter: stable; }
.kr-table thead th.kr-num { white-space: normal; }

/* UI-8 suite (2026-09-23) : colonne Distance (6e et derniere, seule colonne
   du tableau sans min-width dediee -- .kr-col-dossier en porte une, ici
   aucune) tronquee a 1440x900 et 1280 ("dans la comm", "env. 5,3" sans
   "km"). kr-tablewrap est en overflow-x: hidden (regle juste au-dessus) et
   le contenu de la colonne, en white-space: nowrap (.kr-num), n'a alors
   nulle part ou deborder : le layout automatique du tableau la comprime en
   dessous de la largeur qu'exige son plus long contenu reel, "dans la
   commune" (kr-dans-commune, format.js::distanceCellHtml -- plus long que
   toute valeur "env. XX,X km"), et l'exces est coupe net plutot que visible.
   Min-width dediee, ciblee par position (nth-child : les deux colonnes
   .kr-num, Puissance et Distance, partagent la meme classe, aucun selecteur
   de classe ne les distingue) ; sans effet sur 390px, ou .kr-main repasse en
   colonne empilee (media query plus bas) et le tableau recoit toute la
   largeur de la fenetre, non les 58% partages avec le volet droit. */
.kr-table th:nth-child(6), .kr-table td:nth-child(6) { min-width: 130px; }
/* PUBLIC-1 : sans la colonne « Issue contentieuse » (retiree du DOM pour un anonyme, html.kr-public posee par main.js),
   Distance devient la 5e colonne : meme min-width, portee par la position, jamais de colonne fantome. */
.kr-public .kr-table th:nth-child(5), .kr-public .kr-table td:nth-child(5) { min-width: 130px; }
/* PUBLIC-1 : accueil a une seule colonne (bloc « Dernieres decisions » retire) : pas de moitie vide. */
.kr-home-columns.kr-home-columns-1 { grid-template-columns: 1fr; }

/* front-releve3, R3b : bouton flottant "Signaler un probleme ou une idee",
   place hors de tout conteneur .kr-main-* (index.html) -- position fixed par
   rapport au viewport entier, donc visible sur toutes les vues sans code de
   visibilite par vue. Cache par defaut (hidden), affiche par
   feedback_widget.js seulement si /api/feedback confirme enabled:true. */
.kr-feedback-btn {
  position: fixed; right: 16px; bottom: 16px; z-index: 500;
  width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: var(--accent); color: #ffffff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.kr-feedback-btn:hover { background: #18543f; }
/* Vue carte : le ScaleControl MapLibre natif (bottom-right, carte.js) et le
   pied de carte (kr-mapfoot) occupent deja le coin bas-droit du conteneur
   carte, qui coincide avec le bas-droit du viewport -- decale vers le haut
   pour ne jamais le chevaucher (mesure au rendu, cf rapport de session). */
.kr-feedback-btn.kr-feedback-btn--carte { bottom: 56px; }

.kr-feedback-panel {
  position: fixed; right: 16px; bottom: 64px; z-index: 501;
  width: 320px; max-width: calc(100vw - 32px);
  background: var(--paper); border: 1px solid var(--hairline); border-radius: 6px;
  box-shadow: 0 4px 20px rgba(0,0,0,.22);
  padding: 14px; display: flex; flex-direction: column; gap: 10px;
}
.kr-feedback-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kr-feedback-title { font-family: var(--font-sans); font-size: 13px; font-weight: 600; margin: 0; }
.kr-feedback-close { border: 0; background: transparent; color: var(--secondary); cursor: pointer; padding: 2px;
  display: flex; align-items: center; justify-content: center; }
.kr-feedback-close:hover { color: var(--ink); }

.kr-feedback-step1 { display: flex; flex-direction: column; gap: 6px; }
.kr-feedback-choice {
  text-align: left; border: 1px solid var(--hairline); border-radius: 4px;
  background: #ffffff; padding: 8px 10px; font-size: 12.5px; color: var(--ink);
  cursor: pointer;
}
.kr-feedback-choice:hover { border-color: var(--accent); }

.kr-feedback-step2 { display: flex; flex-direction: column; gap: 6px; }
.kr-feedback-label { font-size: 11px; color: var(--secondary); font-weight: 600; text-transform: uppercase;
  letter-spacing: .02em; }
.kr-feedback-textarea, .kr-feedback-input {
  border: 1px solid var(--hairline); border-radius: 4px; padding: 6px 8px;
  font-family: inherit; font-size: 12.5px; color: var(--ink); resize: vertical;
}
.kr-feedback-counter { margin: 0; font-size: 11px; color: var(--secondary); text-align: right; }
.kr-feedback-hint { margin: 0; font-size: 11px; color: var(--secondary); }
.kr-feedback-contexte { margin: 4px 0 0; font-size: 11px; color: var(--secondary); font-style: italic; }
.kr-feedback-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.kr-feedback-status { margin: 0; font-size: 11.5px; color: var(--secondary); min-height: 14px; }

/* Brief R3b : "plein ecran moins 32 px sous 480 px" -- explicite, pas une
   simple consequence de max-width (qui laisserait un panneau de 320px
   asymetrique des que le viewport depasse 352px). */
@media (max-width: 480px) {
  .kr-feedback-panel { left: 16px; right: 16px; width: auto; max-width: none; }
}

/* CARTE-1 E3 : apercu d'epingle dans la legende des dossiers. */
.kr-legend-pin { flex-shrink: 0; display: block; }

/* APP-JOURNAL : cafard du bouton "Signaler un probleme" -- les antennes bougent legerement au survol (rotation autour de
   la tete, en unites du viewBox), jamais sous prefers-reduced-motion. */
.kr-feedback-btn .kr-cafard-g { transform-box: view-box; transform-origin: 9.1px 4.6px; }
.kr-feedback-btn .kr-cafard-d { transform-box: view-box; transform-origin: 10.9px 4.6px; }
@keyframes kr-antenne-g { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-14deg); } }
@keyframes kr-antenne-d { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(14deg); } }
@media (prefers-reduced-motion: no-preference) {
  .kr-feedback-btn:hover .kr-cafard-g, .kr-feedback-btn:focus-visible .kr-cafard-g { animation: kr-antenne-g .7s ease-in-out 2; }
  .kr-feedback-btn:hover .kr-cafard-d, .kr-feedback-btn:focus-visible .kr-cafard-d { animation: kr-antenne-d .7s ease-in-out 2; }
}

/* SANS-ANALYSE-1 : section repliee sous la liste, texte seul */
.kr-sans-analyse { border-top: 1px solid var(--hairline); padding: 8px 12px; font-size: 13px; color: var(--secondary); }
.kr-sans-analyse summary { cursor: pointer; }
.kr-sans-analyse ul { margin: 8px 0 0; padding-left: 18px; }
.kr-sans-analyse li { margin: 4px 0; }
/* SANS-ANALYSE-7 : la section vit dans la zone qui defile (.kr-tablewrap), apres le tableau, et non plus collee en bas du volet ;
   arrive sur un projet, de la marge sous elle laisse scrollIntoView({block:"center"}) centrer la ligne. */
#kr-sans-analyse:has(li.is-ancre) { padding-bottom: 35vh; }
.kr-sans-analyse li.is-ancre { background: var(--highlight); border-radius: 2px; }
.kr-sans-analyse-note { margin: 6px 0 0; font-style: italic; }
