/*> Latest sale*/
.latest-sales {
    display: flex;
    justify-content: flex-end;
    height: 600px;
    padding-left: 3rem;

    @media (max-width:800px) {
        display: flex !important;
        justify-content: center !important;
        height: 650px !important;
        padding: auto !important;
        flex-direction: column-reverse !important;
        flex-wrap: nowrap !important;
        align-content: center !important;
        align-items: center !important;
    }

    @media (max-width:560px) {
        padding-left: unset !important;
        /* height: 460px !important; */
    }
}

.latest-sales__image {
    width: 50%;
    border-top-left-radius: 7.5rem; /* root 120px */
    background-size: cover;
    background-position: center center;
    height: 600px;
    transition: background-image .25s ease-in-out;

    @media (max-width:1300px) {
        width: 90%;
    }
    @media (max-width:800px) {
        /* display: none; */
        border-radius: 9px;
    }
}

.latest-sales__image.live {
    position: relative; /* reset render context for ::before positioning*/
}

.latest-sales__image.live::before {
    content: '';
    height: 3.625rem; /* root 58px */
    aspect-ratio: 1;
    background-image: url('../images/live-bullet.png');
    background-position: center center;
    background-size: contain;
    position: absolute;
    top: 3.5rem;
    left: 3.5rem;

    @media (max-width:800px) {
        top: 0.5rem;
        left: 0.5rem;
    }
}

