@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/ibm-plex-sans-latin-400-normal-64251e64.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/ibm-plex-sans-latin-400-italic-86b9c1f6.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/ibm-plex-sans-latin-500-normal-290aaea2.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/ibm-plex-sans-latin-600-normal-99b2fa32.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/ibm-plex-sans-condensed-latin-500-normal-cab4f50f.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/ibm-plex-sans-condensed-latin-600-normal-18f24c36.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/ibm-plex-sans-condensed-latin-700-normal-4f8a056e.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/ibm-plex-mono-latin-400-normal-d803141a.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/ibm-plex-mono-latin-500-normal-3f7bbac1.woff2") format("woff2"); }

:root {
  --encre: #1b1d24;
  --encre-attenuee: #55565e;
  --encre-douce: #34363e;
  --papier: #faf8f3;
  --papier-fonce: #efece4;
  --blanc: #ffffff;
  --filet: #cfcbc0;
  --accent: #233d7b;
  --bleu-nuit: #16264d;
  --bleu-separateur: #5a6fa3;
  --bleu-ciel: #dde4f3;
  --bleu-brume: #eef1f8;
  --rouge-brique: #962a1d;
  --rouge-tampon: #c23b2a;
  --rouge-rose: #f6e1db;
  --carte-fond: #e6e7ea;
  --serif: "IBM Plex Sans Condensed", "Arial Narrow", sans-serif;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --largeur-page: 1200px;
  --gouttiere: 24px;
  --icone-fermer: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
  --icone-ajout: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
  --icone-reduire: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E");
  --icone-coche: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none' stroke='black'%3E%3Crect x='.75' y='.75' width='16.5' height='16.5' stroke-width='1.5'/%3E%3Cpath d='M4.5 9.2l3 3 6-6.4' stroke-width='2'/%3E%3C/svg%3E");
  --duree-controle: 120ms;
  --duree-feuille: 200ms;
}

@media (prefers-reduced-motion: reduce) {
  :root { --duree-controle: 0s; --duree-feuille: 0s; }
  .turbo-progress-bar { transition: none; }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--papier);
  color: var(--encre);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
}

h1, h2 { text-wrap: balance; }

a { color: var(--accent); }

a:hover { color: var(--rouge-brique); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.entete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
  padding: 0 28px;
  background: var(--accent);
  color: var(--blanc);
}

.entete :focus-visible { outline-color: var(--blanc); }

.entete__logotype { display: flex; align-items: center; gap: 12px; min-height: 44px; color: var(--blanc); text-decoration: none; }

.entete__logotype:hover { color: var(--blanc); }

.entete__symbole { flex: none; }

.entete__nom {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 20px;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.entete__devise { font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: 0.16em; color: var(--bleu-ciel); }

.entete__navigation { display: flex; align-items: center; gap: 32px; font-size: 15px; font-weight: 500; }

.entete__navigation a { display: inline-flex; align-items: center; min-height: 44px; color: var(--blanc); text-decoration: none; border-bottom: 3px solid transparent; }

.entete__navigation a[aria-current="page"] { border-bottom-color: var(--blanc); }

.entete__exercice {
  padding-left: 24px;
  border-left: 1px solid var(--bleu-separateur);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bleu-ciel);
}

.filet-tricolore {
  flex: none;
  height: 5px;
  background: linear-gradient(to right, var(--bleu-nuit) 0 33.34%, var(--blanc) 33.34% 66.67%, var(--rouge-tampon) 66.67%);
}

.mention { margin: 0; font-size: 12.5px; line-height: 17px; color: var(--encre-douce); }

.ecran > .mention { padding: 5px 28px; border-bottom: 1px solid var(--filet); }

.ecran { flex: 1; display: flex; flex-direction: column; }

.page-carte .ecran { flex: none; height: 100dvh; }

.contenu { flex: 1; display: flex; flex-direction: column; }

.pied {
  display: grid;
  grid-template-columns: auto 1fr 1fr auto;
  gap: 40px;
  align-items: start;
  padding: 28px max(var(--gouttiere), (100% - var(--largeur-page)) / 2);
  background: var(--papier-fonce);
  border-top: 2px solid var(--bleu-nuit);
  color: var(--encre-douce);
  font-size: 13px;
  line-height: 1.6;
}

.pied p { margin: 0; }

.pied__marque { max-width: 230px; }

.pied__marque .mention { margin-top: 8px; font-size: 12px; line-height: 1.4; color: var(--encre); }

.bloc-marque { display: flex; align-items: stretch; gap: 12px; color: var(--encre); }

.bloc-marque svg { flex: none; }

.bloc-marque__texte { display: flex; flex-direction: column; justify-content: center; gap: 4px; }

.bloc-marque__intitule { font-family: var(--serif); font-weight: 700; font-size: 14px; line-height: 1.05; text-transform: uppercase; }

.bloc-marque__devise { border-top: 1px solid var(--encre); padding-top: 3px; font-style: italic; font-size: 11.5px; }

.pied__liens { display: flex; flex-direction: column; }

.pied__liens a { display: inline-flex; align-items: center; min-height: 44px; }

.pied__csv-court { display: none; }

.notifications { padding: 0.75rem max(var(--gouttiere), (100% - var(--largeur-page)) / 2) 0; }

.notification {
  margin: 0 0 0.5rem;
  padding: 0.6rem 0.9rem;
  border-top: 3px solid var(--accent);
  background: var(--bleu-ciel);
  font-size: 0.92rem;
}

.notification--alert { border-top-color: var(--rouge-tampon); background: var(--rouge-rose); }

/* Carte */

.page-carte .contenu { overflow: hidden; }

.carte { flex: 1; min-height: 60vh; display: grid; grid-template-columns: min(400px, 45%) minmax(0, 1fr); }

.carte__toile { min-height: 0; }

.carte__panneau {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-height: 0;
  overflow-y: auto;
  padding: 26px 28px;
  background: var(--bleu-brume);
  border-right: 1px solid var(--filet);
}

.carte__panneau h1, .carte__reglages summary {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--encre-attenuee);
}

.carte__decompte { margin: -18px 0 0; font-size: 16px; }

