:root {
    --gap: 20px;
    --slide-w: clamp(120px, 20vw, 390px);
}

.section--prestations .grid--prestations {}
.section--prestations .block--prestation {}
.section--prestations .block--prestation:not(:first-child) {
    margin:107px 0 0 0;
}
.section--prestations .block--prestation:last-child {
    margin-bottom:107px;
}
.section--prestations .block--prestation .block__title {
    color:var(--color-secondary);
    width: 100%;
    text-align: center;
    text-transform: uppercase;
    margin: 50px 0 24px 0;
    font-family: "Alwyn New", sans-serif;
    font-size:clamp(24px, 3vw, 28px);
    line-height: 1.5;
}
.section--prestations .block--prestation .block__text {
    width: 100%;
    text-align: center;
    font-size:18px;
    line-height: 1.5;
}


.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.carousel {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    overflow: hidden;
}

.carousel__viewport {
    overflow: hidden;
    outline: none;
    width: 100%;
}

.carousel__track {
    display: flex;
    align-items: center;
    gap: var(--gap);
    /*transition: transform .45s ease;*/
    /*will-change: transform;*/
}

.carousel__slide {
    flex: 0 0 clamp(120px, 20vw, 200px);
    /*transition: transform .28s ease, opacity .28s ease;*/
    opacity: .8;
    aspect-ratio: 1 / 1;

}

.carousel__slide.is-center {
    opacity: 1;
    flex: 0 0 clamp(120px, 21vw, 390px);
}

.carousel__slide.is-out {
    /*opacity: 0;*/
    visibility: hidden;
    pointer-events: none;
}

.block__image {
    width: 100%;
    border-radius: 0 30px 0 0;
    overflow: hidden;
    background: #f5f7fa;
    box-shadow: 0 6px 14px rgba(0, 0, 0, .1);
    aspect-ratio:  1 / 1;
}

.block__image img {
    width: 100%;
    height: 100%;
    position: absolute;
    top:0;
    left: 0;
    object-fit: cover;
}

.carousel__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    bottom:0;
    left: calc(clamp(120px, 20vw, 200px) * 2 - 40px);
}

.carousel__control {
    --btn: 32px;
    width: var(--btn);
    height: var(--btn);
    display: flex;
    align-items: center;
    justify-content: center;
    transform-origin: center center;
    transform: rotate(90deg);
    cursor: pointer;
}

.carousel__control svg * {
    transition: linear .15s;
}
.carousel__control:hover svg * {
    fill:var(--color-secondary);
}

.carousel__control:focus-visible {
    outline: 3px solid #f2bb13;
    outline-offset: 2px;
}

.carousel__control[disabled] {
    opacity: .4;
    cursor: not-allowed;
}
@media (max-width: 1080px) {
    .carousel {
        width: calc(100% + 2 * clamp(14px, 5%, 25px));
        margin-left: calc(-1 * clamp(14px, 5%, 25px));
    }
    .carousel__controls {
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        bottom:initial;
        left:initial;
        margin: 24px 0 0 0;
    }
}
@media (max-width: 1024px) {
    :root {
        --slide-w: clamp(140px, 28vw, 260px);
    }
}

@media (max-width: 768px) {
    :root {
        --slide-w: clamp(160px, 70vw, 320px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .carousel__track, .carousel__slide, .carousel__control {
        transition: none !important;
    }
}
