.artist-menu{
    padding:15px 0 ;
    background:#eee;
    margin-bottom:55px;
    width:100%;
}

/* MENU */

.artist-menu ul{
    display:flex;
    justify-content:center;
    gap:30px;
    flex-wrap:wrap;
    padding:0;
    margin:0;
    list-style:none;
}

.artist-menu li a{
    text-decoration:none;
    color:#333;
    font-weight:400;
    font-size:20px;
    padding:5px 10px;
}

.artist-menu li.active a{
    font-weight:700;
}

/* LISTE ARTISTES */

.artist-list{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:40px;
    width:100%;
    max-width:100%;
    box-sizing:border-box;
}

.artist-item{
    text-align:center;
    width:100%;
    max-width:100%;
}

/* IMAGE CARREE */

.artist-img-wrapper{
    width:100%;
    aspect-ratio:1/1;
    /*overflow:hidden;*/
    position:relative;
}

.artist-img-wrapper img{
    width:100% !important;
    height:100% !important;
    object-fit:cover;
    display:block;
}

/* TITRE */

.artist-item h3{
    margin:8px 0 0 0;
    font-size:20px;
}

/* TABLETTE */

@media (max-width:900px){

    .artist-list{
        grid-template-columns:repeat(2,1fr);
    }

}

/* MOBILE */

@media (max-width:600px){

    /* MENU HORIZONTAL SCROLLABLE */

    .artist-menu{
        padding:15px 0;
        background:#eee;
        margin-bottom:45px;
        overflow-x:auto;   /* permet le scroll horizontal */
        -webkit-overflow-scrolling: touch; /* scroll fluide sur iOS */
        margin-top: 65px;
          position: sticky;             /* pour ne pas casser le flow */
        /*left: 50%;                       /* déplace le menu au milieu du parent */
        /*right: 50%;*/
        top: 95px;
        margin-left: -3vw;              /* ramène le menu à gauche écran */
        margin-right: -3vw;             /* ramène le menu à droite écran */
        width: 100vw;                     /* prend toute la largeur écran */
                     /* swipe horizontal */
        white-space: nowrap; 
        z-index: 9999;
    
    
    }



    .artist-menu ul{
        display:flex;
        flex-wrap:nowrap;      /* empêche de passer à la ligne */
        padding:0 0 0 15px;
        margin:0;
        list-style:none;
        gap:20px;
        width:max-content;     /* force la largeur du ul selon le contenu */
    }

    .artist-menu li{
        flex:0 0 auto;        /* empêche le li de se rétrécir */
    }

    .artist-menu li a{
        text-decoration:none;
        color:#333;
        font-weight:400;
        font-size:17px;
        padding:5px 20px;
        white-space:nowrap;   /* empêche le texte de se couper */
        background: #fff;
        border-radius: 7px;
    }

    .artist-menu li.active a{
        font-weight:700;
    }

/* masque la scrollbar sur desktop (optionnel) */
.artist-menu::-webkit-scrollbar{
    display:none;
}
.artist-menu{
    -ms-overflow-style:none;  /* IE et Edge */
    scrollbar-width:none;     /* Firefox */
}

.artist-list{
    grid-template-columns:1fr;
    padding:0 10px;
    gap:25px;
}

.artist-img-wrapper{
    width:100%;
    aspect-ratio: auto;  /* ou juste supprimer */
}

.artist-img-wrapper img{
   position:static;     /* plus besoin d'absolu */
   width:100%;          /* prend toute la largeur */
   height:auto;         /* garde les proportions */
   margin-bottom: 10px;
}

.artist-item{
    margin-bottom: 20px;
}



}