.carte__total { margin-right: 4px; font-family: var(--serif); font-weight: 600; font-size: 48px; line-height: 1.05; }

.carte__detail { display: block; font-size: 14px; color: var(--encre-attenuee); }

.carte__recherche { display: flex; flex-direction: column; gap: 8px; }

.carte__recherche label, .carte__seuil label, .carte__regime legend { font-size: 14px; font-weight: 500; }

.carte__recherche-saisie { display: grid; grid-template-columns: minmax(0, 1fr) auto; row-gap: 8px; }

.carte__recherche-saisie input {
  height: 44px;
  padding: 0 12px;
  border: 1.5px solid var(--accent);
  border-right: 0;
  border-radius: 0;
  background: var(--blanc);
  color: var(--encre);
  font: inherit;
  font-size: 15px;
}

.carte__rechercher, .carte__position { height: 44px; border-radius: 0; font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; }

.carte__rechercher { padding: 0 16px; border: 0; background: var(--accent); color: var(--blanc); }

.carte__rechercher:hover { background: var(--bleu-nuit); }

.carte__position {
  grid-column: 1 / -1;
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1.5px solid var(--accent);
  background: transparent;
  color: var(--encre);
}

.carte__position svg { flex: none; color: var(--accent); }

.carte__position:hover { background: var(--blanc); }

.carte__position:disabled { opacity: 0.6; cursor: progress; }

.carte__reglages summary { display: flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; list-style: none; }

.carte__reglages summary::-webkit-details-marker { display: none; }

.carte__reglages summary::after { content: ""; flex: 1; border-top: 1px solid var(--filet); }

.carte__puce { display: none; }

.carte__reglage { margin-top: 14px; }

.carte__seuil { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }

.carte__seuil output { font-family: var(--mono); font-size: 15px; font-weight: 500; white-space: nowrap; }

.carte__reglage input[type="range"] { display: block; width: 100%; margin: 8px 0 0; accent-color: var(--accent); }

.carte__graduations { display: flex; justify-content: space-between; padding: 0 2px; font-family: var(--mono); font-size: 11px; color: var(--encre-attenuee); }

.carte__mention { margin: 8px 0 0; font-size: 13px; line-height: 1.5; color: var(--encre-attenuee); }

.carte__regime { margin: 16px 0 0; padding: 0; border: 0; }

.carte__regime legend { padding: 0; }

.carte__segments { display: flex; width: fit-content; margin-top: 8px; border: 1.5px solid var(--accent); }

.carte__segments label { display: flex; align-items: center; min-height: 40px; padding: 0 14px; font-size: 14px; cursor: pointer; }

.carte__segments label + label { border-left: 1.5px solid var(--accent); }

.carte__segments label:has(:checked) { background: var(--accent); color: var(--blanc); }

.carte__segments label:has(:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

.carte__segments input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }

@media (forced-colors: active) {
  .carte__segments label:has(:checked) { forced-color-adjust: none; background: SelectedItem; color: SelectedItemText; outline-color: CanvasText; }
}

.carte__territoires { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.carte__territoires--reglages { display: none; }

.carte__territoires-titre { flex-basis: 100%; font-size: 14px; font-weight: 500; }

.carte__territoires button {
  min-height: 44px;
  padding: 0 12px;
  border: 1.5px solid var(--accent);
  background: var(--blanc);
  color: var(--encre);
  font: 500 12px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

@media (hover: hover) {
  .carte__territoires button:hover { background: var(--accent); color: var(--blanc); }
}

.carte__legende { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 22px 0 0; padding: 16px 0 0; border-top: 1px solid var(--filet); list-style: none; font-size: 13px; }

.carte__legende li { display: flex; align-items: center; gap: 8px; }

.carte__pastille { flex: none; width: 15px; height: 15px; border: 3px solid var(--accent); border-radius: 50%; background: var(--blanc); }

.carte__pastille--observation { width: 14px; height: 14px; border: 0; background: var(--rouge-tampon); }

.carte__etat { margin: -12px 0 0; font-size: 14px; line-height: 1.5; }

.carte .leaflet-container { background: var(--carte-fond); }

.carte__fond { filter: grayscale(1) contrast(0.7) brightness(1.12); }

.carte .leaflet-bar { border: 1.5px solid var(--accent); border-radius: 0; box-shadow: none; }

.carte .leaflet-bar a, .carte a.leaflet-popup-close-button { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: var(--encre); }

.carte .leaflet-bar a { border-radius: 0; border-bottom: 0; }

.carte .leaflet-bar a + a { border-top: 1.5px solid var(--accent); }

.carte .leaflet-bar a span, .carte .leaflet-popup-close-button span { display: none; }

.carte .leaflet-control-zoom-in::before, .carte .leaflet-control-zoom-out::before, .carte .leaflet-popup-close-button::before, .observations__verser::before {
  content: "";
  width: 24px;
  height: 24px;
  background: currentColor;
}

@media (forced-colors: active) {
  .carte .leaflet-control-zoom-in::before, .carte .leaflet-control-zoom-out::before, .carte .leaflet-popup-close-button::before, .observations__verser::before { forced-color-adjust: none; background: LinkText; }
}

.carte .leaflet-control-zoom-in::before { mask: var(--icone-ajout); }

.carte .leaflet-control-zoom-out::before { mask: var(--icone-reduire); }

.carte .leaflet-popup-close-button::before { mask: var(--icone-fermer); }

.carte .leaflet-bottom.leaflet-right { left: 0; }

.carte .leaflet-control-attribution {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px 16px;
  float: none;
  min-height: 30px;
  margin: 0;
  padding: 4px 14px;
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid var(--filet);
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--encre-douce);
}

.carte .leaflet-control-attribution a:first-child { order: 1; color: var(--accent); }

.carte .leaflet-control-attribution [aria-hidden="true"] { display: none; }

.carte .leaflet-popup-content-wrapper { border: 1.5px solid var(--accent); border-radius: 0; box-shadow: none; }

.carte .leaflet-popup-tip { border: 1.5px solid var(--accent); box-shadow: none; }

.carte .leaflet-popup-content { margin: 14px 16px 16px; font-size: 14px; line-height: 1.4; }

.infobulle { display: flex; flex-direction: column; gap: 4px; font-family: var(--sans); color: var(--encre); }

.infobulle p { margin: 0; }

.infobulle__numero { padding-right: 44px; font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rouge-brique); }