.latest-sales__description {
    height: 100%;
    max-width: 800px;
    margin: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-bottom: 2rem;
    flex-grow: 1;
    color: hsl(var(--base-blue-500));

    @media (max-width:1000px) {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    @media (max-width:800px) {
        font-size: 1rem;
        width: 90%;
        padding-bottom: 1rem;
        align-items: start;
        margin: 1rem;
    }

    @media (max-width:560px) {
        display: flex;
        flex-direction: column;
        justify-content: flex-start !important;
    }
}

.latest-sales__description__btn{
    @media (max-width:800px) {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
}

.latest-sales__description__title {
    font-size: 3rem;

    @media (max-width:800px) {
        font-size: 1.5rem;
        font-weight: bold;
    }
}

.latest-sales__description__label-group {
    max-height: 48px;
}

.latest-sales__description__info {
    padding: .25rem 0;
    width: fit-content;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;

    @media (max-width:800px) {
        margin-bottom: 1rem;
    }
}

.latest-sales__description__info p {
    margin-bottom: .5rem;

    @media (max-width:800px) {
        /* display: none; */
        font-size: 1rem;
    }
}

.latest-sales__description__see-more {
    width: fit-content;
    margin-bottom: 2rem;

    @media (max-width:800px) {
        margin-bottom: 1rem;
    }
}

.latest-sales__description__carousel-controls {
    display: flex;
}

.latest-sales__description__carousel-controls .button--icon:first-child {
    margin-right: 2rem;
}

/*< Latest sale*/
/* ------------------------------------------------------------------------------------------------------------------ */
/* ------------------------------------------------------------------------------------------------------------------ */
/* --------------------------------------------------SALE CALENDAR--------------------------------------------------- */
/* ------------------------------------------------------------------------------------------------------------------ */
/* ------------------------------------------------------------------------------------------------------------------ */
/*> Sales calendar*/
.sales-calendar {
    background-color: hsl(var(--base-grey-300));
    padding: 5.75rem max(1rem, 13%); /* at least 1rem */

    @media (max-width:800px) {
        padding: 2rem;
    }
}

.sales-calendar__hero {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2.5rem;

    @media (max-width:850px) {
        flex-direction: column !important;
    }
}

.sales-calendar__hero__see-all {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.sales-calendar__hero__see-all__text {
    margin-right: .5rem;
    color: black;
    text-decoration: none;
}

.sales-calendar__hero__see-all__icon {
    height: 1.5rem;
    aspect-ratio: 1;
    background-color: hsl(var(--button-background-color));
    color: hsl(var(--button-color));
    border-radius: 50%;
}

.sales-calendar__hero__see-all:hover .sales-calendar__hero__see-all__icon {
    --button-background-color: hsl(var(--base-red-500));
}

.sales-calendar__hero__see-all:hover .sales-calendar__hero__see-all__text {
    text-decoration: underline;
}

.sales-calendar__sales-list {
    display: grid;
    grid-auto-flow: column;
    gap: 2.5rem;
    margin-bottom: 3.25rem;
    grid-template-columns: repeat(3, 33.33333%);
}

.sales-calendar__sales-list-indicators {
    list-style: none;
    display: flex;
    justify-content: center;
}

.sales-calendar__sales-list-indicators li {
    margin-inline: .5rem;
}

.sales-calendar__sales-list-indicators__indicator {
    height: .25rem;
    width: 1.5rem;
    background-color: hsl(var(--base-disabled));
}

.sales-calendar__sales-list-indicators__indicator.active {
    background-color: hsl(var(--base-blue-500));
}

.sales-calendar__sales-list-indicators__indicator:hover {
    background-color: hsl(var(--base-red-500));
}
/* ---------------------------------------------------------------------------------------------------- */
/* ---------------------------------------------------------------------------------------------------- */
/* ---------------------------------------- CAROUSEL -------------------------------------------------- */
/* ---------------------------------------------------------------------------------------------------- */
/* ---------------------------------------------------------------------------------------------------- */

.slick-prev,
.slick-next {
    position: absolute;
    display: block;
    cursor: pointer;
    background: hsl(var(--button-background-color));
    color: white;
    top: 50%;
    margin-top: -10px;
    padding: 10px;
    border: none;
    border-radius: 50%;
    outline: none;
    &:hover {
        outline: none;
        background: transparent;
        color: hsl(var(--button-background-color));
    }

    @media (max-width:800px) {
        display: none !important;
    }
}

.slick-prev {
    left: -55px;
}

.slick-next {
    right: -55px;
}

.slick-dots {
    margin-top: 10px;
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.slick-dots li {
    margin: 0 0.25rem;
}

.slick-dots li button {
    display: block;
    width: 1rem;
    height: 1rem;
    padding: 0;
    cursor: pointer;

    border: none;
    border-radius: 100%;
    background-color: hsl(var(--button-background-color));
    
    text-indent: -9999px;
}

.slick-dots li.slick-active button {
    background-color: transparent;
    border: solid 2px hsl(var(--button-background-color));
}

/*< Sales calendar*/

/* ----------------------------------------------------------------------------------------- */
/* ----------------------------------------------------------------------------------------- */
/* ------------------------------------- PITCH SECTION-------------------------------------- */
/* ----------------------------------------------------------------------------------------- */
/* ----------------------------------------------------------------------------------------- */
/*> Pitch */
/* .pitch-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
} */

@media (min-width:1800px) {
    .pitch-section {
        padding: 16.75rem /* root 268px */ max(1rem, 13%) /* at least 1rem */ 10rem;
        display: flex;
        justify-content: space-around;
        align-items: center;
        width: 100%;
    }
}
@media (min-width:1500px) {
    .pitch-section {
        padding: 16.75rem /* root 268px */ max(1rem, 7%) /* at least 1rem */ 5rem;
        display: flex;
        justify-content: space-around;
        align-items: center;
        width: 100%;
    }
}
@media (min-width:1300px) and (max-width:1499px) {
    .pitch-section {
        padding: 12.75rem /* root 268px */ max(1rem, 2%) /* at least 1rem */ 6rem;     
        display: flex;
        justify-content: space-around;
        align-items: center;
        width: 100%;
    }
}
@media (max-width:1299px) {
    .pitch-section {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        margin: 5rem 0;
    }
    .pitch-section__pitch {
        max-width: 66% !important;
        display: flex !important;
        flex-direction: column !important;
        align-content: center !important;
        justify-content: center !important;
        text-align: center !important;
        align-items: center !important;
    }
    .pitch-section__image {
        display: none !important;
    }
}

.pitch-section__image {
    height: 100%;
    overflow: visible;
    position: relative;
}


.pitch-section__image::before {
    content: '';
    background-image: url('../images/bulle-vehicule-vente-home.jpg');
    background-size: 100%;
    width: 50%;
    aspect-ratio: 1;
    border-radius: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    position: absolute;
    z-index: 1;
}

.pitch-section__image img {
    border-radius: 10px;
    width: 30vw;
    position: relative;
    z-index: 2;
}

.pitch-section__pitch {
    overflow: visible;
    position: relative;
    max-width: 33%;
}

.pitch-section__pitch::before {
    content: '';
    width: 6.25rem; /* root 100px */
    border-top: 2px solid hsl(var(--base-red-500));
    position: absolute;
    left: 0;
    top: -3rem;
}

.pitch-section__pitch p {
    margin-bottom: 3.25rem; /* root 52px */
    font-size: 1.5rem;
    line-height: 1.875rem;
}

.pitch-section__pitch .button {
    width: fit-content;
}
/*< Pitch */

/* ----------------------------------------------------------------------------------------- */
/* ----------------------------------------------------------------------------------------- */
/* ------------------------------------- DOMAINE SECTION-------------------------------------- */
/* ----------------------------------------------------------------------------------------- */
/* ----------------------------------------------------------------------------------------- */
/*> Domaine */
.domaine-section{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 3rem;

    .block-separation-domaine{
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        grid-auto-rows: minmax(100px, auto);
        width: 80%;

        @media (max-width:1200px) {
            width: 100%;
        }
        @media (max-width:1100px) {
            grid-template-columns: repeat(3, 1fr);
        }
        @media (max-width:620px) {
            grid-template-columns: repeat(2, 1fr);
        }
        @media (max-width:400px) {
            grid-template-columns: repeat(1, 1fr);
        }

        .block-domaine{
            margin: 2rem;
        
            img{
                width: 200px;
                aspect-ratio: 1;
                border-radius: 50%;
                margin-bottom: 1rem;

                @media (max-width:1000px) {
                    width: 150px;
                }
            }

        }
    }

}
/*< Domaine */

.newsletter-section {
    display: flex;
    justify-content: right;
}

.newsletter-section {
    @media (max-width:1300px) {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        align-content: center !important;
        justify-content: center !important;
        align-items: center !important;
        background-color: hsl(var(--base-grey-300));
    }
}

.newsletter-section__form-wrapper {
    border-top-left-radius: 7.5rem;
    background-color: hsl(var(--base-grey-300));
    padding: 6.5rem /* root 104px */ 13vw 8.5rem 8.5rem;
    overflow: visible;
    position: relative;
    width: 60%;
    @media (max-width:1300px) {
        padding: 2rem !important;
        width: 100% !important;
    }
}

.newsletter-section__picture {
    top: 0;
    left: 0;
    height: 680px;
    width: 680px;
    position: absolute;
    display: block;
    object-fit: cover;
    transform: translateX(calc(-50% - 16.5rem));
    clip-path: url(#newsletter-image-clip-path);

    @media (max-width:1300px) {
        display: none !important;
    }
}
.newsletter-section__form {
    margin-bottom: 7rem;
    @media (max-width:1300px) {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        align-content: center !important;
        justify-content: center !important;
        align-items: center !important;
        margin-bottom: 1rem !important;
    }
}
.newsletter-section__form__title {
    margin-bottom: 2.5rem;
    font-size: 2.625rem;

    @media (max-width:800px) {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
}

.newsletter-section__form__text {
    font-size: 1.5rem;
}

#newsletter-form__email {
    width: 100%;
}
.consent-and-validate {
    display: flex;
    justify-content: center;
}

@media (max-width:500px) {
    .a-input-group div {
        display: flex;
        flex-direction: row;
        align-content: center;
        align-items: flex-start;
    }
    .a-input-group input {
        margin: 5px;
    } 
}

/*< Newsletter */

/* ----------------------------------------------------------------------------------------------------- */
/* ----------------------------------------------------------------------------------------------------- */
/* ------------------------------------------ FOOTER --------------------------------------------------- */
/* ----------------------------------------------------------------------------------------------------- */
/* ----------------------------------------------------------------------------------------------------- */
