
.section--categories-slider {
    padding: 32px 0;
    position: relative;
}

/* CONTROLS (placés à droite du container) */
.section--categories-slider .section__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 32Px 0 0 0;
}

.section--categories-slider .section__btn {
    border-radius: 50%;
    aspect-ratio: 1 / 1;
    padding: 10px 16px;
    cursor: pointer;
    transition: 0.25s;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
    color: var(--color-text);
}

.section--categories-slider .section__btn--next {
    transform-origin: center center;
    transform: rotate(180deg);
}

.section--categories-slider .section__btn svg {
    width: 12px;
}

.section--categories-slider .section__btn svg * {
    fill: var(--color-nav);
}

.section--categories-slider .section__btn:hover {
    border-color: var(--color-bold);
}

.section--categories-slider .section__btn:hover svg * {
    fill: var(--color-bold);
}

.section--categories-slider .section__btn:hover {
    color: var(--color-nav);
}

.section--categories-slider .section__slider-wrapper {
    overflow: hidden;
    scroll-behavior: smooth;
    width: 100%;
}
.section__slider-wrapper::-webkit-scrollbar {
    display: none;
}
.section--categories-slider .section__slider {
    display: flex;
    gap: 16px;
    transition: transform .25s;
}

.section--categories-slider .section__card {
    position: relative;
    min-width: calc((100% - 32px) / 3);
    aspect-ratio: 1 / 1;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.section--categories-slider .section__card a {
    display: block;
    width: 100%;
    height: 100%;
}

.section--categories-slider .section__card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: .25s;
}

.section--categories-slider .section__card::after {
    content: '';
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: var(--color-black);
    opacity: .25;
    transition: .25s;
    z-index: 10;
}


/* CONTENT CENTRÉ */
.section--categories-slider .section__card-content {
    width: 100%;
    height: 100%;
    padding: 16px;
    position: absolute;
    top: 0;
    left: 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: var(--color-white);
    z-index: 100;
}

.section--categories-slider .section__card-title {
    font-size: 18px;
    line-height: 1.3;
    font-weight: 600;
}

.section--categories-slider .section__card-title::before {
    content: '';
    width: 50px;
    height: 2px;
    position: absolute;
    bottom: -8px;
    left: calc(50% - 25px);
    background: var(--color-white);
    transition: linear .25s;
}

.section--categories-slider .section__card a:hover .section__card-title::before {
    width: 100px;
    left: calc(50% - 50px);
}


@media all and (max-width: 1024px) {

    .section--categories-slider .section__card {
        min-width: calc((100% - 16px) / 2);
    }
    .section--categories-slider .section__controls {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        right: initial;
        top: initial;
        margin: 32px auto 0 auto;
        order: 3;
    }

    .section--categories-slider .section__slider-wrapper {
        order: 2;
    }
}

@media all and (max-width: 768px) {
    .section--categories-slider .section__card-title {
        font-size: 16px;
    }
    .section--categories-slider .section__card {
        min-width: 100%;
    }
}
