/* Toasts Vilain Garçon — notifications d’action */
.vg-toast-stack {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 10006000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  pointer-events: none;
  max-width: min(420px, calc(100vw - 32px));
}

.vg-notification-audio {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

.vg-toast-item {
  pointer-events: auto;
  cursor: pointer;
  background: #0e0e0e;
  color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.06);
  padding: 14px 18px 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  overflow: hidden;
  animation: vgToastReveal 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  transform-origin: right center;
}

.vg-toast-item::before {
  content: "";
  flex-shrink: 0;
  width: 4px;
  align-self: stretch;
  min-height: 24px;
  border-radius: 2px;
  background: #c41e3a;
}

.vg-toast-item--success::before {
  background: #c41e3a;
}

.vg-toast-item--info::before {
  background: #6b7280;
}

.vg-toast-item--warning::before {
  background: #d97706;
}

.vg-toast-item--error::before {
  background: #b91c1c;
}

.vg-toast-inner {
  flex: 1;
  min-width: 0;
}

.vg-toast-msg {
  font-family: "Jost", sans-serif;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.96);
  display: block;
}

.vg-toast-leave {
  animation: vgToastLeave 0.38s cubic-bezier(0.55, 0.06, 0.68, 0.19) forwards;
}

@keyframes vgToastReveal {
  0% {
    opacity: 0;
    transform: translateX(110%) scale(0.94);
    filter: blur(4px);
  }
  70% {
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: blur(0);
  }
}

@keyframes vgToastLeave {
  to {
    opacity: 0;
    transform: translateX(40%) scale(0.96);
  }
}

@media (prefers-reduced-motion: reduce) {
  .vg-toast-item {
    animation: vgToastRevealReduced 0.35s ease forwards;
  }

  @keyframes vgToastRevealReduced {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }

  .vg-toast-leave {
    animation: vgToastLeaveReduced 0.25s ease forwards;
  }

  @keyframes vgToastLeaveReduced {
    to {
      opacity: 0;
    }
  }
}

@media (max-width: 575.98px) {
  .vg-toast-stack {
    top: auto;
    bottom: 20px;
    right: 16px;
    left: 16px;
    max-width: none;
    align-items: stretch;
  }

  .vg-toast-item {
    transform-origin: bottom center;
    animation: vgToastRevealSm 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }

  .vg-toast-leave {
    animation: vgToastLeaveSm 0.38s cubic-bezier(0.55, 0.06, 0.68, 0.19) forwards;
  }

  @keyframes vgToastRevealSm {
    0% {
      opacity: 0;
      transform: translateY(24px) scale(0.96);
      filter: blur(4px);
    }
    70% {
      filter: blur(0);
    }
    100% {
      opacity: 1;
      transform: translateY(0) scale(1);
      filter: blur(0);
    }
  }

  @keyframes vgToastLeaveSm {
    to {
      opacity: 0;
      transform: translateY(16px) scale(0.96);
    }
  }
}
