/* ================================================
   TOAST.CSS — Notifications Maison Liora
================================================ */

#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  max-width: calc(100vw - 48px);
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 32px rgba(0,0,0,0.13), 0 1px 4px rgba(0,0,0,0.07);
  font-family: var(--font-body, 'Raleway', sans-serif);
  font-size: 0.9rem;
  font-weight: 500;
  color: #1a1a1a;
  min-width: 260px;
  max-width: 380px;
  pointer-events: all;
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  border-left: 3px solid #ccc;
}

.toast--visible {
  opacity: 1;
  transform: translateX(0);
}

.toast--hiding {
  opacity: 0;
  transform: translateX(24px);
}

.toast--success { border-left-color: #a07840; }
.toast--success .toast__icon { color: #a07840; }

.toast--error   { border-left-color: #c0392b; }
.toast--error   .toast__icon { color: #c0392b; }

.toast--info    { border-left-color: #2980b9; }
.toast--info    .toast__icon { color: #2980b9; }

.toast__icon { font-size: 1.1rem; flex-shrink: 0; }

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

.toast__close {
  background: none;
  border: none;
  cursor: pointer;
  color: #aaa;
  font-size: 0.9rem;
  padding: 2px 4px;
  flex-shrink: 0;
  transition: color 0.2s;
}
.toast__close:hover { color: #555; }

/* Dark mode */
@media (prefers-color-scheme: dark) {
  .toast {
    background: #242320;
    color: #e0ddd8;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  }
  .toast__close { color: #666; }
  .toast__close:hover { color: #aaa; }
}

/* Mobile : pleine largeur, centré en bas */
@media (max-width: 600px) {
  #toast-container {
    bottom: 80px; /* au-dessus de la sticky bar */
    right: 16px;
    left: 16px;
    max-width: 100%;
  }
  .toast {
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }
}
