/* Avatar — les initiales d'une personne (rond) ou d'une organisation (`--square`).
   Référence : docs/design-system.md § Composants. */

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-circle);
  background: var(--avatar-color, var(--color-primary));
  color: var(--color-text-inverse);
  font-size: var(--text-12);
  font-weight: var(--weight-semibold);
  line-height: normal;
}

.avatar--sm {
  width: 24px;
  height: 24px;
  font-size: var(--text-11);
}

.avatar--lg {
  width: 40px;
  height: 40px;
  font-size: var(--text-14);
}

.avatar--square {
  border-radius: var(--radius-lg);
}

/* Une personne dans une liste : le fond primaire pâle. */
.avatar--soft {
  background: var(--color-primary-bg);
  color: var(--color-primary);
}
