/* =====================================================
   charte-components.css — bibliothèque de composants de la charte (étape 0.4).
   Préfixe ch- : évite toute collision avec styles.css (.btn, .card, .tab… y sont déjà utilisés).
   Couleurs uniquement via tokens (kidvie-tokens.css). Graisses 400 et 500 seulement.
   Icônes : Tabler contour (classe ti ti-*), jamais de emoji.
   ===================================================== */

.ch-root {
  --ch-line: var(--border-tertiary, #E7E4DC);
  --ch-line-2: #F0EEE8;
  --ch-ink: var(--text-primary, #1F1E1A);
  --ch-ink-2: #5F5E5A;
  --ch-ink-3: #8C8A82;
  --ch-card: #FFFFFF;
  --ch-tap: var(--tap, 44px);
  --ch-r-card: 12px;
  --ch-r-el: 9px;
  font-family: var(--kv-font-ui, 'Nunito', system-ui, sans-serif);
  color: var(--ch-ink);
  font-weight: 400;
}
.ch-root *, .ch-root *::before, .ch-root *::after { box-sizing: border-box; }
.ch-root b, .ch-root strong, .ch-root h1, .ch-root h2, .ch-root h3, .ch-root h4, .ch-root th { font-weight: 500; }

/* ---------- Boutons ---------- */
.ch-btn {
  min-height: 40px; padding: 0 16px; border-radius: var(--ch-r-el); border: 1px solid transparent;
  font: inherit; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  cursor: pointer; white-space: nowrap; background: transparent; color: var(--ch-ink-2);
}
.ch-btn:focus-visible { outline: 2px solid var(--brand-200, #A6DCC5); outline-offset: 2px; }
.ch-btn--primary { background: var(--brand-action, #0F6E56); color: var(--on-brand, #fff); }
.ch-btn--primary:hover { filter: brightness(0.93); }
.ch-btn--secondary { background: var(--ch-card); color: var(--brand-ink, #0F6E56); border-color: var(--brand-200, #A6DCC5); }
.ch-btn--secondary:hover { background: var(--brand-50, #E1F5EE); }
.ch-btn--ghost:hover { background: var(--neutral-50, #F1EFE8); }
.ch-btn--danger { background: var(--danger, #A32D2D); color: #fff; }
.ch-btn--sm { min-height: 32px; padding: 0 12px; font-size: 13px; }
.ch-btn--lg { min-height: var(--ch-tap); padding: 0 20px; }
.ch-btn[disabled] {
  background: var(--neutral-50, #F1EFE8); color: var(--ch-ink-3); border: 1px dashed var(--ch-line);
  cursor: not-allowed; opacity: 0.6;
}
.ch-btn[disabled]:hover { filter: none; background: var(--neutral-50, #F1EFE8); }
.ch-iconbtn {
  width: var(--ch-tap); height: var(--ch-tap); border-radius: var(--ch-r-el); border: 1px solid var(--ch-line);
  background: var(--ch-card); color: var(--ch-ink-2); display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.ch-iconbtn:focus-visible { outline: 2px solid var(--brand-200, #A6DCC5); }

/* ---------- Badges ---------- */
.ch-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 500; padding: 2px 10px; border-radius: 999px; white-space: nowrap; }
.ch-badge--brand { background: var(--brand-2-50, #E6F1FB); color: var(--brand-2-ink, #0C447C); }
.ch-badge--danger { background: var(--danger-50, #FCEBEB); color: var(--danger, #A32D2D); }
.ch-badge--warn { background: var(--warn-50, #FAEEDA); color: var(--warn, #854F0B); }
.ch-badge--ok { background: var(--ok-50, #E1F5EE); color: var(--ok, #0F6E56); }
.ch-badge--ia { background: var(--ia-50, #EEEDFE); color: var(--ia, #534AB7); }
.ch-badge--neutral { background: var(--neutral-50, #F1EFE8); color: var(--neutral, #5F5E5A); }

/* ---------- Onglets, segments, pastilles ---------- */
.ch-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--ch-line); }
.ch-tabs::-webkit-scrollbar { display: none; }
.ch-tab {
  min-height: var(--ch-tap); padding: 0 14px; border: 0; background: none; font: inherit; color: var(--ch-ink-2);
  border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px;
}
.ch-tab[aria-selected="true"] { color: var(--brand-ink, #0F6E56); border-bottom-color: var(--brand, #0F6E56); font-weight: 500; }
.ch-count { font-size: 11px; background: var(--neutral-50, #F1EFE8); color: var(--ch-ink-2); border-radius: 999px; padding: 0 7px; line-height: 18px; }
.ch-count--danger { background: var(--danger, #A32D2D); color: #fff; }
.ch-tab[aria-selected="true"] .ch-count { background: var(--brand-action, #0F6E56); color: var(--on-brand, #fff); }

.ch-seg { display: inline-flex; border: 1px solid var(--ch-line); border-radius: var(--ch-r-el); overflow: hidden; background: #fff; }
.ch-seg button {
  all: unset; cursor: pointer; padding: 0 12px; min-height: 34px; display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--ch-ink-2); white-space: nowrap;
}
.ch-seg button[aria-pressed="true"] { background: var(--brand-50, #E1F5EE); color: var(--brand-ink, #0F6E56); font-weight: 500; }

.ch-pill {
  min-height: 36px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--ch-line); background: var(--ch-card);
  font: inherit; font-size: 13px; color: var(--ch-ink-2); display: inline-flex; align-items: center; gap: 6px; cursor: pointer; white-space: nowrap;
}
.ch-pill[aria-pressed="true"] { background: var(--brand-50, #E1F5EE); border-color: var(--brand-200, #A6DCC5); color: var(--brand-ink, #0F6E56); font-weight: 500; }

/* ---------- Champs ---------- */
.ch-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ch-field__label { font-size: 12px; font-weight: 500; color: var(--ch-ink-2); }
.ch-field__help { font-size: 12px; color: var(--ch-ink-3); }
.ch-input {
  min-height: var(--ch-tap); border: 1px solid var(--ch-line); border-radius: var(--ch-r-el); padding: 0 12px;
  font: inherit; background: var(--ch-card); color: var(--ch-ink); width: 100%;
}
.ch-input:focus { outline: 2px solid var(--brand-200, #A6DCC5); border-color: var(--brand, #0F6E56); }

/* ---------- Cartes, KPI, tuiles de module ---------- */
.ch-card { background: var(--ch-card); border: 1px solid var(--ch-line); border-radius: var(--ch-r-card); }
.ch-kpi { padding: 14px 16px; display: grid; gap: 4px; }
.ch-kpi__label { font-size: 12px; color: var(--ch-ink-2); display: flex; align-items: center; gap: 6px; }
.ch-kpi__value { font-size: 26px; font-weight: 500; }
.ch-kpi__sub { font-size: 12px; color: var(--ch-ink-3); }
.ch-kpi--zero { opacity: 0.55; }

.ch-todo {
  display: grid; gap: 4px; padding: 12px 14px; background: var(--ch-card); border: 1px solid var(--ch-line);
  border-left: 4px solid var(--ch-line); border-radius: var(--ch-r-card); cursor: pointer; text-align: left; font: inherit; color: var(--ch-ink);
}
.ch-todo--urgent { border-left-color: var(--danger, #A32D2D); }
.ch-todo--attente { border-left-color: var(--warn, #854F0B); }
.ch-todo--suivi { border-left-color: var(--brand, #0F6E56); }
.ch-todo--ok { opacity: 0.55; cursor: default; border-left-color: var(--ch-line); }
.ch-todo__label { font-size: 13px; color: var(--ch-ink-2); }
.ch-todo__count { font-size: 22px; font-weight: 500; }

/* ---------- Avatar ---------- */
.ch-avatar {
  width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 500; flex: none;
}
.ch-avatar--sm { width: 28px; height: 28px; font-size: 11px; }
.ch-avatar--lg { width: 44px; height: 44px; font-size: 15px; }

/* ---------- Tableau (tri + pagination obligatoires) ---------- */
.ch-tblwrap { width: 100%; overflow-x: auto; }
.ch-tbl { width: 100%; border-collapse: collapse; }
/* En-têtes / cellules : look de référence porté par .ps-table.fd-table (styles.css) */
.ch-tbl th button { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.ch-tbl th[aria-sort] button { color: var(--accent-600); }
.ch-tbl td { vertical-align: middle; }
.ch-trunc { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.ch-pager { display: flex; align-items: center; gap: 8px; justify-content: space-between; padding: 10px 12px; font-size: 13px; color: var(--ch-ink-2); flex-wrap: wrap; }
.ch-pager__pages { display: flex; gap: 4px; flex-wrap: wrap; }
.ch-pager__pages button {
  min-width: 36px; height: 36px; border-radius: var(--ch-r-el); border: 1px solid var(--ch-line); background: var(--ch-card); font: inherit; cursor: pointer;
}
.ch-pager__pages button[aria-current="page"] { background: var(--brand-action, #0F6E56); color: var(--on-brand, #fff); border-color: var(--brand-action, #0F6E56); }
.ch-pager__pages button:disabled { opacity: 0.45; cursor: not-allowed; }
/* Variante cartes sous 640 px : le tableau disparaît, les lignes deviennent des cartes */
.ch-tblcards { display: none; gap: 8px; }
@media (max-width: 639px) {
  .ch-tblwrap--cards .ch-tbl { display: none; }
  .ch-tblwrap--cards .ch-tblcards { display: grid; }
  .ch-pager__size { display: none; }
}

/* ---------- État vide ---------- */
/* Repli explicite : les tokens --ch-* sont posés sous .ch-root, que les écrans n'enveloppent pas. */
.ch-empty {
  background: var(--ch-card, #FFFFFF); border: 1px dashed var(--ch-line, #E7E4DC); border-radius: var(--ch-r-card, 12px);
  padding: 40px 20px; text-align: center; color: var(--ch-ink-2, #5F5E5A);
}
.ch-empty > .ti { font-size: 30px; color: var(--ch-ink-3, #8C8A82); }
.ch-empty__icon { font-size: 30px; color: var(--ch-ink-3, #8C8A82); }
.ch-empty__title { margin: 8px 0 4px; color: var(--ch-ink, #1F1E1A); font-size: 15px; font-weight: 500; }
.ch-empty__text { font-size: 13px; }

/* ---------- En-têtes ---------- */
.ch-pagehead { border-radius: var(--ch-r-card); padding: 20px 24px; color: var(--on-brand, #fff); background: var(--hdr-bg, var(--brand, #0F6E56)); position: relative; overflow: hidden; }
.ch-pagehead__title { font-size: 20px; font-weight: 500; margin: 0; }
.ch-pagehead__sub { margin: 2px 0 0; opacity: 0.9; font-size: 13px; }
.ch-pagehead--sensitive { background: var(--ch-card) !important; color: var(--ch-ink); border: 1px solid var(--ch-line); border-left: 4px solid var(--danger, #A32D2D); }
.ch-fiche { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--hdr-bg, var(--brand, #0F6E56)); color: var(--on-brand, #fff); position: sticky; top: 0; z-index: 10; }
.ch-fiche__name { font-size: 16px; font-weight: 500; margin: 0; }
.ch-fiche__meta { font-size: 12px; opacity: 0.9; }

/* ---------- Tiroir (une seule modale pour tout) ---------- */
.ch-drawer-veil { position: fixed; inset: 0; background: rgba(31, 30, 26, 0.35); z-index: 1000; }
.ch-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(520px, 100vw); z-index: 1001;
  background: var(--ch-card, #FFFFFF); display: flex; flex-direction: column; box-shadow: -8px 0 24px rgba(31, 30, 26, 0.12);
}
.ch-drawer__head { background: linear-gradient(135deg, var(--accent) 0%, var(--accent-800) 100%); color: #fff; padding: 16px 18px; display: grid; gap: 4px; }
.ch-drawer__head--sensitive { background: var(--ch-card, #FFFFFF); color: var(--ch-ink, var(--text-primary, #1F1E1A)); border-left: 4px solid var(--danger, #A32D2D); }
.ch-drawer__kicker { font-size: 12px; opacity: 0.85; }
.ch-drawer__title { font-size: 18px; font-weight: 500; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-drawer__sub { font-size: 13px; opacity: 0.9; }
.ch-drawer__tools { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.ch-drawer__body { padding: 18px; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; flex: 1; min-height: 0; }
.ch-drawer__foot { padding: 12px 18px; border-top: 1px solid var(--ch-line, var(--border-tertiary, #E7E4DC)); display: flex; justify-content: flex-end; gap: 8px; }
.ch-drawer__section { border: 1px solid var(--ch-line, var(--border-tertiary, #E7E4DC)); border-radius: var(--ch-r-el, 9px); padding: 12px; }
.ch-drawer__section h4 { font-size: 12px; color: var(--ch-ink-2); margin: 0 0 8px; }
.ch-kv { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 6px 12px; margin: 0; font-size: 13px; }
.ch-kv dt { color: var(--ch-ink-2); }
.ch-kv dd { margin: 0; }
@media (max-width: 639px) { .ch-drawer { width: 100vw; } }
@media (min-width: 640px) and (max-width: 1023px) { .ch-drawer { width: min(480px, 100vw); } }

/* ---------- Barre de contexte (Ville / Crèche / Année) ---------- */
.ch-ctx { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 10px; border: 1px solid var(--ch-line); border-radius: var(--ch-r-el); background: var(--ch-card); font: inherit; font-size: 13px; color: var(--ch-ink); }

/* ---------- Bandeau de module (bulles) ---------- */
.ch-bubbles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.ch-bubbles span { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, 0.12); }

/* ---------- Icônes de module (tuile pastel, décorative, jamais un statut) ----------
   Repris de la maquette (reference/wl/icons.css), couleurs = tokens de la marque pour l'option. */
.mi {
  --c1: #EEF0EA; --c2: #D6D2C4; --c3: #5F5E5A; --s: 36px;
  width: var(--s); height: var(--s); flex: none; border-radius: calc(var(--s) * 0.3); position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; color: var(--c3);
  background: linear-gradient(150deg, color-mix(in srgb, var(--c1) 55%, #fff) 0%, var(--c1) 100%);
  border: 1px solid color-mix(in srgb, var(--c2) 70%, #fff);
  box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--c2) 45%, transparent), 0 1px 2px rgba(31, 30, 26, 0.05);
}
.mi::before { content: ""; position: absolute; width: 62%; height: 62%; right: -8%; bottom: -10%; border-radius: 46% 54% 40% 60% / 55% 45% 55% 45%; background: var(--c2); opacity: 0.5; }
.mi::after { content: ""; position: absolute; width: 20%; height: 20%; left: 16%; top: 14%; border-radius: 50%; background: #fff; opacity: 0.7; }
.mi > * { position: relative; z-index: 1; }
.mi--sm { --s: 28px; }
.mi--lg { --s: 48px; }
.mi--rh { --c1: #E3F4EC; --c2: #A8DCC4; --c3: #1F7A5C; }
.mi--reseau { --c1: #E4EFFB; --c2: #A9C8EE; --c3: #2B5A9E; }
.mi--famille { --c1: #FCEBE2; --c2: #F2BFA5; --c3: #A9502F; }
.mi--creche { --c1: #FDF2D6; --c2: #F3D48A; --c3: #8A5A0E; }
.mi--fact { --c1: #DFF2F1; --c2: #9FD6D2; --c3: #1E6E6A; }
.mi--infos { --c1: #FCE8EF; --c2: #F2B6CB; --c3: #9E3A62; }
.mi--kidy { --c1: #EEEDFE; --c2: #C9C4F5; --c3: #534AB7; }

/* Carte « à traiter » sans élément : grisée (maquette : « grisée à 0 »). */
.kid-task-card.ch-task--zero { background: var(--neutral-50, #F1EFE8); }
.kid-task-card.ch-task--zero .kid-task-card__title { color: var(--ch-ink-2); }

/* ---------- Barre latérale : pastille pleine par module, icône blanche (variante A validée) ----------
   Couleur portée par data-mod sur le groupe ; --gs = fond clair du groupe ouvert / actif. */
.axe[data-mod="rh"] { --gc: #1F9D74; --gs: #E1F5EE; }
/* RH : la pastille suit l'accent du module (menthe par défaut, personnalisable par client). */
.app[data-module="rh"] .axe[data-mod="rh"] { --gc: var(--accent-600); --gs: var(--accent-50); }
.axe[data-mod="ops"] { --gc: #3A7BD5; --gs: #E6F1FB; }
/* Pilotage Réseau : la pastille suit l'accent du module (indigo par défaut, personnalisable par client). */
.app[data-module="ops"] .axe[data-mod="ops"] { --gc: var(--accent-600); --gs: var(--accent-50); }
.axe[data-mod="familles"] { --gc: #E8772E; --gs: #FCEBE2; }
/* Pôle Famille : la pastille suit l'accent du module (terracotta par défaut, personnalisable par client). */
.app[data-module="familles"] .axe[data-mod="familles"] { --gc: var(--accent-600); --gs: var(--accent-50); }
.axe[data-mod="creche"] { --gc: #E0A21B; --gs: #FAEEDA; }
/* Crèche : la pastille suit l'accent du module (ciel par défaut, personnalisable par client). */
.app[data-module="creche"] .axe[data-mod="creche"] { --gc: var(--accent-600); --gs: var(--accent-50); }
.axe[data-mod="facturation"] { --gc: #13A3A0; --gs: #DFF2F1; }
/* Facturation : la pastille suit l'accent du module (terracotta par défaut, personnalisable par client). */
.app[data-module="facturation"] .axe[data-mod="facturation"] { --gc: var(--accent-600); --gs: var(--accent-50); }
.axe[data-mod="facturation-entreprise"] { --gc: #A07A3C; --gs: #F6EEDF; }
/* Facturation Entreprise : la pastille suit l'accent du module (soleil par défaut, personnalisable par client). */
.app[data-module="facturation-entreprise"] .axe[data-mod="facturation-entreprise"] { --gc: var(--accent-600); --gs: var(--accent-50); }
.axe[data-mod="infos"] { --gc: #D6457A; --gs: #FCE8EF; }
/* Infos : sur les pages Infos (module actu), le groupe suit la couleur de la page, comme les autres modules. Ailleurs, il garde son rose. */
.app[data-module="actu"] .axe[data-mod="infos"] { --gc: var(--accent-600); --gs: var(--accent-50); }
/* Infos : le groupe garde son rose, mais l'entrée active suit la couleur de la page Actualités (accent du module actu). */
.app[data-module="actu"] .axe[data-mod="infos"] .axe__item.sidebar__item--active { --gc: var(--accent-600); --gs: var(--accent-50); }
.axe[data-mod="kidvie-commercial"] { --gc: #6B6A63; --gs: #F1EFE8; }
/* Commercial (Facturation KidVie) : la pastille suit l'accent du module (lavande par défaut, personnalisable par client). */
.app[data-module="kidvie-commercial"] .axe[data-mod="kidvie-commercial"] { --gc: var(--accent-600); --gs: var(--accent-50); }
.axe[data-mod="analyses"] { --gc: #5B5BD6; --gs: #E8E8FB; }
.axe[data-mod="aide"] { --gc: #185FA5; --gs: #E6F1FB; }
.app[data-module="aide"] .axe[data-mod="aide"] { --gc: var(--accent-600); --gs: var(--accent-50); }
.axe[data-mod="ia"] { --gc: #534AB7; --gs: #EEEDFE; }
/* Kidy IA : la pastille suit l'accent du module ia (lavande par défaut). */
.app[data-module="ia"] .axe[data-mod="ia"] { --gc: var(--accent-600); --gs: var(--accent-50); }
/* Analyses : la pastille suit l'accent indigo du module (personnalisable par client). */
.app[data-module="analyses"] .axe[data-mod="analyses"] { --gc: var(--accent-600); --gs: var(--accent-50); }
.axe { --gc: #8C8A82; --gs: #F1EFE8; }
.axe .axe__icon { width: 30px; height: 30px; border: 0; border-radius: 9px; background: var(--gc); color: #fff; font-size: 15px; box-shadow: none; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.axe .axe__icon i { color: #fff; }
.axe.axe--has-active .axe__icon, .axe.axe--open .axe__icon { background: var(--gc); border-color: transparent; color: #fff; }
.axe.axe--has-active .axe__header, .axe.axe--open .axe__header { background: var(--gs); }
.axe .axe__item.sidebar__item--active { background: var(--gs); color: var(--ch-ink); font-weight: 500; box-shadow: inset 2px 0 0 var(--gc); }

/* ---------- Corps du tiroir : fonds clairs en triade dérivée de la couleur du module (option A) ----------
   --mod = couleur du module (client), --brand-2 = secondaire. Sensible : aucun fond coloré. */
.ch-drawer__section--t0 { background: color-mix(in srgb, var(--mod) 12%, #fff); border-color: color-mix(in srgb, var(--mod) 22%, #fff); }
.ch-drawer__section--t1 { background: color-mix(in srgb, var(--mod) 22%, #fff); border-color: color-mix(in srgb, var(--mod) 34%, #fff); }
.ch-drawer__section--t2 { background: color-mix(in srgb, var(--brand-2, #185FA5) 12%, #fff); border-color: color-mix(in srgb, var(--brand-2, #185FA5) 22%, #fff); }
.ch-drawer__section h4 { color: var(--ch-ink); }

/* ---------- Salariés (RH) : barre d'actions, cartes mobiles, pager ---------- */
.ch-sal-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: nowrap; white-space: nowrap; justify-content: flex-end; flex: 0 0 auto; }
.ch-sal-cards { display: none; gap: 8px; }
.ch-sal-card { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--card, #fff); border: 1px solid var(--border-tertiary, #E7E4DC); border-radius: 12px; cursor: pointer; min-height: 44px; }
.ch-sal-card__body { display: grid; gap: 2px; min-width: 0; flex: 1; }
.ch-sal-card__name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-sal-card__meta { font-size: 12px; color: var(--ch-ink-2, #5F5E5A); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-sal-card__statut { font-size: 12px; color: var(--ch-ink-2, #5F5E5A); flex: none; }
.ch-sal-pager { margin-top: 16px; }
@media (max-width: 639px) {
  .ch-sal-actions { margin-left: 0; width: 100%; flex-wrap: nowrap; flex-direction: column; align-items: stretch; }
  .ch-sal-actions > * { width: 100%; justify-content: center; }
  .ch-sal-cards { display: grid; }
  .ch-sal-table { display: none; }
}

/* ---------- Temps & Absences (RH) : bandeau de compteurs (rh-03) ---------- */
.evp__stats:not(.evp__stats--compact) { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; overflow: visible; flex-wrap: wrap; }
.evp__stats:not(.evp__stats--compact) .stat { background: var(--card, #fff); border: 1px solid var(--border-tertiary, #E7E4DC); border-radius: 12px; padding: 12px 14px; min-width: 0; }
.evp__stats .ch-stat__label { display: flex; align-items: center; gap: 8px; text-transform: none; letter-spacing: 0; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; color: var(--ch-ink-2, #5F5E5A); }
.evp__stats .ch-stat__label .mi { flex: none; }
.evp__stats .ch-stat__label .mi i { font-size: 14px; }
.evp__stats .stat__value { font-size: 22px; font-weight: 500; }

/* Pastille d'état (remplace les emojis 🟢🟠🔴…) — couleurs = familles sémantiques KIDVIE */
.st-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; vertical-align: middle; flex: none; background: var(--sable-400); }
.st-dot--ok { background: var(--menthe-600); }
.st-dot--warn { background: var(--soleil-600); }
.st-dot--danger { background: var(--framb-600); }
.st-dot--info { background: var(--ciel-600); }
.st-dot--lav { background: var(--lav-600); }
.st-dot--neutral { background: var(--sable-400); }
