.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}

.lead {
  color: var(--text-muted);
  font-size: 1rem;
}

.hint {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Boutons */
.primary-btn {
  background: var(--primary);
  color: var(--primary-contrast);
  border: 1px solid var(--primary);
  border-radius: 8px;
  padding: 0.65rem 1.2rem;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.15s ease, transform 0.05s ease;
}

.primary-btn:hover:not(:disabled) {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

.primary-btn:active:not(:disabled) {
  transform: translateY(1px);
}

.primary-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ghost-btn {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem 1rem;
  font-weight: 500;
  font-size: 0.9rem;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.ghost-btn:hover:not(:disabled) {
  background: var(--surface-alt);
}

.ghost-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.icon-btn {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  transition: background 0.15s ease;
}

.icon-btn:hover {
  background: var(--surface-alt);
}

/* Switch / toggle (checkbox stylisée) */
.options-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 1rem 0;
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.95rem;
  user-select: none;
}

.switch input {
  appearance: none;
  -webkit-appearance: none;
  width: 36px;
  height: 20px;
  background: var(--border);
  border-radius: 999px;
  position: relative;
  transition: background 0.15s ease;
  cursor: pointer;
}

.switch input::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.15s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.switch input:checked {
  background: var(--primary);
}

.switch input:checked::after {
  transform: translateX(16px);
}

/* Actions accueil */
.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.stats {
  margin-top: 1.25rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}
