/* Tableau de bord des immeubles : maquette A « nuit graphite » (sombre, par défaut) et thème clair.
   Les couleurs ne sont définies QUE dans les deux blocs de thème ci-dessous ; tout le reste utilise
   des variables. Le thème clair est la base (il sert aussi à l'impression) ; le thème sombre ne
   s'applique qu'à l'écran, sauf si data-theme="light" est posé (choix de la personne ou appareil). */

/* Thème clair (design §16) : contenu blanc, menu gris très foncé. */
:root {
  color-scheme: light;
  --fond: #F4F5F6;
  --carte: #FFFFFF;
  --trait: #E1E4E7;
  --texte: #16191C;
  --doux: #5B636B;
  --fort: #16191C;
  --vert: #1F9E5C;
  --jaune: #D99A00;
  --jaune-trait: #B88200; /* jaune assez foncé pour une forme sur blanc (≥ 3:1) */
  --rouge: #D0453B;
  --vert-texte: #15703F;
  --jaune-texte: #7A5600;
  --rouge-texte: #A3332A;
  --puce: #EAECEE;
  --focus: #1D5FB8;
  --depenses: #8B949C;
  --grille: #E1E4E7;
  --gris-1: #2E353B;
  --gris-2: #4F5860;
  --gris-3: #737C84;
  --gris-4: #9AA2A9;
  --gris-5: #BFC5CA;
  --gris-6: #D9DDE0;
  --menu: #13171A;
  --menu-trait: #1F262B;
  --menu-texte: #B4BDC5;
  --menu-titre: #8B949C;
  --menu-actif: #1C2328;
  --menu-fort: #FFFFFF;
  --menu-accent: #34C27A;
  --menu-focus: #7FB3FF;
  --vert-fond: color-mix(in srgb, var(--vert) 14%, transparent);
  --jaune-fond: color-mix(in srgb, var(--jaune) 16%, transparent);
  --rouge-fond: color-mix(in srgb, var(--rouge) 14%, transparent);
}

/* Thème sombre, maquette A « nuit graphite » : par défaut à l'écran. */
@media screen {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --fond: #0E1113;
    --carte: #161B1F;
    --trait: #232A30;
    --texte: #E8ECEF;
    --doux: #8B949C;
    --fort: #FFFFFF;
    --vert: #34C27A;
    --jaune: #F2B63D;
    --jaune-trait: #F2B63D;
    --rouge: #EF5B5B;
    --vert-texte: #5FD99A;
    --jaune-texte: #F7C95E;
    --rouge-texte: #FF8A8A;
    --puce: #1C2328;
    --focus: #7FB3FF;
    --depenses: #9AA4AD;
    --grille: #232A30;
    --gris-1: #E8ECEF;
    --gris-2: #B7C0C7;
    --gris-3: #8B949C;
    --gris-4: #667078;
    --gris-5: #4B545B;
    --gris-6: #363E44;
    --menu: #13171A;
    --menu-trait: #1F262B;
    --menu-texte: #9AA4AD;
    --menu-titre: #7D8790;
    --menu-actif: #1C2328;
    --menu-fort: #FFFFFF;
    --menu-accent: #34C27A;
    --menu-focus: #7FB3FF;
  }
}

/* ------------------------------------------------------------------ base */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-size: 14px;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
}

