
.notif-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999 !important;
    overflow: hidden;
    
    display: flex;
    align-items: center;
    justify-content: space-between;
    
    min-width: 300px;
    max-width: 400px;
    padding: 16px;
    border-radius: 8px;
    color: #fff;
    font-weight: bold;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    transition: opacity 0.5s ease, transform 0.5s ease;
    /*animation: toastSlideIn 0.5s ease forwards;*/
}

@keyframes toastSlideIn {
    from { transform: translateX(120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.notif-toast.success { background-color: #00ba7c; } /* Vert style X/Twitter */
.notif-toast.error   { background-color: #f4212e; } /* Rouge style X/Twitter */
.notif-toast.info    { background-color: #1d9bf0; } /* Bleu style X/Twitter */

.notif-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    margin-left: 15px;
    opacity: 0.7;
}

.notif-close:hover { opacity: 1; }

.toast-hide {
    opacity: 0;
    transform: translateX(20px);
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    width: 100%;
    background: rgba(0, 0, 0, 0.05); /* Fond discret */
}

.toast-progress::after {
    content: '';
    display: block;
    height: 100%;
    width: 100%;
    background: currentColor; /* Utilise la couleur du texte (succès ou erreur) */
    animation: toast-timer 4s linear forwards;
    transform-origin: left;
}

@keyframes toast-timer {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}
