main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 80px 20px;
    text-align: center;
}

main h2 {
    font-size: 2rem;
    font-weight: 600;
    position: relative;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.carte-contact {
    display: flex;
    flex-direction: column;
    padding: 10px;
    border-radius: 16px;
    width: 300px;
    box-shadow: 8px 8px 16px rgba(0, 0, 0, 0.3);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.carte-contact:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}

.carte-contact p {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

#mail,
#linkedin {
    color: white;
    background: #2c3e50;
    padding: 10px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

#mail:hover,#linkedin:hover {
    background: #4ca1af;
}

/* Responsive */
@media (max-width: 700px) {
    .contact-container {
        flex-direction: column;
        align-items: center;
    }

    .contact-card {
        width: 90%;
    }
}
