/* Styles pour les messages du formulaire de contact */
.contact-message {
    margin: 25px 0;
    padding: 25px 30px;
    border-radius: 15px;
    font-weight: 500;
    text-align: center;
    animation: slideIn 0.4s ease-out;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.contact-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #8b5cf6, #7c3aed);
}

.contact-message.success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 2px solid #28a745;
}

.contact-message.success::before {
    background: linear-gradient(90deg, #28a745, #20c997);
}

.contact-message.error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 2px solid #dc3545;
}

.contact-message.error::before {
    background: linear-gradient(90deg, #dc3545, #c82333);
}

.contact-message h3,
.contact-message h4 {
    margin: 0 0 15px 0;
    font-size: 20px;
    font-weight: 600;
    color: inherit;
}

.contact-message p {
    margin: 0 0 15px 0;
    font-size: 16px;
    line-height: 1.5;
}

.contact-message ul {
    margin: 15px 0;
    padding-left: 25px;
    text-align: left;
}

.contact-message li {
    margin: 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-message li i {
    color: #dc3545;
    font-size: 14px;
}

/* Styles pour le contenu des messages */
.success-content,
.error-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.success-icon,
.error-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.success-icon i {
    color: #28a745;
    animation: bounce 0.6s ease-in-out;
}

.error-icon i {
    color: #dc3545;
}

.success-details {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    margin: 5px 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.success-details:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: translateY(-1px);
}

.success-details i {
    color: #28a745;
    font-size: 16px;
    min-width: 20px;
}

/* Animation de rebond pour l'icône de succès */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Animation d'apparition */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Animation de pulsation pour le succès */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.contact-message.success {
    animation: slideIn 0.4s ease-out, pulse 2s ease-in-out 0.5s;
}

/* Style pour le bouton désactivé */
#submitContact:disabled {
    background-color: #8b5cf6;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-message {
        margin: 15px 0;
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .contact-message h4 {
        font-size: 16px;
    }
}
