/* Styles spécifiques pour la page Membres */

/* Layout principal */
.membres-main {
    padding: 20px 30px; /* Augmentation des marges gauche/droite */
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 100px; /* Espace pour la navigation mobile */
    margin-top: 60px; /* Réduction pour rapprocher le contenu du header */
}

.membres-content-wrapper {
    width: 100%;
    padding-top: 20px;
}

/* Section de recherche */
.membres-search-section {
    margin-bottom: 20px;
    padding: 0 15px; /* Augmentation des marges */
}

.membres-search-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.membres-search-input-container {
    position: relative;
    flex: 1;
}

.membres-search-input {
    width: 100%;
    padding: 12px 20px 12px 50px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    background: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.membres-search-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.membres-search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #6366f1;
    font-size: 18px;
    z-index: 2;
    pointer-events: none;
}

/* Section des filtres */
.membres-filters-section {
    margin-bottom: 30px;
    padding: 0 15px; /* Augmentation des marges */
}

.membres-filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.membres-filters-title {
    font-size: 18px;
    font-weight: 600;
    color: #222222;
}

.membres-filters-actions {
    display: flex;
    gap: 10px;
}

.membres-view-toggle-btn {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #374151;
}

.membres-view-toggle-btn:hover {
    border-color: #6366f1;
    color: #6366f1;
}

.membres-filters-container {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 5px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.membres-filters-container::-webkit-scrollbar {
    display: none;
}

.membres-modal-filters-btn {
    background: #6366f1;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
    font-weight: 500;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    height: 38px;
}

.membres-modal-filters-btn:hover {
    background: #4f46e5;
}

.membres-filter-btn {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    height: 38px;
}

.membres-filter-btn:hover,
.membres-filter-btn.active {
    background: #6366f1;
    color: white;
    border-color: #6366f1;
}

.membres-filter-btn i {
    font-size: 11px;
}

.membres-filter-count {
    background: rgba(255, 255, 255, 0.2);
    color: inherit;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 4px;
}

/* Section des membres */
.membres-section {
    padding: 0 15px; /* Augmentation des marges */
}

/* Grille des membres */
.membres-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(250px, 1fr));
    gap: 25px;
}

/* Mode liste - Layout horizontal */
.membres-grid.list-view {
    display: flex !important;
    flex-direction: column !important;
    gap: 15px;
}

/* Cartes des membres */
.membres-member-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid #f3f4f6;
    aspect-ratio: 0.65; /* Ratio portrait encore plus prononcé */
    min-height: 480px; /* Augmenté de 450px à 480px */
}

/* Supprimer la min-height en mode liste */
.membres-grid.list-view .membres-member-card {
    min-height: unset !important;
    aspect-ratio: unset !important;
}

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

.membres-member-card a {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

/* Image du membre - Mode portrait sur desktop */
.membres-member-image {
    position: relative;
    height: 420px; /* Augmenté de 380px à 420px */
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 48px;
    overflow: hidden;
}

.membres-member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center; /* Centre le visage */
    transition: transform 0.3s ease;
}

.membres-member-card:hover .membres-member-image img {
    transform: scale(1.05);
}

/* Placeholder sans photo */
.membres-member-image .membres-no-photo-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 48px;
    font-weight: 300;
    position: relative;
}

.membres-member-image .membres-no-photo-placeholder::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.membres-member-image .membres-no-photo-placeholder span {
    position: relative;
    z-index: 1;
    font-size: 24px;
    font-weight: 300;
}

