/* Système de notifications */
.notification-container {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 360px;
}

.notification {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 260px;
  padding: 1.1rem 1.5rem;
  border-radius: 1.2rem;
  background: rgba(30, 32, 40, 0.7);
  box-shadow: 0 8px 32px rgba(30, 32, 40, 0.18);
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  opacity: 0;
  transform: translateY(30px) scale(0.98);
  animation: notif-in 0.5s cubic-bezier(.68,-0.55,.27,1.55) forwards;
  cursor: pointer;
  transition: box-shadow 0.2s;
}

.notification:hover {
  box-shadow: 0 12px 40px rgba(30,32,40,0.25);
}

.notification__icon {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
}

.notification.success .notification__icon {
  color: #2ecc71;
  background: rgba(46,204,113,0.12);
}
.notification.error .notification__icon {
  color: #e74c3c;
  background: rgba(231,76,60,0.12);
}
.notification.info .notification__icon {
  color: #3498db;
  background: rgba(52,152,219,0.12);
}
.notification.warning .notification__icon {
  color: #f39c12;
  background: rgba(243,156,18,0.12);
}

.notification__message {
  flex: 1;
  line-height: 1.4;
}

.notification__close {
  background: none;
  border: none;
  color: inherit;
  font-size: 1.2rem;
  opacity: 0.7;
  cursor: pointer;
  margin-left: 0.5rem;
  transition: opacity 0.2s;
}
.notification__close:hover {
  opacity: 1;
}

@keyframes notif-in {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes notif-out {
  to {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
  }
}

/* Responsive */
@media (max-width: 600px) {
  .notification-container {
    top: 1rem;
    right: 1rem;
    left: 1rem;
    max-width: none;
  }
  .notification {
    min-width: 0;
    font-size: 0.95rem;
    padding: 1rem 1.1rem;
  }
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  .notification {
    background: rgba(30,32,40,0.85);
    color: #fff;
    border-color: rgba(255,255,255,0.10);
  }
}