/* Icônes Lucide — style cohérent sur tout le site */
.icon,
[data-lucide] {
  width: 1.125em;
  height: 1.125em;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  flex-shrink: 0;
  vertical-align: -0.15em;
}

.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  min-width: 1.25rem;
}

.nav-icon [data-lucide],
.nav-icon svg {
  width: 1.125rem;
  height: 1.125rem;
}

.nav-links a svg,
.topbar-icon-btn svg,
.btn svg,
h1 svg,
h2 svg,
h3 svg {
  stroke: currentColor;
}

.nav-links a .nav-icon svg {
  stroke: var(--accent, #66aaff);
  opacity: 0.95;
}

.nav-links a:hover .nav-icon svg,
.nav-links a.active .nav-icon svg {
  stroke: #fff;
  opacity: 1;
}

/* Sélecteur thème Clair / Sombre */
.theme-mode-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
  flex-shrink: 0;
}

.theme-mode-btn:hover .theme-mode-switch {
  border-color: rgba(102, 170, 255, 0.45);
  background: rgba(255, 255, 255, 0.06);
}

.theme-mode-btn:focus-visible {
  outline: 2px solid rgba(102, 170, 255, 0.65);
  outline-offset: 3px;
  border-radius: 10px;
}

.theme-mode-switch {
  display: inline-flex;
  align-items: stretch;
  gap: 2px;
  padding: 3px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.theme-mode-opt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 6px 10px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
}

.theme-mode-opt.is-active {
  color: #0f1428;
  background: linear-gradient(180deg, #8ec0ff 0%, #66aaff 100%);
  box-shadow: 0 2px 8px rgba(102, 170, 255, 0.35);
}

@media (max-width: 480px) {
  .theme-mode-opt {
    min-width: 46px;
    padding: 6px 8px;
    font-size: 10px;
  }
}

.icon-sm [data-lucide],
.icon-sm.icon {
  width: 0.95em;
  height: 0.95em;
}

.icon-lg [data-lucide],
.icon-lg.icon {
  width: 1.5em;
  height: 1.5em;
}

.topbar-icon-btn [data-lucide],
.topbar-icon-btn .icon {
  width: 1.25rem;
  height: 1.25rem;
}

.btn [data-lucide],
.btn .icon {
  width: 1em;
  height: 1em;
  margin-right: 0.35em;
  vertical-align: -0.2em;
}

h1 [data-lucide],
h2 [data-lucide],
h3 [data-lucide] {
  width: 1.1em;
  height: 1.1em;
  margin-right: 0.35em;
  vertical-align: -0.2em;
}

.icon-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
}

.icon-heart-brand {
  color: #a78bfa;
}

.icon-danger {
  color: var(--danger, #ff6b6b);
}

.icon-success {
  color: var(--success, #4caf50);
}

.drawer-close [data-lucide],
.close-drawer-btn [data-lucide] {
  width: 1.35rem;
  height: 1.35rem;
}

.notification-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.role-badge {
  display: inline-block;
  padding: 0.15em 0.5em;
  border-radius: 4px;
  font-size: 0.85em;
  font-weight: 600;
}

.role-helper {
  background: rgba(76, 175, 80, 0.2);
  color: #81c784;
  border: 1px solid rgba(76, 175, 80, 0.35);
}

.toggle-password {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}
