/* ═══════════════════════════════════════════════════════════════════════════════════════════════════════════
   GAYA VISION — CATALOGUE DES ÉLÉMENTS (gaya-elements.css), 30/11/2026
   Modèle commun à tous les sites GAYA Vision ; ROUTIER Environnement = site de référence.

   RÈGLE : UN SEUL LOOK PAR TYPE D'ÉLÉMENT. Ce fichier est le SEUL endroit où se dessinent les éléments ci-dessous :
   ni <style> dans les pages, ni style="" en ligne pour ces types (contrôle : tests/parcours-catalogue.cjs).
   Un autre client ne change que les VARIABLES (§ 0) : couleurs du client, espacements, tailles.
   Le fichier propre au site (ROUTIER : routier-pages.css) ne garde que ce qui n'existe que chez lui (couleurs des activités,
   relevés de trésorerie, kanban des remarques, bande des 10 jours du pointage, page d'aide…).

   Sommaire (type → classes du modèle ; les noms existants sont gardés, ils sont stables et lus par les scripts et les tests)
     0. Variables .................. :root
     1. Base ....................... body, [hidden], .gv-masque
     2. En-tête de page ............ .top-bar (tête compacte : .tete-titre, .tete-droite, .tete-actions, .tete-infos), h1,
                                     .fraicheur, boutons texte de l'en-tête .ep-btn
     3. Titre de section ........... h2.section-title, .section-sub
     4. Pavé de chiffre clé ........ .ca-row-5 (rangée) › .kpi-card (.kpi-label, .kpi-value, .kpi-evolution), .portee-tuiles
     5. Sélecteur .................. .barre-filtres › .multi-select (.dropdown-toggle, .dropdown-menu), .champ.recherche
     6. Bouton d'action ............ .btn + .btn-principal | .btn-secondaire ; .btn-petit ; .btn-lien (action en texte)
     7. Tableau .................... .tbl › table.ca-table (tri, gabarit fixe, fiches sur téléphone), .etat-tableau, .vide
     8. Graphique .................. .chart-container (h2 = titre, .chart-hint = sous-titre, .chart-wrapper) ; légende et
                                     infobulle : variables lues par routier-pages.js (Chart.js dessine dans le canvas)
     9. Carte de compte bancaire ... .compte-bloc › .compte-nom (.pastille-banque) + .compte-agence
    10. Infobulle .................. variables --gv-infobulle-* (graphiques) ; .gv-infobulle (bulle HTML)
    11. Fenêtre .................... modale centrée : #analyseModal/.modal-*, .fenetre/.fenetre-*, .ep-fond/.ep-*,
                                     .modale-piece ; croix commune ; panneau latéral : .panneau/.panneau-*
    12. Formulaire ................. .carte, .grille-form, .champ, .cases, .boutons-choix
    13. Messages et pastilles ...... .message-*, .note-info, .alerte-calcul, .indispo, .pastille, .p-*
    14. Pied et chargement ......... footer.pied, .chargement, .barre-chargement
   ═══════════════════════════════════════════════════════════════════════════════════════════════════════════ */

/* ═══ 0. VARIABLES ═════════════════════════════════════════════════════════════════════════════════════════ */
:root {
  /* Couleurs du CLIENT (ROUTIER, 22/11/2026 : couleurs du logo ; sig-config.js › marque.couleurs, appliquées par sig-nav.js).
     Vert SOMBRE (titres, boutons principaux ; 7,90:1 avec le blanc), vert CLAIR (accents, courbes ; jamais du texte), marine. */
  --brand: #3B5A14; --brand-dark: #2C4310; --brand-soft: #eef4e2; --brand-2: #94C11E; --marine: #2C2E83;
  --brand-border: color-mix(in srgb, var(--brand) 22%, white);
  --brand-halo: color-mix(in srgb, var(--brand) 10%, transparent);
  /* Mode « Sobre » (22/11/2026) : la couleur du client très pâle, jamais une colonne blanche */
  --sobre-fond: #f8fcec; --sobre-survol: #ebf7c9; --sobre-actif: #ddf2a6;

  /* Neutres */
  --gv-police: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --gv-fond-page: #f6f4f0;          /* fond de page : jamais blanc (les cartes blanches s'en détachent) */
  --gv-fond-bloc: #fff;             /* cartes, tuiles, graphiques, fenêtres */
  --gv-texte: #333; --gv-texte-titre: #1d1f25; --gv-texte-doux: #888; --gv-texte-champ: #555;
  --gv-trait: #eee; --gv-trait-chaud: #e2d9c8; --gv-bordure: #ddd; --gv-bordure-champ: #cfc6b8;
  --gv-fond-entete-tableau: #f5f0eb;
  --gv-ok: #2e7d32; --gv-ko: #c62828; --gv-vigilance: #ed8936;

  /* Espacements — UN SEUL écart vertical entre les blocs (30/11/2026, règle de Christophe) :
     tête → tuiles → filtres → graphique → graphique → tableau ; même valeur entre graphiques côte à côte */
  --espace-blocs: 20px;
  --espace-titre: 10px;             /* titre de section → bloc qu'il coiffe (le titre appartient à son bloc) */
  --gv-marge-page: 24px;

  /* Bloc blanc (tuile, graphique, carte) */
  --gv-rayon: 8px; --gv-ombre: 0 1px 3px rgba(0,0,0,0.1);
  --gv-bloc-marge: 20px 24px;

  /* 4. Pavé de chiffre clé */
  --gv-tuile-trait: var(--brand-2); --gv-tuile-trait-largeur: 4px; --gv-tuile-marge: 16px 20px;
  --gv-tuile-libelle: 11px; --gv-tuile-valeur: 22px; --gv-tuile-note: 12px; --gv-tuile-ecart: 12px;

  /* 5. Sélecteur et 6. Bouton : même hauteur, ils s'alignent sur une ligne */
  --gv-commande-hauteur: 42px; --gv-commande-rayon: 8px;
  --gv-selecteur-ombre: 0 2px 12px rgba(0,0,0,0.06);
  --gv-bouton-petit-hauteur: 30px;

  /* 3. Titres */
  --gv-titre-page: 24px; --gv-titre-section: 18px; --gv-titre-bloc: 15px; --gv-titre-fenetre: 17px; --gv-sous-titre: 12px;

  /* 8. Graphique : légende (lue par routier-pages.js) */
  --gv-legende-taille: 11px; --gv-legende-couleur: #41454d; --gv-legende-ecart: 16px;
  /* 10. Infobulle (lue par routier-pages.js pour Chart.js) */
  --gv-infobulle-fond: rgba(29, 31, 37, 0.92); --gv-infobulle-texte: #fff; --gv-infobulle-taille: 12px;
  --gv-infobulle-rayon: 6px; --gv-infobulle-marge: 10px;

  /* 11. Fenêtre */
  --gv-voile: rgba(0,0,0,0.5); --gv-fenetre-rayon: 12px; --gv-fenetre-ombre: 0 20px 60px rgba(0,0,0,0.3);
}

