.contact-card {
    background: white;
    border-left: 5px solid var(--jaune);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
    text-align: center;
}

.contact-card:hover {
    transform: translateY(-5px);
}

.photo-profil {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--gris);
    margin-bottom: 10px;
}

.contact-header {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 6px;
    color: var(--gris-fonce);
}

.contact-header i {
    margin-right: 6px;
}

.fonction {
    font-style: italic;
    color: var(--gris-fonce);
    margin-bottom: 10px;
}

.email {
    display: inline-block;
    text-decoration: none;
    color: var(--gris-fonce);
    font-size: 0.9rem;
}

.email i {
    margin-right: 5px;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    /* 2 colonnes si possible */
    gap: 20px;
    margin-top: 20px;
}

.email a.reveal-button {
    display: inline-block;
    background-color: #ffd700;
    color: #000;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-size: 0.9rem;
    margin-left: 8px;
}

.email a.reveal-button:hover {
    background-color: #000;
    color: #ffd700;
}

.email {
    margin-top: 10px;
    font-size: 0.95rem;
}

.email .reveal-button {
    display: inline-block;
    background-color: #ffd700;
    color: #000;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s, transform 0.2s;
    font-size: 0.9rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.email .reveal-button:hover {
    background-color: #000;
    color: #ffd700;
    transform: scale(1.05);
}

.email .revealed {
    display: inline-block;
    background-color: #000;
    color: #ffd700;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    animation: fadeIn 0.5s ease-in-out;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}