/* Widget Styles */
.gm-membres-wrapper {
    width: 100%;
}

.gm-membres-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 2.5rem;
    justify-content: center;
}

.gm-filter-btn {
    padding: 0.75rem 1rem !important;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.gm-filter-btn.active,
.gm-filter-btn:hover {
    background: var(--e-global-color-secondary) !important;
    color: #fff;
    border-color: #333;
}

.gm-membres-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.gm-membre-item {
    width: 100%;
}

.gm-membre-card {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
    height: 100%;
    text-align: center;
    padding-bottom: 20px;
    background: transparent;
}

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

.gm-membre-photo img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 8px !important;
}

.gm-membre-title {
    margin: 5px 0 0 !important;
    font-size: 1.5rem !important;
    color: inherit !important;
}

.gm-membre-desc {
    font-size: 1rem;
    line-height: 1.2em;
    color: #666;
    margin-bottom: 15px;
    height: 58px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

.gm-membre-badge {
    display: inline-block;
    background: #f0f0f0;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    color: #333;
}

/* Single Template Styles */
.gm-single-membre {
    margin-top: -86px;
    max-width: 100% !important;
    padding: 0 !important;
    background: #fafafa;
}

.gm-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.gm-membre-header {
    background-color: var(--e-global-color-primary, #040D61);
    color: #fff;
    /* text blanc */
    padding: 140px 0 40px;
    /* padding-top extra to compensate for -86px margin */
    margin-bottom: 40px;
}

.gm-membre-header .gm-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.gm-header-left {
    display: flex;
    gap: 30px;
    align-items: center;
}

.gm-photo-wrapper img {
    object-fit: cover;
    width: 240px;
    height: 240px;
    border-radius: 8px !important;
}

.gm-title {
    margin: 0 0 10px;
    font-size: 32px;
    color: #fff !important;
}

.gm-subtitle {
    margin: 0 0 15px;
    font-size: 18px;
}

.gm-badges {
    display: flex;
    gap: 10px;
}

.badge {
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 13px;
}

.badge-primary {
    background: #e6f0ff;
    color: #0055ff;
}

.badge-secondary {
    background: #f5f5f5;
    color: #333;
}

.gm-header-right {
    display: flex;
    gap: 10px;
}

.gm-btn {
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.gm-btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #fff !important;
}

.gm-btn-outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.gm-btn-primary {
    background: var(--e-global-color-secondary, #0662FF);
    color: #fff !important;
    display: inline-block;
    border: 1px solid var(--e-global-color-secondary, #0662FF);
}

.gm-btn-primary:hover {
    background: var(--e-global-color-primary, #040D61);
    color: #fff;
}

.gm-membre-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.gm-membre-header .gm-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
}

.gm-section {
    margin-bottom: 30px;
}

.gm-section h2 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #111;
}

.gm-section p {
    color: #444;
    line-height: 1.6;
}

.gm-logo-box {
    margin-bottom: 30px;
    border: 1px dashed #ddd;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.gm-logo-box img {
    max-width: 100%;
    height: auto;
}

.gm-contact-box {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
}

.gm-contact-box h3 {
    margin-top: 0;
    margin-bottom: 15px;
}

.gm-contact-box p {
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.gm-temoignage-banner {
    background: #f0f0f0;
    padding: 30px;
    text-align: center;
    border-radius: 8px;
    font-style: italic;
    color: #555;
    margin-bottom: 40px;
}

.gm-autres-adherents {
    border-top: 1px solid #eee;
    padding-top: 40px;
    padding-bottom: 40px;
}

.gm-autres-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.gm-link-arrow {
    color: #0055ff;
    text-decoration: none;
}

.gm-link-arrow:hover {
    text-decoration: underline;
}

.gm-autres-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}



@media (max-width: 768px) {
    .gm-membre-header .gm-container {
        align-items: center;
        justify-content: center;
    }

    .gm-membre-content-grid {
        grid-template-columns: 1fr;
    }

    .gm-header-left {
        flex-direction: column;
        text-align: center;
    }

    .gm-header-right {
        width: 100%;
        justify-content: center;
    }

    .gm-badges {
        justify-content: center;
        flex-wrap: wrap;
    }

    .gm-membres-grid,
    .gm-autres-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {

    .gm-membres-grid,
    .gm-autres-grid {
        grid-template-columns: 1fr;
    }
}

.white-text .gm-membre-title,
.white-text .gm-membre-desc {
    color: white !important;
}