.infobulle__nom { font-family: var(--serif); font-weight: 600; font-size: 20px; line-height: 1.1; }

.infobulle__lieu { font-size: 13px; color: var(--encre-attenuee); }

.infobulle dl { display: grid; grid-template-columns: repeat(3, auto); margin: 8px 0; border-top: 1px solid var(--filet); border-bottom: 1px solid var(--filet); }

.infobulle dl > div { padding: 6px 0; }

.infobulle dl > div + div { padding-left: 8px; border-left: 1px solid var(--filet); }

.infobulle dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--encre-attenuee); }

.infobulle dd { margin: 2px 0 0; font-size: 13px; font-weight: 500; white-space: nowrap; }

.infobulle .infobulle__fiche { justify-content: center; color: var(--blanc); }

.carte__feuille[hidden] { display: none; }

@media (max-width: 48rem) {
  .carte { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  .carte__toile { grid-area: 1 / 1; }
  .carte__panneau {
    grid-area: 1 / 1;
    align-self: start;
    z-index: 1000;
    margin: 12px;
    flex-flow: row wrap;
    align-items: flex-start;
    gap: 8px;
    max-height: calc(100% - 24px - 48px);
    padding: 0;
    background: none;
    border: 0;
    pointer-events: none;
  }
  .carte__panneau > * { pointer-events: auto; }
  .carte__decompte { display: none; }
  .carte__recherche { flex-basis: 100%; }
  .carte__recherche-saisie { border: 1.5px solid var(--accent); background: var(--blanc); }
  .carte__recherche-saisie input { height: 46px; border: 0; font-size: 16px; }
  .carte__rechercher { display: none; }
  .carte__position { grid-column: auto; justify-content: center; width: 46px; height: 46px; padding: 0; border: 0; border-left: 1.5px solid var(--accent); }
  .carte__position svg { width: 20px; height: 20px; }
  .carte__reglages[open] { flex-basis: 100%; max-height: calc(100dvh - 360px); overflow-y: auto; padding: 0 12px 14px; border: 1.5px solid var(--accent); background: var(--bleu-brume); }
  .carte__reglages summary { padding: 0 12px; border: 1.5px solid var(--accent); background: var(--blanc); font-size: 12.5px; letter-spacing: 0; text-transform: none; color: var(--encre); }
  .carte__reglages[open] summary { margin: 0 -12px; border-width: 0 0 1.5px; }
  .carte__reglages summary::after { content: none; }
  .carte__reglages-titre { display: none; }
  .carte__puce { display: inline; }
  .carte__etat { flex: 1 1 100%; margin: 0; padding: 7px 10px; background: rgba(250, 248, 243, 0.92); font-size: 13px; line-height: 1.4; }
  .carte__reglages[open] ~ .carte__etat { margin-right: 58px; }
  .carte .leaflet-control-attribution { gap: 0 10px; padding: 3px 8px; font-size: 11px; }
  .carte .leaflet-top.leaflet-right { top: auto; bottom: 48px; }
  .carte__territoires--panneau { display: none; }
  .carte__territoires--reglages { display: flex; margin-top: 16px; }
  .carte__territoires button { flex: 1 1 40%; font-size: 14px; letter-spacing: 0; text-transform: none; }
  .carte__feuille {
    grid-area: 2 / 1;
    position: relative;
    max-height: 45dvh;
    overflow-y: auto;
    padding: 12px 16px 16px;
    border-top: 3px solid var(--accent);
    background: var(--blanc);
    translate: 0 0;
    transition: translate var(--duree-feuille);
  }
  @starting-style {
    .carte__feuille { translate: 0 100%; }
  }
  .carte__feuille::before { content: ""; display: block; width: 40px; height: 4px; margin: 0 auto 8px; background: var(--filet); }
  .carte__fermer {
    position: absolute;
    top: 16px;
    right: 8px;
    width: 44px;
    height: 44px;
    border: 0;
    background: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--encre);
    cursor: pointer;
  }
  .carte__feuille .infobulle__numero { padding-right: 44px; font-size: 12.5px; }
  .carte__feuille .infobulle__nom { padding-right: 44px; font-size: 26px; }
  .carte__feuille .infobulle__lieu { font-size: 14px; }
  .carte__feuille .infobulle dl { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .carte__feuille .infobulle dl > div { padding: 8px 8px 8px 0; }
  .carte__feuille .infobulle dl > div + div { padding-left: 10px; }
  .carte__feuille .infobulle dd { margin-top: 3px; font-size: 15px; white-space: normal; }
  .infobulle__observation {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    margin: 4px 0 12px;
    font-family: var(--mono);
    font-size: 12px;
    line-height: 1.5;
    color: var(--encre-douce);
  }
  .infobulle__observation .observation__image { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: var(--papier-fonce); }
  .infobulle__observation figcaption { display: flex; flex-direction: column; }
  .infobulle__observation figcaption > :first-child { text-transform: uppercase; }
  .infobulle__observation a { color: var(--accent); }
  p.infobulle__observation { display: flex; align-items: center; justify-content: center; margin: 4px 0 12px; width: 112px; aspect-ratio: 3 / 2; background: var(--papier-fonce); text-align: center; }
  .carte__feuille .infobulle__fiche { min-height: 48px; font-size: 16px; }
}

/* Documents */

.document { width: min(1248px, 100%); margin: 0 auto; padding: 24px 16px 48px; }

.document h1, .document h2 { margin: 0; font-family: var(--serif); font-weight: 600; line-height: 1.05; color: var(--bleu-nuit); }

.document h1 { margin-top: 8px; font-size: 38px; }

.document h2 { font-size: 26px; line-height: 1.1; }

.document__surtitre { margin: 0; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--encre-attenuee); }

.document__entete { padding-bottom: 20px; border-bottom: 2px solid var(--bleu-nuit); }

