/**
 * Aratice Quote Notifications
 * Styles pour le système de notifications
 */

/* Container principal */
.aratice-notifications-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
  max-width: 420px;
}

/* Notification individuelle */
.aratice-notification {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
  pointer-events: auto;
  opacity: 0;
  transform: translateX(400px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 100%;
  position: relative;
  overflow: hidden;
  font-family: 'Lexend Deca', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Animation d'entrée */
.aratice-notification-show {
  opacity: 1;
  transform: translateX(0);
}

/* Barre de progression (optionnelle) */
.aratice-notification::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%;
  transform-origin: left;
  animation: notificationProgress 3s linear forwards;
}

@keyframes notificationProgress {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}

/* Icône */
.aratice-notification-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.aratice-notification-icon svg {
  width: 24px;
  height: 24px;
}

/* Message */
.aratice-notification-message {
  flex: 1;
  font-size: 14px;
  line-height: 1.5;
  color: #1a1a1a;
  word-break: break-word;
}

.aratice-notification-message strong {
  font-weight: 600;
  color: #000000;
}

/* Bouton fermer */
.aratice-notification-close {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.2s ease;
  color: #666;
}

.aratice-notification-close:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #333;
}

.aratice-notification-close svg {
  width: 16px;
  height: 16px;
}

/* === Variantes de couleur === */

/* Success (vert) */
.aratice-notification-success {
  border-left: 4px solid #7EAD53;
}

.aratice-notification-success .aratice-notification-icon {
  color: #7EAD53;
}

.aratice-notification-success::before {
  background: #7EAD53;
}

/* Error (rouge) */
.aratice-notification-error {
  border-left: 4px solid #ef4444;
}

.aratice-notification-error .aratice-notification-icon {
  color: #ef4444;
}

.aratice-notification-error::before {
  background: #ef4444;
}

/* Info (bleu) */
.aratice-notification-info {
  border-left: 4px solid #2B4B7C;
}

.aratice-notification-info .aratice-notification-icon {
  color: #2B4B7C;
}

.aratice-notification-info::before {
  background: #2B4B7C;
}

/* Warning (orange) */
.aratice-notification-warning {
  border-left: 4px solid #f59e0b;
}

.aratice-notification-warning .aratice-notification-icon {
  color: #f59e0b;
}

.aratice-notification-warning::before {
  background: #f59e0b;
}

/* === Responsive === */
@media (max-width: 768px) {
  .aratice-notifications-container {
    top: 16px;
    right: 16px;
    left: 16px;
    max-width: none;
  }

  .aratice-notification {
    padding: 14px 16px;
  }

  .aratice-notification-message {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .aratice-notifications-container {
    top: 12px;
    right: 12px;
    left: 12px;
  }

  .aratice-notification {
    padding: 12px 14px;
    gap: 10px;
  }

  .aratice-notification-icon {
    width: 20px;
    height: 20px;
  }

  .aratice-notification-icon svg {
    width: 20px;
    height: 20px;
  }

  .aratice-notification-message {
    font-size: 12px;
  }
}

/* Animation de sortie */
.aratice-notification.aratice-notification-hiding {
  opacity: 0;
  transform: translateX(400px);
}
