/* --- Mise en page globale --- */
.annuaire-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* --- Barre de recherche --- */
.filter-bar {
    background: #f8fafc;
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 40px;
    text-align: center;
}

.search-box {
    display: flex;
    max-width: 400px;
    margin: 0 auto 20px;
    background: white;
    border-radius: 30px;
    padding: 5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.search-box input {
    flex: 1;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    outline: none;
}

.tags-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    border: none;
    background: #e2e8f0;
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.tag.active {
    background: var(--mauze-yellow);
    color: var(--mauze-ardoise);
}

/* --- La Grille --- */
.adherents-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 colonnes sur PC */
    gap: 30px;
}

/* --- La Carte --- */
.adherent-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.adherent-card:hover {
    transform: translateY(-10px);
}

.card-thumb {
    position: relative;
    height: 160px;
}

.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cat-label {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: var(--mauze-yellow);
    padding: 3px 10px;
    font-size: 0.7rem;
    font-weight: 800;
    border-radius: 5px;
    text-transform: uppercase;
}

.card-body {
    padding: 20px;
    text-align: center;
}

.card-body h3 {
    margin: 0 0 10px;
    font-size: 1.1rem;
    color: var(--mauze-ardoise);
}

.btn-view {
    display: inline-block;
    margin-bottom: 15px;
    padding: 10px 20px;
    background: #f1f5f9;
    color: var(--mauze-ardoise);
    text-decoration: none;
    font-weight: bold;
    border-radius: 10px;
    font-size: 0.8rem;
    transition: 0.3s;
}

.btn-view:hover {
    background: var(--mauze-yellow);
}
.card-thumb .qrCode{
    width: 50px;
    height: 50px;
}