@media not all and (max-width: 48rem) {
  .document { padding: 48px var(--gouttiere) 88px; }
  .document h1 { font-size: 64px; }
  .document h2 { font-size: 30px; }
  .document__surtitre { letter-spacing: 0.12em; }
  .document__entete { padding-bottom: 28px; }
}

.fiche__mention { margin: 0.5rem 0 0; font-size: 0.78rem; color: var(--encre-attenuee); }

.bouton, .choix, .carte__segments label, .carte__territoires button, .carte__position, .carte__rechercher, .partage__bouton, .depot__bouton, .palmares__onglets label {
  transition: background-color var(--duree-controle), color var(--duree-controle), border-color var(--duree-controle);
}

.bouton {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1.5px solid var(--accent);
  background: var(--blanc);
  color: var(--accent);
  font: 500 15px var(--sans);
  text-decoration: none;
  cursor: pointer;
}

.bouton:hover { background: var(--accent); color: var(--papier); }

.bouton:disabled { opacity: 0.6; cursor: progress; }

.bouton:disabled:hover { background: var(--blanc); color: var(--accent); }

.etat-vide {
  padding: 1rem;
  background: var(--papier-fonce);
  border: 1px solid var(--filet);
  color: var(--encre-attenuee);
}

.bouton--principal { padding: 0 24px; background: var(--accent); color: var(--blanc); }

.bouton--principal:hover { border-color: var(--bleu-nuit); background: var(--bleu-nuit); color: var(--blanc); }

.cote { font-family: var(--mono); }

.fiche {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) 12px;
  grid-template-areas:
    "zenithale zenithale zenithale"
    ". identite ."
    ". tampon ."
    ". appreciation ."
    ". signaletique ."
    ". observations ."
    ". versement .";
  row-gap: 16px;
  padding-bottom: 32px;
}

.fiche h1, .fiche h2 { margin: 0; font-family: var(--serif); font-weight: 600; line-height: 1.2; color: var(--bleu-nuit); }

:where(.fiche) p { margin: 0; }

.fiche__zenithale { grid-area: zenithale; position: relative; margin: 0; }

.fiche__zenithale img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--bleu-nuit); }

.fiche__zenithale figcaption { position: absolute; top: 0; right: 0; padding: 3px 8px; background: rgb(255 255 255 / 0.94); font-family: var(--mono); font-size: 11px; }

.fiche__precision, .fiche__lieu { display: none; }

.fiche__identite {
  grid-area: identite;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: -68px;
  padding: 20px 22px;
  background: var(--accent);
  outline: 3px double var(--blanc);
  outline-offset: -8px;
  color: var(--blanc);
}

.fiche__fil { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bleu-ciel); }

.fiche__fil a { color: inherit; }

.fiche__identite h1 { font-size: 34px; line-height: 1.02; color: var(--blanc); }

.fiche__reference { grid-area: tampon; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }

.tampon {
  padding: 4px 9px;
  border: 3px double var(--rouge-tampon);
  font-family: var(--mono);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rouge-brique);
}

.partage { display: flex; flex-direction: column; align-items: flex-end; }

.partage[hidden] { display: none; }

.partage__bouton {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border: 1.5px solid var(--accent);
  background: var(--blanc);
  color: var(--accent);
  font: 500 14px var(--sans);
  cursor: pointer;
}

.partage__bouton:hover { background: var(--bleu-brume); }

.partage[data-mode="partager"] .partage__copier, .partage[data-mode="copier"] .partage__partager { display: none; }

.partage__statut { font-family: var(--mono); font-size: 12px; }

.partage__statut:not(:empty) { margin-top: 4px; }

.signaletique { grid-area: signaletique; }

.signaletique dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.signaletique dl > div { padding: 12px; border: 1px solid var(--filet); background: var(--blanc); }

.signaletique dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--encre-attenuee); }

.signaletique dd { margin: 4px 0 0; font-size: 15px; line-height: 1.3; }

.signaletique__denomination, .signaletique__departement { display: none; }

.signaletique__diametre, .signaletique__regime { order: -1; }

.signaletique__coordonnees { order: 1; grid-column: 1 / -1; }

.signaletique__osm { order: 2; grid-column: 1 / -1; }

.signaletique__diametre dd { font-family: var(--mono); font-weight: 500; font-size: 22px; color: var(--bleu-nuit); }

.signaletique__commune .cote { font-size: 12.5px; color: var(--encre-attenuee); }

.signaletique__coordonnees dd, .signaletique__osm .cote { font-family: var(--mono); font-size: 13px; }

.signaletique__coordonnees span { white-space: nowrap; }

.signaletique__situer { display: flex; align-items: center; width: fit-content; min-height: 44px; font-family: var(--sans); font-size: 14px; }

.signaletique__ways { display: inline-block; }

.signaletique__ways summary { display: inline; color: var(--accent); text-decoration: underline; cursor: pointer; }

.signaletique__ways summary::-webkit-details-marker { display: none; }

.signaletique__note { display: block; margin-top: 4px; font-size: 13px; line-height: 1.45; color: var(--encre-attenuee); }

.appreciation {
  grid-area: appreciation;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--filet);
  border-top: 3px solid var(--rouge-tampon);
  background: var(--bleu-brume);
}

.appreciation--exprimee { background: var(--rouge-rose); }

.appreciation h2 { font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--encre); }

.appreciation__exprime { font-family: var(--serif); font-weight: 600; font-size: 21px; color: var(--bleu-nuit); }

