/* =========================================
   SALON CORDES & VIBRATIONS – WORDPRESS SAFE
   Design exact du template Funky
========================================= */

.salon-page,
.salon-page * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Background global pour toute la page (body) */
body.salon-page-body {
    background-image: url('../images/motifs1.png');
    background-repeat: repeat;
    background-size: auto;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}
.salon-page {
    font-family: 'Lato', sans-serif;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Fond avec image motifs2.png  */
.salon-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-repeat: repeat;
    background-size: auto;
    background-position: center;
    pointer-events: none;
}

/* Container principal */
.salon-container {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 40px 100px;
}

/* En-tête du salon */
.salon-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    gap: 20px;
}

.salon-title {
    font-family: 'Lato', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: #2c2c2c;
    margin: 0;
    line-height: 1.2;
}

.salon-join-btn {
    background: #B88AE6;
    color: #ffffff;
    border: 2px solid #8C144E;
    border-radius: 12px;
    padding: 12px 32px;
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.salon-join-btn:hover {
    background: #9d6fd4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(140, 20, 78, 0.2);
}

/* Barre de filtres */
.salon-filters-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 40px;
    position: relative;
    flex-wrap: wrap;
}

/* Bouton icône filtre */
.filter-icon-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2c2c2c;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.filter-icon-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: scale(1.1);
}

.filter-icon-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
}

/* Panneau de filtres (dropdown) */
.filter-panel {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 12px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    padding: 16px;
    z-index: 100;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.filter-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-option-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Lato', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #2c2c2c;
    transition: all 0.2s ease;
    text-align: left;
    width: 100%;
}

.filter-option-btn:hover {
    background: #f5f5f5;
}

.filter-option-btn.active {
    background: #B88AE6;
    color: #ffffff;
}

.filter-option-btn .filter-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.filter-reset {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid #e0e0e0;
}

/* Boutons d'instruments visibles dans la barre  */
.filter-buttons-visible {
    display: none;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Afficher les badges quand le panneau est ouvert */
.salon-filters-bar.filter-active .filter-buttons-visible {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.filter-pill-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 24px;
    cursor: pointer;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #2c2c2c;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-pill-btn:hover {
    background: #f5f5f5;
    border-color: #B88AE6;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.filter-pill-btn.active {
    background: #B88AE6;
    color: #ffffff;
    border-color: #8C144E;
}

.filter-pill-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

/* Grille des profils */
.salon-profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 20px;
}

/* Carte de profil */
.profile-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.profile-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.profile-card.hidden {
    display: none;
}

/* Photo de profil */
.profile-card-photo {
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: #f5f5f5;
}

.profile-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Informations du profil */
.profile-card-info {
    padding: 20px 20px 12px;
}

.profile-card-name-age {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.profile-card-name {
    font-family: 'Lato', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #2c2c2c;
    margin: 0;
    line-height: 1.3;
}

.profile-card-age {
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #666666;
    margin: 0;
}

/* Badges d'instruments */
.profile-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 20px 20px;
    margin-top: auto;
}

.profile-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f8f8f8;
    border-radius: 16px;
    font-family: 'Lato', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #2c2c2c;
    white-space: nowrap;
}

.profile-badge .badge-icon {
    width: 14px;
    height: 14px;
    object-fit: contain;
}

/* ============================================
   RESPONSIVE MOBILE
   ============================================ */

@media (max-width: 768px) {
    .salon-page {
        min-height: 100vh;
    }

    .salon-container {
        padding: 20px 15px 60px;
    }
    
    .salon-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 15px;
        margin-bottom: 20px;
    }
    
    .salon-title {
        font-size: 24px;
        margin: 0;
        flex: 1;
        text-align: center;
    }
    
    .salon-join-btn {
        width: auto;
        min-width: 100px;
        padding: 10px 20px;
        font-size: 14px;
        text-align: center;
        flex-shrink: 0;
    }
    
    .salon-filters-bar {
        margin-bottom: 25px;
    }
    
    .filter-icon-btn {
        width: 40px;
        height: 40px;
    }
    
    .filter-panel {
        left: 15px;
        right: 15px;
        width: auto;
        max-width: calc(100% - 30px);
    }
    
    .filter-options {
        gap: 12px;
    }
    
    .filter-option-btn {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .salon-profiles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .profile-card {
        max-width: 100%;
    }
    
    .profile-card-photo {
        height: 250px;
    }
    
    .profile-card-name {
        font-size: 18px;
    }
    
    .profile-card-age {
        font-size: 14px;
    }
    
    .profile-badge {
        font-size: 11px;
        padding: 5px 10px;
    }
}

@media (max-width: 480px) {
    .salon-container {
        padding: 15px 12px 50px;
    }
    
    .salon-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .salon-title {
        font-size: 22px;
        text-align: center;
    }
    
    .salon-join-btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .salon-filters-bar {
        margin-bottom: 20px;
    }
    
    .filter-panel {
        left: 12px;
        right: 12px;
        max-width: calc(100% - 24px);
        padding: 20px 15px;
    }
    
    .filter-option-btn {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .salon-profiles-grid {
        gap: 18px;
    }
    
    .profile-card-photo {
        height: 220px;
    }
    
    .profile-card-info {
        padding: 15px 15px 10px;
    }
    
    .profile-card-name {
        font-size: 17px;
    }
    
    .profile-card-badges {
        padding: 0 15px 15px;
        gap: 6px;
    }
    
    .profile-badge {
        font-size: 10px;
        padding: 4px 8px;
    }
}


