/* ================================================
   Les Membres Section - Bureau Permanent & Députés
   ================================================ */

.membres-section {
    padding: 80px 0;
    background-color: var(--membres-bg-color, #f8f9fa);
}

.membres-section__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Header */
.membres-section__header {
    text-align: center;
    margin-bottom: 60px;
}

.membres-section__title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

/* Flag underline for title */
.membres-section__title::after {
    content: '';
    display: block;
    width: 200px;
    height: 4px;
    margin: 10px auto 0;
    background: linear-gradient(to right,
            #ffffff 0%, #ffffff 33%,
            #ed2024 33%, #ed2024 66%,
            #0e8040 66%, #0e8040 100%);
}

/* Cards Grid */
.membres-section__cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

@media (max-width: 992px) {
    .membres-section__cards-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Individual Card */
.membres-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px 35px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 400px;
    position: relative;
    overflow: hidden;
}

.membres-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Card variants */
.membres-card--bureau {
    background: linear-gradient(135deg, #0e8040 0%, #0a6030 100%);
    color: #ffffff;
}

.membres-card--deputes {
    background: linear-gradient(135deg, #ed2024 0%, #c91d20 100%);
    color: #ffffff;
}

/* Avatar Stack */
.membres-card__avatars {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    position: relative;
}

.membres-card__avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid #ffffff;
    overflow: hidden;
    margin-right: -15px;
    position: relative;
    transition: transform 0.3s ease;
    background: #f0f0f0;
}

.membres-card__avatar:hover {
    transform: scale(1.1);
    z-index: 10;
}

.membres-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.membres-card__avatar-more {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid #ffffff;
    background: rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.membres-card__avatar-more:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

/* Card Content */
.membres-card__content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.membres-card__title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
}

.membres-card__description {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.95;
    margin-bottom: 30px;
    flex: 1;
}

/* Card Button */
.membres-card__button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.95);
    color: #2c3e50;
    padding: 14px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    align-self: flex-start;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.membres-card--bureau .membres-card__button {
    color: #0e8040;
}

.membres-card--deputes .membres-card__button {
    color: #ed2024;
}

.membres-card__button:hover {
    background: #ffffff;
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.membres-card__button i {
    font-size: 1rem;
}

/* Decorative Elements */
.membres-card::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    opacity: 0.1;
    top: -50px;
    right: -50px;
    background: rgba(255, 255, 255, 0.2);
}

.membres-card::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    opacity: 0.1;
    bottom: -30px;
    left: -30px;
    background: rgba(255, 255, 255, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .membres-section {
        padding: 60px 0;
    }

    .membres-section__title {
        font-size: 2rem;
    }

    .membres-section__cards-grid {
        grid-template-columns: 1fr;
    }

    .membres-card {
        padding: 30px 25px;
        min-height: 350px;
    }

    .membres-card__title {
        font-size: 1.5rem;
    }

    .membres-card__description {
        font-size: 0.95rem;
    }

    .membres-card__avatar {
        width: 50px;
        height: 50px;
    }

    .membres-card__avatar-more {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .membres-section {
        padding: 40px 0;
    }

    .membres-section__header {
        margin-bottom: 40px;
    }

    .membres-section__title {
        font-size: 1.75rem;
    }

    .membres-card {
        padding: 25px 20px;
    }

    .membres-card__button {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
}