/* ==========================================================
   INTEGRA Tech — Notifications Toast
   ========================================================== */

.site-toast-container {
    position: fixed;
    top: 92px;
    right: 24px;
    z-index: 99999;

    width: min(390px, calc(100vw - 30px));

    display: flex;
    flex-direction: column;
    gap: 12px;

    pointer-events: none;
}

.site-toast {
    position: relative;

    display: flex;
    align-items: flex-start;
    gap: 13px;

    padding: 16px 17px;

    background: rgba(255, 255, 255, 0.98);

    border: 1px solid #e5eaf0;
    border-radius: 14px;

    box-shadow:
        0 14px 40px rgba(7, 26, 51, 0.14),
        0 3px 10px rgba(7, 26, 51, 0.05);

    color: #243247;

    pointer-events: auto;

    opacity: 0;
    transform: translateX(30px);

    animation:
        siteToastIn .35s cubic-bezier(.22, 1, .36, 1)
        forwards;
}

.site-toast.is-closing {
    animation:
        siteToastOut .25s ease forwards;
}


/* ==========================================================
   Icône
   ========================================================== */

.site-toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    flex: 0 0 38px;

    border-radius: 10px;

    font-size: 18px;
}


/* ==========================================================
   Contenu
   ========================================================== */

.site-toast-content {
    min-width: 0;
    padding-right: 20px;
}

.site-toast-title {
    margin: 0 0 3px;

    color: #071a33;

    font-size: 14px;
    font-weight: 800;
    line-height: 1.35;
}

.site-toast-message {
    margin: 0;

    color: #64748b;

    font-size: 13px;
    line-height: 1.55;
}


/* ==========================================================
   Bouton fermeture
   ========================================================== */

.site-toast-close {
    position: absolute;

    top: 10px;
    right: 10px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;

    padding: 0;

    border: 0;
    border-radius: 7px;

    background: transparent;

    color: #94a3b8;

    font-size: 16px;

    cursor: pointer;

    transition:
        background .2s ease,
        color .2s ease;
}

.site-toast-close:hover {
    background: #f1f5f9;
    color: #071a33;
}


/* ==========================================================
   Succès
   ========================================================== */

.site-toast-success {
    border-left: 4px solid #16a34a;
}

.site-toast-success .site-toast-icon {
    background: #ecfdf3;
    color: #15803d;
}


/* ==========================================================
   Erreur
   ========================================================== */

.site-toast-error {
    border-left: 4px solid #dc2626;
}

.site-toast-error .site-toast-icon {
    background: #fef2f2;
    color: #b91c1c;
}


/* ==========================================================
   Information
   ========================================================== */

.site-toast-info {
    border-left: 4px solid #0b4f9c;
}

.site-toast-info .site-toast-icon {
    background: #eff6ff;
    color: #0b4f9c;
}


/* ==========================================================
   Avertissement
   ========================================================== */

.site-toast-warning {
    border-left: 4px solid #d97706;
}

.site-toast-warning .site-toast-icon {
    background: #fff7ed;
    color: #b45309;
}


/* ==========================================================
   Animation entrée
   ========================================================== */

@keyframes siteToastIn {

    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }

}


/* ==========================================================
   Animation sortie
   ========================================================== */

@keyframes siteToastOut {

    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(30px);
    }

}


/* ==========================================================
   Mobile
   ========================================================== */

@media (max-width: 600px) {

    .site-toast-container {
        top: auto;
        right: 15px;
        bottom: 18px;
        left: 15px;

        width: auto;
    }

    .site-toast {
        width: 100%;
    }

}


/* ==========================================================
   Accessibilité — réduction des animations
   ========================================================== */

@media (prefers-reduced-motion: reduce) {

    .site-toast {
        animation: none;
        opacity: 1;
        transform: none;
    }

}