/* Mitoyen — interface du syndic
   Charte : le noir du logo, du blanc, un gris pierre, et un seul orange réservé aux
   chiffres importants. Police Barlow, inspirée de la signalétique : fine et nette pour
   l'outil de gestion. Les pages et documents destinés aux copropriétaires gardent
   Atkinson Hyperlegible, dessinée pour les malvoyants. */

@font-face { font-family: "Barlow"; src: url("polices/barlow-latin-300-normal.woff2") format("woff2");
             font-weight: 300; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("polices/barlow-latin-400-normal.woff2") format("woff2");
             font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("polices/barlow-latin-500-normal.woff2") format("woff2");
             font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("polices/barlow-latin-600-normal.woff2") format("woff2");
             font-weight: 600; font-display: swap; }

:root {
  --encre: #1E1E1E;
  --papier: #FFFFFF;
  --pierre: #F1F2EF;
  --filet: #D4D4D4;
  --gris: #5C5C5C;
  --orange: #C2410C;
  --alu: #E4E5E2;
  --rayon: 6px;
  --mesure: 68ch;
}

* { box-sizing: border-box; }
html { font-size: 100%; }                  /* 16 px */
body {
  margin: 0; font-family: "Barlow", system-ui, sans-serif; font-weight: 400; color: var(--encre);
  background: var(--pierre); line-height: 1.5; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 2px; }

/* ----- Ossature : barre latérale + contenu ----- */
.ossature { display: grid; grid-template-columns: 15rem minmax(0, 1fr); min-height: 100vh;
            background: linear-gradient(to right, var(--papier) 15rem, var(--pierre) 15rem); }
.barre {
  background: var(--papier); border-right: 1px solid var(--filet); padding: 1.4rem 1.1rem;
  display: flex; flex-direction: column; gap: 1.6rem; position: sticky; top: 0; height: 100vh;
}
.marque { display: flex; align-items: center; gap: .55rem; text-decoration: none; font-weight: 600; font-size: 1.3rem; }
.marque img { width: 30px; height: 30px; }
.copro-nom { font-size: .88rem; color: var(--gris); margin-top: -1rem; padding-left: 2.6rem; }
.barre nav { display: flex; flex-direction: column; gap: .15rem; }
.barre nav a {
  text-decoration: none; padding: .5rem .7rem; border-radius: var(--rayon); color: var(--gris);
}
.barre nav a:hover { background: var(--pierre); color: var(--encre); }
.barre nav a[aria-current="page"] { background: var(--encre); color: var(--papier); font-weight: 500; }
.barre .bas { margin-top: auto; font-size: .85rem; color: var(--gris); display: grid; gap: .6rem; }
.demo { background: var(--pierre); border-radius: var(--rayon); padding: .5rem .6rem; }

main { padding: 2.2rem clamp(1rem, 4vw, 3rem) 4rem; max-width: 66rem; width: 100%; }
h1 { font-size: 2.1rem; font-weight: 300; line-height: 1.15; margin: 0 0 .35rem; letter-spacing: -0.005em; }
h2 { font-size: 1.3rem; font-weight: 500; margin: 2.4rem 0 .8rem; }
h3 { font-size: 1.05rem; font-weight: 500; margin: 1.4rem 0 .5rem; }
strong, b, th { font-weight: 600; }
.chapeau { color: var(--gris); margin: 0 0 1.8rem; max-width: var(--mesure); }
p { max-width: var(--mesure); }
.discret { color: var(--gris); font-size: .9rem; }

/* ----- Messages ----- */
.message {
  background: var(--papier); border: 1px solid var(--encre); border-left-width: 5px;
  padding: .8rem 1rem; border-radius: var(--rayon); margin-bottom: 1.6rem; max-width: var(--mesure);
}
.erreur { color: var(--orange); font-weight: 600; }