.appreciation__choix { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.appreciation__choix form { margin: 0; }

.choix {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 100%;
  min-height: 56px;
  padding: 6px 10px;
  border: 1.5px solid var(--accent);
  background: var(--blanc);
  color: var(--encre);
  font: 500 14.5px/1.3 var(--sans);
  text-align: center;
  cursor: pointer;
}

.choix:hover { background: var(--bleu-brume); }

.choix[aria-pressed="true"] { background: var(--accent); color: var(--blanc); }

.appreciation__decompte { font-family: var(--mono); font-size: 12px; }

.appreciation__note { font-size: 12.5px; line-height: 1.5; color: var(--encre-attenuee); }

.observations { grid-area: observations; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.observations__entete { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 4px; margin-bottom: 2px; padding-bottom: 8px; border-bottom: 2px solid var(--bleu-nuit); }

.observations h2 { font-size: 26px; }

.observations__releve { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; color: var(--encre-attenuee); }

.planche { display: grid; gap: 24px; margin: 0; padding: 0; list-style: none; }

.observations .planche { display: contents; }

.observations .planche .observation { height: 100%; }

.planche .observation { margin: 0; display: flex; flex-direction: column; background: var(--blanc); border: 1px solid var(--filet); }

.planche .observation__image { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--papier-fonce); }

.planche .observation figcaption { display: flex; flex-direction: column; gap: 3px; padding: 8px 9px 10px; }

.planche .observation__entete { display: flex; justify-content: space-between; gap: 8px; font-family: var(--mono); font-size: 11.5px; font-weight: 500; text-transform: uppercase; }

.planche .observation__rang { color: var(--encre-attenuee); font-weight: 400; }

.planche .observation__redressee { font-size: 11px; line-height: 1.45; color: var(--encre-attenuee); }

.planche .observation__redressee[hidden] { display: none; }

.planche .observation__mentions { font-family: var(--mono); font-size: 11px; line-height: 1.45; color: var(--encre-douce); overflow-wrap: anywhere; }

.observations__vide { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 16px; max-width: 640px; font-size: 15px; line-height: 1.6; color: var(--encre-douce); }

.observations__constat { font-family: var(--serif); font-weight: 500; font-size: 21px; line-height: 1.3; color: var(--encre); }

.observations__verser { flex-direction: column; justify-content: center; gap: 8px; padding: 12px; text-align: center; }

.observations__verser::before { mask: var(--icone-ajout); }

.piece-vide {
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px 12px;
  border: 1px solid var(--bleu-nuit);
  background: var(--blanc);
  color: var(--encre-attenuee);
  font-family: var(--mono);
  font-size: 11px;
}

.piece-vide__entete { display: flex; justify-content: space-between; gap: 8px; letter-spacing: 0.08em; text-transform: uppercase; }

.piece-vide__entete span:first-child { font-weight: 500; color: var(--encre); }

.piece-vide svg { align-self: center; width: 48px; height: 48px; color: var(--filet); }

.versement {
  grid-area: versement;
  display: grid;
  gap: 20px;
  padding: 16px;
  border: 1px solid var(--filet);
  border-top: 3px solid var(--accent);
  background: var(--blanc);
}

.versement__expose { display: flex; flex-direction: column; gap: 10px; }

.versement h2 { font-size: 26px; }

.versement__expose p { font-size: 14.5px; line-height: 1.55; color: var(--encre-douce); }

.formulaire { display: flex; flex-direction: column; gap: 16px; }

.formulaire__erreurs { padding: 10px 12px; background: var(--rouge-rose); font-size: 14px; }

.formulaire__erreurs p { font-weight: 600; }

.formulaire__erreurs ul { margin: 4px 0 0; padding-left: 1.1rem; }

.champ { display: flex; flex-direction: column; gap: 6px; min-width: 0; }

.champ label { font-size: 15px; font-weight: 500; }

.champ__precision { font-weight: 400; color: var(--encre-attenuee); }

.champ input:not([type="file"], [type="submit"]), .champ select {
  min-width: 0;
  height: 44px;
  padding: 0 12px;
  border: 1.5px solid var(--accent);
  border-radius: 0;
  background: var(--blanc);
  color: var(--encre);
  font: 16px var(--sans);
}

.champ input[type="date"], .champ select { font-family: var(--mono); }

.champ input[aria-invalid="true"] { border: 2px solid var(--rouge-tampon); }

.field_with_errors { display: contents; }

.champ--envoi .bouton--principal { align-self: start; cursor: pointer; }

.depot {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  min-height: 64px;
  padding: 10px 14px;
  border: 1.5px solid var(--accent);
  background: var(--blanc);
}

.depot input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }

.depot:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

.depot__bouton { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1.5px solid var(--accent); background: var(--blanc); color: var(--accent); font-weight: 500; font-size: 15px; }

.depot:hover .depot__bouton { background: var(--bleu-brume); }

.depot__consigne { font-size: 14px; color: var(--encre-attenuee); }

.depot__jointe { display: none; font-family: var(--mono); font-size: 14px; }

.depot:has(input:valid) .depot__jointe { display: inline; }

.depot:has(input:valid) .depot__consigne { display: none; }

