/*
 * Kœurflor — Charte : puces, badges, cartes et statistiques
 * Auteur : Jacks Ngalangala
 */
/* --- Puces et badges --- */
.puce {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
  line-height: 16px;
  background: var(--surface-alt);
  color: var(--ink);
  max-width: 100%;
  white-space: nowrap;
}
.puce-long {
  white-space: normal;
}
.boutique-communes {
  overflow-wrap: anywhere;
}
.defile {
  overflow-x: auto;
}
.puce-surprise {
  background: var(--petal-pale);
  color: var(--petal-text);
}
.puce-succes {
  background: var(--success-soft);
  color: var(--success-texte);
}
.puce-attente {
  background: var(--warning-soft);
  color: var(--warning);
}
.puce-danger {
  background: var(--danger-soft);
  color: var(--danger);
}
.puce-marque {
  background: var(--brand-soft);
  color: var(--brand);
}
.compteur {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.compteur-alerte {
  background: var(--petal-text);
  color: var(--sur-vif);
}
.compteur-doux {
  background: var(--petal-pale);
  color: var(--petal-text);
}
.etiquette-marque {
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--petal-pale);
  color: var(--petal-text);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

/* --- Cartes et statistiques --- */
.carte {
  background: var(--surface);
  border: 1px solid var(--sable);
  border-radius: 20px;
  padding: 20px;
}
.carte-titre {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.carte-titre-cadre {
  padding: 18px 20px 0;
}
.carte-alerte {
  background: var(--petal-soft);
}
.stat {
  background: var(--surface);
  border: 1px solid var(--sable);
  border-radius: 20px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-titre {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
}
.stat-valeur {
  font: 800 28px/34px var(--display);
  font-variant-numeric: tabular-nums;
}
.stat-valeur.alerte {
  color: var(--petal-text);
}
.stat-valeur.marque {
  color: var(--brand-strong);
}
.stat-detail {
  font-size: 13px;
  color: var(--ink-muted);
}
.stat-alerte {
  background: var(--petal-soft);
}
