#flash-snackbar {
  visibility: hidden;
  min-width: 300px;
  max-width: 400px;
  color: #fff;
  text-align: left;
  border-radius: 8px;
  padding: 16px 20px;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.4;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
  border: none;
  transform: translateX(100%);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Couleurs modernes avec des icônes */
#flash-snackbar.success {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  border-left: 4px solid #047857;
}

#flash-snackbar.warning {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  border-left: 4px solid #b45309;
}

#flash-snackbar.danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #ffffff;
  border-left: 4px solid #b91c1c;
}

#flash-snackbar.info {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #ffffff;
  border-left: 4px solid #1d4ed8;
}

/* Animation d'affichage */
#flash-snackbar.show {
  visibility: visible;
  transform: translateX(0);
  animation: slideInRight 0.3s ease-out;
}

/* Animation de disparition */
#flash-snackbar.hide {
  transform: translateX(100%);
  animation: slideOutRight 0.3s ease-in;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* Responsive */
@media (max-width: 768px) {
  #flash-snackbar {
    min-width: calc(100vw - 40px);
    max-width: calc(100vw - 40px);
    right: 20px;
    left: 20px;
    transform: translateY(-100%);
  }

  #flash-snackbar.show {
    transform: translateY(0);
    animation: slideInTop 0.3s ease-out;
  }

  #flash-snackbar.hide {
    transform: translateY(-100%);
    animation: slideOutTop 0.3s ease-in;
  }

  @keyframes slideInTop {
    from {
      transform: translateY(-100%);
      opacity: 0;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }

  @keyframes slideOutTop {
    from {
      transform: translateY(0);
      opacity: 1;
    }
    to {
      transform: translateY(-100%);
      opacity: 0;
    }
  }
}