/* Statut en ligne */
.membres-member-status {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    background: #10b981;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Ajuster la position du statut en mode liste */
.membres-grid.list-view .membres-member-status {
    top: 5px;
    right: 5px;
    width: 10px;
    height: 10px;
}

/* Ajuster la position du statut en mode liste sur mobile */
@media (max-width: 768px) {
    .membres-grid.list-view .membres-member-status {
        top: 3px;
        right: 3px;
        width: 8px;
        height: 8px;
    }
}

@media (max-width: 480px) {
    .membres-grid.list-view .membres-member-status {
        top: 2px;
        right: 2px;
        width: 7px;
        height: 7px;
    }
}

.membres-member-status.online {
    background: #10b981;
}

.membres-member-status.offline {
    background: #6b7280;
}

/* Informations du membre */
.membres-member-info {
    padding: 16px;
}

.membres-member-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.membres-member-pseudo {
    font-size: 18px;
    font-weight: 600;
    color: #222222;
    margin: 0;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 8px;
}

.membres-member-age {
    background: #f3f4f6;
    color: #374151;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.membres-member-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #717171;
}

.membres-member-location i {
    color: #6366f1;
    font-size: 12px;
}

/* Orientation plus discrète */
.membres-member-orientation {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px; /* Augmenté de 11px à 13px */
    color: #6b7280; /* Couleur plus visible */
    margin-top: 4px;
}

.membres-member-orientation i {
    color: #9ca3af; /* Icône plus visible */
    font-size: 12px; /* Augmenté de 10px à 12px */
}

/* Genre plus discret aussi */
.membres-member-gender {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px; /* Augmenté pour être cohérent */
    color: #6b7280; /* Couleur plus visible */
    margin-top: 4px;
}

.membres-member-gender i {
    color: #9ca3af; /* Icône plus visible */
    font-size: 12px; /* Augmenté pour être cohérent */
}

/* Couronne premium */
.membres-member-crown {
    color: #fbbf24;
    font-size: 16px;
}

/* Mode liste - Layout horizontal */
.membres-grid.list-view {
    display: flex !important;
    flex-direction: column !important;
    gap: 15px;
}

.membres-grid.list-view .membres-member-card {
    display: flex !important;
    height: 100px;
    width: 100% !important;
}

.membres-grid.list-view .membres-member-card a {
    display: flex !important;
    width: 100%;
    height: 100%;
}

.membres-grid.list-view .membres-member-card .membres-member-image {
    width: 80px !important;
    height: 100% !important;
    flex-shrink: 0;
}

.membres-grid.list-view .membres-member-card .membres-member-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 12px 16px;
}

.membres-grid.list-view .membres-member-card .membres-member-pseudo {
    font-size: 14px;
    margin-bottom: 2px;
}

.membres-grid.list-view .membres-member-card .membres-member-location {
    margin-bottom: 2px;
    font-size: 12px;
}

.membres-grid.list-view .membres-member-card .membres-member-gender,
.membres-grid.list-view .membres-member-card .membres-member-orientation {
    font-size: 11px;
    margin-top: 2px;
}

/* Modal des filtres */
.membres-filters-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.membres-filters-modal.active {
    opacity: 1;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.membres-filters-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.membres-filters-modal-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    z-index: 1001;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.membres-filters-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.membres-filters-modal-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #222222;
    margin: 0;
}

.membres-filters-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #717171;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.membres-filters-modal-close:hover {
    background: #f3f4f6;
}

.membres-filters-modal-body {
    padding: 24px;
}

.membres-filter-group {
    margin-bottom: 24px;
}

.membres-filter-group h4 {
    font-size: 16px;
    font-weight: 600;
    color: #222222;
    margin: 0 0 12px 0;
}

.membres-filter-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.membres-filter-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px 0;
}

.membres-filter-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #6366f1;
}

.membres-filter-checkbox span {
    font-size: 14px;
    color: #374151;
}

.membres-filter-range {
    display: flex;
    align-items: center;
    gap: 12px;
}

.membres-filter-range input[type="range"] {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: #e5e7eb;
    outline: none;
    -webkit-appearance: none;
}

.membres-filter-range input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #6366f1;
    cursor: pointer;
}

.membres-filter-range span {
    font-size: 14px;
    color: #374151;
    font-weight: 500;
    min-width: 50px;
    text-align: right;
}

.membres-filters-modal-footer {
    display: flex;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
    border-radius: 0 0 16px 16px;
}