/* ----- Tableau de bord ----- */
.colonnes { display: grid; grid-template-columns: minmax(0, 1fr) 17rem; gap: 2.4rem; align-items: start; }
.a-faire { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.a-faire li > a, .a-faire li > div {
  display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; text-decoration: none;
  background: var(--papier); border: 1px solid var(--filet); border-left: 5px solid var(--filet);
  border-radius: var(--rayon); padding: .9rem 1.1rem;
}
.a-faire li > a:hover { border-color: var(--encre); }
.a-faire .urgent { border-left-color: var(--orange) !important; }
.a-faire .important { border-left-color: var(--encre) !important; }
.a-faire strong { font-size: 1.12rem; font-weight: 600; }
.a-faire .quand { color: var(--gris); font-size: .9rem; white-space: nowrap; }
.a-faire .detail { grid-column: 1 / -1; color: var(--gris); font-size: .93rem; }
.niveau { font-size: .85rem; color: var(--orange); font-weight: 600; }
.vide { background: var(--papier); border: 1px dashed var(--filet); border-radius: var(--rayon); padding: 1.4rem; }

.chiffres { display: grid; gap: 1.3rem; background: var(--papier); border-top: 3px solid var(--encre); padding: 1.2rem 1.2rem 1.4rem; }
.chiffre span { display: block; color: var(--gris); font-size: .9rem; }
.chiffre b { display: block; font-size: 1.9rem; font-weight: 500; line-height: 1.15; color: var(--orange); font-variant-numeric: tabular-nums; }
.chiffre small { color: var(--gris); font-size: .85rem; }
.chiffre.neutre b { color: var(--encre); }

/* ----- Tableaux ----- */
.table { width: 100%; border-collapse: collapse; background: var(--papier); border-radius: var(--rayon);
         overflow: hidden; border: 1px solid var(--filet); font-size: .95rem; }
.table th { text-align: left; font-weight: 600; color: var(--gris); font-size: .85rem; padding: .65rem .8rem;
            border-bottom: 1px solid var(--filet); background: var(--papier); }
.table td { padding: .7rem .8rem; border-bottom: 1px solid var(--pierre); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table .nombre { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table .fort { color: var(--orange); font-weight: 600; }
.table .fait td { color: var(--gris); background: var(--pierre); }
.actions { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.decision { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.decision select { min-width: 10rem; }
/* Choix de lots : des cases à cocher groupées par propriétaire, plutôt qu'une liste à sélection multiple */
.choix-lots { border: 1.5px solid var(--filet); border-radius: var(--rayon); max-height: 15rem; overflow-y: auto;
              padding: .3rem .7rem .6rem; margin: 0; }
.choix-lots legend { padding: 0 .3rem; }
.choix-lots .proprio { font-weight: 600; color: var(--encre); margin: .55rem 0 .15rem; font-size: .9rem; }
.choix-lots label { display: flex; gap: .5rem; align-items: center; color: var(--encre); padding: .15rem 0; }

/* ----- Formulaires et boutons ----- */
button, .bouton {
  font: inherit; font-size: .95rem; font-weight: 500; cursor: pointer; text-decoration: none; display: inline-block;
  padding: .5rem .9rem; border-radius: var(--rayon); border: 1.5px solid var(--encre);
  background: var(--encre); color: var(--papier); line-height: 1.3; white-space: nowrap;
}
button:hover, .bouton:hover { background: #000; }
.secondaire { background: var(--papier); color: var(--encre); }
.secondaire:hover { background: var(--pierre); }
input, select, textarea {
  font: inherit; font-size: .95rem; padding: .45rem .6rem; border: 1.5px solid var(--filet);
  border-radius: var(--rayon); background: var(--papier); color: var(--encre); max-width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: var(--encre); }
label { display: grid; gap: .25rem; font-size: .9rem; color: var(--gris); }
.formulaire { background: var(--papier); border: 1px solid var(--filet); border-radius: var(--rayon);
              padding: 1.2rem; display: grid; gap: .9rem; max-width: 40rem; }
.ligne { display: flex; flex-wrap: wrap; gap: .8rem; align-items: end; }
details.formulaire summary { cursor: pointer; font-weight: 500; color: var(--encre); }
.htmx-request button { opacity: .5; }
.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ----- Le tableau d'interphone ----- */
.interphone { display: grid; gap: 1.6rem; }
.plaque {
  background: linear-gradient(180deg, #ECEDEA 0%, var(--alu) 100%); border: 2px solid var(--encre);
  border-radius: 10px; padding: 1rem 1rem 1.1rem;
}
.plaque h2 { margin: 0 0 .8rem; font-size: 1rem; font-weight: 500; color: var(--gris); }
.etiquettes { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: .7rem; }
.etiquette {
  display: grid; grid-template-columns: 1fr 2.6rem; grid-template-rows: auto 1fr; gap: .2rem .8rem;
  align-items: start; align-content: start;
  background: var(--papier); border: 1px solid #BEBEBC; border-radius: 4px; padding: .65rem .8rem;
  box-shadow: inset 0 -2px 0 #EBEBE9;
}
.etiquette .nom { font-weight: 600; font-size: 1.1rem; letter-spacing: .01em; }
.etiquette .infos { grid-column: 1; color: var(--gris); font-size: .86rem; }
.etiquette .appel {                          /* le bouton d'appel de l'interphone */
  grid-row: 1 / span 2; grid-column: 2; align-self: center; width: 2.3rem; height: 2.3rem; border-radius: 50%;
  border: 2px solid var(--encre); background: radial-gradient(circle at 35% 35%, #fff, #D9D9D6);
}
.etiquette .role { font-size: .82rem; font-weight: 600; }
.etiquette .du { color: var(--orange); font-weight: 600; }

/* ----- Connexion ----- */
.connexion { min-height: 100vh; display: grid; place-items: center; padding: 1rem; }
.connexion .formulaire { width: min(24rem, 100%); }

/* ----- Plan de travaux : chiffres en ligne et graphique ----- */
.chiffres-ligne { grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); margin: 1.2rem 0; }
.chiffres-ligne .chiffre b { font-size: 1.6rem; }
.graphique { margin: 1.4rem 0 0; background: var(--papier); border: 1px solid var(--filet); border-radius: var(--rayon);
             padding: 1.2rem 1.2rem .8rem; }
.barres { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: .5rem; align-items: end;
          height: 15rem; border-bottom: 1px solid var(--encre); }
.barre-annee { height: 100%; position: relative; }
.pile { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.pile .fonds { background: var(--encre); }
.pile .appel { background: var(--orange); }
.pile .montant + div { border-radius: 3px 3px 0 0; }
.pile .montant { font-size: .78rem; color: var(--gris); text-align: center; font-variant-numeric: tabular-nums;
                 margin-bottom: .25rem; white-space: nowrap; }
.barre-annee .an { position: absolute; bottom: -1.6rem; left: 0; right: 0; text-align: center; font-size: .85rem;
                   font-variant-numeric: tabular-nums; }
.graphique figcaption { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; align-items: center; }
.pastille { display: inline-block; width: .8rem; height: .8rem; border-radius: 2px; margin-right: .35rem; vertical-align: -1px; }
.pastille.fonds { background: var(--encre); }
.pastille.appel { background: var(--orange); }

/* ----- Comptabilité ----- */
.controles { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .5rem; }
.controles li { display: flex; gap: .8rem; align-items: flex-start; background: var(--papier); border: 1px solid var(--filet);
                border-left: 5px solid var(--encre); border-radius: var(--rayon); padding: .7rem 1rem; }
.controles li.ko { border-left-color: var(--orange); }
.marque-controle { flex: none; width: 1.6rem; height: 1.6rem; border-radius: 50%; display: grid; place-items: center;
                   background: var(--encre); color: var(--papier); font-weight: 600; }
.controles .ko .marque-controle { background: var(--orange); }
.champs { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: .8rem; }
.soldes-copro { border: 1px solid var(--filet); border-radius: var(--rayon); padding: .8rem 1rem 1rem; margin: 0;
                display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: .6rem .8rem; }
.soldes-copro legend { font-size: .9rem; color: var(--gris); padding: 0 .3rem; }
textarea { resize: vertical; }
details.replie { margin-bottom: 1rem; }
details.replie > summary { cursor: pointer; font-weight: 500; margin-bottom: .8rem; }
.balance .classe th { background: var(--pierre); color: var(--encre); font-size: .9rem; }
.balance tfoot th { border-top: 2px solid var(--encre); color: var(--encre); padding: .65rem .8rem; }
.balance a, .table td a { color: var(--encre); }
details.aux summary { cursor: pointer; color: var(--gris); font-size: .85rem; }
#factures + .formulaire + .table { margin-top: 1rem; }
.champs > label, .formulaire > label { min-width: 0; }
.champs select { width: 100%; }
.decision select { max-width: 20rem; }
details.aux ul { margin: .3rem 0 0; padding-left: 1.1rem; font-size: .9rem; }

/* ----- Petits écrans ----- */
@media (max-width: 52rem) {
  .ossature { grid-template-columns: minmax(0, 1fr); background: var(--pierre); }
  .barre { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--filet); gap: .8rem; }
  .barre nav { flex-direction: row; overflow-x: auto; }
  .barre nav a { white-space: nowrap; }
  .barre .bas { margin-top: 0; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
  .a-faire li > a, .a-faire li > div { grid-template-columns: 1fr; }
  .a-faire .quand { white-space: normal; }
  .copro-nom { margin-top: -.6rem; }
  .colonnes { grid-template-columns: 1fr; }
  .table { display: block; overflow-x: auto; }
  .barres { gap: .2rem; }
  .pile .montant { font-size: .62rem; }
  .barre-annee .an { font-size: .7rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Annexes comptables */
.exercices { display: flex; justify-content: space-between; margin: 0 0 1rem; }
.annexe { margin: 2.2rem 0; }
.annexe h2 { line-height: 1.25; }
.defile { overflow-x: auto; }
.annexe-table { min-width: 40rem; }
.annexe-table th.nombre { white-space: normal; vertical-align: bottom; }
.annexe-table tr.a-titre th { text-align: left; padding-top: 1.1rem; border-bottom: 2px solid var(--encre); }
.annexe-table tr.a-intertitre th { text-align: left; font-weight: 600; color: var(--gris, #5c5c5c); }
.annexe-table tr.a-sous_total td { font-weight: 600; border-top: 1px solid var(--encre); }
.annexe-table tr.a-total td { font-weight: 700; background: var(--papier); border-top: 2px solid var(--encre); }
.formulaire textarea { width: 100%; font-family: ui-monospace, monospace; font-size: .9rem; }

/* Vente d'un lot */
.vente-suivi { border-top: 1px solid var(--filet); padding-top: 1rem; margin-top: 1.4rem; }
.vente-suivi h3 { margin: 0; }
.actions-vente { display: flex; flex-wrap: wrap; gap: 1rem; align-items: end; }
.actions-vente .decision label { display: inline-flex; flex-direction: column; gap: .2rem; }

/* Bulletin de santé */
.bulletin { list-style: none; margin: 1.2rem 0; padding: 0; border-top: 2px solid var(--encre); }
.bulletin li { display: grid; grid-template-columns: 2rem 1fr 1fr; gap: .9rem; padding: .9rem 0; border-bottom: 1px solid var(--filet); align-items: start; }
.b-marque { width: 1.6rem; height: 1.6rem; border-radius: 50%; display: grid; place-items: center; font-weight: 600;
            color: var(--papier); background: var(--encre); }
.b-attention .b-marque { background: var(--orange); }
.b-inconnu .b-marque { background: var(--alu); color: var(--encre); }
.b-valeur strong { font-size: 1.1rem; }
.b-repere, .b-legende { color: var(--gris); font-size: .9rem; }
.lien-public { word-break: break-all; }
.public { background: var(--pierre); }
.public-page { max-width: 48rem; margin: 0 auto; padding: 2rem 1.2rem 3rem; background: var(--papier); min-height: 100vh; }
.public-marque { display: flex; align-items: center; gap: .5rem; font-weight: 600; font-size: 1.2rem; margin: 0 0 1.5rem; }
@media screen and (max-width: 640px) {
  .bulletin li { grid-template-columns: 2rem 1fr; }
  .b-valeur { grid-column: 2; }
}

/* Consultations (petites copropriétés) */
.bref-decision { background: var(--papier); border-left: 3px solid var(--encre); padding: .8rem 1rem; margin: 1rem 0; }
.bref-decision p { margin: .3rem 0 0; white-space: pre-line; }
.etat-consultation { padding: .8rem 1rem; border-radius: var(--rayon); background: var(--alu); }
.etat-adoptee, .etat-unanimite_acquise { background: #E6F4EA; }
.etat-rejetee, .etat-caduque { background: #FFF4ED; border-left: 3px solid var(--orange); }
.liens-perso code { word-break: break-all; }
button.lien { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; }

/* Évolution du budget */
.evolution tr.a-regarder td { background: #FFF4ED; }
.evolution tr.a-regarder td:first-child { box-shadow: inset 3px 0 0 #C2410C; font-weight: 600; }
.evolution-alerte { padding: .7rem 1rem; border-left: 4px solid #C2410C; background: #FFF4ED; }

/* Fiche d'un copropriétaire, changement de propriétaire */
.fiche-copro { display: grid; gap: 1.1rem; max-width: 44rem; }
.fiche-copro fieldset { border: 1px solid var(--filet); border-radius: var(--rayon); padding: .9rem 1rem 1rem; margin: 0; display: grid; gap: .7rem; }
.fiche-copro legend { font-weight: 600; padding: 0 .3rem; }
.fiche-copro label { display: block; }
.fiche-copro label > input:not([type=radio]):not([type=checkbox]), .fiche-copro label > select { display: block; margin-top: .3rem; }
.historique td:first-child { width: 11rem; white-space: nowrap; color: var(--gris); }
.fiche-copro input:not([type=radio]):not([type=checkbox]), .fiche-copro select { width: 100%; }
.choix-ligne { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; }
.choix-ligne label { display: flex; align-items: center; gap: .4rem; }
.deux-colonnes { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: .7rem; }
.lots-proprio + .lots-proprio { border-top: 1px solid var(--filet); padding-top: .6rem; }
.fiche-copro .si-existant { display: none; }
.fiche-copro:has(input[name=qui][value=existant]:checked) .si-existant { display: grid; gap: .7rem; }
.fiche-copro:has(input[name=qui][value=existant]:checked) .si-nouveau { display: none; }
.si-nouveau { display: grid; gap: .7rem; }
.etiquette .nom a { color: inherit; text-decoration: none; }
.etiquette .nom a:hover, .etiquette .nom a:focus-visible { text-decoration: underline; }
.anciens { padding-left: 1.2rem; }

/* Pièces justificatives et comptes consultables */
.chiffres-comptes { display: flex; flex-wrap: wrap; gap: 1rem 2.4rem; margin: 1rem 0 1.4rem; }
.chiffres-comptes div { display: grid; }
.chiffres-comptes b { font-size: 1.5rem; color: var(--encre); }
.chiffres-comptes span { color: var(--gris); font-size: .9rem; }
.pieces tr.sans-piece td:last-child { background: #FAFAF8; }
.joindre { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.joindre input[type=file] { max-width: 14rem; font-size: .85rem; }
form.en-ligne { display: inline; margin-left: .6rem; }
.etiquette-privee { font-size: .78rem; border: 1px solid var(--filet); border-radius: 3px; padding: 0 .3rem; margin-left: .3rem; }
.exercices-public { margin: .4rem 0 1rem; }
.depenses-public .d-date { white-space: nowrap; }
@media (max-width: 640px) {
  .depenses-public thead { display: none; }
  .depenses-public, .depenses-public tbody, .depenses-public tr, .depenses-public td { display: block; width: 100%; }
  .depenses-public tr { display: grid; grid-template-columns: 1fr auto; gap: .15rem .8rem; padding: .8rem .2rem; border-bottom: 1px solid var(--filet); }
  .depenses-public td { padding: 0; border: 0; }
  .depenses-public .d-date { grid-column: 1; color: var(--gris); font-size: .85rem; }
  .depenses-public .d-montant { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-weight: 600; }
  .depenses-public .d-fournisseur { grid-column: 1; }
  .depenses-public .d-nature { grid-column: 1; color: var(--gris); font-size: .85rem; }
  .depenses-public .d-piece { grid-column: 1 / -1; }
}

/* Règlement partagé aux copropriétaires */
.documents-public { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.8rem; }
.sommaire-public { display: flex; flex-wrap: wrap; gap: .35rem .9rem; margin: 0 0 1.6rem; padding: .8rem 0; border-top: 1px solid var(--filet); border-bottom: 1px solid var(--filet); font-size: .95rem; }
.theme-public { margin: 0 0 1.6rem; scroll-margin-top: 1rem; }
.theme-public h2 { margin: 0 0 .5rem; }
.theme-public ul { margin: 0; padding-left: 1.2rem; }
.theme-public li { margin: 0 0 .45rem; line-height: 1.5; }
@media (max-width: 600px) { .documents-public .bouton { flex: 1 1 100%; text-align: center; } }

/* Absence du syndic et page du relais */
label.case { display: flex; gap: .5rem; align-items: flex-start; font-weight: 400; }
label.case input { margin-top: .25rem; }
.relais-liste { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: .8rem; }
.relais-liste li { background: var(--papier); border: 1px solid var(--filet); border-radius: var(--rayon); padding: .8rem 1rem; line-height: 1.5; }
.relais-liste p { margin: .4rem 0 0; }
.relais-numeros { padding-left: 1.2rem; line-height: 1.8; }
.relais-numeros a { font-weight: 600; }

/* Plan de relève */
.liste-releve { list-style: none; padding: 0; margin: 0 0 1.8rem; display: grid; gap: .6rem; }
.liste-releve li { display: flex; gap: .8rem; align-items: flex-start; line-height: 1.45; }
.liste-releve .pastille { flex: none; width: 1.6rem; height: 1.6rem; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .9rem; }
.liste-releve .ok .pastille { background: var(--encre); color: var(--papier); }
.liste-releve .manque .pastille { border: 2px solid var(--encre); color: var(--encre); box-sizing: border-box; }
.relais-etapes { padding-left: 1.4rem; line-height: 1.55; margin: 0 0 1.6rem; }
.relais-etapes li + li { margin-top: .5rem; }

/* Obligations de l'immeuble */
.liste-obligations { list-style: none; padding: 0; margin: 1.6rem 0; display: grid; gap: .7rem; }
.liste-obligations li { border: 1px solid var(--filet); border-radius: var(--rayon); padding: .9rem 1.1rem; background: var(--papier); }
.liste-obligations p { margin: .35rem 0 0; line-height: 1.5; }
.obligation-tete { display: flex; flex-wrap: wrap; gap: .4rem .8rem; align-items: baseline; }
.liste-obligations .statut { font-size: .8rem; font-weight: 600; padding: .15rem .55rem; border-radius: 999px; border: 1.5px solid var(--encre); white-space: nowrap; }
.liste-obligations .statut-en_retard .statut, .liste-obligations .statut-a_faire .statut { background: var(--encre); color: var(--papier); }
.liste-obligations .statut-a_jour, .liste-obligations .statut-non_concerne { background: transparent; }
.liste-obligations .statut-non_concerne { color: var(--gris); }
.liste-obligations .statut-en_retard { border-color: var(--encre); border-width: 2px; }
.liste-obligations details { margin-top: .6rem; }
.liste-obligations summary { cursor: pointer; font-weight: 600; }
form.declaration { display: grid; gap: .6rem; margin-top: .7rem; max-width: 34rem; }
form.declaration label { display: grid; gap: .25rem; }
form.declaration button { justify-self: start; }
.chiffres.rangee { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 1rem; }

/* Aide : ce que couvre le support */
.aide-frontiere { width: 100%; max-width: 52rem; border-collapse: collapse; margin: 1.2rem 0 2rem; }
.aide-frontiere th, .aide-frontiere td { text-align: left; vertical-align: top; padding: .6rem .8rem; border-bottom: 1px solid var(--filet); width: 50%; }
.aide-frontiere th { font-weight: 600; border-bottom: 2px solid currentColor; }
.aide-frontiere td:last-child { color: var(--gris); }