@media not all and (max-width: 48rem) {
  .fiche { grid-template-columns: minmax(var(--gouttiere), 1fr) minmax(0, 728px) 32px minmax(0, 440px) minmax(var(--gouttiere), 1fr); }
  .fiche__lieu { display: block; font-size: 18px; }
  .fiche__precision { display: inline; }
  .tampon { padding: 6px 12px; font-size: 15px; }
  .signaletique__denomination, .signaletique__departement { display: block; }
  .choix { justify-content: flex-start; font-size: 16px; text-align: left; }
  .choix::before { content: ""; flex: none; width: 18px; height: 18px; border: 1.5px solid var(--accent); }
  .choix[aria-pressed="true"]::before { border: 0; background: currentColor; mask: var(--icone-coche); }
  .appreciation__decompte { font-size: 13px; }
  .observations__releve { font-size: 13px; }
  .observations__verser { flex-direction: row; align-self: start; justify-self: start; }
  .observations__verser::before { content: none; }
  .planche { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .observations .planche { grid-column: 1 / -1; display: grid; }
  .planche .observation figcaption { gap: 5px; padding: 12px 14px 14px; }
  .planche .observation__entete { font-size: 12.5px; letter-spacing: 0.06em; }
  .planche .observation__redressee { font-size: 13px; }
  .planche .observation__mentions { font-size: 12px; line-height: 1.55; }
  .champ input:not([type="file"], [type="submit"]), .champ select { font-size: 15px; }

  .fiche--observee {
    grid-template-areas:
      "zenithale zenithale zenithale zenithale zenithale"
      ". signaletique . appreciation ."
      ". observations observations observations ."
      ". versement versement versement .";
    row-gap: 48px;
    padding-bottom: 72px;
  }
  .fiche--observee .fiche__zenithale img { height: 440px; }
  .fiche--observee .fiche__zenithale figcaption { top: auto; bottom: 0; padding: 4px 10px; font-size: 11.5px; }
  .fiche--observee .fiche__identite { grid-area: 1 / 2 / 2 / 5; justify-self: start; align-self: end; max-width: 760px; margin: 0 0 36px; padding: 25px 37px 27px 31px; gap: 6px; outline-offset: -9px; }
  .fiche--observee .fiche__fil { font-size: 13px; }
  .fiche--observee .fiche__identite h1 { font-size: 60px; line-height: 1; }
  .fiche__reference { position: relative; flex-wrap: nowrap; gap: 16px; }
  .partage__bouton { padding: 0 16px; font-size: 15px; }
  .fiche__reference .partage__statut { position: absolute; top: 100%; right: 0; margin-top: 4px; line-height: 1.2; }
  .fiche--observee .fiche__reference { grid-area: signaletique; z-index: 1; justify-self: end; align-self: start; margin: 20px 28px 0 0; }
  .fiche--observee .signaletique { display: flex; flex-direction: column; gap: 18px; padding: 24px 28px; border: 1px solid var(--filet); border-top: 3px solid var(--accent); background: var(--blanc); }
  .fiche--observee .signaletique h2 { display: flex; align-items: center; min-height: 37px; font-size: 26px; }
  .fiche--observee .signaletique dl { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; border-top: 1px solid var(--bleu-nuit); background: var(--filet); }
  .fiche--observee .signaletique :where(dl > div) { padding: 12px 16px; border: 0; }
  .fiche--observee .signaletique__denomination { display: none; }
  .fiche--observee .signaletique__diametre, .fiche--observee .signaletique__commune { padding-left: 0; }
  .fiche--observee .signaletique__coordonnees, .fiche--observee .signaletique__region { padding-right: 0; }
  .fiche--observee .signaletique__coordonnees { grid-area: 1 / 3; }
  .fiche--observee .signaletique__diametre { grid-area: 1 / 1; }
  .fiche--observee .signaletique__regime { grid-area: 1 / 2; }
  .fiche--observee .signaletique__osm { grid-column: 1 / -1; padding: 12px 0 0; font-size: 14px; line-height: 1.55; }
  .fiche--observee .signaletique dd { margin-top: 6px; font-size: 16px; }
  .fiche--observee .signaletique__diametre dd { margin-top: 4px; font-size: 30px; line-height: 1.1; }
  .fiche--observee .signaletique__coordonnees dd { font-size: 15px; line-height: 1.5; }
  .fiche--observee .signaletique__coordonnees span { display: block; }
  .fiche--observee .signaletique__coordonnees .signaletique__separateur { display: none; }
  .fiche--observee .signaletique__osm :is(dt, dd) { display: inline; margin: 0; font-family: var(--sans); font-size: 14px; letter-spacing: 0; text-transform: none; }
  .fiche--observee .signaletique__osm dt { font-weight: 600; color: var(--encre); }
  .fiche--observee .signaletique__osm dt::after { content: " :"; }
  .fiche--observee .signaletique__osm .cote { font-size: 14px; }
  .fiche--observee .signaletique__note { display: inline; font-size: 14px; }
  .fiche--observee .signaletique__note::before { content: "— "; }
  .fiche--observee .appreciation { gap: 14px; padding: 24px 28px; }
  .fiche--observee .appreciation h2 { font-family: var(--serif); font-weight: 600; font-size: 26px; letter-spacing: 0; text-transform: none; color: var(--bleu-nuit); }
  .fiche--observee .appreciation__choix { grid-template-columns: 1fr; gap: 12px; }
  .fiche--observee .choix { padding: 6px 16px; }
  .fiche--observee .appreciation__note { font-size: 14px; }
  .fiche--observee .observations { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 24px; }
  .fiche--observee .observations__entete { grid-row: 1; gap: 6px; margin: 0; padding-bottom: 14px; }
  .fiche--observee .observations h2 { font-size: 32px; }
  .fiche--observee .observations__verser { grid-area: 1 / 3; justify-self: end; align-self: end; margin-bottom: 16px; padding: 0 20px; }
  .fiche--observee .versement { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 40px; padding: 28px; }
  .fiche--observee .formulaire { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px 20px; }
  .fiche--observee :is(.formulaire__erreurs, .champ--large) { grid-column: 1 / -1; }
  .fiche--observee .champ--envoi { justify-content: flex-end; }
  .fiche--observee .depot { background: var(--papier); }

  .fiche--vierge {
    grid-template-areas:
      ". identite identite identite ."
      ". zenithale . signaletique ."
      ". appreciation appreciation appreciation ."
      ". observations observations observations ."
      ". versement versement versement .";
    row-gap: 56px;
    padding: 36px 0 80px;
  }
  .fiche--vierge .fiche__zenithale { display: flex; flex-direction: column; gap: 8px; }
  .fiche--vierge .fiche__zenithale img { aspect-ratio: 760 / 533; }
  .fiche--vierge .fiche__zenithale figcaption { position: static; padding: 0; background: none; font-size: 12px; color: var(--encre-douce); }
  .fiche--vierge .fiche__identite { gap: 8px; margin: 0; padding: 0 470px 24px 0; border-bottom: 2px solid var(--bleu-nuit); outline: 0; background: none; color: inherit; }
  .fiche--vierge .fiche__fil { margin-bottom: 10px; font-size: 12px; color: var(--encre-attenuee); }
  .fiche--vierge .fiche__identite h1 { font-size: 64px; line-height: 1; color: var(--bleu-nuit); }
  .fiche--vierge .fiche__lieu { color: var(--encre-douce); }
  .fiche--vierge .fiche__reference { grid-area: identite; z-index: 1; justify-self: end; align-self: end; margin-bottom: 24px; }
  .fiche--vierge .partage__bouton { background: transparent; color: var(--encre); }
  .fiche--vierge .partage__bouton svg { color: var(--accent); }
  .fiche--vierge .signaletique h2 { margin-bottom: 10px; font-family: var(--mono); font-weight: 400; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--encre-attenuee); }
  .fiche--vierge .signaletique dl { display: block; border-top: 1px solid var(--bleu-nuit); }
  .fiche--vierge .signaletique dl > div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 9px 0; border: 0; border-bottom: 1px solid var(--filet); background: none; }
  .fiche--vierge .signaletique dt { font-family: var(--sans); font-size: 14px; letter-spacing: 0; text-transform: none; }
  .fiche--vierge .signaletique dd { margin: 0; }
  .fiche--vierge .signaletique__diametre dd { font-size: 15px; color: inherit; }
  .fiche--vierge .signaletique__coordonnees dd, .fiche--vierge .signaletique__osm .cote { font-size: 14px; }
  .fiche--vierge .appreciation {
    display: grid;
    grid-template-columns: 1fr minmax(0, 600px);
    grid-template-areas: "titre choix" "exprime choix" "note choix" "decompte choix";
    align-content: center;
    gap: 10px 40px;
    padding: 28px 32px;
    border: 0;
  }
  .fiche--vierge .appreciation h2 { grid-area: titre; font-family: var(--serif); font-weight: 600; font-size: 30px; letter-spacing: 0; text-transform: none; }
  .fiche--vierge .appreciation__exprime { grid-area: exprime; }
  .fiche--vierge .appreciation__choix { grid-area: choix; align-self: center; gap: 12px; }
  .fiche--vierge .choix { min-height: 72px; padding: 6px 18px; }
  .fiche--vierge .appreciation__decompte { grid-area: decompte; }
  .fiche--vierge .appreciation__note { grid-area: note; font-size: 15px; line-height: 1.55; color: var(--encre-douce); }
  .fiche--vierge .observations { grid-template: auto auto 1fr / 376px minmax(0, 1fr); gap: 16px 48px; align-items: start; }
  .fiche--vierge .observations__vide { grid-area: 2 / 2; }
  .fiche--vierge .piece-vide { grid-area: 2 / 1 / 4 / 2; padding: 14px 16px; font-size: 12px; }
  .fiche--vierge .piece-vide svg { width: 64px; height: 64px; }
  .fiche--vierge .observations__entete { gap: 6px; margin: 0; padding-bottom: 14px; border-bottom-width: 1px; }
  .fiche--vierge .observations h2 { font-size: 30px; color: var(--encre); }
  .fiche--vierge .observations__vide { font-size: 16px; }
  .fiche--vierge .observations__constat { font-size: 26px; }
  .fiche--vierge .observations__verser { grid-area: 3 / 2; padding: 0 24px; font-size: 16px; }
  .fiche--vierge .versement { grid-template-columns: 1fr minmax(0, 640px); gap: 64px; padding: 32px 0 0; border: 0; border-top: 2px solid var(--bleu-nuit); background: none; }
  .fiche--vierge .versement__expose { gap: 14px; }
  .fiche--vierge .versement h2 { font-size: 30px; color: var(--encre); }
  .fiche--vierge .versement__expose p { font-size: 15px; line-height: 1.6; }
  .fiche--vierge .formulaire { gap: 20px; }
  .fiche--vierge .champ { gap: 8px; }
  .fiche--vierge .champ input[type="date"] { width: 220px; }
  .fiche--vierge .depot { min-height: 96px; padding: 12px 20px; gap: 8px 18px; }
  .fiche--vierge .depot__bouton { min-height: 44px; padding: 0 16px; }
  .fiche--vierge .champ--envoi .bouton--principal { min-height: 48px; padding: 0 28px; font-size: 16px; }

  @media (max-width: 75rem) {
    .fiche--observee {
      grid-template-areas:
        "zenithale zenithale zenithale zenithale zenithale"
        ". tampon tampon tampon ."
        ". signaletique . appreciation ."
        ". observations observations observations ."
        ". versement versement versement .";
    }
    .fiche--observee .fiche__reference { grid-area: tampon; margin: 0 0 -24px; }
  }
}

