/* Base badge styles */

.badge-total {
    background-color: #0056b3 !important;  /* Bleu plus foncé */
    color: white;
    font-size: var(--font-sm);         /* Légèrement plus grand */
    font-weight: 400;         /* Plus gras */
    padding: 0.3em 1em;     /* Plus de padding */
    border-radius: 0.8rem;    /* Coins arrondis */
    line-height: 1;
}

.badge {
  align-items: center;
  border-radius: var(--border-radius-lg);
  display: inline-flex;
  font-size: var(--font-xs);
  font-weight: 400;
  gap: 0.1rem;
  max-height: 1.875rem;
  line-height: 1.2rem;
  padding: var(--spacing-xxs) var(--spacing-xs);
}

.badge .material-icons {
  font-size: var(--font-base);
}

.badge.bg-primary,
.badge.bg-warning,
.badge.bg-success,
.badge.bg-dark {
  color: var(--white-color);
}

.badge.bg-blue-light {
  background-color: var(--bg-primary-light);
  color: var(--primary-color);
}

.badge.radius-0 {
  border-radius: 0;
}

/* Badge with icon */
.badge-icon {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xxs);
}

.badge-icon .material-icons {
  font-size: var(--font-sm);
}

/* Ajouts pour couvrir tous les besoins */

/* Badge avec animation de pulsation */
.badge-pulse {
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
    0%, 100% { 
        transform: scale(1); 
        opacity: 1;
    }
    50% { 
        transform: scale(1.05); 
        opacity: 0.9;
    }
}

/* Badge pour les compteurs */
.badge-counter {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    min-width: 24px;
    border-radius: 1rem;
}

/* Variations de couleur pour les filtres */
.badge.bg-region {
    background-color: #dc3545;
    color: white;
}

.badge.bg-structure {
    background-color: #fd7e14; 
    color: white;
}

.badge.bg-site {
    background-color: #198754;
    color: white;
}