.membres-btn-reset-filters {
    flex: 1;
    background: white;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.membres-btn-reset-filters:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.membres-btn-apply-filters {
    flex: 1;
    background: #6366f1;
    border: none;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.membres-btn-apply-filters:hover {
    background: #4f46e5;
}

/* Responsive */
@media (max-width: 768px) {
    .membres-main {
        padding: 15px 20px;
        padding-bottom: 120px;
        margin-top: 50px;
    }
    
    .membres-search-section {
        margin-bottom: 15px;
        padding: 0 10px;
    }
    
    .membres-filters-section {
        margin-bottom: 20px;
        padding: 0 10px;
    }
    
    .membres-section {
        padding: 0 10px;
    }
    
    /* Grille 2 colonnes sur mobile */
    .membres-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    /* Mode liste sur mobile - prend toute la largeur */
    .membres-grid.list-view .membres-member-card {
        width: 100% !important;
        max-width: none !important;
    }
    
    /* Photos en mode portrait sur mobile */
    .membres-member-image {
        height: 240px;
    }
    
    .membres-member-image img {
        object-fit: cover;
        object-position: top center;
    }
    
    /* Informations plus compactes sur mobile */
    .membres-member-info {
        padding: 12px;
        overflow: hidden;
    }
    
    .membres-member-pseudo {
        font-size: 14px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .membres-member-age {
        font-size: 11px;
        padding: 1px 6px;
        white-space: nowrap;
    }
    
    .membres-member-location {
        font-size: 12px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .membres-filters-container {
        gap: 8px;
    }
    
    .membres-filter-btn {
        padding: 5px 8px;
        font-size: 11px;
        height: 34px;
    }
    
    .membres-modal-filters-btn {
        padding: 5px 8px;
        font-size: 12px;
        height: 34px;
    }
    
    .membres-filters-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .membres-filters-modal-header,
    .membres-filters-modal-body,
    .membres-filters-modal-footer {
        padding: 16px 20px;
    }
    
    /* Mode liste sur mobile */
    .membres-grid.list-view {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px;
    }
    
    .membres-grid.list-view .membres-member-card {
        height: 110px !important;
        width: 100% !important;
        display: flex !important;
    }
    
    .membres-grid.list-view .membres-member-card .membres-member-image {
        width: 70px !important;
        height: 100% !important;
    }
    
    .membres-grid.list-view .membres-member-card .membres-member-info {
        padding: 8px 12px;
        justify-content: flex-start !important;
    }
    
    .membres-grid.list-view .membres-member-card .membres-member-pseudo {
        font-size: 14px;
        margin-bottom: 2px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .membres-grid.list-view .membres-member-card .membres-member-location {
        font-size: 12px;
        margin-bottom: 4px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .membres-grid.list-view .membres-member-card .membres-member-gender,
    .membres-grid.list-view .membres-member-card .membres-member-orientation {
        font-size: 11px;
        margin-top: 2px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* Hauteur minimale réduite sur mobile */
    .membres-member-card {
        min-height: 320px;
    }
    
    /* Supprimer la min-height en mode liste sur mobile */
    .membres-grid.list-view .membres-member-card {
        min-height: unset !important;
        aspect-ratio: unset !important;
    }
    
    /* Genre et orientation sur mobile - affiché en mode grille aussi */
    .membres-member-gender,
    .membres-member-orientation {
        display: flex !important;
        font-size: 10px;
        margin-top: 2px;
    }
}

@media (max-width: 480px) {
    .membres-main {
        padding: 10px 15px;
        padding-bottom: 130px;
        margin-top: 40px;
    }
    
    .membres-search-input {
        padding: 14px 18px 14px 45px;
        font-size: 15px;
    }
    
    .membres-search-icon {
        left: 15px;
        font-size: 16px;
    }
    
    .membres-filters-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .membres-filters-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    /* Grille 2 colonnes sur très petit écran */
    .membres-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    /* Photos adaptées pour 2 colonnes */
    .membres-member-image {
        height: 200px;
    }
    
    .membres-member-info {
        padding: 6px 6px;
        overflow: hidden;
    }
    
    .membres-member-pseudo,
    .membres-member-location,
    .membres-member-gender,
    .membres-member-orientation {
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: unset !important;
        word-break: break-word;
    }
    
    .membres-member-pseudo {
        font-size: 11px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-bottom: 1px;
    }
    
    .membres-member-age {
        font-size: 9px;
        padding: 1px 3px;
        white-space: nowrap;
    }
    
    .membres-member-location {
        font-size: 10px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        margin-bottom: 1px;
    }
    
    /* Mode liste sur très petit écran */
    .membres-grid.list-view {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px;
    }
    
    .membres-grid.list-view .membres-member-card {
        height: 100px !important;
        width: 100% !important;
        display: flex !important;
    }
    
    .membres-grid.list-view .membres-member-card .membres-member-image {
        width: 60px !important;
        height: 100% !important;
    }
    
    /* Hauteur minimale pour très petit écran - SEULEMENT en mode grille */
    .membres-member-card {
        min-height: 280px;
    }
    
    /* Largeur limitée SEULEMENT en mode grille sur très petit écran */
    .membres-grid:not(.list-view) .membres-member-card {
        max-width: 160px;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Mode liste prend toute la largeur */
    .membres-grid.list-view .membres-member-card {
        min-height: unset !important;
        aspect-ratio: unset !important;
        max-width: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Genre et orientation sur très petit écran - affiché en mode grille aussi */
    .membres-member-gender,
    .membres-member-orientation {
        display: flex !important;
        font-size: 9px;
        margin-top: 2px;
    }
}

/* Breakpoint spécifique pour iPhone mini (375px) */
@media (max-width: 375px) {
    .membres-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .membres-member-image {
        height: 180px;
    }
    
    .membres-member-info {
        padding: 8px 10px;
    }
    
    .membres-member-pseudo {
        font-size: 11px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-bottom: 2px;
    }
    
    .membres-member-age {
        font-size: 9px;
        padding: 1px 3px;
    }
    
    .membres-member-location {
        font-size: 10px;
        margin-bottom: 2px;
    }
    
    .membres-member-card {
        min-height: 280px;
    }
    
    /* Largeur limitée SEULEMENT en mode grille sur iPhone mini */
    .membres-grid:not(.list-view) .membres-member-card {
        max-width: 160px;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Mode liste prend toute la largeur sur iPhone mini */
    .membres-grid.list-view .membres-member-card {
        max-width: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Afficher genre et orientation sur iPhone mini */
    .membres-member-gender,
    .membres-member-orientation {
        display: flex !important;
        font-size: 9px;
        margin-top: 2px;
    }
}

/* Styles pour la nouvelle barre de recherche */
.membres-search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.membres-search-type-select {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    min-width: 100px;
}

.membres-location-btn {
    background: #6366f1;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.membres-location-btn:hover {
    background: #4f46e5;
    transform: scale(1.05);
}

.membres-location-btn:active {
    transform: scale(0.95);
}

.membres-radius-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.membres-radius-selector label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.membres-radius-selector select {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
}

/* Styles pour la pagination */
.membres-pagination-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    padding: 20px;
}

.loading-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #6b7280;
    font-size: 14px;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #e5e7eb;
    border-top: 2px solid #6366f1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.load-more-btn {
    background: #6366f1;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.load-more-btn:hover {
    background: #4f46e5;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.load-more-btn:active {
    transform: translateY(0);
}

.load-more-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.end-of-results {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #10b981;
    font-size: 14px;
    padding: 12px 20px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
}

.end-of-results i {
    font-size: 16px;
}

.error-message {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #dc2626;
    font-size: 14px;
    padding: 12px 20px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
}

.error-message i {
    font-size: 16px;
}

/* Responsive pour la pagination */
@media (max-width: 768px) {
    .membres-pagination-section {
        margin-top: 30px;
        padding: 15px;
        gap: 15px;
    }
    
    .load-more-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .loading-indicator,
    .end-of-results,
    .error-message {
        font-size: 13px;
        padding: 10px 16px;
    }
}

@media (max-width: 480px) {
    .membres-pagination-section {
        margin-top: 20px;
        padding: 10px;
        gap: 12px;
    }
    
    .load-more-btn {
        padding: 8px 16px;
        font-size: 12px;
        width: 100%;
        justify-content: center;
    }
    
    .loading-indicator,
    .end-of-results,
    .error-message {
        font-size: 12px;
        padding: 8px 12px;
        text-align: center;
        width: 100%;
    }
}

/* Responsive pour la nouvelle barre de recherche */
@media (max-width: 768px) {
    .membres-search-type-select {
        padding: 6px 10px;
        font-size: 13px;
        min-width: 80px;
    }
    
    .membres-search-input {
        padding: 10px 18px 10px 45px;
        font-size: 15px;
    }
    
    .membres-location-btn {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .membres-radius-selector {
        padding: 8px;
        gap: 8px;
    }
    
    .membres-radius-selector label {
        font-size: 13px;
    }
    
    .membres-radius-selector select {
        padding: 6px 10px;
        font-size: 13px;
    }
}

/* ===== STYLES POUR LES FILTRES DE MESSAGES ===== */
.messages-desktop-filter-btn {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    height: 36px;
}

.messages-desktop-filter-btn:hover,
.messages-desktop-filter-btn.active {
    background: #6366f1;
    color: white;
    border-color: #6366f1;
}

.messages-desktop-filter-btn i {
    font-size: 10px;
}

.messages-desktop-filter-count {
    background: rgba(255, 255, 255, 0.2);
    color: inherit;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 4px;
}

@media (max-width: 768px) {
    .messages-desktop-filter-btn {
        padding: 5px 8px;
        font-size: 11px;
        height: 32px;
    }
}

@media (max-width: 480px) {
    .messages-desktop-filter-btn {
        padding: 4px 6px;
        height: 28px;
        font-size: 10px;
    }
}