/* ═══ 1. BASE ══════════════════════════════════════════════════════════════════════════════════════════════ */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--gv-police); background: var(--gv-fond-page); color: var(--gv-texte); padding: var(--gv-marge-page); padding-top: 0; }
@media (max-width: 520px) { body { padding: 12px; padding-top: 0; } }
/* L'attribut hidden l'emporte toujours sur les display des composants (.champ, .btn, .chart-wrapper…) */
[hidden] { display: none !important; }
/* Masqué à l'écran, lu par les lecteurs d'écran (et les tests) */
.gv-masque { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.up { color: var(--gv-ok) !important; } .down { color: var(--gv-ko) !important; }
.ok { color: var(--gv-ok); font-weight: 700; } .ko { color: var(--gv-ko); font-weight: 700; }
.total-ligne { font-weight: 700; }
/* Petits utilitaires d'écart (au lieu de style="margin-top:…") */
.gv-ecart-haut { margin-top: var(--espace-titre); }
.gv-ecart-haut-bloc { margin-top: var(--espace-blocs); }
.gv-ecart-bas { margin-bottom: var(--espace-titre); }
.gv-sans-marge { margin: 0; }

/* ═══ 2. EN-TÊTE DE PAGE ═══════════════════════════════════════════════════════════════════════════════════
   Tête compacte (entete-page.js, mise en page commune) : à gauche le titre et son sous-titre ; à droite, en haut, les boutons
   d'action (principal le plus à droite), dessous « Chiffres du … · Actualiser » et « Analyse ». */
h1 { font-size: var(--gv-titre-page); font-weight: 700; letter-spacing: -0.2px; margin-bottom: 4px; color: var(--brand); }
.top-bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: var(--espace-blocs); flex-wrap: wrap; }
.top-bar p { color: #666; font-size: 13px; margin: 0; }
.top-bar.tete-compacte { align-items: flex-start; gap: 10px 28px; margin-bottom: var(--espace-blocs); }
.tete-compacte > .tete-titre { flex: 1 1 340px; min-width: 0; }
.tete-droite { flex: 0 1 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; margin-left: auto; max-width: 100%; }
.tete-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.tete-actions .actions { display: contents; }
.tete-actions .btn { margin: 0; }
.tete-actions .btn-secondaire { order: 1; } .tete-actions .btn-principal { order: 2; }
.tete-infos { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; min-height: 24px; }
.tete-infos > .fraicheur, .tete-infos > [data-infos-tete] { margin: 0 !important; }
.tete-infos .btn-analyse { margin: 0; }
.tete-actions:empty, .tete-infos:empty { display: none; }
@media (max-width: 600px) { .tete-compacte > .tete-titre { flex-basis: 100%; } .tete-droite { width: 100%; align-items: stretch; } .tete-actions .btn { flex: 1 1 auto; width: auto; } }
@media print { .tete-actions, .tete-infos .btn-actualiser, .tete-infos .btn-analyse { display: none !important; } }
/* Fraîcheur des données (cache de session) : discrète, dans la tête */
.fraicheur { display: flex; justify-content: flex-end; align-items: center; gap: 10px; font-size: 11.5px; color: #999; margin: -10px 0 12px; flex-wrap: wrap; }
.fraicheur strong { color: #8a5a00; font-weight: 600; }
.attente-chiffres { color: #6b625a; font-size: 13px; font-weight: 400; }
span.attente-chiffres { font-size: 12.5px; }

/* Boutons texte de l'en-tête collant (Remarque · Aide · Point d'attention) : modèle « bouton petit secondaire » (§ 6),
   spécificité > « html.sig-laterale .nav-tabs a » de sig-nav.js */
.nav-tabs .entete-actions { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; }
.nav-tabs .entete-actions .ep-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; height: var(--gv-bouton-petit-hauteur);
  padding: 0 12px; margin: 0; border-radius: var(--gv-commande-rayon); border: 1px solid var(--brand-border); background: #fff; color: var(--brand-dark);
  font-family: inherit; font-size: 13px; font-weight: 600; line-height: 1; text-decoration: none; white-space: nowrap; cursor: pointer; flex-shrink: 0; box-sizing: border-box; }
.nav-tabs .entete-actions .ep-btn:hover, .nav-tabs .entete-actions .ep-btn:focus-visible, .nav-tabs .entete-actions .ep-btn.active { color: var(--brand); border-color: var(--brand); background: #fff; outline: none; }
.nav-tabs .entete-actions .ep-btn.ep-alerte { color: #b71c1c; border-color: #e8b4b0; }
.ep-btn .court, .ep-btn .mini { display: none; }
.ep-pastille { position: absolute; top: -7px; right: -7px; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; border-radius: 9px; background: var(--gv-ko);
  color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px #fff; pointer-events: none; }
.ep-pastille[hidden] { display: none; }
/* Téléphone (≤ 600 px) : libellés courts ; ≤ 380 px ou nom du client coupé (classe ep-serre) : pastilles rondes à texte */
@media (max-width: 600px) { html.sig-laterale nav.nav-tabs { gap: 6px; } html.sig-laterale .nav-tabs .nav-right { gap: 6px; }
  .nav-tabs .entete-actions { gap: 3px; } .nav-tabs .entete-actions .ep-btn { padding: 0 5px; font-size: 11.5px; }
  .ep-btn .long { display: none; } .ep-btn .court { display: inline; } .nav-tabs .nav-brand > span + span { display: none; } }
@media (max-width: 380px) { .nav-tabs .entete-actions .ep-btn { width: 30px; padding: 0; border-radius: 50%; } .ep-btn .court { display: none; } .ep-btn .mini { display: inline; } }
.nav-tabs.ep-serre .entete-actions .ep-btn { width: 30px; padding: 0; border-radius: 50%; }
.nav-tabs.ep-serre .ep-btn .long, .nav-tabs.ep-serre .ep-btn .court { display: none; } .nav-tabs.ep-serre .ep-btn .mini { display: inline; }
@media print { .entete-actions, .ep-fond { display: none !important; } }

/* ═══ 3. TITRE DE SECTION ══════════════════════════════════════════════════════════════════════════════════
   Le titre appartient au bloc qu'il coiffe : un écart de bloc au-dessus, un petit écart dessous. */
h2.section-title { font-size: var(--gv-titre-section); font-weight: 650; margin: var(--espace-blocs) 0 var(--espace-titre) 0; color: var(--gv-texte-titre);
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
h2.section-title .section-sub, .section-sub { font-size: var(--gv-sous-titre); font-weight: 500; color: var(--gv-texte-doux); }
h2.section-title .btn-analyse { margin-left: auto; align-self: center; }
h2.section-title.tete-suivant { margin-top: 0; }

/* ═══ 4. PAVÉ DE CHIFFRE CLÉ ═══════════════════════════════════════════════════════════════════════════════
   Même typo partout : libellé en petit (capitales), chiffre en grand, note dessous ; même trait vertical à gauche. */
.ca-row-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--gv-tuile-ecart); margin-bottom: var(--espace-blocs); }
@media (max-width: 1250px) { .ca-row-5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .ca-row-5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .ca-row-5 { grid-template-columns: 1fr; } }
/* Rangée à nombre de tuiles variable (Prise de commande, Carnet) : tuiles d'au moins 220 px */
.ca-row-5.ca-row-auto { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.kpi-card { background: var(--gv-fond-bloc); border-radius: var(--gv-rayon); box-shadow: var(--gv-ombre); padding: var(--gv-tuile-marge);
  border-left: var(--gv-tuile-trait-largeur) solid var(--gv-tuile-trait); min-width: 0; }
.kpi-label { font-size: var(--gv-tuile-libelle); color: var(--gv-texte-doux); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.kpi-value { font-size: var(--gv-tuile-valeur); font-weight: 700; color: var(--brand); }
.kpi-evolution { font-size: var(--gv-tuile-note); margin-top: 6px; min-height: 16px; line-height: 16px; color: var(--gv-texte-doux); }
/* Ce que couvrent les chiffres clés (posé sous les tuiles, avant la barre de filtres) */
.portee-tuiles { font-size: 12.5px; color: #777; margin: calc(var(--espace-titre) - var(--espace-blocs)) 0 var(--espace-blocs) 0; }
.portee-tuiles:empty { display: none; }

/* ═══ 5. SÉLECTEUR ═════════════════════════════════════════════════════════════════════════════════════════
   UN modèle : le menu à cases (« Exercices 4/4 ▾ », « Année Toutes ▾ ») avec « Tout » et « Aucun » ; choix multiple PARTOUT
   (entete-page.js › BARRE_FILTRES). Barre de filtres : une ligne alignée à GAUCHE, JAMAIS dans un bandeau blanc. */
.barre-filtres { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; margin: 0 0 var(--espace-blocs) 0; background: transparent; }
.barre-filtres .filtre { display: flex; align-items: center; gap: 10px; } .barre-filtres .filtre:empty { display: none; }
.filtres-sous-tuiles { display: flex; justify-content: flex-start; align-items: flex-end; flex-wrap: wrap; gap: 10px 14px; margin: 0 0 var(--espace-blocs) 0; }
.multi-select { position: relative; display: inline-block; }
.multi-select .dropdown-toggle { background: #fff; border-radius: var(--gv-commande-rayon); box-shadow: var(--gv-selecteur-ombre); padding: 0 16px; height: var(--gv-commande-hauteur);
  cursor: pointer; display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--gv-texte-champ); border: 1px solid var(--gv-bordure);
  font-family: inherit; box-sizing: border-box; white-space: nowrap; }
.multi-select .dropdown-toggle:hover, .multi-select.open .dropdown-toggle, .multi-select .dropdown-toggle:focus-visible { border-color: var(--brand); outline: none; }
.multi-select .dropdown-toggle:disabled { cursor: not-allowed; opacity: 0.7; }
.multi-select .dropdown-toggle .valeur { font-size: 13px; font-weight: 600; color: var(--gv-texte-doux); }
.multi-select .dropdown-toggle .arrow { font-size: 10px; transition: transform .2s; }
.multi-select.open .dropdown-toggle .arrow { transform: rotate(180deg); }
.multi-select .dropdown-menu { display: none; position: absolute; top: calc(100% + 4px); left: 0; background: #fff; border-radius: var(--gv-commande-rayon); box-shadow: 0 4px 12px rgba(0,0,0,.15);
  border: 1px solid #e2e2e2; padding: 0 0 8px 0; z-index: 200; min-width: 240px; max-height: 360px; overflow-y: auto; }
.multi-select.open .dropdown-menu { display: block; }
.dropdown-menu .tout-aucun { display: flex; gap: 8px; padding: 8px 14px; border-bottom: 1px solid var(--gv-trait); margin-bottom: 4px; }
.dropdown-menu .tout-aucun button { flex: 1; }
/* (spécificité renforcée : le menu peut vivre dans un .champ, dont les règles de formulaire ne doivent pas l'atteindre) */
.multi-select .dropdown-menu label { display: flex; align-items: center; gap: 10px; padding: 8px 16px; cursor: pointer; font-size: 14px; font-weight: 400; color: var(--gv-texte); }
.multi-select .dropdown-menu label:hover { background: #f7f7f7; }
.multi-select .dropdown-menu label input[type="checkbox"] { accent-color: var(--brand); width: 16px; height: 16px; min-height: 0; padding: 0; margin: 0; flex-shrink: 0; cursor: pointer; }
.dropdown-menu .color-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.dropdown-menu .label-text { flex: 1; white-space: nowrap; }
/* Liste native reliée au menu à cases : gardée (valeurs, événements, mémoire, « Réinitialiser »), invisible */
select.gv-select-source { position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; margin: 0 !important;
  border: 0 !important; opacity: 0; pointer-events: none; overflow: hidden; }
.barre-filtres .champ.champ-multiple { position: relative; display: inline-flex; padding: 0; border: 0; background: none; box-shadow: none; height: auto; }
/* Recherche : même pastille que le menu, libellé puis saisie */
.barre-filtres .champ { flex-direction: row; align-items: center; gap: 0; height: var(--gv-commande-hauteur); box-sizing: border-box; padding: 0 0 0 16px; background: #fff;
  border: 1px solid var(--gv-bordure); border-radius: var(--gv-commande-rayon); box-shadow: var(--gv-selecteur-ombre); min-width: 0; max-width: 100%; }
.barre-filtres .champ:hover, .barre-filtres .champ:focus-within { border-color: var(--brand); }
.barre-filtres .champ > label, .barre-filtres .champ > .etiquette { font-size: 14px; font-weight: 600; color: var(--gv-texte-champ); white-space: nowrap; margin: 0; cursor: pointer; flex-shrink: 0; }
.barre-filtres .champ > label .oblig { display: none; }
.barre-filtres .champ.recherche { flex: 1 1 220px; max-width: 360px; }
.barre-filtres .champ.recherche input { border: 0; box-shadow: none; outline: none; min-height: 0; height: calc(var(--gv-commande-hauteur) - 2px); width: 100%; min-width: 0;
  padding: 0 14px 0 10px; background: transparent; font-family: inherit; font-size: 14px; color: #222; }
.barre-filtres .champ.recherche input:focus { outline: none; box-shadow: none; border: 0; }
.barre-filtres .champ.bouton { padding: 0; border: 0; background: none; box-shadow: none; }
.barre-filtres .filtre-actif { margin: 0; height: var(--gv-commande-hauteur); box-sizing: border-box; display: inline-flex; align-items: center; gap: 6px; padding: 0 14px;
  border-radius: var(--gv-commande-rayon); background: var(--brand-soft); border: 1px solid var(--brand); color: #333; font-size: 13.5px; }
.barre-filtres .filtre-actif[hidden] { display: none; }
/* Téléphone : 16 px (sinon le téléphone zoome sur le champ), recherche sur toute la ligne */
@media (max-width: 600px) { .barre-filtres { gap: 8px; } .barre-filtres .champ.recherche input { font-size: 16px; }
  .barre-filtres .champ.recherche { flex-basis: 100%; max-width: none; } .multi-select .dropdown-menu { min-width: 220px; } }

/* ═══ 6. BOUTON D'ACTION ═══════════════════════════════════════════════════════════════════════════════════
   principal (fond vert) · secondaire (blanc, trait vert) · petit (même chose, plus bas) · lien (action en texte). Même hauteur
   que les sélecteurs. Les boutons « Analyse », « Actualiser », « Tout / Aucun », « Précédent / Suivant » du volet et les
   boutons de l'en-tête sont des boutons PETITS secondaires ; « Réinitialiser » est un bouton lien. */
.btn { font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1; border-radius: var(--gv-commande-rayon); padding: 0 18px; height: var(--gv-commande-hauteur);
  min-height: 0; cursor: pointer; border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
  white-space: nowrap; box-sizing: border-box; vertical-align: middle; transition: background 0.15s, border-color 0.15s, color 0.15s; }
.btn-principal { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-principal:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-secondaire, .btn-analyse, .btn-actualiser, .panneau-nav, .dropdown-menu .tout-aucun button, .btn-joindre, .btn-mois {
  background: #fff; color: var(--brand-dark); border: 1px solid var(--brand-border); }
.btn-secondaire:hover, .btn-analyse:hover, .btn-actualiser:hover, .panneau-nav:hover:not(:disabled), .dropdown-menu .tout-aucun button:hover, .btn-joindre:hover, .btn-joindre:focus-within, .btn-mois:hover:not(:disabled) {
  border-color: var(--brand); color: var(--brand); background: #fff; }
.btn-petit, .btn-analyse, .btn-actualiser, .panneau-nav, .dropdown-menu .tout-aucun button, .btn-joindre, .btn-mois {
  font-family: inherit; font-size: 13px; font-weight: 600; line-height: 1; height: var(--gv-bouton-petit-hauteur); min-height: 0; padding: 0 12px;
  border-radius: var(--gv-commande-rayon); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; box-sizing: border-box; }
.btn-lien, .btn-reinit { background: none; border: none; color: var(--brand-dark); font-family: inherit; font-weight: 600; padding: 0 4px; height: auto; min-height: 0;
  font-size: 13px; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.btn-lien:hover, .btn-reinit:hover { color: var(--brand); }
.btn:disabled, .panneau-nav:disabled, .btn-mois:disabled { opacity: 0.45; cursor: not-allowed; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 18px; }
.actions.gv-ecart-bas { margin-bottom: var(--espace-titre); }
.gv-sans-marge { margin: 0; }
.actions .droite { margin-left: auto; }
.plus { display: block; margin: 14px auto 0; }
@media (max-width: 520px) { .actions .btn { flex: 1 1 100%; } .actions .droite { margin-left: 0; } }

/* ═══ 7. TABLEAU ═══════════════════════════════════════════════════════════════════════════════════════════ */
.tbl { overflow-x: auto; }
table.ca-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ca-table th { text-align: left; font-size: 11px; font-weight: 600; color: #666; text-transform: uppercase; letter-spacing: 0.4px;
  background: var(--gv-fond-entete-tableau); padding: 9px 10px; border-bottom: 1px solid var(--gv-trait-chaud); white-space: nowrap; }
.ca-table td { padding: 8px 10px; border-bottom: 1px solid var(--gv-trait); white-space: nowrap; }
.ca-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.ca-table tr.tot td { font-weight: 700; border-top: 2px solid var(--gv-trait-chaud); border-bottom: none; }
.ca-table tr.cliquable { cursor: pointer; }
.ca-table tr.cliquable:hover td { background: #faf6f1; }
.ca-table td.texte-long { white-space: normal; min-width: 160px; }
.ca-table tr.alerte td:first-child { box-shadow: inset 4px 0 0 var(--gv-ko); }
.ca-table tr.vigilance td:first-child { box-shadow: inset 4px 0 0 var(--gv-vigilance); }
.ca-table input, .ca-table select { font-family: inherit; font-size: 15px; padding: 7px 9px; min-height: 40px; border: 1px solid var(--gv-bordure-champ); border-radius: 6px; width: 100%; min-width: 110px; }
.ca-table a { color: var(--brand-dark); font-weight: 600; text-decoration: none; }
.ca-table a:hover { text-decoration: underline; }
.ca-table td.cell-actions .btn + .btn { margin-left: 6px; }
.ca-table small { color: var(--gv-texte-doux); font-size: 11px; }
.ca-table .col-montant { text-align: right; font-variant-numeric: tabular-nums; }
.ca-table th.col-montant { box-sizing: border-box; white-space: normal; }
/* Tri : en-tête en bouton, flèche ▲ / ▼ (↕ discret sur les autres colonnes) */
.ca-table th.triable { cursor: pointer; user-select: none; white-space: normal; }
.tri-entete { font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; background: none; border: none; padding: 0; cursor: pointer; text-align: inherit; display: inline; white-space: inherit; }
.tri-entete:hover, .tri-entete:focus-visible, .ca-table th.triable:hover { color: var(--brand); }
.tri-entete .sens, .ca-table th .sens { margin-left: 2px; font-size: 8px; white-space: normal; }
.tri-entete .sens.inactif { opacity: .35; }
/* Ligne d'état : ce qui s'applique, en clair ; « Réinitialiser » si l'affichage a été changé */
.etat-tableau { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12px; color: #777; margin: 2px 0 6px; }
.vide { color: #777; font-size: 14px; padding: 18px; text-align: center; background: #faf8f5; border-radius: var(--gv-rayon); border: 1px dashed var(--gv-trait-chaud); }
/* Zone défilante (≈ 12 lignes), en-tête et total figés */
.tbl-defile { max-height: 470px; overflow: auto; border: 1px solid var(--gv-trait); border-radius: 6px; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.tbl-defile thead th { position: sticky; top: 0; z-index: 2; }
.tbl-defile tfoot td { position: sticky; bottom: 0; background: #fff; z-index: 2; box-shadow: 0 -1px 0 var(--gv-trait-chaud); }
/* Gabarit de colonnes fixe (lot 27) : largeurs par colonne, texte long coupé « … » ; téléphone : fiches */
@media (min-width: 641px) {
  table.ca-table.gabarit-fixe { table-layout: fixed; width: 100%; }
  table.ca-table.gabarit-fixe td { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
  table.ca-table.gabarit-fixe td.texte-long { white-space: nowrap; min-width: 0; }
  table.ca-table.gabarit-fixe th { white-space: normal; overflow-wrap: break-word; }
  table.ca-table.gabarit-fixe th.col-montant { white-space: nowrap; overflow: visible; }
  table.ca-table.gabarit-fixe.montants-replies th.col-montant { white-space: normal; }
  table.ca-table.gabarit-fixe td.cell-actions, table.ca-table.gabarit-fixe tr.tot td { overflow: visible; }
}
/* Écrans jusqu'à 1 400 px : tableaux resserrés, en-têtes et textes sur plusieurs lignes, montants entiers */
@media (max-width: 1400px) {
  .ca-table th { white-space: normal; }
  .ca-table th, .ca-table td { padding-left: 7px; padding-right: 7px; }
  .ca-table td:not(.num) { white-space: normal; }
  .ca-table td.num { white-space: nowrap; }
}
@media (max-width: 1100px) { .ca-table th, .ca-table td { padding-left: 4px; padding-right: 4px; } .ca-table td { font-size: 12.5px; } .ca-table th { letter-spacing: 0; padding-left: 3px; padding-right: 3px; } }
/* Téléphone : une fiche par ligne */
@media (max-width: 640px) {
  table.cartes-mobile thead { display: none; }
  table.cartes-mobile, table.cartes-mobile tbody, table.cartes-mobile tr, table.cartes-mobile td { display: block; width: 100%; }
  table.cartes-mobile tr { border: 1px solid var(--gv-trait-chaud); border-radius: var(--gv-rayon); margin-bottom: 10px; padding: 8px 10px; background: #fff; }
  table.cartes-mobile td { border: none; padding: 4px 0; white-space: normal; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  table.cartes-mobile td::before { content: attr(data-l); font-size: 11px; font-weight: 600; text-transform: uppercase; color: var(--gv-texte-doux); text-align: left; flex-shrink: 0; }
  table.cartes-mobile td.num { text-align: right; }
  table.cartes-mobile tr.tot { border-width: 2px; }
  table.cartes-mobile td.cell-actions { justify-content: flex-end; flex-wrap: wrap; } table.cartes-mobile td.cell-actions::before { display: none; }
  table.cartes-mobile tr.alerte td:first-child, table.cartes-mobile tr.vigilance td:first-child { box-shadow: none; }
  table.cartes-mobile tr.alerte { border-left: 5px solid var(--gv-ko); } table.cartes-mobile tr.vigilance { border-left: 5px solid var(--gv-vigilance); }
}

/* ═══ 8. GRAPHIQUE ═════════════════════════════════════════════════════════════════════════════════════════
   Carte blanche ; titre (h2) ; sous-titre (.chart-hint) ; zone du graphique ; légende en bas (variables § 0, routier-pages.js). */
.chart-container, .carte { background: var(--gv-fond-bloc); border-radius: var(--gv-rayon); box-shadow: var(--gv-ombre); padding: var(--gv-bloc-marge); margin-bottom: var(--espace-blocs); min-width: 0; }
.chart-container h2, .carte > h2 { font-size: var(--gv-titre-bloc); font-weight: 650; margin-bottom: 4px; color: var(--gv-texte-titre); }
.chart-hint { font-size: var(--gv-sous-titre); color: var(--gv-texte-doux); margin-bottom: 12px; }
.chart-hint.gv-ecart-haut { margin-top: var(--espace-titre); margin-bottom: 0; }
.chart-wrapper { position: relative; height: 300px; }
.chart-wrapper.large { height: 320px; }
.chart-wrapper.haut { height: 400px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--espace-blocs); margin-bottom: var(--espace-blocs); align-items: start; }
.grid-2 > .chart-container, .grid-2 > .carte { margin-bottom: 0; }
.chart-note { font-size: 12px; color: #8a5a00; margin-top: 10px; }
.chart-note:empty { display: none; }
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .chart-container, .carte { padding: 16px 14px; } .chart-wrapper, .chart-wrapper.large { height: 260px; } .chart-wrapper.haut { height: 300px; } }
.chargement-en-cours .chart-wrapper { position: relative; }
.chargement-en-cours .chart-wrapper::after { content: 'Chargement des chiffres…'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #6b625a; font-size: 13px; }

/* ═══ 9. CARTE DE COMPTE BANCAIRE ══════════════════════════════════════════════════════════════════════════
   Pastille de la banque + nom du compte (jamais coupé) ; banque, agence ou mention sur une 2e ligne, petit gris. */
.compte-bloc { display: inline-flex; flex-direction: column; min-width: 0; vertical-align: middle; }
.compte-nom { font-weight: 600; color: var(--gv-texte); }
.compte-agence { display: block; font-size: 11.5px; font-weight: 400; color: var(--gv-texte-doux); margin: 2px 0 0 18px; line-height: 1.3; }
.pastille-banque { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: 0; flex-shrink: 0; }
@media (max-width: 640px) { .compte-agence { margin-left: 0; } }

/* ═══ 10. INFOBULLE ════════════════════════════════════════════════════════════════════════════════════════
   Graphiques : Chart.js lit les variables --gv-infobulle-* (routier-pages.js › dessiner). Bulle HTML : même look. */
.gv-infobulle { background: var(--gv-infobulle-fond); color: var(--gv-infobulle-texte); font-size: var(--gv-infobulle-taille); border-radius: var(--gv-infobulle-rayon);
  padding: var(--gv-infobulle-marge); line-height: 1.4; box-shadow: 0 4px 12px rgba(0,0,0,0.15); }

/* ═══ 11. FENÊTRE ══════════════════════════════════════════════════════════════════════════════════════════
   Modale CENTRÉE (règle de la maison) : voile, boîte blanche, tête (titre + croix), corps, pied. Mêmes valeurs pour la fenêtre
   « Analyse », les fenêtres de saisie et de confirmation, « Points d'attention » et la visionneuse des pièces jointes. */
#analyseModal, .fenetre, .ep-fond, .modale-piece { position: fixed; inset: 0; background: var(--gv-voile); display: none; align-items: center; justify-content: center; padding: 20px; }
#analyseModal { z-index: 1000; } .fenetre { z-index: 1100; } .modale-piece { z-index: 1200; display: flex; } .ep-fond { z-index: 3000; }
#analyseModal.open, .fenetre.open, .ep-fond.open { display: flex; }
.modal-content, .fenetre-boite, .ep-boite, .modale-piece-boite { background: #fff; border-radius: var(--gv-fenetre-rayon); box-shadow: var(--gv-fenetre-ombre); width: 100%; max-height: 88vh;
  display: flex; flex-direction: column; overflow: hidden; color: var(--gv-texte); font-family: inherit; }
.modal-content { max-width: 900px; overflow-y: auto; }
.fenetre-boite { max-width: 640px; } .fenetre-boite.large { max-width: 860px; }
.ep-boite { max-width: 680px; }
.modale-piece-boite { width: min(980px, 100%); height: min(92vh, 1200px); max-height: none; }
.modal-header, .fenetre-tete, .ep-tete { padding: 16px 22px; border-bottom: 1px solid var(--gv-trait); display: flex; justify-content: space-between; align-items: center; gap: 12px;
  position: sticky; top: 0; background: #fff; z-index: 2; flex-shrink: 0; }
.modal-header h2, .fenetre-tete h2, .ep-tete h2, .panneau-tete h2 { font-size: var(--gv-titre-fenetre); font-weight: 700; color: var(--brand); margin: 0; }
.modal-body, .fenetre-corps, .ep-corps { padding: 18px 22px; overflow-y: auto; font-size: 14px; line-height: 1.5; }
.ep-corps { font-size: 13.5px; }
.fenetre-pied { padding: 14px 22px; border-top: 1px solid var(--gv-trait); display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; flex-shrink: 0; }
/* Croix de fermeture : une seule */
.modal-close, .ep-x, .panneau-fermer { width: 38px; height: 38px; border-radius: 50%; border: 1px solid transparent; background: none; font-size: 26px; line-height: 1; color: #777;
  cursor: pointer; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; padding: 0; font-family: inherit; }
.modal-close:hover, .modal-close:focus-visible, .ep-x:hover, .ep-x:focus-visible, .panneau-fermer:hover, .panneau-fermer:focus-visible { background: #f1f1f1; color: #333; outline: none; }
@media (max-width: 520px) { .fenetre { padding: 0; align-items: flex-end; } .fenetre-boite { max-height: 96vh; border-radius: var(--gv-fenetre-rayon) var(--gv-fenetre-rayon) 0 0; }
  .fenetre-pied .btn { flex: 1 1 100%; }
  .modal-header, .fenetre-tete, .ep-tete, .modal-body, .fenetre-corps, .ep-corps, .fenetre-pied { padding-left: 16px; padding-right: 16px; }
  .ep-fond { padding: 8px; } }
/* Contenu de la fenêtre « Analyse » */
.analyse-section { margin-bottom: 20px; padding: 16px 20px; border-radius: 10px; border-left: 4px solid; }
.analyse-section h3 { font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.analyse-section p, .analyse-section li { font-size: 13px; line-height: 1.6; color: var(--gv-texte); }
.analyse-section ul { margin-left: 18px; margin-top: 8px; }
.analyse-situation { background: #f5f0eb; border-left-color: #636363; } .analyse-situation h3 { color: #333; }
.analyse-vigilance { background: #fff4e5; border-left-color: var(--gv-vigilance); } .analyse-vigilance h3 { color: #c56000; }
.analyse-recommandation { background: #e8f5e9; border-left-color: var(--gv-ok); } .analyse-recommandation h3 { color: #1b5e20; }
.analyse-definition { background: white; border: 1px solid var(--gv-trait-chaud); border-left: 4px solid #636363; } .analyse-definition h3 { color: #444; }
/* Texte d'aide et erreur dans une fenêtre (fenêtre « Une remarque ? ») */
.fenetre-aide { color: #777; font-size: 12.5px; }
.ep-corps textarea { width: 100%; box-sizing: border-box; min-height: 120px; font: inherit; font-size: 15px; padding: 10px; border: 1px solid var(--gv-bordure-champ); border-radius: var(--gv-commande-rayon); resize: vertical; }
.ep-corps textarea:focus { outline: 2px solid var(--brand-halo); border-color: var(--brand); }
.ep-boite.etroite { max-width: 520px; }
/* Récapitulatif (fenêtre de confirmation) */
dl.recap { display: grid; grid-template-columns: minmax(120px, max-content) 1fr; gap: 6px 16px; margin: 10px 0; }
dl.recap dt { color: #777; font-size: 13px; } dl.recap dd { font-weight: 600; word-break: break-word; }
@media (min-width: 900px) { dl.recap.deux-col { grid-template-columns: minmax(150px, max-content) 1fr minmax(150px, max-content) 1fr; } }
.recap-alerte { background: #fff4e5; border-left: 4px solid var(--gv-vigilance); padding: 8px 12px; border-radius: 6px; margin-top: 10px; }
/* Fenêtre « Points d'attention » (entete-page.js) */
.ep-rien { margin: 4px 0; color: var(--gv-ok); font-weight: 600; } .ep-rien[hidden] { display: none; }
.ep-liste { display: flex; flex-direction: column; gap: 12px; }
.ep-liste > * { margin: 0 !important; }
.ep-liste > [data-attention="alerte"] { order: 1; } .ep-liste > [data-attention="info"] { order: 2; } .ep-liste > [data-attention="ok"] { order: 3; }
.ep-liste > [data-attention="alerte"]:not(.a-saisir):not(.chart-container) { background: #fdecea; border: 1px solid #f5c2bd; color: #b71c1c; border-radius: var(--gv-rayon); padding: 10px 14px; }
.ep-liste > [data-attention="info"]:not(.chart-container) { background: #fff8ed; border: 1px dashed #f0c997; color: #8a5a00; border-radius: var(--gv-rayon); padding: 10px 14px; font-size: 12.5px; line-height: 1.5; }
.ep-liste > [data-attention="ok"] { background: none; border: 0; padding: 0; color: var(--gv-ok); font-size: 12.5px; }
.ep-liste > .chart-container { box-shadow: none; border: 1px solid #f5c2bd; padding: 14px 16px; }
.ep-liste .alerte-calcul ul, .ep-liste [data-attention="alerte"] ul { margin: 4px 0 0 18px; }
/* Visionneuse des pièces jointes (relevés, justificatifs) */
.modale-piece .modal-header { padding: 14px 20px; }
.modale-piece .modal-header h2 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.modale-piece-outils { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.modale-piece-outils .zoom { display: inline-flex; align-items: center; gap: 4px; }
.modale-piece-outils .zoom button { width: var(--gv-bouton-petit-hauteur); height: var(--gv-bouton-petit-hauteur); border: 1px solid var(--brand-border); border-radius: var(--gv-commande-rayon); background: #fff; font-size: 18px; cursor: pointer; color: var(--brand-dark); }
.modale-piece-outils .zoom-val { font-size: 12px; color: #777; min-width: 44px; text-align: center; }
.modale-piece-outils .telecharger { font-size: 12px; color: var(--gv-texte-doux); text-decoration: none; }
.modale-piece-outils .telecharger:hover { color: var(--brand); text-decoration: underline; }
.modale-piece-corps { flex: 1; overflow: auto; background: #f1ede8; padding: 16px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.modale-piece-corps canvas { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.15); max-width: none; }
.modale-piece-corps img { max-width: 100%; height: auto; box-shadow: 0 2px 8px rgba(0,0,0,0.15); background: #fff; }
body.piece-ouverte { overflow: hidden; }
@media (max-width: 640px) { .modale-piece { padding: 10px; } .modale-piece-boite { width: 100%; height: 100%; border-radius: 10px; }
  .modale-piece .modal-header { padding: 10px 12px; gap: 8px; } .modale-piece .modal-header h2 { font-size: 14px; }
  .modale-piece-outils { gap: 6px; } .modale-piece-outils .zoom-val { min-width: 36px; } .modale-piece-corps { padding: 8px; } }

/* Panneau latéral (tiroir à droite, environ 3/4 de l'écran ; plein écran sous 760 px) */
.panneau-voile { position: fixed; inset: 0; background: rgba(40, 30, 25, 0.35); z-index: 900; }
.panneau { position: fixed; top: 0; right: 0; bottom: 0; width: min(1100px, 78vw); z-index: 901; background: var(--gv-fond-page); display: flex; flex-direction: column;
  box-shadow: -8px 0 28px rgba(0, 0, 0, 0.18); animation: panneau-entree 0.22s ease-out; }
@keyframes panneau-entree { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.panneau-tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px 12px 24px; background: #fff; border-bottom: 3px solid var(--brand); }
.panneau iframe { flex: 1; width: 100%; border: 0; background: var(--gv-fond-page); }
body.panneau-ouvert { overflow: hidden; }
.panneau-outils { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.panneau-rang { font-size: 12px; color: #777; min-width: 54px; text-align: center; font-variant-numeric: tabular-nums; }
.panneau-plein { font-size: 12.5px; color: #666; text-decoration: none; white-space: nowrap; }
.panneau-plein:hover { color: var(--brand); text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { .panneau { animation: none; } }
@media (max-width: 760px) { .panneau { width: 100vw; box-shadow: none; } }
@media (max-width: 700px) { .panneau-nav { padding: 0 8px; font-size: 12px; } .panneau-plein { font-size: 0; } .panneau-plein::before { content: '⤢'; font-size: 18px; } }

/* ═══ 12. FORMULAIRE ═══════════════════════════════════════════════════════════════════════════════════════ */
.carte h2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.carte h2 .btn { margin-left: auto; }
fieldset.groupe { border: none; margin: 0 0 18px 0; }
fieldset.groupe legend { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--gv-texte-doux); margin-bottom: 10px; }
.grille-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px 18px; }
.champ { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.champ.large { grid-column: 1 / -1; }
.champ label, .champ .etiquette { font-size: 13px; font-weight: 600; color: var(--gv-texte-champ); }
.champ label .oblig { color: var(--brand); }
.champ .aide { font-size: 12px; color: var(--gv-texte-doux); }
.champ input, .champ select, .champ textarea {
  font-family: inherit; font-size: 16px; padding: 10px 12px; min-height: 44px; border: 1px solid var(--gv-bordure-champ); border-radius: var(--gv-commande-rayon); background: #fff; color: #222; width: 100%; }
.champ textarea { min-height: 90px; resize: vertical; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: 2px solid var(--brand-halo); border-color: var(--brand); }
.champ input.invalide, .champ select.invalide, .champ textarea.invalide { border-color: var(--gv-ko); background: #fff8f7; }
.champ-erreur { color: var(--gv-ko); font-size: 12.5px; font-weight: 600; }
.champ-majuscules { text-transform: uppercase; }
.champ > .btn-lien { align-self: flex-start; }
.cases { display: flex; flex-wrap: wrap; gap: 8px; }
.cases label { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--gv-bordure-champ); border-radius: var(--gv-commande-rayon); padding: 9px 12px; min-height: 44px; font-weight: 500; cursor: pointer; background: #fff; }
.cases input { width: 18px; height: 18px; min-height: 0; accent-color: var(--brand); }
.cases label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); }
.boutons-choix { display: flex; flex-wrap: wrap; gap: 6px; }
.boutons-choix button { font-family: inherit; font-size: 15px; min-height: 44px; min-width: 56px; padding: 8px 12px; border-radius: var(--gv-commande-rayon); border: 1px solid var(--gv-bordure-champ); background: #fff; cursor: pointer; font-weight: 600; color: var(--gv-texte-champ); }
.boutons-choix button.actif { background: var(--brand); border-color: var(--brand); color: #fff; }
@media (max-width: 520px) { .carte { padding: 16px 14px; } }
/* Choix multiple avec recherche (chargés d'affaires d'une fiche) */
.cm { border: 1px solid var(--gv-bordure-champ); border-radius: var(--gv-commande-rayon); background: #fff; padding: 6px; }
.cm-etiquettes { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.cm-etiquette { display: inline-flex; align-items: center; gap: 4px; background: var(--brand-soft); color: var(--brand-dark); border: 1px solid var(--brand-border); border-radius: 14px; padding: 4px 4px 4px 10px; font-size: 13.5px; font-weight: 600; }
.cm-etiquette.inactif { background: #efece8; color: #6b625a; border-color: var(--gv-bordure); }
.cm-etiquette button { border: none; background: none; font-size: 17px; line-height: 1; cursor: pointer; color: inherit; width: 28px; height: 28px; border-radius: 50%; }
.cm-etiquette button:hover { background: rgba(0,0,0,0.08); }
.cm-recherche { position: relative; }
.cm-recherche input { border: none !important; outline: none; min-height: 40px !important; padding: 6px 8px !important; }
.cm-liste { position: absolute; left: 0; right: 0; top: 100%; z-index: 50; list-style: none; background: #fff; border: 1px solid var(--gv-bordure); border-radius: var(--gv-commande-rayon); box-shadow: 0 6px 18px rgba(0,0,0,0.12); max-height: 260px; overflow-y: auto; margin-top: 4px; }
.cm-liste li { padding: 11px 14px; cursor: pointer; font-size: 15px; }
.cm-liste li.actif, .cm-liste li:hover { background: var(--brand-soft); }
.cm-liste li.vide-cm { color: #999; cursor: default; }

/* ═══ 13. MESSAGES ET PASTILLES ════════════════════════════════════════════════════════════════════════════ */
.indispo { display: none; background: #fdecea; border: 1px solid #f5c2bd; color: var(--gv-ko); border-radius: var(--gv-rayon); padding: 12px 16px; font-size: 13px; margin-bottom: var(--espace-blocs); }
body.sans-donnees .indispo { display: block; }
.note-info { background: #fff8ed; border: 1px dashed #f0c997; color: #8a5a00; border-radius: var(--gv-rayon); padding: 10px 14px; font-size: 12.5px; line-height: 1.5; margin: 0 0 var(--espace-blocs) 0; }
.note-info:empty { display: none; }
.note-info.gv-ecart-haut { margin-top: var(--espace-titre); }
.alerte-calcul { background: #fdecea; border: 1px solid #f5c2bd; color: #b71c1c; border-radius: var(--gv-rayon); padding: 10px 14px; font-size: 13px; line-height: 1.5; margin: 0 0 var(--espace-blocs) 0; }
.alerte-calcul:empty { display: none; }
.alerte-calcul ul { margin: 4px 0 0 18px; }
.message { display: none; }
.message-succes, .message-erreur, .message-info { display: flex; gap: 12px; align-items: flex-start; border-radius: var(--gv-rayon); padding: 14px 16px; margin: 0 0 var(--espace-blocs) 0; font-size: 14px; line-height: 1.5; }
.message-succes { background: #e8f5e9; border: 1px solid #a5d6a7; color: #1b5e20; }
.message-erreur { background: #fdecea; border: 1px solid #f5c2bd; color: #b71c1c; }
.message-info { background: #fff8ed; border: 1px solid #f0c997; color: #8a5a00; }
.message span { flex: 1; } .message button { background: none; border: none; font-size: 22px; line-height: 1; cursor: pointer; color: inherit; padding: 0 4px; }
.texte-vigilance { color: #b35c00; }
.pastille { display: inline-block; padding: 3px 9px; border-radius: 10px; font-size: 12px; font-weight: 600; white-space: nowrap; background: #eee; color: #555; border: 1px solid transparent; }
.p-encours { background: #e1eeec; color: #0b7366; } .p-attente { background: #e6f1fb; color: #1f5f99; }
.p-terminee { background: #efece8; color: #6b625a; } .p-refusee { background: #fdecea; color: #b71c1c; }
.p-ok { background: #e8f5e9; color: #1b5e20; } .p-alerte { background: #fdecea; color: #b71c1c; } .p-vigilance { background: #fff4e5; color: #b35c00; }
.profil-badge { display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; color: #6b625a; border: 1px solid #d9cfc2; border-radius: 12px; padding: 3px 10px; white-space: nowrap; margin-left: 8px; }
small.ini { font-size: 10.5px; color: #999; font-weight: 500; letter-spacing: 0.3px; margin-left: 2px; }
.ca-table tr.tot td small { display: block; white-space: normal; max-width: 170px; margin-left: auto; font-weight: 400; font-size: 10.5px; line-height: 1.3; color: #999; }
.deduit { font-style: italic; color: #999; white-space: nowrap; }
.texte-preserve { white-space: pre-wrap; }

/* ═══ 14. PIED ET CHARGEMENT ═══════════════════════════════════════════════════════════════════════════════ */
footer.pied { margin-top: 40px; padding: 16px 0 8px 0; border-top: 1px solid var(--gv-trait-chaud); font-size: 11px; color: var(--gv-texte-doux); line-height: 1.7; }
.chargement { color: var(--gv-texte-doux); font-size: 13px; padding: 30px 0; text-align: center; }
.barre-chargement { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1000; overflow: hidden; background: var(--brand-soft); pointer-events: none; }
.barre-chargement::before { content: ''; position: absolute; top: 0; bottom: 0; left: -40%; width: 40%; background: var(--brand); animation: barre-chargement 1.2s ease-in-out infinite; }
@keyframes barre-chargement { from { left: -40%; } to { left: 100%; } }
@media (prefers-reduced-motion: reduce) { .barre-chargement::before { animation: none; left: 0; width: 100%; opacity: 0.6; } }