@media (width > 48rem) and (forced-colors: active) {
  .choix[aria-pressed="true"]::before { forced-color-adjust: none; background: ButtonText; }
}

@media (max-width: 48rem) and (forced-colors: active) {
  .choix[aria-pressed="true"] { forced-color-adjust: none; background: ButtonText; color: ButtonFace; outline-color: CanvasText; }
}

.validation .planche { margin-top: 1.5rem; }

.validation .planche li { display: flex; flex-direction: column; gap: 10px; }

.validation .observation { flex: 1; }

.validation .observation__image { aspect-ratio: auto; object-fit: contain; }

.validation .observation__ouvrage { font-size: 14px; line-height: 1.4; }

.validation__decisions { display: flex; flex-wrap: wrap; gap: 10px; }

.validation__decisions form { margin: 0; }

.validation .etat-vide { margin-top: 1.5rem; }

.contribuer__chapeau { margin-top: 16px; font-size: 17px; line-height: 1.6; color: var(--encre-douce); }

.sommaire { display: none; }

.sommaire ol { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--filet); counter-reset: voie; }

.sommaire li { display: flex; gap: 24px; padding: 9px 0; border-bottom: 1px solid var(--filet); counter-increment: voie; }

.sommaire li::before { content: counter(voie); min-width: 12px; font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--rouge-brique); }

.sommaire a { font-weight: 500; font-size: 15px; text-decoration: none; }

.sommaire a:hover { text-decoration: underline; }

.contribuer__voies { display: grid; gap: 24px; margin-top: 28px; }

.voie, .licences { display: flex; flex-direction: column; gap: 12px; padding: 20px; border: 1px solid var(--filet); font-size: 15px; line-height: 1.65; color: var(--encre-douce); }

.voie { border-top: 3px solid var(--accent); background: var(--blanc); scroll-margin-top: 16px; }

.voie p, .licences p { margin: 0; }

.voie h2 { margin-bottom: 4px; }

.voie .bouton { align-self: start; margin-top: auto; }

.voie p:last-of-type { margin-bottom: 4px; }

.licences { margin-top: 32px; background: var(--bleu-brume); }

