/* Boutons */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  border: none; border-radius: var(--radius); padding: 9px 18px;
  font: inherit; font-size: .85rem; font-weight: 500; cursor: pointer;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: var(--card); border: 1px solid var(--line); color: var(--ink-2); }
.btn-ghost:hover { border-color: var(--ink-3); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-block { width: 100%; justify-content: center; }

/* Cartes */
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow);
}

/* Badges de statut */
.badge { display: inline-block; border-radius: 12px; padding: 2px 10px; font-size: .7rem; font-weight: 600; }
.badge-ok     { background: var(--ok-soft); color: var(--ok); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-warn   { background: var(--warn-soft); color: var(--warn); }
.badge-muted  { background: var(--soft); color: var(--ink-2); }

/* Tableaux */
.table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.table th {
  text-align: left; font-weight: 600; color: var(--ink-2);
  background: var(--soft); padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.table td { padding: 10px 12px; border-bottom: 1px solid var(--soft); }

/* Notifications flash (toasts) */
.toasts { position: fixed; top: 16px; right: 16px; z-index: 1000; display: grid; gap: 8px; max-width: 380px; }
.toast {
  border-radius: var(--radius); padding: 12px 16px; font-size: .84rem;
  box-shadow: var(--shadow-lg); background: var(--card); border: 1px solid var(--line);
  animation: toast-in .25s ease;
}
.toast-success { border-left: 4px solid var(--ok); }
.toast-error   { border-left: 4px solid var(--danger); }
.toast-info    { border-left: 4px solid var(--accent); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-6px); } }

/* Modale */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(25, 30, 45, .45);
  display: flex; align-items: center; justify-content: center; z-index: 900; padding: 20px;
}
.modal {
  background: var(--card); border-radius: var(--radius-lg);
  width: 100%; max-width: 560px; padding: 22px; box-shadow: var(--shadow-lg);
}
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }

/* Divers */
.empty-state { text-align: center; color: var(--ink-2); padding: 48px 20px; }
.empty-state h3 { margin-bottom: 6px; }
