/* ============================================================
   Icon set — Lucide-style SVG
   ============================================================ */
.ui-icon {
  display: block;
  flex-shrink: 0;
  vertical-align: middle;
}
.ui-icon--16 { width: 16px; height: 16px; }
.ui-icon--18 { width: 18px; height: 18px; }
.ui-icon--20 { width: 20px; height: 20px; }
.ui-icon--22 { width: 22px; height: 22px; }
.ui-icon--24 { width: 24px; height: 24px; }
.ui-icon--28 { width: 28px; height: 28px; }
.ui-icon--32 { width: 32px; height: 32px; }
.ui-icon--40 { width: 40px; height: 40px; }

/* Inline avec texte */
.with-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Boutons icône seuls */
button.icon-btn,
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  cursor: pointer;
  box-shadow: none;
  font: inherit;
  font-weight: 400;
  transition: background .15s, color .15s, border-color .15s;
}
button.icon-btn:hover,
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
button.icon-btn:active,
.icon-btn:active { transform: none; }
.icon-btn--danger { color: var(--live); border-color: var(--alert-err-border); }
.icon-btn--danger:hover { background: var(--alert-err-bg); color: var(--alert-err-fg); }
.icon-btn--brand { color: var(--brand-700); border-color: var(--brand-100); }
.icon-btn--brand:hover { background: var(--brand-50); }

/* Nav / sidebar icons */
.nav-icon,
.admin-nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  opacity: .9;
}
.admin-nav-link.is-active .admin-nav-icon { opacity: 1; color: #6ee7b7; }

.brand-mark .ui-icon,
.admin-brand-mark .ui-icon { color: #fff; }

.tabbar a .ic,
.mm-link .nav-icon { display: inline-flex; align-items: center; justify-content: center; }

/* Médailles classement — pastilles CSS (or / argent / bronze) */
.rank-medal {
  --medal-size: 32px;
  position: relative;
  display: inline-grid;
  place-items: center;
  width: var(--medal-size);
  height: var(--medal-size);
  border-radius: 50%;
  vertical-align: middle;
  flex-shrink: 0;
  box-shadow:
    0 2px 6px rgba(15, 27, 45, .12),
    inset 0 1px 0 rgba(255, 255, 255, .45);
}
.rank-medal::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .35);
  pointer-events: none;
}
.rank-medal-inner {
  position: relative;
  z-index: 1;
  font-family: var(--display);
  font-size: calc(var(--medal-size) * .42);
  font-weight: 800;
  line-height: 1;
  color: var(--on-brand);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .28);
}
.rank-medal--gold {
  background: linear-gradient(145deg, #fce588 0%, var(--gold) 48%, #b88a1a 100%);
  box-shadow: 0 4px 14px rgba(231, 181, 60, .38), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.rank-medal--silver {
  background: linear-gradient(145deg, #eef1f5 0%, var(--silver) 50%, #7a8494 100%);
  box-shadow: 0 4px 12px rgba(139, 149, 165, .28), inset 0 1px 0 rgba(255, 255, 255, .55);
}
.rank-medal--bronze {
  background: linear-gradient(145deg, #e8c4a0 0%, var(--bronze) 50%, #9a5f2e 100%);
  box-shadow: 0 4px 12px rgba(184, 115, 51, .32), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.rank-num {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-family: var(--display);
  font-weight: 800;
  font-size: .85rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* Empty states */
.empty-state {
  text-align: center;
  padding: var(--sp-6) var(--sp-4);
  color: var(--muted);
}
.empty-state-icon {
  margin: 0 auto 12px;
  color: var(--brand);
  opacity: .55;
}
.empty-state p { margin: 0; font-weight: 600; max-width: 36ch; margin-inline: auto; }
.empty-state .emo { display: none; }
