/* -----------------
    Page Accueil    
----------------- */


/* Intro */
.templateHomepage__intro {
    position: relative;
    z-index: 1;
}

    @media (min-width: 1200px) {
        .templateHomepage__intro {
            margin-top: -66px;
        }
    }

.templateHomepage__intro h1 {
    color: var(--black);
}

    .templateHomepage__intro h1 strong {
        position: relative;
        display: inline-block;
    }
        .templateHomepage__intro h1 strong::before{
            content: "";
            position: absolute;
            top: 0;
            left: -5px;
            right: 0;
            bottom: 0;
            display: block;
            background: var(--yellow);
            width: calc(100% + 10px);
            height: 100%;
            transform: skew(0, -3deg);
            z-index: -1;
        }

@media (min-width: 1024px) {
    .templateHomepage__intro__texte,
    .templateHomepage__intro__img {
        padding: 0 12px;
    }
}

.templateHomepage__intro__texte {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

    @media (min-width: 1024px) {
        .templateHomepage__intro__texte {
            padding-right: calc(100% / (12 / 1));
            width: calc(100% / (12 / 5));
        }
    }

.templateHomepage__intro__img {
    margin: 0 -30px 48px;
    width: calc(100% + 60px);
}

    @media (min-width: 1024px) {
        .templateHomepage__intro__img {
            width: calc(100% / (12 / 7));
            margin: 0;
        }
    }


/* Actus */
.templateHomepage__actus {
    background-image: url(../img/charte/bg-actus--mobile.jpg);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    padding: 48px 0;
}

    @media (min-width: 1024px) {
        .templateHomepage__actus {
            background-image: url(../img/charte/bg-actus.jpg);
            background-size: 100%;
            background-repeat: no-repeat;
            padding: 104px 0 72px;
        }
    }

.templateHomepage__actus h2 {
    margin-top: 0;
    margin-bottom: 24px;
}

    @media (min-width: 1024px) {
        .templateHomepage__actus h2 {
            margin-bottom: 42px;
        }
    }

.templateHomepage__actus__slider {
    margin-bottom: 56px;
}

    .templateHomepage__actus__slider.carrousel-actualite button.slick-arrow {
        top: calc(100% - 15px);
    }

        @media (min-width: 1024px) {
            .templateHomepage__actus__slider.carrousel-actualite button.slick-arrow {
                top: 10vw;
                left: 12px;
                transform: translateX(-50%);
            }

                .templateHomepage__actus__slider.carrousel-actualite button.slick-prev {
                    transform: translateX(-50%) rotate(180deg);
                }

                .templateHomepage__actus__slider.carrousel-actualite button.slick-next {
                    left: auto;
                    right: -12px;
                    transform: translateX(0);
                }
        }

.templateHomepage__actus__slider  .actu-list-item {
    height: auto;
}

.templateHomepage__actus .slick-arrow {
    top: 20%;
}

    @media (min-width: 1440px) {
        .templateHomepage__actus .slick-arrow {
            top: 25%;
        }
    }

.templateHomepage__actus .slick-prev {
    left: 0;
}

@media (min-width: 1024px) {
    .templateHomepage__actus__slider .actu-list-item {
        margin: 0 12px;
    }
}

@media (min-width: 1024px) {
    .templateHomepage__actus__bouton {
        display: flex;
        justify-content: center;
    }
}


/* Patrimoine */
.templateHomepage__patrimoine-bg {
    position: relative;
    padding: 51px 0 0;
}

    @media (min-width: 1024px) {
        .templateHomepage__patrimoine-bg {
            padding: 136px 0 136px;
        }
    }

    .templateHomepage__patrimoine-bg::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        right: 50%;
        background-color: var(--peche);
        margin-right: -50vw;
        z-index: -1;
    }

        @media (max-width: 991px) {
            .templateHomepage__patrimoine-bg::before {
                margin-left: -50vw;
            }
        }

.templateHomepage__patrimoine-bg h2 {
    color: var(--white);
    line-height: 1.1;
    margin: 0;
}

@media (min-width: 1024px) {
    .templateHomepage__patrimoine__text {
        margin-left: 109px;
        width: calc(100% / (12 / 4));
    }
}

.templateHomepage__patrimoine__text strong {
    position: relative;
    display: inline-block;
}

    .templateHomepage__patrimoine__text strong::before {
        content: "";
        position: absolute;
        top: 0;
        left: -5px;
        right: 0;
        bottom: 0;
        display: block;
        background-color: var(--black);
        width: calc(100% + 10px);
        height: 100%;
        transform: skew(0, -3deg);
        z-index: -1;
    }

.templateHomepage__patrimoine__text em {
    display: inline-block;
    font-size: 3.4rem;
    font-weight: 400;
    font-style: normal;
    line-height: 1.25;
    margin-top: 40px;
}

    @media (min-width: 1024px) {
        .templateHomepage__patrimoine__text em {
            font-size: 4rem;
        }
    }

.templateHomepage__patrimoine__img {
    margin-top: 24px;
    margin-right: -30px;
}

