/**
 * Builder — section avis (layout ACF : avis)
 */

.avis {
    position: relative;
    padding: clamp(4rem, 10vw, 4rem) 0;
    background-color: var(--color-primary);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.avis__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        180deg,
        rgba(31, 27, 47, 0.72) 0%,
        rgba(31, 27, 47, 0.62) 50%,
        rgba(31, 27, 47, 0.78) 100%
    );
}

.avis .row {
    position: relative;
    z-index: 2;
}

.avis__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: calc(900px + 4rem);
    margin: 0 auto;
}

.avis__title {
    margin: 0 0 1.5rem;
    color: var(--color-light);
}

.avis__carousel {
    position: relative;
    width: 100%;
}

.avis__track {
    position: relative;
}

.avis__slide {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--margin-m);
    width: 100%;
}

.avis__slide[hidden] {
    display: none;
}

.avis__stars {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    line-height: 1;
}

.avis__star {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    font-size: 24px;
    line-height: 1;
}

.avis__star--full {
    color: #EC7205;
}

.avis__star--empty {
    color: transparent;
    -webkit-text-stroke: 1px #EC7205;
}

.avis__quote {
    margin: 0;
    max-width: 42rem;
}

.avis__quote p {
    margin: 0;
    font-family: var(--font-base);
    font-size: var(--base);
    line-height: 1.7;
    color: var(--color-light);
}

.avis__author {
    margin: 0;
    font-family: var(--font-base);
    font-size: 14px;
    font-weight: 700;
    color: var(--color-light);
}

.avis__controls {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

.avis__controls-inner {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: calc(1200px + 4rem);
    margin: 0 auto;
    padding: 0 2rem;
}

.avis__nav {
    position: absolute;
    top: 50%;
    pointer-events: auto;
    transform: translateY(-50%);
}

.avis__nav--prev {
    left: 2rem;
}

.avis__nav--next {
    right: 2rem;
}

.avis__nav:hover,
.avis__nav:focus-visible {
    transform: translateY(-50%);
}

@media screen and (max-width: 767px) {
    .avis {
        padding: 3.5rem 0;
    }

    .avis__controls-inner {
        padding: 0 1.25rem;
    }

    .avis__nav--prev {
        left: 1.25rem;
    }

    .avis__nav--next {
        right: 1.25rem;
    }

    .avis__track {
        padding: 0 3.25rem;
    }

    .avis__nav {
        width: 2.75rem;
        height: 2.75rem;
    }
}