h1, h2, p { margin: 0; }
h1 { font-size: 22px; font-weight: 500; color: var(--fort); letter-spacing: -0.2px; }
h2 { font-size: 13px; font-weight: 500; color: var(--doux); }
a { color: inherit; }
b { font-weight: 500; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

.lien-evitement {
  position: absolute; left: 16px; top: -48px; z-index: 10;
  padding: 8px 12px; border-radius: 8px; background: var(--carte); color: var(--texte);
}
.lien-evitement:focus { top: 12px; }

/* ------------------------------------------------------------------ mise en page */

.page { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }

.menu { background: var(--menu); border-right: 1px solid var(--menu-trait); color: var(--menu-texte); }
.menu-ouvrir { display: none; }
.menu-nav { position: sticky; top: 0; display: flex; flex-direction: column; height: 100vh; overflow-y: auto; padding: 16px 0; }
.menu-marque {
  display: flex; gap: 8px; align-items: center; padding: 0 16px 16px;
  font-weight: 500; font-size: 15px; color: var(--menu-fort); text-decoration: none;
}
.connexion .menu-marque { padding: 0 0 12px; color: var(--fort); }
.menu-logo { width: 22px; height: 22px; border-radius: 6px; background: var(--menu-accent); display: inline-block; }
.menu-liste, .menu-liste ul { list-style: none; margin: 0; padding: 0; }
.menu-lien {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  min-height: 32px; padding: 6px 16px; color: var(--menu-texte); text-decoration: none;
}
.menu-lien:hover { color: var(--menu-fort); }
.menu-lien[aria-current="page"] { color: var(--menu-fort); background: var(--menu-actif); box-shadow: inset 2px 0 0 var(--menu-accent); }
.menu-lien:focus-visible { outline-color: var(--menu-focus); outline-offset: -2px; }
.menu-lien-region { margin-top: 10px; font-size: 12px; color: var(--menu-titre); }
.menu-sous { padding-left: 28px; }
.menu-compte { font-size: 11px; color: var(--menu-titre); }
.menu-pied { margin-top: auto; padding: 16px 16px 0; font-size: 12px; color: var(--menu-titre); }
.menu-pied strong { font-weight: 500; color: var(--menu-texte); }
.pastille { width: 7px; height: 7px; border-radius: 50%; display: inline-block; margin-right: 6px; vertical-align: 1px; }
.pastille-ok { background: var(--menu-accent); }
.pastille-attention { background: var(--jaune); }

.contenu { padding: 20px 24px 32px; display: grid; gap: 14px; align-content: start; max-width: 1200px; width: 100%; }

.entete { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; }
.sous-titre { color: var(--doux); font-size: 13px; }
.entete-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.navigation-mois { display: flex; gap: 4px; align-items: center; }
.puce {
  display: inline-flex; align-items: center; justify-content: center; min-height: 32px; min-width: 32px;
  padding: 4px 12px; border-radius: 16px; background: var(--puce); color: var(--doux);
  text-decoration: none; font-size: 13px;
}
.puce-mois { color: var(--texte); }
.deconnexion { margin: 0; }

.bouton {
  font: inherit; font-size: 13px; min-height: 32px; padding: 4px 12px; border-radius: 16px;
  border: 1px solid var(--trait); background: var(--carte); color: var(--texte); cursor: pointer;
  text-decoration: none; display: inline-flex; align-items: center;
}
.bouton:hover { border-color: var(--doux); }
.bouton-principal { background: var(--vert-texte); border-color: var(--vert-texte); color: var(--carte); font-weight: 500; justify-content: center; }

/* Bouton de thème : invisible sans script (il ne servirait à rien), une seule action affichée. */
:root:not([data-js]) .bascule-theme { display: none; }
:root[data-theme="light"] .si-sombre, :root:not([data-theme="light"]) .si-clair { display: none; }

/* ------------------------------------------------------------------ cartes et chiffres */

.carte { background: var(--carte); border: 1px solid var(--trait); border-radius: 12px; padding: 16px; min-width: 0; }
.carte-entete { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }

.bandeau, .avis { padding: 10px 14px; border-radius: 10px; font-size: 13px; }
.bandeau { background: var(--jaune-fond); color: var(--texte); border: 1px solid var(--jaune-fond); }
.bandeau-attente { background: var(--puce); border-color: var(--trait); }
.avis { background: var(--puce); color: var(--texte); }
.avis-attention { background: var(--jaune-fond); }
.avis-attention > span, .a-classer, .a-classer b { color: var(--jaune-texte); }
.avis-probleme { background: var(--rouge-fond); color: var(--rouge-texte); }

.tuiles { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 14px; }
.heros { display: grid; gap: 8px; align-content: space-between; }
.quatre { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tuile-libelle { font-size: 12px; color: var(--doux); }
.tuile-valeur { font-size: 22px; font-weight: 500; color: var(--fort); margin: 2px 0 4px; letter-spacing: -0.3px; }
.tuile-heros .tuile-valeur { font-size: 40px; letter-spacing: -1px; }
.tuile-note, .note { font-size: 12px; color: var(--doux); }
.negatif { color: var(--rouge-texte); }
.tuile-valeur.negatif { color: var(--rouge-texte); }
.attente, .inconnu { color: var(--doux); font-weight: 400; font-size: 0.6em; letter-spacing: 0; }
.tuile-heros .attente { font-size: 22px; }
.quatre .attente { font-size: 18px; }

figure { margin: 0; }
.graphique { display: block; width: 100%; height: auto; }

.provisoire { display: grid; grid-template-columns: minmax(0, 1fr) 132px; gap: 16px; align-items: center; }
.provisoire h2 { color: var(--texte); font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.provisoire-chiffre { font-size: 22px; font-weight: 500; color: var(--fort); margin: 6px 0 4px; }
.provisoire-chiffre span { font-size: 13px; font-weight: 400; color: var(--doux); }

.etiquette { display: inline-block; font-size: 12px; padding: 1px 9px; border-radius: 10px; background: var(--puce); color: var(--doux); white-space: nowrap; }
.etiquette-ok { background: var(--vert-fond); color: var(--vert-texte); }
.etiquette-attention { background: var(--jaune-fond); color: var(--jaune-texte); }
.etiquette-probleme { background: var(--rouge-fond); color: var(--rouge-texte); }

.voyant { font-size: 13px; padding: 3px 12px; border-radius: 12px; background: var(--puce); color: var(--doux); }
.voyant-ok { background: var(--vert-fond); color: var(--vert-texte); }
.voyant-attention { background: var(--jaune-fond); color: var(--jaune-texte); }
.voyant-probleme { background: var(--rouge-fond); color: var(--rouge-texte); }

.legende { font-size: 12px; color: var(--doux); display: flex; gap: 12px; flex-wrap: wrap; }
.legende span::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; vertical-align: 0; }
.legende-revenus::before { background: var(--vert); }
.legende-depenses::before { background: var(--depenses); }
.legende-attente::before { border: 1px dashed var(--doux); }
.legende span.legende-partiel::before { display: none; }

.deux { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.total { font-size: 15px; font-weight: 500; color: var(--fort); }
.lignes, .top5 { list-style: none; margin: 10px 0 0; padding: 0; }
.lignes li, .top5 li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px solid var(--trait); }
.lignes li:first-child, .top5 li:first-child { border-top: 0; }
.top5 { counter-reset: rang; }
.top5-texte { display: grid; min-width: 0; }
.top5-libelle { overflow-wrap: anywhere; }
.top5-detail { font-size: 12px; color: var(--doux); }

.defilement { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 10px; }
caption { text-align: left; font-size: 12px; color: var(--doux); padding-bottom: 6px; }
th, td { text-align: right; padding: 6px 8px; border-top: 1px solid var(--trait); white-space: nowrap; }
th:first-child, td:first-child, thead th:first-child { text-align: left; }
thead th { font-weight: 500; font-size: 12px; color: var(--doux); border-top: 0; }
tbody th { font-weight: 400; }

/* ------------------------------------------------------------------ graphiques (couleurs du thème) */

.g-revenus { fill: var(--vert); }
.g-depenses { fill: var(--depenses); }
.g-grille { stroke: var(--grille); stroke-width: 1; }
.g-zero { stroke: var(--doux); stroke-width: 1; stroke-dasharray: 4 4; }
.g-texte { fill: var(--doux); font-size: 11px; font-family: inherit; }
.g-attente { fill: none; stroke: var(--doux); stroke-width: 1; stroke-dasharray: 3 3; }
.g-ligne { fill: none; stroke: var(--vert); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.g-point { stroke: var(--carte); stroke-width: 1.5; }
.g-positif { fill: var(--vert); }
.g-negatif { fill: var(--rouge); }
.g-part-1 { fill: var(--gris-1); }
.g-part-2 { fill: var(--gris-2); }
.g-part-3 { fill: var(--gris-3); }
.g-part-4 { fill: var(--gris-4); }
.g-part-5 { fill: var(--gris-5); }
.g-part-6 { fill: var(--gris-6); }
.g-part-classer { fill: var(--jaune-trait); }
.g-partiel { fill-opacity: 0.5; stroke: var(--doux); stroke-width: 1; stroke-dasharray: 2 2; }
.g-negatif-marque { fill: var(--rouge); }
.g-vide { fill: var(--trait); }
.g-anneau-fond { stroke: var(--trait); }
.g-anneau-valeur { stroke: var(--vert); stroke-linecap: round; }
.g-anneau-texte { fill: var(--fort); font-size: 20px; font-weight: 500; font-family: inherit; }
.g-anneau-attente { fill: var(--doux); font-size: 13px; font-weight: 400; }
.figure-ventilation { margin-top: 6px; border-radius: 6px; overflow: hidden; }

/* ------------------------------------------------------------------ connexion */

.connexion { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.connexion-carte { width: 100%; max-width: 380px; display: grid; gap: 12px; padding: 24px; }
.connexion form { display: grid; gap: 6px; }
.connexion label { font-size: 13px; color: var(--doux); margin-top: 6px; }
.connexion input {
  font: inherit; font-size: 16px; min-height: 44px; padding: 8px 12px; border-radius: 8px;
  border: 1px solid var(--doux); background: var(--fond); color: var(--texte);
}
.connexion .bouton-principal { margin-top: 12px; min-height: 44px; font-size: 15px; }

/* ------------------------------------------------------------------ écrans étroits (jusqu'à 375 px) */

@media (max-width: 860px) {
  .page { grid-template-columns: minmax(0, 1fr); }
  .menu { border-right: 0; border-bottom: 1px solid var(--menu-trait); }
  .menu-ouvrir {
    display: flex; align-items: center; min-height: 44px; padding: 8px 16px; cursor: pointer;
    color: var(--menu-fort); font-weight: 500;
  }
  .menu-nav { position: static; height: auto; overflow: visible; padding-top: 0; }
  .contenu { padding: 16px; }
  .tuiles, .deux { grid-template-columns: minmax(0, 1fr); }
  .tuile-heros .tuile-valeur { font-size: 34px; }
}
@media (max-width: 480px) {
  .quatre { grid-template-columns: minmax(0, 1fr); }
  .provisoire { grid-template-columns: minmax(0, 1fr) 96px; }
  .entete-actions { width: 100%; }
  .g-texte { font-size: 16px; } /* lisible quand le graphique de 640 unités est réduit à ~340 px */
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ------------------------------------------------------------------ impression : thème clair */

@media print {
  :root { color-scheme: light; }
  .menu, [data-bascule-theme], .deconnexion, .navigation-mois, .lien-evitement { display: none !important; }
  .page { display: block; }
  .contenu { max-width: none; padding: 0; }
  .carte, tr { break-inside: avoid; }
  .defilement { overflow: visible; }
}

/* ------------------------------------------------------------------ rent roll (fiche et groupe) */

.rent-roll h3 { margin: 0 0 6px; font-size: 14px; font-weight: 500; color: var(--texte); }
.rr-immeuble { display: grid; gap: 8px; }
.rr-immeuble + .rr-immeuble { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--trait); }
.rr-defilement { border-radius: 6px; }
.rr-defilement:focus-visible { outline-offset: 0; }
.rent-roll-table { margin-top: 0; border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; }
.rent-roll-table .rr-texte { text-align: left; }
/* Première colonne (logement) collée à gauche quand le tableau défile sur un écran étroit. */
.rent-roll-table thead th:first-child, .rent-roll-table tbody th, .rent-roll-table tfoot th {
  position: sticky; inset-inline-start: 0; z-index: 1; background: var(--carte);
}
.rent-roll-table tfoot th, .rent-roll-table tfoot td { font-weight: 500; color: var(--fort); border-top: 2px solid var(--trait); }
@media print {
  .rent-roll-table thead th:first-child, .rent-roll-table tbody th, .rent-roll-table tfoot th { position: static; }
  .rent-roll-table thead { display: table-header-group; } /* en-têtes répétés sur chaque page imprimée */
}

/* ------------------------------------------------------------------ double vérification (tâche 9c) */

.connexion .note { margin: 0; }
.connexion #code, .connexion #code_secours { font-family: ui-monospace, monospace; letter-spacing: 0.2em; }
.code-secours { display: grid; gap: 6px; margin-top: 6px; }
.code-secours > summary { cursor: pointer; font-size: 13px; color: var(--doux); min-height: 32px; display: flex; align-items: center; }
.connexion h2 { font-size: 15px; margin: 8px 0 0; }
.connexion code { font-family: ui-monospace, monospace; overflow-wrap: anywhere; }
.secret-totp { font-size: 16px; letter-spacing: 0.08em; }
.codes-secours { margin: 0; padding-left: 24px; display: grid; gap: 4px; font-size: 15px; }

/* ------------------------------------------------------------------ classeur de saisie (cl-*) */

.barre-modules { display: flex; gap: 16px; padding: 8px 24px; background: var(--menu); color: var(--menu-texte); font-size: 13px; }
.barre-modules-lien { color: var(--menu-fort); }
.barre-modules-actif { color: var(--menu-accent); }
.cl-page { padding: 20px 24px 40px; display: grid; gap: 14px; align-content: start; max-width: 1200px; margin: 0 auto; }
.cl-cartes { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.cl-carte { background: var(--carte); border: 1px solid var(--trait); border-radius: 10px; padding: 12px 14px; min-width: 0; }
.cl-valeur { font-size: 22px; font-weight: 500; color: var(--fort); margin: 2px 0; letter-spacing: -0.3px; }
.cl-valeur.negatif { color: var(--rouge-texte); }
.cl-mois { display: flex; gap: 6px; align-items: center; }
.cl-mois label { font-size: 13px; color: var(--doux); }
.cl-defilement { overflow-x: auto; }
.cl-defilement:focus-visible { outline-offset: 0; }
.cl-table { font-variant-numeric: tabular-nums; margin-top: 0; }
.cl-table th[scope="row"], .cl-table thead th:first-child { text-align: left; }
.cl-table tbody th { font-weight: 400; }
.cl-grille td { padding: 3px 4px; }
.cl-grille input { width: 96px; }
.cl-section th { background: var(--puce); color: var(--doux); font-size: 12px; font-weight: 500; text-align: left; }
.cl-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.cl-page input, .cl-page select {
  font: inherit; font-size: 13px; color: var(--texte); background: var(--fond); border: 1px solid var(--trait);
  border-radius: 6px; padding: 5px 8px; min-width: 0;
}
.cl-page input[type="checkbox"] { width: 18px; height: 18px; padding: 0; vertical-align: middle; }
.cl-table td input:not([type="checkbox"]) { text-align: right; width: 110px; }
.cl-formulaire { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin: 8px 0; }
.cl-formulaire label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--doux); }
.cl-erreurs { margin: 0; padding-left: 18px; }
.cl-liste { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.cl-liste li { display: flex; gap: 12px; align-items: center; justify-content: space-between; border-top: 1px solid var(--trait); padding-top: 8px; }
.cl-liste form { margin: 0; }
.cl-sous-titre { font-size: 13px; font-weight: 500; color: var(--doux); margin: 16px 0 0; }
.cl-fiche { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin: 8px 0 0; }
.cl-fiche dt { font-size: 12px; color: var(--doux); }
.cl-fiche dd { margin: 2px 0 0; font-size: 18px; color: var(--fort); }
.cl-confirmation { display: flex; gap: 8px; align-items: center; margin: 8px 0; font-size: 13px; }
.bouton-danger { color: var(--rouge-texte); border-color: var(--rouge-texte); }
/* provenance des cases (Tâche E) */
.cl-marque { display: block; font-size: 10px; line-height: 1.4; letter-spacing: 0.3px; text-transform: uppercase; color: var(--doux); text-align: right; }
.cl-marque-banque, .cl-marque-kompas { color: var(--vert-texte); }
.cl-marque-manuel { color: var(--fort); }
.cl-ecart { display: block; font-size: 11px; color: var(--rouge-texte); text-align: right; white-space: nowrap; }
.cl-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 6px; }
.cl-actions form { margin: 0; }
.cl-etat-sync li.negatif { color: var(--rouge-texte); }
@media (max-width: 480px) { .cl-page { padding: 14px 12px 32px; } .barre-modules { padding: 8px 12px; } }
/* ------------------------------------------------------------------ tableau alimenté par le classeur (Tâche F) */
.page .cl-page { margin: 0; padding: 20px 24px 40px; }
.menu-actions { padding: 12px 16px 0; margin: 0; }
.menu-bouton {
  display: inline-flex; align-items: center; min-height: 32px; padding: 4px 12px; border-radius: 16px;
  border: 1px solid var(--menu-trait); color: var(--menu-fort); text-decoration: none; font-size: 13px;
}
.menu-bouton:hover { border-color: var(--menu-accent); }
.menu-bouton:focus-visible { outline-color: var(--menu-focus); }
div.menu-pied p { margin: 0 0 6px; }
.mode-modifier { font-size: 12px; color: var(--jaune-texte); margin: 0 0 2px; font-weight: 500; }
.bascule-vue { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.puce-active { background: var(--vert-fond); color: var(--vert-texte); font-weight: 500; box-shadow: inset 0 0 0 1px var(--vert-texte); }
.quatre-large { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.heros-anneau { display: grid; gap: 6px; align-content: start; text-align: center; }
.heros-anneau .tuile-libelle { text-align: left; }
.heros-anneau .figure-anneau { max-width: 160px; margin: 0 auto; }
.exploitation { font-variant-numeric: tabular-nums; }
.exploitation .ex-sous_total th, .exploitation .ex-sous_total td { font-weight: 500; color: var(--fort); }
.exploitation .ex-total th, .exploitation .ex-total td { font-weight: 500; color: var(--fort); background: var(--puce); }
.exploitation .ex-info th, .exploitation .ex-info td { color: var(--doux); }
.exploitation .ex-poste th { padding-left: 20px; }
td.negatif, .exploitation td.negatif { color: var(--rouge-texte); }
.notes li { flex-direction: column; gap: 2px; }
.note-texte { white-space: pre-line; overflow-wrap: anywhere; }
.cl-formulaire-note label { flex: 1 1 320px; }
.cl-page textarea {
  font: inherit; font-size: 13px; color: var(--texte); background: var(--fond); border: 1px solid var(--trait);
  border-radius: 6px; padding: 6px 8px; width: 100%; resize: vertical;
}
.defilement:focus-visible { outline-offset: 0; }
@media (max-width: 860px) { .quatre-large { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .quatre-large { grid-template-columns: minmax(0, 1fr); } .page .cl-page { padding: 14px 12px 32px; } }
.cl-mois select, .cl-mois input {
  font: inherit; font-size: 13px; color: var(--texte); background: var(--fond); border: 1px solid var(--trait);
  border-radius: 6px; padding: 5px 8px; min-height: 32px;
}