@media not all and (max-width: 48rem) {
  .contribuer__entete { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: center; }
  .contribuer__chapeau { max-width: 680px; margin-top: 20px; font-size: 18px; }
  .sommaire { display: block; }
  .contribuer__voies { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 40px; }
  .voie, .licences { padding: 28px 30px; }
  .licences { display: grid; grid-template-columns: 290px repeat(2, minmax(0, 1fr)); gap: 40px; margin-top: 40px; }
}

/* Palmarès */

.palmares { width: min(1248px, 100%); margin: 0 auto; padding: 24px 16px 48px; }

.palmares h1, .palmares h2 { margin: 0; font-family: var(--serif); font-weight: 600; line-height: 1.05; color: var(--bleu-nuit); }

.palmares h1 { margin-top: 8px; font-size: 38px; }

.palmares h2 { font-size: 26px; }

.palmares__entete { display: flex; flex-direction: column; gap: 16px; padding-bottom: 18px; border-bottom: 2px solid var(--bleu-nuit); }

.palmares__surtitre, .palmares__exercices p, .palmares__colonnes { margin: 0; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--encre-attenuee); }

.palmares__surtitre-long, .palmares__arrete, .palmares__colonne-longue { display: none; }

.palmares__arrete { margin: 8px 0 0; font-size: 17px; color: var(--encre-douce); }

.palmares__exercices { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }

.palmares__exercices ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }

.palmares__exercices a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border: 1px solid var(--filet); font-family: var(--mono); font-size: 14px; text-decoration: none; }

.palmares__exercices a[aria-current="page"] { border: 1.5px solid var(--bleu-nuit); background: var(--blanc); color: var(--bleu-nuit); }

.palmares__classements { display: grid; gap: 40px; margin-top: 28px; }

.palmares__colonnes, .palmares__liste li { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; column-gap: 8px; }

.palmares__colonnes { margin-top: 14px; padding-bottom: 8px; border-bottom: 1.5px solid var(--bleu-nuit); }

.palmares__colonne-longue, .palmares__colonne-courte { text-align: right; }

.palmares__liste { margin: 0; padding: 0; list-style: none; }

.palmares__liste li { padding: 10px 0 11px; border-bottom: 1px solid var(--filet); }

.palmares__rang, .palmares__avis { font-family: var(--mono); font-size: 15px; font-variant-numeric: tabular-nums; white-space: pre; color: var(--bleu-nuit); }

.palmares__rang { font-weight: 500; }

.palmares__avis { text-align: right; }

.palmares__ouvrage { display: flex; flex-direction: column; gap: 2px; }

.palmares__ouvrage a { font-weight: 500; font-size: 16px; line-height: 1.3; color: var(--accent); text-decoration: none; }

.palmares__ouvrage a:hover { text-decoration: underline; }

.palmares__lieu { font-size: 13px; line-height: 1.4; color: var(--encre-attenuee); }

.palmares__precision, .palmares__onglets legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.palmares .etat-vide { margin: 14px 0 0; }

.palmares__notes { display: grid; gap: 14px; margin-top: 28px; font-size: 14px; line-height: 1.6; color: var(--encre-douce); }

.palmares__notes p { margin: 0; }

.palmares__notes strong { color: var(--encre); }

.palmares__onglets { display: none; }

@media (scripting: enabled) and (max-width: 48rem) {
  .palmares__classements { gap: 14px; }
  .palmares__onglets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; padding: 0; border: 1.5px solid var(--accent); }
  .palmares__onglets input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
  .palmares__onglets label { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 4px 8px; font-size: 16px; font-weight: 500; line-height: 1.2; text-align: center; color: var(--accent); cursor: pointer; }
  .palmares__onglets label + input + label { border-left: 1.5px solid var(--accent); }
  .palmares__onglets input:checked + label { background: var(--accent); color: var(--blanc); }
  .palmares__onglets input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
  .palmares__classements:has(#choix-moins:checked) #classement-plus, .palmares__classements:has(#choix-plus:checked) #classement-moins { display: none; }
  .palmares h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

@media (scripting: enabled) and (max-width: 48rem) and (forced-colors: active) {
  .palmares__onglets input:checked + label { forced-color-adjust: none; background: SelectedItem; color: SelectedItemText; outline-color: CanvasText; }
}

@media not all and (max-width: 48rem) {
  .palmares { padding: 48px var(--gouttiere) 88px; }
  .palmares h1 { font-size: 64px; }
  .palmares h2 { font-size: 30px; }
  .palmares__surtitre, .palmares__exercices p, .palmares__colonnes { letter-spacing: 0.12em; }
  .palmares__entete { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 32px; padding-bottom: 24px; }
  .palmares__surtitre-long, .palmares__arrete, .palmares__colonne-longue { display: block; }
  .palmares__surtitre-court, .palmares__colonne-courte { display: none; }
  .palmares__exercices { flex-direction: column; align-items: flex-start; gap: 8px; max-width: 360px; }
  .palmares__classements { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px; margin-top: 40px; }
  .palmares__colonnes { margin-top: 18px; }
  .palmares__notes { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px; margin-top: 40px; }
}

@media (max-width: 48rem) {
  .entete { flex-direction: column; align-items: stretch; gap: 0; padding: 0; }
  .entete__logotype { min-height: 52px; gap: 10px; padding: 0 16px; }
  .entete__symbole { width: 24px; height: 24px; }
  .entete__nom { font-size: 17px; }
  .entete__devise, .entete__exercice { display: none; }
  .entete__navigation { gap: 0; border-top: 1px solid var(--bleu-separateur); }
  .entete__navigation a { flex: 1; justify-content: center; min-height: 48px; }
  .entete__navigation a + a { border-left: 1px solid var(--bleu-separateur); }
  .ecran > .mention { padding: 4px 16px; }
  .pied { display: flex; flex-wrap: wrap; gap: 14px 18px; padding: 20px 16px 28px; font-size: 12.5px; }
  .pied > *, .pied__recensement > span:first-child { flex-basis: 100%; }
  .pied__recensement, .pied__liens { display: contents; }
  .pied__liens a, .pied__csv { order: 1; display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }
  .pied__point { display: none; }
  .pied__csv-long { display: none; }
  .pied__csv-court { display: inline; }
  .carte__panneau h1, .carte__recherche label, .carte__position-libelle, .fiche .signaletique h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
