/* KzAssoWeb — feuille unique, charte de la suite Kz (KzAsso/ui/kz_theme.py).
   Les valeurs de la charte ne sont écrites qu'ici, dans :root. */

@font-face { font-family: "Lato"; font-weight: 500; font-display: swap; src: url("../polices/Lato-Medium.ttf") format("truetype"); }
@font-face { font-family: "Lato"; font-weight: 600; font-display: swap; src: url("../polices/Lato-Semibold.ttf") format("truetype"); }
@font-face { font-family: "Lato"; font-weight: 700; font-display: swap; src: url("../polices/Lato-Bold.ttf") format("truetype"); }
@font-face { font-family: "Lato"; font-weight: 900; font-display: swap; src: url("../polices/Lato-Black.ttf") format("truetype"); }

:root {
  /* couleurs (charte 3.1) */
  --navy: #0B2545;
  --bleu: #1565D8;
  --bleu-fonce: #0E4CA8;
  --bleu-clair: #8DB8FF;
  --ambre: #F5A524;
  --fond: #EEF4FF;
  --fond-fort: #DCE8FF;
  --surface: #FFFFFF;
  --ligne: #E2E8F0;
  --texte: var(--navy);
  --texte-discret: #64748B;
  --indication: #C9D5E6;
  --icone-discrete: #9FB2CC;
  --succes: #17A673;
  --danger: #E5484D;
  --violet: #7C3AED;
  --lat-fond: var(--navy);
  --lat-texte: #B8C7DD;
  --lat-icone: #5F7BA6;
  --lat-survol: #16365F;
  --selection: #DCE8F9;
  /* étiquettes d'état (charte 3.2) : fond / texte */
  --succes-fond: #DCF2EA;  --succes-texte: #0F7A54;
  --alerte-fond: #FEF2DE;  --alerte-texte: #B26F00;
  --info-fond: #DCE8F9;    --info-texte: #0E4CA8;
  --danger-fond: #FBE4E4;  --danger-texte: #B4232A;
  /* rayons (charte 3.5) */
  --r-panneau: 16px;
  --r-carte: 12px;
  --r-bouton: 10px;
  --r-item: 8px;
  /* ombre teintée navy (même tracé que kz_theme.shadow) */
  --ombre: 0 1px 2px rgba(11, 37, 69, .06), 0 4px 10px rgba(11, 37, 69, .045), 0 10px 24px rgba(11, 37, 69, .035);
  --ombre-forte: 0 8px 30px rgba(11, 37, 69, .18);
  --police: "Lato", "Segoe UI", system-ui, -apple-system, sans-serif;
  --largeur-laterale: 240px;
  --hauteur-barre: 64px;
  --hauteur-navbas: 64px;
}

