/* Styles spécifiques à la page de contact */

/* Animation pour les champs de formulaire */
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

/* Animation pour les boutons */
.contact-form button {
    transition: all 0.3s ease;
}

.contact-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.contact-form button:active {
    transform: translateY(0);
}

/* Animation pour les cartes d'information */
.contact-info-card {
    transition: all 0.3s ease;
}

.contact-info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Animation d'apparition pour les éléments */
.contact-fade-in {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Styles pour les messages de succès/erreur */
.contact-message {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    font-weight: 500;
    display: none;
}

.contact-message.success {
    background-color: #d1fae5;
    border: 1px solid #10b981;
    color: #065f46;
}

.contact-message.error {
    background-color: #fee2e2;
    border: 1px solid #ef4444;
    color: #991b1b;
}

/* Animation pour le bouton de chargement */
.contact-form button.loading {
    position: relative;
    color: transparent;
}

.contact-form button.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Amélioration du positionnement des icônes */
.flex.items-start .flex-shrink-0 {
    margin-top: 0.5rem; /* Ajustement pour aligner avec le texte */
}

.flex.items-start .flex-shrink-0 .w-12.h-12 {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Centrer parfaitement l'icône dans son conteneur */
.flex.items-start .flex-shrink-0 .w-12.h-12 i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .contact-form {
        padding: 1.5rem;
    }
    
    .contact-info-card {
        margin-bottom: 1.5rem;
    }
    
    /* Améliorer l'alignement des icônes sur mobile */
    .flex.items-start {
        align-items: flex-start;
    }
    
    .flex.items-start .flex-shrink-0 {
        margin-top: 0.5rem;
    }
    
    .flex.items-start .ml-4 {
        margin-left: 1rem;
    }
    
    /* Assurer le centrage parfait sur mobile */
    .flex.items-start .flex-shrink-0 .w-12.h-12 i {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
}

/* Styles pour les icônes d'information */
.contact-icon {
    transition: all 0.3s ease;
}

.contact-info-card:hover .contact-icon {
    transform: scale(1.1);
}

/* Animation pour le formulaire */
.contact-form {
    animation: slideInLeft 0.8s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animation pour le message flash de succès */
.animate-slideDown {
    animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translate(-50%, -20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0) scale(1);
    }
}

/* Styles pour le message flash de succès */
.flash-message {
    position: fixed;
    top: 5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    max-width: 28rem;
    width: calc(100% - 2rem);
    margin: 0 1rem;
}

.flash-message .flash-content {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.3);
    border: 1px solid #34d399;
    backdrop-filter: blur(10px);
}

.flash-message .flash-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 0.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.flash-message .flash-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

/* Animation pour les informations de contact */
.contact-info {
    animation: slideInRight 0.8s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
