/**
 * Styles Toast - IRIS Formation Conseil
 */

/* Container du toast */
.iris-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 300px;
    max-width: 500px;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    opacity: 0;
}

/* Animation d'affichage */
.iris-toast.iris-toast-show {
    transform: translateX(0);
    opacity: 1;
}

/* Toast succès */
.iris-toast.iris-toast-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
}

/* Toast erreur */
.iris-toast.iris-toast-error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
}

/* Contenu du toast */
.iris-toast-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

/* Message */
.iris-toast-message {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

/* Bouton de fermeture */
.iris-toast-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    color: #ffffff;
    transition: background 0.2s ease;
    flex-shrink: 0;
    padding: 0;
    line-height: 1;
}

.iris-toast-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .iris-toast {
        top: 10px;
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: none;
    }
}

/* Animation de sortie */
@keyframes slideOut {
    to {
        transform: translateX(120%);
        opacity: 0;
    }
}

/* État désactivé du bouton submit pendant l'envoi */
#contact-form button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    background: linear-gradient(135deg, #64748b 0%, #94a3b8 100%);
}