/* Styles pour les cartes de contact avec effet de verre (glassmorphism) */

/* Style principal des cartes de contact - Effet de verre */
#contact.hero-section .card {
    background-color: rgba(20, 25, 45, 0.4);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(110, 159, 255, 0.2);
    border-radius: 12px;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    animation: contact-card-float 8s infinite ease-in-out alternate;
}

/* Animation de flottement pour les cartes de contact */
@keyframes contact-card-float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
    100% {
        transform: translateY(0);
    }
}

/* Effet de lueur autour des cartes - Effet de verre */
#contact.hero-section .card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 14px;
    background: linear-gradient(45deg, rgba(110, 159, 255, 0.4), rgba(0, 229, 255, 0.3), rgba(156, 110, 255, 0.4));
    background-size: 400% 400%;
    z-index: -1;
    filter: blur(12px);
    opacity: 0.2;
    transition: opacity 0.4s ease;
    animation: contact-glowing 6s ease-in-out infinite alternate;
}

/* Effet de reflet sur le verre */
#contact.hero-section .card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(30deg) translateY(-100%);
    transition: transform 0.6s ease;
    pointer-events: none;
}

/* Animation de lueur */
@keyframes contact-glowing {
    0% {
        background-position: 0% 50%;
        opacity: 0.3;
    }
    50% {
        background-position: 100% 50%;
        opacity: 0.8;
    }
    100% {
        background-position: 0% 50%;
        opacity: 0.3;
    }
}

/* Effets au survol des cartes - Effet de verre */
#contact.hero-section .card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 10px 25px rgba(110, 159, 255, 0.4), 0 0 30px rgba(0, 229, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
    background-color: rgba(20, 25, 45, 0.5);
}

#contact.hero-section .card:hover .card-body {
    background: linear-gradient(to bottom, rgba(20, 25, 45, 0.4), rgba(30, 35, 60, 0.6));
}

#contact.hero-section .card:hover::before {
    opacity: 1;
}

#contact.hero-section .card:hover::after {
    transform: rotate(30deg) translateY(200%);
}

/* Style pour le corps de la carte - Effet de verre */
#contact.hero-section .card-body {
    padding: 1.25rem;
    background: linear-gradient(to bottom, rgba(20, 25, 45, 0.3), rgba(30, 35, 60, 0.5));
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    transition: background-color 0.3s ease;
}

/* Style pour les icônes dans les cartes de contact */
#contact.hero-section .card-body i.fas,
#contact.hero-section .card-body i.fab {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(110, 159, 255, 0.3);
    transition: color 0.3s ease, transform 0.3s ease;
}

#contact.hero-section .card:hover .card-body i.fas,
#contact.hero-section .card:hover .card-body i.fab {
    color: var(--primary-light);
    transform: translateY(-2px);
}

/* Style pour les boutons sociaux */
#contact.hero-section .btn-outline-primary {
    background-color: rgba(110, 159, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(110, 159, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

#contact.hero-section .btn-outline-primary:hover {
    background-color: rgba(110, 159, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 15px rgba(110, 159, 255, 0.5);
    transform: translateY(-2px);
}

#contact.hero-section .btn-outline-primary::before {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
    transition: transform 0.5s ease;
    z-index: -1;
}

#contact.hero-section .btn-outline-primary:hover::before {
    transform: translateY(100%);
}

/* Style pour le formulaire */
#contact.hero-section .form-control {
    background-color: rgba(20, 25, 45, 0.3);
    border: 1px solid rgba(110, 159, 255, 0.2);
    color: var(--text-light);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

#contact.hero-section .form-control:focus {
    background-color: rgba(30, 35, 60, 0.4);
    border-color: rgba(110, 159, 255, 0.4);
    box-shadow: 0 0 10px rgba(110, 159, 255, 0.3);
}

/* Responsive design */
@media (max-width: 768px) {
    #contact.hero-section .card {
        margin-bottom: 20px;
    }
}