/* Système de notifications toast */

.notifications-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 400px;
  pointer-events: none;
}

.notification {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  pointer-events: auto;
  opacity: 0;
  transform: translateX(100%);
  transition: opacity 0.3s ease, transform 0.3s ease;
  border-left: 4px solid;
}

.notification--show {
  opacity: 1;
  transform: translateX(0);
}

.notification--hide {
  opacity: 0;
  transform: translateX(100%);
}

.notification__icon {
  font-size: 20px;
  font-weight: bold;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: white;
}

.notification__message {
  flex: 1;
  font-size: 14px;
  line-height: 1.5;
  color: #1f2937;
}

.notification__close {
  background: none;
  border: none;
  font-size: 24px;
  color: #9ca3af;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: color 0.2s;
}

.notification__close:hover {
  color: #374151;
}

/* Types de notifications */
.notification--success {
  border-left-color: #10b981;
}

.notification--success .notification__icon {
  background: #10b981;
}

.notification--error {
  border-left-color: #ef4444;
}

.notification--error .notification__icon {
  background: #ef4444;
}

.notification--warning {
  border-left-color: #f59e0b;
}

.notification--warning .notification__icon {
  background: #f59e0b;
}

.notification--info {
  border-left-color: #3b82f6;
}

.notification--info .notification__icon {
  background: #3b82f6;
}

/* Responsive */
@media (max-width: 640px) {
  .notifications-container {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
  }

  .notification {
    padding: 12px 16px;
  }
}