/* ── Base ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--police); font-weight: 600; font-size: 15px; line-height: 1.45;
  color: var(--texte); background: var(--fond);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; line-height: 1.2; }
p { margin: 0 0 .5em; }
a { color: var(--bleu); text-decoration: none; }
a:hover { color: var(--bleu-fonce); }
/* L'attribut hidden l'emporte toujours (un bouton reste caché). */
[hidden] { display: none !important; }
.js .si-sans-js { display: none; }
:focus-visible { outline: 3px solid var(--bleu-clair); outline-offset: 2px; border-radius: 4px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icone { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icone--petite { width: 16px; height: 16px; }
.discret { color: var(--texte-discret); font-weight: 500; }
.titre-mobile, .si-etroit { display: none; }
.visuellement-cache { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Logo ─────────────────────────────────────────────────────────────── */
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; font-size: 18px; letter-spacing: -.01em; color: var(--navy); white-space: nowrap; }
.logo__symbole { width: 32px; height: 32px; flex: none; }
.logo__fond { fill: var(--bleu); }
.logo__trait { stroke: #FFFFFF; }
.logo__accent { stroke: var(--ambre); }
.logo--clair { color: #FFFFFF; }
.logo--clair .logo__kz { color: var(--bleu-clair); }
.logo__kz { color: var(--bleu); }

/* ── Coque : barre latérale + zone principale ─────────────────────────── */
.coque { display: flex; min-height: 100vh; }
.laterale {
  position: sticky; top: 0; height: 100vh; width: var(--largeur-laterale); flex: none;
  background: var(--lat-fond); color: var(--lat-texte); display: flex; flex-direction: column;
}
.laterale__entete { height: var(--hauteur-barre); display: flex; align-items: center; padding: 0 20px; flex: none; }
.laterale__nav { overflow-y: auto; padding: 8px 12px 24px; flex: 1; scrollbar-width: thin; scrollbar-color: var(--lat-survol) transparent; }

.groupe { margin-top: 10px; }
.groupe__titre {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px;
  padding: 6px 8px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--lat-icone); border-radius: var(--r-item); user-select: none;
}
.groupe__titre::-webkit-details-marker { display: none; }
.groupe__titre:hover { color: var(--lat-texte); }
.groupe__chevron { transition: transform .15s; transform: rotate(-90deg); }
.groupe[open] .groupe__chevron { transform: none; }
.groupe__liste { list-style: none; margin: 0; padding: 0; }
.nav__item {
  display: flex; align-items: center; gap: 12px; padding: 9px 12px; margin: 2px 0;
  border-radius: var(--r-item); color: var(--lat-texte); font-weight: 600; font-size: 14px;
}
.nav__item .icone { color: var(--lat-icone); }
.nav__item:hover { background: var(--lat-survol); color: #FFFFFF; }
.nav__item:hover .icone { color: var(--lat-texte); }
.nav__item.actif { background: var(--bleu); color: #FFFFFF; }
.nav__item.actif .icone { color: #FFFFFF; }
/* Écran pas encore construit : simple point discret, le libellé reste sur une ligne. */
.nav__bientot { margin-left: auto; width: 6px; height: 6px; border-radius: 50%; background: var(--lat-icone); flex: none; }
.nav__item.actif .nav__bientot { background: rgba(255, 255, 255, .6); }
.nav__item span:not(.nav__bientot) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.principal { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.barre {
  position: sticky; top: 0; z-index: 20; height: var(--hauteur-barre);
  display: flex; align-items: center; gap: 16px; padding: 0 28px;
  background: rgba(238, 244, 255, .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ligne);
}
.barre__logo-mobile { display: none; }
.barre__titre { font-size: 22px; font-weight: 900; letter-spacing: -.01em; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.barre__association { display: flex; align-items: center; gap: 8px; }

.champ-association {
  display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 6px 0 12px; max-width: 320px;
  background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--r-bouton); box-shadow: var(--ombre);
}
.champ-association .icone { color: var(--bleu); }
.champ-association select, .champ-compact select {
  appearance: none; -webkit-appearance: none; border: 0; background: transparent; font: inherit; font-weight: 700;
  color: var(--texte); padding: 0 26px 0 2px; height: 100%; min-width: 0; max-width: 260px; text-overflow: ellipsis; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 4px center; background-size: 16px;
}
.champ-association select:disabled { cursor: default; background-image: none; padding-right: 6px; }
.champ-association select:focus { outline: none; }
.champ-association:focus-within { outline: 3px solid var(--bleu-clair); outline-offset: 1px; }

/* Menu de l'utilisateur */
.menu-utilisateur { position: relative; }
.menu-utilisateur__bouton { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 4px 6px; border-radius: var(--r-bouton); }
.menu-utilisateur__bouton::-webkit-details-marker { display: none; }
.menu-utilisateur__bouton:hover { background: var(--fond-fort); }
.menu-utilisateur__nom { font-weight: 700; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--violet); color: #FFFFFF; font-weight: 900; font-size: 15px; flex: none; }
.menu-utilisateur__panneau {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; padding: 8px;
  background: var(--surface); border-radius: var(--r-carte); box-shadow: var(--ombre-forte); z-index: 30;
}
.menu-utilisateur__identite { padding: 8px 10px 10px; margin: 0 0 6px; border-bottom: 1px solid var(--ligne); font-weight: 700; }
.menu__entree {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; background: none;
  font: inherit; color: var(--texte); border-radius: var(--r-item); cursor: pointer; text-align: left;
}
.menu__entree:hover { background: var(--fond); }

.contenu { padding: 24px 28px 40px; width: 100%; max-width: 1280px; }

/* ── Boutons ──────────────────────────────────────────────────────────── */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px;
  border-radius: var(--r-bouton); border: 1px solid transparent; font: inherit; font-weight: 700; font-size: 15px;
  cursor: pointer; text-decoration: none; white-space: nowrap; transition: background-color .12s, border-color .12s;
}
.bouton--principal { background: var(--bleu); color: #FFFFFF; }
.bouton--principal:hover { background: var(--bleu-fonce); color: #FFFFFF; }
.bouton--secondaire { background: var(--surface); color: var(--bleu-fonce); border-color: var(--fond-fort); }
.bouton--secondaire:hover { background: var(--fond); border-color: var(--bleu-clair); }
.bouton--danger { background: var(--danger-fond); color: var(--danger-texte); }
.bouton--danger:hover { background: #F7D3D3; }
.bouton--petit { height: 34px; padding: 0 12px; font-size: 14px; }
.bouton--large { width: 100%; }

/* ── Formulaires ──────────────────────────────────────────────────────── */
.formulaire { display: grid; gap: 16px; margin-top: 20px; }
.champ { display: grid; gap: 6px; }
.champ__libelle { font-size: 13px; font-weight: 700; color: var(--texte); }
.champ input, .champ select, .champ textarea {
  font: inherit; font-weight: 600; color: var(--texte); background: var(--fond); border: 1px solid transparent;
  border-radius: var(--r-bouton); height: 46px; padding: 0 14px; width: 100%;
}
.champ input::placeholder { color: var(--indication); }
.champ input:focus, .champ select:focus { outline: none; border-color: var(--bleu); background: var(--surface); box-shadow: 0 0 0 3px var(--selection); }
.champ-compact {
  display: flex; align-items: center; height: 38px; padding: 0 6px 0 12px;
  background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--r-bouton);
}

.alerte { padding: 12px 14px; border-radius: var(--r-bouton); font-weight: 700; margin: 16px 0 0; }
.alerte--danger { background: var(--danger-fond); color: var(--danger-texte); }
.alerte--succes { background: var(--succes-fond); color: var(--succes-texte); }

/* ── Connexion ────────────────────────────────────────────────────────── */
.connexion { min-height: 100vh; display: grid; place-items: center; align-content: center; gap: 18px; padding: 24px 16px; }
.connexion__carte { width: 100%; max-width: 420px; background: var(--surface); border-radius: var(--r-panneau); box-shadow: var(--ombre); padding: 32px; }
.connexion__logo { margin-bottom: 26px; }
.connexion__logo .logo { font-size: 20px; }
.connexion__logo .logo__symbole { width: 38px; height: 38px; }
.connexion__titre { font-size: 26px; font-weight: 900; margin-bottom: 6px; }
.connexion__pied { font-size: 13px; }

/* ── Écrans ───────────────────────────────────────────────────────────── */
.entete-ecran { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.entete-ecran__sous-titre { color: var(--texte-discret); font-weight: 600; margin: 0; }
.entete-ecran__actions { display: flex; gap: 8px; }

.carte { background: var(--surface); border-radius: var(--r-carte); box-shadow: var(--ombre); padding: 20px 22px; min-width: 0; }
.carte__titre { font-size: 17px; font-weight: 800; }
.carte__sous-titre { color: var(--texte-discret); font-size: 13px; font-weight: 600; margin: 2px 0 12px; }

.grille-kpi { display: grid; grid-template-columns: repeat(auto-fit, minmax(196px, 1fr)); gap: 16px; margin-bottom: 18px; }
.grille-2 { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 18px; align-items: start; }

.kpi { background: var(--surface); border-radius: var(--r-carte); box-shadow: var(--ombre); padding: 16px 18px 18px; min-width: 0; }
.kpi__titre { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; color: var(--texte-discret); }
.kpi__pastille { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--info-fond); color: var(--bleu); flex: none; }
.kpi__valeur { font-size: 26px; font-weight: 900; letter-spacing: -.01em; margin: 12px 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi__detail { color: var(--texte-discret); font-size: 13px; font-weight: 600; margin: 0; }
.kpi__tendance { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 800; margin: 8px 0 0; padding: 2px 8px; border-radius: 99px; }
.kpi__tendance--hausse { background: var(--succes-fond); color: var(--succes-texte); }
.kpi__tendance--baisse { background: var(--danger-fond); color: var(--danger-texte); }
.kpi--navy { background: var(--navy); color: #FFFFFF; }
.kpi--navy .kpi__titre, .kpi--navy .kpi__detail { color: var(--lat-texte); }
.kpi--navy .kpi__pastille { background: var(--lat-survol); color: var(--bleu-clair); }
.kpi--ambre .kpi__pastille { background: var(--alerte-fond); color: var(--alerte-texte); }

.etiquette { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.etiquette--success { background: var(--succes-fond); color: var(--succes-texte); }
.etiquette--warning { background: var(--alerte-fond); color: var(--alerte-texte); }
.etiquette--info { background: var(--info-fond); color: var(--info-texte); }
.etiquette--danger { background: var(--danger-fond); color: var(--danger-texte); }

.liste-suivi { list-style: none; margin: 10px 0 0; padding: 0; }
.liste-suivi__ligne { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--ligne); }
.liste-suivi__ligne:first-child { border-top: 0; }
.liste-suivi__icone { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--fond); color: var(--bleu); flex: none; }
.liste-suivi__texte { flex: 1; min-width: 0; font-size: 14px; }

.vide { text-align: center; max-width: 480px; margin: 48px auto; background: var(--surface); border-radius: var(--r-panneau); box-shadow: var(--ombre); padding: 36px 28px; }
.vide h2 { font-size: 20px; font-weight: 900; margin: 12px 0 8px; }
.vide .bouton { margin-top: 12px; }
.vide__icone { width: 44px; height: 44px; color: var(--bleu); padding: 10px; box-sizing: content-box; background: var(--info-fond); border-radius: 16px; }

/* Graphiques : séries de la charte (section 5) */
.graphique { margin: 0; }
.graphique svg { width: 100%; height: auto; display: block; }
.graphique__grille { stroke: var(--ligne); stroke-width: 1; }
.graphique__axe { fill: var(--texte-discret); font-size: 11px; font-weight: 600; font-family: var(--police); }
.serie-0 { fill: var(--bleu); background: var(--bleu); }
.serie-1 { fill: var(--ambre); background: var(--ambre); }
.serie-2 { fill: var(--succes); background: var(--succes); }
.legende { display: flex; gap: 18px; margin-top: 8px; font-size: 13px; color: var(--texte-discret); }
.legende__item { display: inline-flex; align-items: center; gap: 6px; }
.legende__pastille { width: 10px; height: 10px; border-radius: 3px; }

/* ── Lot 2 : listes, fiches, formulaires ──────────────────────────────── */
.section { margin-top: 18px; }
.compteur { margin: 0 0 10px; font-size: 13px; }

.outils { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.outils__recherche { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; flex: 1; min-width: 0; }
.outils__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.outils__texte { margin: 0; align-self: center; }
.outils__choix { min-width: 260px; }
.outils--gauche { justify-content: flex-start; }
/* Une fiche a son propre en-tête : pas de titre en double sur téléphone. */
.contenu:has(.entete-fiche) > .titre-mobile { display: none; }
.outils .champ { gap: 4px; }
.outils .champ select { height: 40px; background: var(--surface); border-color: var(--ligne); }

.recherche {
  display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; flex: 1; min-width: 200px; max-width: 420px;
  background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--r-bouton);
}
.recherche .icone { color: var(--icone-discrete); width: 18px; height: 18px; }
.recherche input { border: 0; background: transparent; font: inherit; color: var(--texte); width: 100%; min-width: 0; height: 100%; }
.recherche input:focus { outline: none; }
.recherche input::placeholder { color: var(--indication); }
.recherche:focus-within { border-color: var(--bleu); box-shadow: 0 0 0 3px var(--selection); }
.recherche--petite { height: 36px; max-width: 280px; flex: 0 1 280px; }

/* Tableaux : lignes sur grand écran, cartes empilées sur téléphone */
/* clip et non hidden : hidden empêcherait la barre d'actions collante de suivre l'écran. */
.carte--liste { padding: 0; overflow: clip; }
.tableau { width: 100%; border-collapse: collapse; font-size: 14px; }
.tableau th {
  text-align: left; font-size: 12px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase;
  color: var(--texte-discret); background: var(--fond); padding: 10px 14px; white-space: nowrap;
}
.tableau td { padding: 11px 14px; border-top: 1px solid var(--ligne); vertical-align: middle; }
.tableau .nombre { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tableau__ligne:hover { background: #F7FAFF; }
.tableau__ligne--inactive { color: var(--texte-discret); }
.tableau__code { font-weight: 700; color: var(--texte-discret); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tableau__titre { font-weight: 700; }
.tableau__actions { width: 1%; text-align: right; }
.tableau__actions form { margin: 0; }
.lien-ligne { color: var(--texte); }
.lien-ligne:hover { color: var(--bleu); }
.bouton-icone { border: 0; background: none; color: var(--icone-discrete); width: 34px; height: 34px; border-radius: var(--r-item); cursor: pointer; display: inline-grid; place-items: center; }
.bouton-icone:hover { background: var(--danger-fond); color: var(--danger-texte); }

.solde { font-weight: 800; }
.solde--negatif { color: var(--danger-texte); }
.solde--favorable { color: var(--succes-texte); }
.montant-entree { color: var(--succes-texte); font-weight: 800; }
.montant-sortie { color: var(--danger-texte); font-weight: 800; }

.pagination { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 16px 0; }

.vide--compact { margin: 24px auto; padding: 28px 22px; }

/* Cartes de fonds */
.grille-cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.carte--lien { display: block; color: var(--texte); transition: box-shadow .15s, transform .15s; }
.carte--lien:hover { color: var(--texte); box-shadow: var(--ombre-forte); transform: translateY(-1px); }
.carte--archivee { opacity: .65; }
.carte__entete { display: flex; align-items: center; gap: 10px; }
.carte__entete .carte__titre { flex: 1; min-width: 0; }
.chiffres { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin: 12px 0 0; }
.chiffres dt { font-size: 12px; color: var(--texte-discret); font-weight: 600; }
.chiffres dd { margin: 2px 0 0; font-weight: 800; }

/* Fiches */
.entete-fiche { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.entete-fiche__identite { display: flex; align-items: center; gap: 14px; min-width: 0; }
.entete-fiche__identite p { margin: 0; }
.entete-fiche__nom { font-size: 20px; font-weight: 900; }
.entete-fiche__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.avatar--grand { width: 52px; height: 52px; font-size: 22px; }
.kpi__pastille--grande { width: 52px; height: 52px; border-radius: 14px; }
.kpi__pastille--grande .icone { width: 26px; height: 26px; }
.description { margin: 0 0 18px; color: var(--texte-discret); }
.details { display: grid; grid-template-columns: minmax(120px, auto) 1fr; gap: 8px 16px; margin: 14px 0 0; font-size: 14px; }
.details dt { color: var(--texte-discret); font-weight: 600; }
.details dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.liste-simple { list-style: none; margin: 10px 0 0; padding: 0; }
.liste-simple li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--ligne); font-weight: 700; }
.liste-simple li:first-child { border-top: 0; }
.liste-simple__droite { display: flex; align-items: center; gap: 8px; }
.carte__titre--marge { padding: 18px 22px 8px; }
.carte__vide { padding: 0 22px 18px; }
.carte__barre { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px 18px; }
.carte__barre--champs { align-items: flex-end; justify-content: flex-start; }
.carte__barre .champ { min-width: 160px; }
.carte__recherche { margin: 0; }
.zone-danger { margin-top: 28px; padding-top: 16px; border-top: 1px dashed var(--fond-fort); }

/* Formulaires de fiche */
.formulaire-fiche { max-width: 900px; }
.bloc { border: 0; margin: 0 0 18px; padding: 0; min-width: 0; }
.bloc__titre { font-size: 15px; font-weight: 900; margin-bottom: 12px; padding: 0; }
.grille-champs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px 16px; }
.champ--large { grid-column: 1 / -1; }
.champ--montant input { font-size: 20px; font-weight: 900; height: 52px; }
.champ select { appearance: auto; }
.champ--erreur input, .champ--erreur select { border-color: var(--danger); background: var(--danger-fond); }
.champ__erreur { font-size: 13px; font-weight: 700; color: var(--danger-texte); }
.champ__aide { font-size: 12px; font-weight: 500; color: var(--texte-discret); }
.requis { color: var(--danger); }
.valeur-fixe { margin: 0; height: 46px; display: flex; align-items: center; font-weight: 800; }
.case { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; cursor: pointer; margin: 4px 0 12px; }
.case input { width: 20px; height: 20px; accent-color: var(--bleu); flex: none; }
.actions-formulaire { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.actions-formulaire--collant {
  position: sticky; bottom: 0; z-index: 5; margin: 0; padding: 12px 18px;
  background: rgba(255, 255, 255, .96); border-top: 1px solid var(--ligne);
}
.total-saisie { margin: 0 auto 0 0; font-size: 15px; }
.total-saisie strong { font-size: 18px; font-weight: 900; }

/* Choix versement / retrait */
.segments { display: inline-flex; padding: 4px; gap: 4px; background: var(--fond); border-radius: var(--r-bouton); margin-bottom: 16px; }
.segment input { position: absolute; opacity: 0; pointer-events: none; }
.segment span { display: block; padding: 8px 16px; border-radius: var(--r-item); font-weight: 800; color: var(--texte-discret); cursor: pointer; }
.segment input:checked + span { background: var(--surface); color: var(--bleu); box-shadow: var(--ombre); }
.segment input:focus-visible + span { outline: 3px solid var(--bleu-clair); }
.carte__barre .segments { margin: 0; align-self: flex-end; }

/* Listes à cocher et saisie en masse */
.selection-barre { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 18px; background: var(--fond); }
.selection-barre .case { margin: 0; }
.liste-cases { list-style: none; margin: 0; padding: 0; max-height: 60vh; overflow-y: auto; }
.liste-cases li { border-top: 1px solid var(--ligne); }
.case--ligne { display: flex; margin: 0; padding: 12px 18px; }
.case--ligne:hover { background: #F7FAFF; }
.saisie-montant {
  width: 140px; height: 38px; padding: 0 10px; text-align: right; font: inherit; font-weight: 800; color: var(--texte);
  background: var(--fond); border: 1px solid transparent; border-radius: var(--r-item);
}
.saisie-montant:focus { outline: none; border-color: var(--bleu); background: var(--surface); box-shadow: 0 0 0 3px var(--selection); }
.tableau--saisie .tableau__ligne.saisie-faite { background: #F2FBF7; }
[data-ligne][hidden] { display: none; }

@media (max-width: 960px) {
  .outils { align-items: stretch; }
  .outils__recherche { flex-basis: 100%; }
  .recherche { max-width: none; }
  .outils__actions, .outils > .bouton { width: 100%; }
  .outils__actions .bouton, .outils > .bouton { flex: 1; }
  .outils__choix { min-width: 0; flex: 1; }
  .entete-fiche__actions { width: 100%; }
  .entete-fiche__actions .bouton { flex: 1; }
  .grille-cartes { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .carte__barre .champ, .recherche--petite { flex: 1 1 100%; max-width: none; }

  /* Tableau en cartes : chaque ligne devient un bloc, chaque cellule
     affiche son libellé (attribut data-libelle). */
  .tableau thead { display: none; }
  .tableau, .tableau tbody, .tableau tr, .tableau td { display: block; width: 100%; }
  .tableau__ligne { position: relative; padding: 12px 16px; border-top: 1px solid var(--ligne); }
  .tableau tbody .tableau__ligne:first-child { border-top: 0; }
  .tableau td { border: 0; padding: 2px 0; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  .tableau td::before { content: attr(data-libelle); color: var(--texte-discret); font-weight: 600; font-size: 13px; text-align: left; }
  .tableau td.tableau__titre { font-size: 16px; text-align: left; padding: 0 40px 4px 0; }
  .tableau td.tableau__titre::before, .tableau td.tableau__code::before { content: none; }
  .tableau td.tableau__code { font-size: 12px; justify-content: flex-start; }
  .tableau .nombre { text-align: right; }
  .tableau td.tableau__actions { position: absolute; top: 8px; right: 8px; width: auto; padding: 0; }
  .tableau td.tableau__actions::before { content: none; }
  .tableau--saisie td[data-libelle="Montant"] { margin-top: 6px; }
  .saisie-montant { width: 55%; height: 44px; font-size: 17px; }
  .actions-formulaire--collant { bottom: calc(var(--hauteur-navbas) + env(safe-area-inset-bottom)); }
  .actions-formulaire .bouton { flex: 1; }
  .total-saisie { flex-basis: 100%; }
  .details { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .details dd { margin-bottom: 8px; }
}

/* ── Lot 3 : argent ───────────────────────────────────────────────────── */
.section-bas { margin-bottom: 18px; }
.etats { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.alerte--info { background: var(--info-fond); color: var(--info-texte); }
.kpi--danger .kpi__pastille { background: var(--danger-fond); color: var(--danger-texte); }
.kpi--danger .kpi__valeur { color: var(--danger-texte); }

/* Étapes d'une aide ou d'une dépense (paiement, recouvrement) */
.etapes { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 12px; }
.etape { padding: 12px 14px 12px 16px; border-radius: var(--r-bouton); background: var(--fond); border-left: 4px solid var(--indication); }
.etape--faite { border-left-color: var(--succes); }
.etape p { margin: 4px 0 8px; font-size: 14px; }
.etape form { margin: 0; }
.ligne-action { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 8px !important; }
.ligne-action .champ input { height: 40px; background: var(--surface); }

/* Choix des éléments d'un recouvrement groupé */
.liste-cases--haute { max-height: none; }
.case__texte { display: grid; gap: 2px; flex: 1; min-width: 0; }
.case__montant { white-space: nowrap; }
.case--grisee { opacity: .6; cursor: not-allowed; }

/* Appels */
.jauge { display: inline-block; width: 90px; height: 8px; border-radius: 99px; background: var(--ligne); overflow: hidden; vertical-align: middle; }
.jauge__plein { display: block; height: 100%; background: var(--bleu); border-radius: 99px; }
.jauge--0 { width: 3%; } .jauge--10 { width: 10%; } .jauge--20 { width: 20%; } .jauge--30 { width: 30%; }
.jauge--40 { width: 40%; } .jauge--50 { width: 50%; } .jauge--60 { width: 60%; } .jauge--70 { width: 70%; }
.jauge--80 { width: 80%; } .jauge--90 { width: 90%; } .jauge--100 { width: 100%; background: var(--succes); }
.versement-ligne { display: flex; gap: 6px; justify-content: flex-end; margin: 0; }
.versement-ligne .saisie-montant { width: 120px; }
.ligne--soldee { background: #F4FBF8; }
.entete-fiche__actions form { margin: 0; }

/* Caisses */
.carte--centrale { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--navy); color: #FFFFFF; }
.carte--centrale .discret { color: var(--lat-texte); margin: 0; }
.carte--centrale .entete-fiche__nom { font-size: 28px; margin: 0; }
.carte--centrale > div { flex: 1; }
.carte--centrale .kpi__pastille { background: var(--lat-survol); color: var(--bleu-clair); }
.caisse__solde { font-size: 22px; font-weight: 900; margin: 10px 0 12px; }
.carte__actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* Journaux */
.onglets { display: flex; gap: 4px; margin-bottom: 14px; border-bottom: 1px solid var(--ligne); }
.onglet { padding: 10px 16px; font-weight: 800; color: var(--texte-discret); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.onglet.actif { color: var(--bleu); border-bottom-color: var(--bleu); }
.filtres-journal { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.filtres-journal .champ--large { flex: 1 1 220px; grid-column: auto; }
.filtres-journal .champ { min-width: 140px; flex: 0 1 180px; }
.filtres-journal .champ select, .filtres-journal .champ input { height: 42px; }
.ligne--report td { font-style: italic; color: var(--texte-discret); }
.ligne--total td { font-weight: 900; background: var(--fond); }

@media (max-width: 960px) {
  .versement-ligne { width: 100%; }
  .versement-ligne .saisie-montant { flex: 1; width: auto; }
  .filtres-journal .champ, .filtres-journal .bouton { flex: 1 1 100%; }
  .onglets { overflow-x: auto; }
  .ligne--total td:empty, .ligne--report td:empty { display: none; }
}

/* ── Saisie hors ligne ────────────────────────────────────────────────── */
.hl { min-height: 100vh; }
.hl__entete {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between;
  height: 58px; padding: 0 16px; background: var(--navy);
}
.hl__retour { display: flex; }
.hl__contenu { max-width: 640px; margin: 0 auto; padding: 18px 14px 40px; display: grid; gap: 14px; }
.hl__titre { font-size: 24px; font-weight: 900; }
.hl__intro { margin: -6px 0 0; }
.hl__contenu > .alerte { margin: 0; }
.pastille-reseau { font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 99px; background: var(--lat-survol); color: var(--lat-texte); }
.pastille-reseau--ok { background: var(--succes-fond); color: var(--succes-texte); }
.pastille-reseau--non { background: var(--alerte-fond); color: var(--alerte-texte); }
.hl__etat { display: grid; gap: 4px; padding: 10px 16px; }
.hl__ligne { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.hl__ligne + .hl__ligne { border-top: 1px solid var(--ligne); }
.hl__ligne > span:first-child { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--fond); color: var(--bleu); flex: none; }
.hl__texte { flex: 1; min-width: 0; font-size: 14px; }
.hl__membres { margin-top: 6px; max-height: 260px; overflow-y: auto; border: 1px solid var(--ligne); border-radius: var(--r-bouton); padding: 4px; }
.hl__choix { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-item); cursor: pointer; font-weight: 700; }
.hl__choix input { width: 18px; height: 18px; accent-color: var(--bleu); flex: none; }
.hl__choix:has(input:checked) { background: var(--selection); }
.hl__choix .discret { margin-left: auto; font-size: 13px; }
.hl__aucun { padding: 10px 12px; margin: 0; }
.hl__compteurs { margin: 0; padding: 0 18px 10px; font-size: 13px; font-weight: 700; color: var(--texte-discret); }
.hl__saisies { list-style: none; margin: 0; padding: 0; }
.hl__saisie { padding: 12px 18px; border-top: 1px solid var(--ligne); }
.hl__saisie-haut { display: flex; justify-content: space-between; gap: 12px; }
.hl__montant { font-weight: 900; white-space: nowrap; }
.hl__detail { margin: 2px 0 6px; font-size: 13px; }
.hl__motif { margin: 0 0 8px; padding: 8px 10px; border-radius: var(--r-item); background: var(--danger-fond); color: var(--danger-texte); font-size: 13px; font-weight: 700; }
.hl__saisie-bas { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hl__pied { padding: 12px 18px; text-align: right; }
.bouton:disabled { opacity: .5; cursor: default; }

/* ── Barre du bas (téléphone) ─────────────────────────────────────────── */
.navbas { display: none; }

@media (max-width: 960px) {
  body.avec-cadre { padding-bottom: calc(var(--hauteur-navbas) + env(safe-area-inset-bottom)); }
  .laterale { display: none; }
  .barre { padding: 0 14px; gap: 10px; height: 58px; }
  .barre__logo-mobile { display: block; }
  .barre__logo-mobile .logo__nom { display: none; }
  /* Le titre reste lisible par les lecteurs d'écran ; à l'œil, il passe en tête du contenu. */
  .barre__titre { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; flex: none; }
  .barre__association { flex: 1; min-width: 0; }
  .champ-association { width: 100%; max-width: none; }
  .titre-mobile { display: block; font-size: 22px; font-weight: 900; letter-spacing: -.01em; margin: 2px 0 10px; }
  .si-large { display: none; }
  .si-etroit { display: block; }
  .menu-utilisateur__nom, .menu-utilisateur__bouton > .icone { display: none; }
  .champ-association { height: 38px; box-shadow: none; }
  .champ-association select { max-width: 100%; }
  .contenu { padding: 16px 14px 28px; }
  .grille-kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
  .grille-kpi > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .grille-2 { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .kpi { padding: 12px 14px 14px; }
  .kpi__titre { font-size: 12px; gap: 8px; }
  .kpi__pastille { width: 28px; height: 28px; border-radius: 8px; }
  .kpi__pastille .icone { width: 16px; height: 16px; }
  .kpi__valeur { font-size: 19px; margin-top: 8px; }
  .kpi__detail { font-size: 12px; }
  .carte { padding: 16px; }

  .navbas {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    height: calc(var(--hauteur-navbas) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: var(--surface); border-top: 1px solid var(--ligne); box-shadow: 0 -4px 16px rgba(11, 37, 69, .06);
  }
  .navbas > a, .navbas > details { flex: 1; }
  .navbas__item {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: var(--hauteur-navbas);
    color: var(--texte-discret); font-size: 11px; font-weight: 700; list-style: none; cursor: pointer;
  }
  .navbas__item::-webkit-details-marker { display: none; }
  .navbas__item .icone { width: 22px; height: 22px; }
  .navbas__item.actif, .navbas__plus[open] > .navbas__item { color: var(--bleu); }
  .feuille {
    position: fixed; left: 0; right: 0; bottom: calc(var(--hauteur-navbas) + env(safe-area-inset-bottom)); max-height: 72vh; overflow-y: auto;
    background: var(--navy); border-radius: var(--r-panneau) var(--r-panneau) 0 0; padding: 12px 14px 18px; box-shadow: var(--ombre-forte);
  }
  .feuille .nav__item { padding: 12px; }
}

@media (max-width: 380px) {
  .grille-kpi { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ── Lot 5 : tontines, rappels, rapports, paramètres, utilisateurs ─────── */
form.en-ligne { display: inline-flex; margin: 0; vertical-align: middle; }
.ligne-action--carte { padding: 0 16px 12px; margin-top: 0 !important; }
.carte__note { margin: 0; padding: 0 16px 8px; font-size: 14px; }
.liste-simple--serree li { padding: 6px 0; font-size: 14px; }

/* Rappels */
.rappels { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.rappel { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 14px; border-radius: var(--r-bouton); background: var(--fond); border-left: 4px solid var(--bleu); }
.rappel--echu { border-left-color: var(--danger); background: var(--danger-fond); }
.rappel__date { display: grid; min-width: 110px; }
.rappel__jour { font-weight: 900; }
.rappel__texte { flex: 1 1 220px; min-width: 0; }
.rappel__texte p { margin: 0; }
.rappel__titre { font-weight: 800; }
.rappel__actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.alerte--attention { background: var(--alerte-fond); color: var(--alerte-texte); }
.alerte--lien { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; }
.alerte--lien:hover { text-decoration: underline; }

/* Paramètres : blocs en cartes */
.carte.bloc { padding: 20px 22px; margin-bottom: 0; }
.carte.bloc .bloc__titre { float: left; width: 100%; }
.carte.bloc .bloc__titre + * { clear: both; }
fieldset[disabled] input, fieldset[disabled] select { background: var(--fond); }

/* Droits d'un profil */
.centre { text-align: center; }
.case--seule { justify-content: center; }
@media (max-width: 960px) {
  .tableau--droits td.centre { text-align: left; }
}

/* Rapports */
.onglets--defilants { overflow-x: auto; scrollbar-width: thin; }
.onglets--defilants .onglet { white-space: nowrap; }
.kpi--ambre .kpi__valeur { color: var(--alerte-texte); }
.ligne--alerte td { color: var(--danger-texte); }
.tri { color: inherit; display: inline-block; }
.tri:hover, .tri--actif { color: var(--bleu); }
.si-js { display: none; }
.js .si-js { display: inline-flex; }
.carte__outils { margin-left: auto; display: inline-flex; gap: 6px; flex-wrap: wrap; }

/* Impression (Ctrl+P ou bouton « Imprimer ») : le contenu seul. */
@media print {
  @page { margin: 14mm; }
  body { background: #FFFFFF; }
  .laterale, .navbas, .barre, .sans-impression, .onglets, .outils, form .actions-formulaire,
  .zone-danger, .alerte--lien, .pagination, .titre-mobile { display: none !important; }
  .principal, .contenu { margin: 0 !important; padding: 0 !important; }
  .carte, .kpi { box-shadow: none; border: 1px solid #DDE3EC; break-inside: avoid; }
  .carte--liste { break-inside: auto; }
  .tableau tr { break-inside: avoid; }
  a { color: inherit; text-decoration: none; }
  .entete-ecran form select { border: 0; appearance: none; }
}
.formulaire-fiche > .carte.bloc + .carte.bloc { margin-top: 16px; }
.onglet { white-space: nowrap; }
.onglets { overflow-x: auto; scrollbar-width: thin; }
.carte > .ligne-action .champ input { background: var(--fond); }
.carte .si-large .graphique { max-width: 820px; }

/* ══ Apparence « bureau Windows » (ordinateur) ══════════════════════════
   Reprend la fenêtre de l'application de bureau (KzAsso/main.py) :
   barre de menus, barre d'outils, barre latérale, onglets des écrans
   ouverts, barre d'état ; listes en grille avec barre d'actions ; fiches
   de saisie en fenêtres de dialogue. Au-delà de 960 px seulement : le
   téléphone garde sa présentation. */
.menus, .outils-app, .onglets-app, .etat, .barre-liste, .fenetre__barre, .fenetre__titre { display: none; }
.si-etroit-flex { display: none; }
@media (max-width: 960px) {
  .si-etroit-flex { display: inline-flex; }
  .pied-liste { display: flex; justify-content: center; align-items: center; gap: 12px; margin: 14px 0; font-size: 14px; }
  .pied-liste__total { display: none; }
  .pied-liste__pages { display: flex; align-items: center; gap: 12px; }
  .bouton-page { display: inline-grid; place-items: center; width: 40px; height: 36px; border-radius: var(--r-bouton); background: var(--surface); border: 1px solid var(--fond-fort); }
  .bouton-page--inactif { opacity: .4; }
  .fenetre__corps > .carte, .fenetre__corps > form.carte { box-shadow: var(--ombre); }
}

@media (min-width: 961px) {
  :root {
    --r-bouton: 3px; --r-carte: 8px; --r-item: 6px; --r-panneau: 8px;
    --win-ligne: #D6DEE9; --win-gris: #F0F0F0; --win-bord: #A9B6C8;
    --win-champ: #7A8CA5; --largeur-laterale: 228px;
  }
  body.avec-cadre { font-size: 14px; font-weight: 500; overflow: hidden; }
  .appli { display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; grid-template-columns: minmax(0, 1fr); height: 100vh; }
  .appli .si-etroit { display: none !important; }
  .coque { min-height: 0; }
  .laterale { position: static; height: auto; }
  .principal { min-height: 0; overflow: hidden; }
  .barre { display: none; }
  .contenu { flex: 1; overflow: auto; max-width: none; padding: 14px 16px 24px; }
  .titre-mobile { display: none !important; }

  /* Barre de menus */
  .menus { display: flex; align-items: stretch; height: 24px; padding: 0 4px; background: #FFFFFF; font-size: 13px; position: relative; z-index: 60; }
  .menu { position: relative; }
  .menu__titre { list-style: none; cursor: default; padding: 0 8px; height: 24px; display: flex; align-items: center; user-select: none; color: #000000; font-weight: 500; }
  .menu__titre::-webkit-details-marker { display: none; }
  .menu__titre:hover, .menu[open] > .menu__titre { background: #CCE4F7; }
  .menu__panneau {
    position: absolute; left: 0; top: 100%; min-width: 250px; padding: 3px 0; background: #F2F2F2;
    border: 1px solid #CCCCCC; box-shadow: 2px 3px 6px rgba(0, 0, 0, .18);
  }
  .menu__panneau form { margin: 0; }
  .menus .menu__entree {
    display: flex; align-items: center; gap: 10px; width: 100%; padding: 4px 26px 4px 10px; border: 0; border-radius: 0;
    background: none; font: inherit; font-size: 13px; font-weight: 500; color: #000000; text-align: left; cursor: default; white-space: nowrap;
  }
  .menus .menu__entree .icone { color: var(--bleu); }
  .menus .menu__entree:hover, .menus .menu__entree:focus-visible { background: #91C9F7; outline: none; }
  .menu__entree kbd { margin-left: auto; padding-left: 24px; font: inherit; color: #6D6D6D; }
  .menu__entree--actif { font-weight: 800; }
  .menu__sep { border: 0; border-top: 1px solid #D7D7D7; margin: 3px 2px; }

  /* Barre d'outils */
  .outils-app {
    display: flex; align-items: center; gap: 2px; height: 42px; padding: 0 8px; background: #FFFFFF;
    border-top: 1px solid #E5E9F0; border-bottom: 1px solid var(--win-ligne);
  }
  .outil {
    display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 9px; border: 1px solid transparent;
    border-radius: 2px; background: none; font: inherit; font-size: 15px; font-weight: 700; color: var(--navy); cursor: pointer; white-space: nowrap;
  }
  .outil .icone { width: 18px; height: 18px; color: var(--bleu); }
  .outil:hover { background: #E5F1FB; border-color: #CCE4F7; color: var(--navy); }
  .outil--principal { background: var(--bleu); color: #FFFFFF; }
  .outil--principal .icone { color: #FFFFFF; }
  .outil--principal:hover { background: var(--bleu-fonce); color: #FFFFFF; border-color: transparent; }
  .outil--icone { padding: 0 7px; }
  .outils-app__sep { width: 1px; height: 24px; background: var(--win-ligne); margin: 0 5px; }
  .outils-app__association { margin: 0 0 0 auto; display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
  .outils-app__association select { max-width: 280px; }

  /* Contrôles Windows : listes déroulantes et cases */
  .outils-app select, .appli .champ select, .appli .champ-compact select, .appli .outils .champ select {
    appearance: none; -webkit-appearance: none; height: 28px; padding: 0 26px 0 6px; font: inherit; font-size: 14px; font-weight: 700;
    color: #000000; background: #E5E5E5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 5px center / 14px;
    border: 1px solid #ADADAD; border-radius: 0; max-width: 100%; text-overflow: ellipsis; cursor: default;
  }
  .appli select:hover { background-color: #E5F1FB; border-color: #0078D7; }
  .appli select:focus { outline: none; border-color: #0078D7; box-shadow: none; }
  .appli select:disabled { color: #838383; background-color: #CCCCCC; border-color: #BFBFBF; }
  .appli input[type="checkbox"], .appli input[type="radio"] { accent-color: #0078D7; }

  /* Barre latérale (NavPanel du bureau) */
  .laterale__entete { height: 58px; padding: 0 22px; }
  .laterale .logo { font-size: 20px; }
  .laterale .logo__symbole { width: 26px; height: 26px; }
  .laterale__nav { padding: 4px 10px 16px; }
  .groupe { margin-top: 14px; }
  .groupe__titre { text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 600; color: #B8C7DD; padding: 3px 2px; }
  .groupe__chevron { width: 12px; height: 12px; }
  .nav__item { padding: 6px 12px; margin: 1px 0; gap: 12px; font-size: 15px; font-weight: 500; color: #DCE6F4; border-radius: 6px; }
  .nav__item .icone { width: 18px; height: 18px; color: #9FB2CC; }
  .nav__item.actif { font-weight: 700; }

  /* Onglets des écrans ouverts (AuiNotebook) */
  .onglets-app {
    display: flex; align-items: flex-end; gap: 0; height: 28px; padding: 4px 6px 0; flex: none;
    background: var(--win-gris); border-bottom: 1px solid #9BA9BD; overflow: hidden;
  }
  .onglet-app {
    display: inline-flex; align-items: center; gap: 8px; height: 23px; padding: 0 6px 0 12px; margin-right: -1px; max-width: 220px;
    border: 1px solid #ADB8C7; border-bottom: 0; background: #F7F7F7; color: #000000; font-size: 13px; font-weight: 500;
  }
  .onglet-app > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .onglet-app:hover { background: #FFFFFF; color: #000000; }
  .onglet-app.actif { background: #FFFFFF; font-weight: 800; height: 24px; margin-bottom: -1px; position: relative; z-index: 1; }
  .onglet-app__fermer { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 2px; color: #444444; font-size: 13px; line-height: 1; }
  .onglet-app__fermer:hover { background: #E81123; color: #FFFFFF; }
  .principal { background: var(--fond); }

  /* Barre d'état */
  .etat { display: flex; align-items: stretch; height: 24px; background: var(--navy); color: #C9D6EA; font-size: 12.5px; font-weight: 500; }
  .etat__case { display: flex; align-items: center; gap: 7px; padding: 0 12px; border-left: 1px solid #23406A; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 140px; }
  .etat__case:first-child { border-left: 0; }
  .etat__case--large { flex: 1; }
  .etat__case--heure { min-width: 70px; justify-content: center; }
  .etat__voyant { width: 8px; height: 8px; border-radius: 50%; background: #3DDC97; }

  /* ── Écrans à liste (BaseCrudPanel) ── */
  .barre-liste { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 2px 0 10px; }
  .barre-liste__sep { width: 1px; height: 30px; background: var(--win-ligne); margin: 0 6px; }
  .bouton-bureau {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 120px; height: 34px; padding: 0 16px;
    border: 1px solid transparent; border-radius: 0; background: var(--info-fond); color: var(--navy);
    font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap;
  }
  .bouton-bureau .icone { width: 14px; height: 14px; }
  .bouton-bureau:hover { background: #C9DBF5; color: var(--navy); }
  .bouton-bureau--principal { background: var(--bleu); color: #FFFFFF; }
  .bouton-bureau--principal:hover { background: var(--bleu-fonce); color: #FFFFFF; }
  .bouton-bureau--modifier { background: #DCF2EA; color: #0F5C40; }
  .bouton-bureau--modifier:hover { background: #C5EADC; color: #0F5C40; }
  .bouton-bureau--supprimer { background: var(--danger-fond); color: var(--danger-texte); }
  .bouton-bureau--supprimer:hover { background: #F7D3D3; color: var(--danger-texte); }
  .bouton-bureau--clair { background: var(--info-fond); }
  .bouton-bureau:disabled { opacity: .55; cursor: default; filter: saturate(.6); }
  .bouton-bureau.js-masque { display: none; }

  /* Les anciens boutons « Nouveau … » des listes : remplacés par la barre. */
  .appli .barre-liste ~ .outils > .bouton--principal, .appli .barre-liste ~ .outils .outils__actions .bouton--principal { display: none; }

  /* Bande de recherche et de filtres (fond bleu clair, comme au bureau) */
  .appli .outils {
    margin: 0; padding: 8px 10px; gap: 10px 14px; background: var(--fond); border: 1px solid var(--win-ligne); border-bottom: 0;
    align-items: center;
  }
  .appli .outils__texte { font-size: 13px; }
  .appli .recherche { height: 28px; max-width: 340px; border: 0; border-bottom: 1px solid var(--win-bord); border-radius: 0; background: transparent; padding: 0 4px; }
  .appli .recherche:focus-within { box-shadow: none; border-bottom-color: var(--bleu); background: #FFFFFF; }
  .appli .recherche input::placeholder { color: #5E6E84; }
  .appli .champ-compact { height: auto; padding: 0; background: none; border: 0; }
  .appli .champ-compact select { max-width: 260px; }
  .appli .outils .bouton { height: 28px; padding: 0 12px; font-size: 13px; font-weight: 600; border-radius: 0; }
  .appli .outils .champ { gap: 2px; }
  .appli .outils .champ__libelle { font-size: 12px; font-weight: 500; color: #475569; }

  /* Grille (VirtualListCtrl) */
  .appli .carte--liste { border-radius: 0; box-shadow: none; border: 1px solid var(--win-ligne); background: #FFFFFF; padding: 0; }
  .appli .outils + .compteur + .carte--liste, .appli .outils + .carte--liste { border-top: 1px solid var(--win-ligne); }
  .appli .tableau { font-size: 14px; }
  .appli .tableau th {
    text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 700; color: #000000; background: #FFFFFF;
    padding: 3px 6px; border-bottom: 1px solid var(--win-ligne); border-right: 1px solid var(--win-ligne); position: sticky; top: 0; z-index: 2;
  }
  .appli .tableau th:hover { background: #E5F1FB; }
  .appli .tableau td { padding: 1px 6px; height: 22px; border-top: 0; border-bottom: 1px solid #EEF1F5; border-right: 1px solid #E8EDF3; white-space: nowrap; max-width: 380px; overflow: hidden; text-overflow: ellipsis; }
  .appli .tableau__ligne:hover { background: #F2F8FF; }
  .appli .tableau__ligne.selectionnee, .appli .tableau__ligne.selectionnee:hover { background: #CCE8FF; }
  .appli .tableau__ligne.selectionnee td { border-bottom-color: #99D1FF; }
  .appli .tableau__titre { font-weight: 600; }
  .appli .tableau__code { color: inherit; font-weight: 500; }
  .appli .lien-ligne { color: inherit; }
  .appli .tableau .etiquette { padding: 0 7px; border-radius: 2px; font-size: 12px; font-weight: 700; }
  .appli .tableau .solde { font-weight: 600; }
  .appli [data-barre-liste] ~ .carte--liste .tableau__ligne { cursor: default; user-select: none; }
  .appli .compteur { display: none; }

  /* Pied de liste : « N résultat(s)  ◀ 1 / 2 ▶ » */
  .pied-liste { display: flex; align-items: center; justify-content: flex-end; gap: 18px; padding: 6px 4px; font-size: 13px; color: #475569; }
  .pied-liste__pages { display: flex; align-items: center; gap: 10px; color: var(--navy); font-weight: 700; }
  .bouton-page { display: inline-grid; place-items: center; width: 28px; height: 24px; background: #E1E1E1; border: 1px solid #ADADAD; color: #000000; font-size: 11px; }
  .bouton-page:hover { background: #E5F1FB; border-color: #0078D7; color: #000000; }
  .bouton-page--inactif { opacity: .45; }
  .appli .pagination { justify-content: flex-end; margin: 6px 0; }

  /* ── Fiches de saisie en fenêtres de dialogue ── */
  .contenu--fenetre { background: rgba(11, 37, 69, .07); display: flex; justify-content: center; align-items: flex-start; padding: 26px 16px 40px; }
  .fenetre {
    width: 800px; max-width: 100%; background: #FFFFFF; border: 1px solid #6F7F96;
    box-shadow: 0 10px 34px rgba(0, 0, 0, .28), 0 2px 6px rgba(0, 0, 0, .12); display: flex; flex-direction: column;
  }
  .fenetre--large { width: 1100px; }
  .fenetre__barre { display: flex; align-items: center; height: 31px; padding-left: 10px; font-size: 13px; color: #000000; background: #FFFFFF; }
  .fenetre__barre-titre { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .fenetre__fermer { display: grid; place-items: center; width: 46px; height: 31px; color: #000000; }
  .fenetre__fermer:hover { background: #E81123; color: #FFFFFF; }
  .fenetre__titre { display: block; margin: 0; padding: 14px 16px 13px; font-size: 18px; font-weight: 800; color: var(--navy); border-top: 4px solid var(--bleu); border-bottom: 1px solid var(--win-ligne); }
  .fenetre__corps { padding: 0; }
  .fenetre__corps > .alerte { margin: 10px 16px 0; }
  .fenetre__corps > .carte, .fenetre__corps > form { box-shadow: none; border-radius: 0; padding: 12px 16px 0; margin: 0; max-width: none; background: transparent; }
  .fenetre__corps > p, .fenetre__corps > .discret { margin: 10px 16px 0; }

  /* Champs : libellé au-dessus, cadre fin, angles droits */
  .fenetre .bloc { margin: 0 0 6px; }
  .fenetre .bloc__titre, .fenetre .carte__titre {
    display: block; width: 100%; margin: 6px 0 8px; padding: 4px 6px; font-size: 13px; font-weight: 600; color: #475569;
    background: var(--fond); float: none;
  }
  .fenetre .grille-champs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 10px; }
  .fenetre--large .grille-champs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .appli .champ { gap: 3px; align-content: start; }
  .appli .champ__libelle { font-size: 13px; font-weight: 500; color: #475569; }
  .appli .champ:has([required]) .champ__libelle { color: var(--danger-texte); }
  .appli .champ input, .appli .champ textarea {
    height: 32px; padding: 0 6px; font-size: 15px; font-weight: 700; color: #000000; background: #FFFFFF;
    border: 1px solid var(--win-champ); border-radius: 0;
  }
  .appli .champ textarea { height: auto; min-height: 64px; padding: 4px 6px; }
  .appli .champ input:hover, .appli .champ textarea:hover { border-color: #000000; }
  .appli .champ input:focus, .appli .champ textarea:focus { border-color: #0078D7; box-shadow: inset 0 -1px 0 #0078D7; background: #FFFFFF; }
  .appli .champ input[readonly], .appli .champ input:disabled { background: #F0F0F0; color: #6D6D6D; border-color: #CCCCCC; }
  .appli .champ select { height: 32px; font-size: 15px; }
  .appli .champ--montant input { font-size: 16px; height: 32px; }
  .appli .champ--erreur input, .appli .champ--erreur select { border-color: var(--danger); background: #FFF6F6; }
  .appli .valeur-fixe { height: 32px; font-weight: 700; }
  .appli .case { gap: 6px; font-weight: 500; margin: 4px 0 8px; }
  .appli .case input { width: 15px; height: 15px; }

  /* Onglets d'une fenêtre (Identité / Coordonnées / …) */
  .onglets-fenetre { display: flex; margin: 0 -16px 8px; border-bottom: 1px solid var(--win-ligne); }
  .onglet-fenetre {
    flex: 1; height: 36px; border: 0; border-bottom: 3px solid transparent; background: #FFFFFF; font: inherit; font-size: 14px;
    font-weight: 500; color: #475569; cursor: pointer;
  }
  .onglet-fenetre:hover { background: #F5F9FF; }
  .onglet-fenetre[aria-selected="true"] { background: var(--fond); color: var(--bleu); border-bottom-color: var(--bleu); font-weight: 600; }
  .onglet-fenetre--erreur { color: var(--danger-texte); }

  /* Boutons du bas : [Supprimer]   [Annuler] [✓ Enregistrer] */
  .fenetre .actions-formulaire {
    margin: 14px -16px 0; padding: 12px 16px; border-top: 1px solid var(--win-ligne); background: #FFFFFF; gap: 8px; position: static;
  }
  .appli .bouton { height: 34px; padding: 0 18px; border-radius: 0; font-size: 14px; font-weight: 600; min-width: 100px; }
  .appli .bouton--secondaire { background: var(--info-fond); color: var(--navy); border-color: transparent; }
  .appli .bouton--secondaire:hover { background: #C9DBF5; border-color: transparent; color: var(--navy); }
  .appli .bouton--principal { background: var(--bleu); }
  .fenetre .actions-formulaire .bouton--principal::before { content: "✓"; font-weight: 700; }
  .appli .bouton--petit { height: 28px; padding: 0 10px; min-width: 0; font-size: 13px; }

  /* Cartes et indicateurs : plus sobres, comme les panneaux du bureau */
  .appli .carte { box-shadow: 0 1px 3px rgba(11, 37, 69, .08); border: 1px solid #E3E9F2; padding: 14px 16px; }
  .appli .kpi { border: 1px solid #E3E9F2; }
  .appli .vide { box-shadow: none; border: 1px solid var(--win-ligne); }
  .appli .onglets { border-bottom-color: var(--win-ligne); }
  .appli .onglet { padding: 7px 16px; font-weight: 600; }
  .appli .entete-fiche__nom { font-size: 18px; }
  .appli .alerte { border-radius: 0; padding: 8px 12px; }
}

@media print {
  .menus, .outils-app, .onglets-app, .etat, .barre-liste, .pied-liste__pages, .fenetre__barre { display: none !important; }
  body.avec-cadre { overflow: visible; }
  .appli { display: block; height: auto; }
  .contenu { overflow: visible; }
  .tableau__ligne.selectionnee { background: none; }
}
.outils__centrale { margin: 0 0 0 auto; display: flex; align-items: center; gap: 10px; font-size: 15px; }
.outils__centrale strong { font-weight: 900; }
.note-liste { margin: 8px 0; }
@media (max-width: 960px) {
  .outils--caisses { flex-direction: column; align-items: flex-start; }
  .outils__centrale { margin: 0; }
}
@media (min-width: 961px) {
  .appli .outils--caisses { justify-content: space-between; }
  .appli .outils__centrale { font-size: 15px; font-weight: 700; color: var(--navy); }
  .appli .note-liste { margin: 0; padding: 6px 10px; background: var(--fond); border: 1px solid var(--win-ligne); border-top: 0; border-bottom: 0; font-size: 13px; }
  .appli .form-caisse { margin-top: 16px; max-width: 760px; }
  .appli .tableau td a:not(.lien-ligne) { color: var(--bleu); }
}
@media (min-width: 961px) {
  /* Suppression par la barre d'actions : pas de corbeille dans les lignes. */
  .appli [data-barre-liste] ~ .carte--liste .tableau__actions { display: none; }
  /* Rubriques d'une fenêtre : pas de cadre dans le cadre. */
  .fenetre .carte, .fenetre .carte.bloc { border: 0; box-shadow: none; padding: 0; border-radius: 0; background: transparent; }
  .fenetre .formulaire-fiche > .carte.bloc + .carte.bloc { margin-top: 4px; }
  .fenetre .onglets { margin: 0 -16px 0; padding: 0 16px; }
  /* Saisie en masse : cellules de grille modifiables */
  .appli .saisie-montant { height: 24px; width: 130px; padding: 0 6px; background: #FFFFFF; border: 1px solid var(--win-champ); border-radius: 0; font-weight: 700; }
  .appli .saisie-montant:focus { border-color: #0078D7; box-shadow: none; }
  .appli .tableau--saisie td { height: 28px; }
  .appli .segments { border-radius: 0; padding: 2px; }
  .appli .segment span { border-radius: 0; padding: 5px 14px; }
}
@media (min-width: 961px) {
  .appli .carte.carte--liste { padding: 0; border-radius: 0; box-shadow: none; }
  .appli .carte.carte--liste > .carte__titre--marge, .appli .carte.carte--liste > .carte__barre { padding: 8px 10px; }
}
@media (min-width: 961px) {
  /* Fenêtres : marge intérieure portée par le corps ; le formulaire et ses
     cartes n'en ajoutent pas, onglets et boutons du bas vont d'un bord à
     l'autre (marges négatives égales à celle du corps). */
  .fenetre { overflow: hidden; }
  .fenetre .fenetre__corps { padding: 12px 18px 18px; min-width: 0; }
  .fenetre .fenetre__corps:has(> form > .actions-formulaire:last-child),
  .fenetre .fenetre__corps:has(> .actions-formulaire:last-child) { padding-bottom: 0; }
  .fenetre .fenetre__corps > form, .fenetre .fenetre__corps > .carte,
  .fenetre .fenetre__corps > form.carte { padding: 0; margin: 0; max-width: none; min-width: 0; }
  .fenetre .fenetre__corps > * + form, .fenetre .fenetre__corps > * + .carte,
  .fenetre .fenetre__corps > * + section { margin-top: 12px; }
  .fenetre .fenetre__corps > .alerte, .fenetre .fenetre__corps > p { margin: 0 0 10px; }
  .fenetre .onglets-fenetre { margin: 0 -18px 10px; }
  .fenetre .onglets { margin: -12px -18px 12px; padding: 0 18px; }
  .fenetre .actions-formulaire { margin: 16px -18px 0; padding: 12px 18px; flex-wrap: wrap; }
  .fenetre .carte .actions-formulaire { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; border-top: 0; }
  .fenetre .champ, .fenetre .grille-champs > * { min-width: 0; }
  .fenetre .tableau { margin: 0; }
  .fenetre .carte--liste { overflow-x: auto; }
}
/* Tri par en-tête */
.tableau th .tri, .tableau th.tri-local { color: inherit; cursor: pointer; user-select: none; }
.tableau th .tri { display: inline-flex; align-items: center; gap: 4px; }
.tableau th.nombre .tri { justify-content: flex-end; }
.tri__fleche { font-size: 10px; color: var(--bleu); margin-left: 4px; }
.tableau th .tri--actif { color: var(--bleu-fonce); }
@media (min-width: 961px) {
  .appli .tableau th .tri { color: #000000; width: 100%; }
  .appli .tableau th.nombre .tri { justify-content: flex-end; }
}
/* ── Fiches de consultation en fenêtres (block fenetre = « fiche ») ── */
.fenetre__pied { display: none; }
@media (min-width: 961px) {
  .fenetre--fiche { position: relative; }
  .fenetre--fiche .fenetre__titre { display: none; }
  .fenetre--fiche .entete-fiche {
    margin: -12px -18px 12px; padding: 12px 18px; background: #FFFFFF;
    border-top: 4px solid var(--bleu); border-bottom: 1px solid var(--win-ligne);
  }
  .fenetre--fiche .entete-fiche__nom { font-size: 18px; font-weight: 800; }
  .fenetre--fiche .avatar--grand, .fenetre--fiche .kpi__pastille--grande { width: 40px; height: 40px; font-size: 18px; border-radius: 4px; }
  .fenetre--fiche .entete-fiche__actions .bouton { min-width: 110px; }
  .fenetre--fiche .entete-fiche__actions .bouton .icone { width: 15px; height: 15px; }
  .fenetre--fiche .grille-2 { gap: 14px; }
  .fenetre--fiche .grille-kpi { gap: 10px; margin-bottom: 12px; }
  .fenetre--fiche .kpi { box-shadow: none; border: 1px solid var(--win-ligne); border-radius: 0; padding: 10px 12px; }
  .fenetre--fiche .kpi--navy { border-color: var(--navy); }
  .fenetre--fiche .kpi__valeur { font-size: 20px; margin-top: 6px; }
  .fenetre--fiche .kpi__pastille { width: 26px; height: 26px; border-radius: 3px; }
  .fenetre--fiche .kpi__pastille .icone { width: 15px; height: 15px; }
  .fenetre--fiche .section { margin-top: 12px; }
  .fenetre .carte.carte--liste { border: 1px solid var(--win-ligne); }
  .fenetre .carte.carte--liste > .carte__titre { margin: 0; }
  .fenetre .carte--liste .carte__barre { padding: 4px 8px; background: var(--fond); }
  .fenetre .carte--liste .carte__barre .carte__titre { background: none; padding: 0; margin: 0; width: auto; }
  .fenetre--fiche .details { margin-top: 6px; gap: 5px 16px; }
  .fenetre--fiche .description { padding: 0; margin: 0 0 12px; }
  .fenetre--fiche .etape { border-radius: 0; }
  .fenetre__pied {
    display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px;
    border-top: 1px solid var(--win-ligne); background: #FFFFFF;
  }
  .fenetre--fiche .zone-danger { position: absolute; left: 18px; bottom: 12px; margin: 0; padding: 0; border: 0; z-index: 1; }
  .fenetre--fiche .zone-danger .bouton { height: 34px; font-size: 14px; padding: 0 16px; }
}
/* ── Colonnes réglables, fenêtres déplaçables ── */
.col-poignee, .col-mesure { display: none; }
@media (min-width: 961px) {
  .appli .tableau .col-masquee { display: none; }
  .appli .tableau--fixe { table-layout: fixed; }
  .appli .tableau--fixe td, .appli .tableau--fixe th { max-width: none; }
  .appli .tableau th { position: sticky; }
  .col-poignee { display: block; position: absolute; top: 0; right: -4px; width: 8px; height: 100%; cursor: col-resize; z-index: 3; }
  .col-poignee:hover { background: rgba(0, 120, 215, .25); }
  .redimension-colonne, .redimension-colonne * { cursor: col-resize !important; user-select: none; }
  .appli .tableau th[draggable="true"] { cursor: default; }
  .appli .tableau th.col-glissee { opacity: .5; }
  .appli .tableau th.col-cible { box-shadow: inset 3px 0 0 #0078D7; }
  .appli .tableau th { overflow: hidden; text-overflow: ellipsis; }
  .col-mesure { display: inline-block; position: absolute; left: -9999px; top: 0; white-space: nowrap; font: 500 14px var(--police); }
  .col-mesure--tete { font-weight: 700; }
  .menu-colonnes {
    position: fixed; z-index: 100; min-width: 240px; padding: 3px 0; background: #F2F2F2;
    border: 1px solid #CCCCCC; box-shadow: 2px 3px 6px rgba(0, 0, 0, .18); font-size: 13px;
  }
  .menu-colonnes .menu__entree {
    display: block; width: 100%; padding: 4px 24px 4px 12px; border: 0; background: none; font: inherit;
    color: #000000; text-align: left; white-space: pre; cursor: default;
  }
  .menu-colonnes .menu__entree:hover:not(:disabled), .menu-colonnes .menu__entree:focus-visible { background: #91C9F7; outline: none; }
  .menu-colonnes .menu__entree:disabled { color: #9A9A9A; }
  .menu-colonnes__titre { padding: 4px 12px 2px; color: #6D6D6D; }
  .menu-colonnes .menu__sep { border: 0; border-top: 1px solid #D7D7D7; margin: 3px 2px; }

  dialog.fenetre--colonnes { width: 420px; padding: 0; margin: auto; border: 1px solid #6F7F96; color: var(--texte); font-size: 14px; }
  dialog.fenetre--colonnes::backdrop { background: rgba(11, 37, 69, .25); }
  dialog.fenetre--colonnes .fenetre__barre, dialog.fenetre--colonnes .fenetre__titre { display: flex; }
  .choix-colonnes { list-style: none; margin: 6px 0 0; padding: 0; max-height: 50vh; overflow-y: auto; border: 1px solid var(--win-champ); }
  .choix-colonnes__ligne { display: flex; align-items: center; gap: 8px; padding: 2px 6px; cursor: default; }
  .choix-colonnes__ligne span { flex: 1; }
  .choix-colonnes__ligne.choisie { background: #CCE8FF; }
  .choix-colonnes__ligne:focus { outline: 1px dotted #000000; outline-offset: -2px; }
  .choix-colonnes__ligne button { width: 24px; height: 22px; padding: 0; border: 1px solid #ADADAD; background: #E1E1E1; font-size: 10px; cursor: default; }
  .choix-colonnes__ligne button:hover:not(:disabled) { background: #E5F1FB; border-color: #0078D7; }
  .choix-colonnes__ligne button:disabled { opacity: .4; }
  .fenetre--colonnes .actions-formulaire .espace { flex: 1; }
  .fenetre--colonnes .actions-formulaire { justify-content: flex-start; }

  .contenu > .fenetre { resize: both; overflow: auto; min-width: 420px; min-height: 180px; max-width: calc(100% - 8px); }
  .contenu > .fenetre .fenetre__barre { cursor: default; user-select: none; touch-action: none; flex: none; }
  .fenetre--deplacee { box-shadow: 0 16px 44px rgba(0, 0, 0, .34); }
  .contenu > .fenetre.fenetre--agrandie { width: 100% !important; max-width: none; min-height: 100%; resize: none; translate: none; }
  .contenu--fenetre:has(.fenetre--agrandie) { padding: 0; }
}
@media (min-width: 961px) {
  .fenetre--colonnes .bouton { height: 34px; padding: 0 18px; border-radius: 0; font-size: 14px; font-weight: 600; min-width: 100px; }
  .fenetre--colonnes .bouton--secondaire { background: var(--info-fond); color: var(--navy); border-color: transparent; }
  .fenetre--colonnes .bouton--principal::before { content: "✓"; font-weight: 700; }
  .fenetre--colonnes .fenetre__corps { padding: 12px 18px 0; }
  .fenetre--colonnes .actions-formulaire { margin: 14px -18px 0; padding: 12px 18px; border-top: 1px solid var(--win-ligne); }
}
/* Sauvegardes, données de test */
.note-fenetre { font-size: 13px; margin: 8px 0 0; }
.actions-copie { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.actions-copie form { margin: 0; }
.journal-travail { max-height: 220px; overflow: auto; margin: 8px 0 0; padding: 8px 10px; background: #0B2545; color: #DCE6F4; font: 12px/1.5 Consolas, "Courier New", monospace; white-space: pre-wrap; }
.travail--en-cours { border-left: 4px solid var(--bleu); }
.ligne-action .champ select { min-width: 280px; }
@media (min-width: 961px) {
  .appli .actions-copie .bouton { min-width: 0; }
  .fenetre .travail { border: 1px solid var(--win-ligne); padding: 10px 12px; margin-bottom: 12px; }
  .fenetre .section + .section { margin-top: 14px; }
}
