:root {
    --primary-color: #00853f;
    --secondary-color: #f4f4f4;
    --text-color: #333;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.tous-adherents {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #e9ecef 100%);
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-header h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--primary-color);
}

.adherents-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.adherent-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.adherent-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.adherent-image-container {
    position: relative;
}

.adherent-image {
    height: 300px;
    background-size: cover;
    background-position: center;
}

.default-image {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--secondary-color);
}

.default-image i {
    font-size: 5rem;
    color: var(--primary-color);
}

.adherent-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

.adherent-content {
    padding: 1.5rem;
    text-align: center;
}

.adherent-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.adherent-details {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.sport-badge,
.niveau-badge {
    background: var(--secondary-color);
    color: var(--text-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.profile-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    transition: background 0.3s ease;
}

.profile-btn:hover {
    background: #006e33;
}

.profile-btn i {
    transition: transform 0.3s ease;
}

.profile-btn:hover i {
    transform: translateX(5px);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2.5rem;
}

.pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--white);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 50%;
    border: 1px solid var(--primary-color);
    transition: all 0.3s ease;
}

.pagination a.active,
.pagination a:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Responsive design */
@media (max-width: 1200px) {
    .adherents-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .adherents-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .adherents-grid {
        grid-template-columns: 1fr;
    }
}

.filters-container {
            display: flex;
            justify-content: center;
            gap: 2rem;
            margin-bottom: 2rem;
            flex-wrap: wrap;
        }

        .filter-group {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .filter-select {
            padding: 0.5rem 1rem;
            border: 1px solid var(--primary-color);
            border-radius: 25px;
            background: var(--white);
            color: var(--text-color);
            font-size: 0.9rem;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .filter-select:hover,
        .filter-select:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 2px rgba(0,133,63,0.1);
            outline: none;
        }

        .filter-group label {
            font-weight: bold;
            color: var(--primary-color);
        }

        /* Responsive design pour les filtres */
        @media (max-width: 768px) {
            .filters-container {
                flex-direction: column;
                align-items: stretch;
                gap: 1rem;
            }

            .filter-group {
                flex-direction: column;
                align-items: stretch;
            }

            .filter-select {
                width: 100%;
            }
        }
