
/* --------------------------------- BLOCS --------------------------------- */

.pageProduitsLocaux section.blocs{
    padding-block: 160px;
}

.pageProduitsLocaux section.blocs > .container{
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.pageProduitsLocaux section.blocs .bloc{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    position: relative;
}

.pageProduitsLocaux section.blocs .bloc .image{
    aspect-ratio: 680 / 510;
    border-radius: 24px;
    height: 100%;
}

.pageProduitsLocaux section.blocs .bloc:nth-child(odd) .image {
    order: 2;
}

.pageProduitsLocaux section.blocs .bloc figcaption{
    border-radius: 24px;
    background-color: var(--tertiary);
    display: flex;
    justify-content: center;
    flex-direction: column;
    height: 100%;
    position: relative;
    padding: 70px 100px;
}

.pageProduitsLocaux section.blocs .bloc figcaption .titre{
    font-size: 32px;
    line-height: 38px;
    color: var(--primary);
    font-weight: bold;
    margin-bottom: 16px;
}

.pageProduitsLocaux section.blocs .bloc figcaption .btn{
    margin-top: 24px;
}

.pageProduitsLocaux section.blocs .bloc figcaption .logo{
    margin-top: 24px;
}

.pageProduitsLocaux section.blocs .bloc:first-child::after{
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 270px;
    height: auto;
    aspect-ratio: 1;
    display: block;
    background-image: url(/wp-content/themes/fornel/img/logoLocal.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transform: translate(35%, -20%);
}

@media (max-width: 1600px) {
    .pageProduitsLocaux section.blocs .bloc figcaption .titre{
        font-size: 28px;
        line-height: 34px;
    }
    .pageProduitsLocaux section.blocs .bloc figcaption{
        padding: 70px;
    }
    .pageProduitsLocaux section.blocs .bloc:first-child::after{
        width: 200px;
    }
}

@media (max-width: 992px) {
    .pageProduitsLocaux section.blocs{
        padding-block: 130px 80px;
    }
    .pageProduitsLocaux section.blocs > .container{
        gap: 40px;
    }
    .pageProduitsLocaux section.blocs .bloc{
        grid-template-columns: 1fr;
    }
    .pageProduitsLocaux section.blocs .bloc .image{
        border-radius: 12px;
        order: 2 !important;
    }
    .pageProduitsLocaux section.blocs .bloc figcaption{
        border-radius: 12px;
        padding: 40px 30px;
    }
    .pageProduitsLocaux section.blocs .bloc figcaption .titre{
        font-size: 24px;
        line-height: 28px;
    }
    .pageProduitsLocaux section.blocs .bloc:first-child::after{
        width: 140px;
        transform: translate(15%, -50%);
    }
}

/* ------------------------------- RÉFÉRENCES ------------------------------- */

.pageProduitsLocaux .sectionLabels{
    padding-bottom: 200px;
}

.pageProduitsLocaux .sectionLabels h2{
    font-size: 43px;
    line-height: 50px;
    color: var(--primary);
    margin-bottom: 16px;
    text-transform: uppercase;
    font-weight: bold;
}

.pageProduitsLocaux .sectionLabels .slider{
    position: relative;
}

.pageProduitsLocaux .sectionLabels .swiper-button-next,
.pageProduitsLocaux .sectionLabels .swiper-button-prev{
    position: absolute;
    height: 48px;
    width: 48px;
    border-radius: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: solid 1px var(--primary);
    background-color: #fff;
}

.pageProduitsLocaux .sectionLabels .swiper-button-next{
    right: 50px;
    transform: translateX(100%);
}

.pageProduitsLocaux .sectionLabels .swiper-button-prev{
    left: 50px;
    transform: translateX(-100%);
}

.pageProduitsLocaux .sectionLabels .swiper-button-next::after,
.pageProduitsLocaux .sectionLabels .swiper-button-prev::after{
    content: "";
    width: 28px;
    height: 19px;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

.pageProduitsLocaux .sectionLabels .swiper-button-next::after{
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28.078' height='18.61' viewBox='0 0 28.078 18.61'%3E%3Cpath id='Tracé_71' data-name='Tracé 71' d='M3.657,8.614l24.38-.081.041,1.869-24.015.041,6.7,6.7L9.305,18.61,0,9.346V9.305L1.463,7.842,9.305,0l1.463,1.5Z' transform='translate(28.078 18.61) rotate(-180)' fill='%2323346a' fill-rule='evenodd'/%3E%3C/svg%3E%0A");
}

.pageProduitsLocaux .sectionLabels .swiper-button-prev::after{
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28.078' height='18.61' viewBox='0 0 28.078 18.61'%3E%3Cpath id='Tracé_71' data-name='Tracé 71' d='M3.657,8.614l24.38-.081.041,1.869-24.015.041,6.7,6.7L9.305,18.61,0,9.346V9.305L1.463,7.842,9.305,0l1.463,1.5Z' fill='%2323346a' fill-rule='evenodd'/%3E%3C/svg%3E%0A");
}

.pageProduitsLocaux .sectionLabels .swiper-wrapper{
    align-items: center;
}

.pageProduitsLocaux .sectionLabels .swiper-slide{
    height: 100%;
}

.pageProduitsLocaux .sectionLabels .swiper-slide a{
    display: block;
}

.pageProduitsLocaux .sectionLabels .swiper-slide img{
    width: 100%;
    object-fit: contain;
    aspect-ratio: 1;
}

@media (min-width: 1701px){
    .pageProduitsLocaux .sectionLabels .slider{
        max-width: 1650px !important;
    }
}

@media (max-width: 1500px){
    .pageProduitsLocaux .sectionLabels h2{
        font-size: 38px;
        line-height: 40px;
    }
}

@media (max-width: 1300px){
    .pageProduitsLocaux .sectionLabels .swiper-button-next,
    .pageProduitsLocaux .sectionLabels .swiper-button-prev{
        top: initial;
        bottom: -30px;
    }
    .pageProduitsLocaux .sectionLabels .swiper-button-next{
        right: calc(50% - 35px);
        transform: translate(100%, 100%);
    }
    .pageProduitsLocaux .sectionLabels .swiper-button-prev{
        left: calc(50% - 35px);
        transform: translate(-100%, 100%);
    }
    .pageProduitsLocaux .sectionLabels .slider{
        padding-inline: 0px;
    }
}

@media (min-width: 993px){
    .pageProduitsLocaux .sectionLabels .swiper-button-next:hover,
    .pageProduitsLocaux .sectionLabels .swiper-button-prev:hover{
        background-color: var(--primary);
    }
    .pageProduitsLocaux .sectionLabels .swiper-button-next:hover::after{
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28.078' height='18.61' viewBox='0 0 28.078 18.61'%3E%3Cpath id='Tracé_71' data-name='Tracé 71' d='M3.657,8.614l24.38-.081.041,1.869-24.015.041,6.7,6.7L9.305,18.61,0,9.346V9.305L1.463,7.842,9.305,0l1.463,1.5Z' transform='translate(28.078 18.61) rotate(-180)' fill='%23fff' fill-rule='evenodd'/%3E%3C/svg%3E%0A");
    }
    .pageProduitsLocaux .sectionLabels .swiper-button-prev:hover::after{
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28.078' height='18.61' viewBox='0 0 28.078 18.61'%3E%3Cpath id='Tracé_71' data-name='Tracé 71' d='M3.657,8.614l24.38-.081.041,1.869-24.015.041,6.7,6.7L9.305,18.61,0,9.346V9.305L1.463,7.842,9.305,0l1.463,1.5Z' fill='%23fff' fill-rule='evenodd'/%3E%3C/svg%3E%0A");
    }
}

@media (max-width: 992px){
    .pageProduitsLocaux .sectionLabels{
        padding-bottom: 200px;
    }
    .pageProduitsLocaux .sectionLabels h2{
        font-size: 30px;
        line-height: 35px;
    }
}