.oaka-listing-collections.no-gamme.wrapper,
.oaka-listing-collections.with-gamme.wrapper .collections-list-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
  
.collection-item-wrapper {
    position: relative;
    flex: 0 0 calc((100% - 20px) / 3);
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.collection-item-wrapper a img {
    display: block;
    object-fit: cover;
    aspect-ratio: 16 / 9;
}

.collection-item-wrapper a h2,
.collection-item-wrapper a h3, 
.collection-item-wrapper a h4 {
    font-family: 'Muli Extra Light';
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translate(-50%, 0%);
    padding-bottom: 0px;
    color: #FFF;
    text-shadow: 0px 4px 3px rgba(0,0,0,0.4),
             0px 8px 13px rgba(0,0,0,0.1),
             0px 18px 23px rgba(0,0,0,0.1);
    z-index: 2;
    font-size: 22px;
}

.collection-item-wrapper .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0); /* transparent par défaut */
    transition: background 0.3s ease;
    pointer-events: none; /* permet de cliquer à travers */
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.collection-item-wrapper:hover .overlay {
    background: rgba(0, 0, 0, 0.6); /* filtre noir au hover */
}

.collection-item-wrapper .overlay span {
    transition: opacity 0.3s ease;
    opacity: 0;
    color: #FFF;
    margin-bottom: 15px;
    font-family: 'Muli Extra Light';
}
.collection-item-wrapper:hover .overlay span {
    opacity: 1;
    
}


/* CSS de l'affichage avec des gammes */

.oaka-listing-collections.with-gamme.wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.oaka-listing-collections.with-gamme.wrapper .gamme-wrapper > h3 {
    font-family: 'Muli Extra Light';
    position: relative;
    text-align: center;
    background-color: #231F20;
    color: #FFF;
    padding-top: 15px;
    padding-bottom: 15px;
    margin-bottom: 10px;
    cursor: pointer;
}

.toggle-collections {
    position: relative;
    cursor: pointer;
    padding-right: 20px;
}

.toggle-collections::after {
    content: '\50';
    font-family: 'ETmodules';
    font-size: 32px;
    position: absolute;
    right: 15px;
    margin-top: 1px;
}

.toggle-collections.open::after {
    content: '\4f';
}


/* Partie RWD */

@media screen and (max-width:980px) {
    .collection-item-wrapper {
        flex: 0 0 calc((100% - 10px) / 2);
    }
    .collection-item-wrapper h2,
    .collection-item-wrapper a h3 {
        font-size: 22px;
    }
}
@media screen and (max-width:596px) {
    .collection-item-wrapper {
        flex: 0 0 100%;
    }
}