/*
 * Figma : Icon/* (80 icônes, cadre 24, trait 1,75) et Logo (5 versions).
 * Les icônes sont insérées par le helper `icon` et prennent la couleur du texte.
 */
@layer components {
  .icon {
    flex: none;
    width: var(--icon-size);
    height: var(--icon-size);
  }

  .icon--24 { width: 1.5rem; height: 1.5rem; }
  .icon--20 { width: 1.25rem; height: 1.25rem; }
  .icon--16 { width: 1rem; height: 1rem; }
  .icon--14 { width: 0.875rem; height: 0.875rem; }

  .icon--spin {
    animation: icon-spin 0.9s linear infinite;
  }

  @keyframes icon-spin {
    to { transform: rotate(360deg); }
  }

  /* Logo complet : proportion 584 × 220. Symbole seul : 206 × 220. */
  .logo {
    display: block;
    flex: none;
    width: auto;
    height: 3.4375rem; /* 55 : hauteur utilisée dans SideNav, TopBar et MobileHeader */
  }

  .logo--sm { height: 2.5rem; }
  .logo--lg { height: 5rem; }
}
