.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 500;
  border-radius: var(--r-full);
  white-space: nowrap;
  line-height: 1.4;
}

.badge-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

/* Status variants */
.badge-ouvert {
  background: var(--success-bg);
  color: var(--success-text);
}

.badge-attente {
  background: var(--warning-bg);
  color: var(--warning-text);
}

.badge-pause {
  background: var(--purple-bg);
  color: var(--purple-text);
}

.badge-cloture {
  background: var(--gray-100);
  color: var(--gray-600);
}

.badge-archive {
  background: var(--gray-100);
  color: var(--gray-500);
}

.badge-nouveau {
  background: var(--info-bg);
  color: var(--info-text);
}

.badge-danger {
  background: var(--danger-bg);
  color: var(--danger-text);
}

/* Type badge — neutre (maquette Bazyl) */
.b-type {
  display: inline-block;
  padding: 2px 8px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: var(--r-sm);
  background: transparent;
  border: 1px solid var(--gray-200);
  color: var(--gray-600);
  white-space: nowrap;
}

/* Type badge — variante colorée (non utilisée sur la liste dossiers) */
.badge-type {
  display: inline-block;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 500;
  border-radius: var(--r-sm);
  background: var(--brand-primary-light);
  color: var(--brand-primary);
  white-space: nowrap;
}

/* Avatar */
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 600;
  background: var(--brand-primary-light);
  color: var(--brand-primary);
  flex-shrink: 0;
  line-height: 1;
}

.avatar-dark {
  background: rgba(255,255,255,.12);
  color: #fff;
}

.avatar-sm {
  width: 26px;
  height: 26px;
  font-size: 11px;
}

.avatar-lg {
  width: 40px;
  height: 40px;
  font-size: 14px;
}

/* Alias courts — maquette Bazyl (.av, .av-sm, .av-lg) */
.av,
.av-sm,
.av-lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--brand-primary-light);
  color: var(--brand-primary);
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1;
}
.av    { width: 32px; height: 32px; font-size: 12px; }
.av-sm { width: 26px; height: 26px; font-size: 10px; }
.av-lg { width: 40px; height: 40px; font-size: 14px; }