@media (min-width: 1024px) {
    .templateHomepage__patrimoine__img {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        right: 50%;
        display: flex;
        justify-content: flex-end;
        margin-top: 88px;
        margin-right: -50vw;
        z-index: -1;
    }
}
  

/* Engagements */
.templateHomepage__engagements {
    background-image: url(../img/charte/bg-engagements--mobile.jpg);
    background-size: 100% auto;
    background-repeat: no-repeat;
    margin-bottom: 72px;
    padding: 57px 0 0;
}

    @media (min-width: 992px) {
        .templateHomepage__engagements {
            background-image: url(../img/charte/bg-engagements.jpg);
            background-size: 100% 100%;
            background-repeat: no-repeat;
            margin-bottom: 68px;
            padding: 92px 0 36px;
        }
    }

.templateHomepage__engagements__title {
    margin: 0 0 46px;
}

.templateHomepage__engagements__title strong {
    position: relative;
    display: inline-block;
    z-index: 1;
}

    .templateHomepage__engagements__title strong::before {
        content: "";
        position: absolute;
        top: 0;
        left: -5px;
        right: 0;
        bottom: 0;
        display: block;
        background-color: var(--yellow);
        width: calc(100% + 10px);
        height: 100%;
        transform: skew(0, -3deg);
        z-index: -1;
    }

.templateHomepage__engagements__liste {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -12px;
}

.templateHomepage__engagements__liste .slick-track {
    display: flex;
    align-items: stretch;
}
 
.templateHomepage__engagements__liste .slick-track .slick-slide {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: auto;
}

.templateHomepage__engagements__liste button.slick-arrow {
    top: 100%;
    background-color: var(--vermillon);
    border-radius: 50%;
    text-indent: 0;
    width: 45px;
    height: 45px;
    z-index: 1;
}

    .templateHomepage__engagements__liste button.slick-arrow::after {
        content: "\e90b";
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: var(--vermillon);
        color: var(--white);
        font-family: 'icomoon';
        font-size: 2.2rem;
    }

.templateHomepage__engagements__liste button.slick-arrow.slick-prev {
    left: 10px;
    transform: scale(-1);
}

.templateHomepage__engagements__liste button.slick-arrow.slick-next {
    top: calc(100% + 22.5px);
    left: calc(45px + 20px);
}

.templateHomepage__engagements__liste .item {
    margin: 0 12px 24px;
    width: 100%;
}

    @media (min-width: 1024px) {
        .templateHomepage__engagements__liste .item {
            width: calc(100% / (12 / 4) - 24px);
        }

        .templateHomepage__engagements__liste .item:nth-child(5n+4),
        .templateHomepage__engagements__liste .item:nth-child(5n+5) {
            width: calc(100% / (12 / 6) - 24px);
        }
    }

.templateHomepage__engagements__liste .item-hover {
    background-color: var(--yellow);
    padding: 96px 40px 40px;
    height: 100%;
    transition: transform .4s;
}
    /* @changelog 2022-04-29 [FIX] (Nicolas) Décalage de +1 des nth à cause des slick-clones */
    .templateHomepage__engagements__liste .item:hover .item-hover {
        transform: rotateY(180deg) scaleX(-1);
    }

    .templateHomepage__engagements__liste .item-2 .item-hover {
        background-color: var(--orange);
    }

    .templateHomepage__engagements__liste .item-3 .item-hover {
        background-color: var(--peche);
    }

    .templateHomepage__engagements__liste .item-4 .item-hover {
        background-color: var(--vermillon);
    }

    .templateHomepage__engagements__liste .item-5 .item-hover {
        background-color: var(--red);
    }

.templateHomepage__engagements__liste .item-img {
    margin-bottom: 32px;
}

.templateHomepage__engagements__liste .item-text {
    color: var(--black);
    font-size: 2.6rem;
}

    .templateHomepage__engagements__liste .item-3 p,
    .templateHomepage__engagements__liste .item-4 p,
    .templateHomepage__engagements__liste .item-5 p {
        color: var(--white);
    }

.templateHomepage__engagements__liste .item-text strong {
    font-weight: 600;
}


/* Contact */
.templateHomepage__contact__image {
    position: relative;
    margin-bottom: 128px;
}

    @media (max-width: 1023px) {
        .templateHomepage__contact__image {
            display: flex;
            flex-direction: column-reverse;
        }

        .templateHomepage__contact__image.cover {
            overflow: visible;
        }

        .templateHomepage__contact__image.cover img {
            position: relative;
            left: -130px;
            width: calc(100% + 160px);
            max-width: calc(100% + 160px);
        }
    }

.templateHomepage__contact__text {
    margin-bottom: 40px;
}

    @media (min-width: 1024px) {
        .templateHomepage__contact__text {
            position: absolute;
            left: 0;
            bottom: 0;
            right: 0;
            margin-bottom: 56px;
            margin-left: 162px;
        }
    }

.templateHomepage__contact__text p {
    color: var(--black);
    font-size: 4.8rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 28px;
}

    @media (min-width: 1024px) {
        .templateHomepage__contact__text p {
            color: var(--white);
            font-size: 5.6rem;
            width: calc(100% / (12 / 4));
        }
    }
