/* ── Layout général ──────────────────────────────────────────────────────── */
.alt-membres-contact {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ── Carte classique ─────────────────────────────────────────────────────── */
.alt-membre-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 16px;
}

/* ── Carte image de fond ─────────────────────────────────────────────────── */
.alt-membre-card.alt-layout-bg {
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    min-height: 300px;
    padding: 0;
    align-items: stretch;
}

.alt-membre-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    /* Le background est géré par Elementor (couleur ou dégradé) */
    background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 60%);
}

/* Titre en bas à gauche sur l'image de fond */
.alt-layout-bg .alt-membre-titre {
    margin: 0;
    color: #fff;
    text-align: left;
}

/* Bloc contenant titre + contacts en bas de la carte */
.alt-layout-bg .alt-membre-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 12px 16px 16px 16px;
}

/* Contacts alignés à droite dans le bloc */
.alt-layout-bg .alt-membre-contact {
    flex-shrink: 0;
}

/* ── Photo (mode classique) ──────────────────────────────────────────────── */
.alt-membre-photo-wrapper {
    margin-bottom: 16px;
}

.alt-membre-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

/* ── Titre (mode classique) ──────────────────────────────────────────────── */
.alt-membre-titre {
    margin: 0 0 12px;
    font-size: 1.1em;
    font-weight: 600;
}

/* ── Contacts — liens texte ──────────────────────────────────────────────── */
.alt-membre-contact {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.alt-membre-email,
.alt-membre-telephone {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
}

.alt-membre-contact a {
    text-decoration: none;
    color: inherit;
}

.alt-membre-contact a:hover {
    text-decoration: underline;
}

/* ── Contacts — boutons ronds ────────────────────────────────────────────── */
.alt-membre-contact.alt-contact-buttons {
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.alt-membre-contact.alt-contact-buttons .alt-membre-email,
.alt-membre-contact.alt-contact-buttons .alt-membre-telephone {
    display: contents;
}

.alt-contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    font-size: 16px;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
    line-height: 1;
}

.alt-contact-btn:hover {
    text-decoration: none !important;
    transform: scale(1.1);
}
