/* =========================================
   Sponsors Carousel
   ========================================= */

.sponsors-carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 1300px; /*1200*/
    margin: 0 auto;
    padding: 0 45px;
    box-sizing: border-box;
}

.sponsors-carousel-container {
    width: 100%;
    overflow: hidden;
}

.sponsors-carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease;
    will-change: transform;
}

.sponsors-carousel-item {
    flex: 0 0 calc((100% - 80px) / 5);
    height: 220px; /*160*/
    box-sizing: border-box;
}

.sponsors-carousel-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.sponsors-carousel-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.sponsors-carousel-item a:hover img {
    transform: scale(1.05);
}


/* =========================================
   Boutons
   ========================================= */

.sponsors-carousel-prev,
.sponsors-carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    width: 36px;
    height: 36px;

    border: none;
    border-radius: 50%;

    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;

    font-size: 22px;
    line-height: 36px;

    padding: 0;
    cursor: pointer;

    z-index: 5;

    transition:
        background 0.3s ease,
        transform 0.3s ease;
}

.sponsors-carousel-prev {
    left: 0;
}

.sponsors-carousel-next {
    right: 0;
}

.sponsors-carousel-prev:hover,
.sponsors-carousel-next:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.05);
}


/* =========================================
   Tablette
   ========================================= */

@media (max-width: 900px) {

    .sponsors-carousel-wrapper {
        padding: 0 40px;
    }

    .sponsors-carousel-item {
        flex: 0 0 calc((100% - 20px) / 2);
        height: 150px;
    }
}


/* =========================================
   Mobile
   ========================================= */

@media (max-width: 600px) {

    .sponsors-carousel-wrapper {
        padding: 0 35px;
    }

    .sponsors-carousel-track {
        gap: 15px;
    }

    .sponsors-carousel-item {
        /*flex: 0 0 100%;*/
		flex: 0 0 calc((100% - 20px) / 2);
        height: 160px;
    }

    .sponsors-carousel-prev,
    .sponsors-carousel-next {
        width: 32px;
        height: 32px;
        font-size: 18px;
        line-height: 32px;
    }
}


/* masquage des boutons */
.sponsors-carousel-prev,
.sponsors-carousel-next {
    display: none !important;
}