:root{
    --text-color: #000;
    --main-color: #376f37;
    --figcaption-bg: rgba(55, 111, 55, 0.6);
    --radius : 2rem;
}

.loading::before,
.loading::after {
    content: '';
    position: fixed;
    z-index: 4000;
}

.loading::before {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--main-color);
}

.loading::after {
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    margin: -30px 0 0 -30px;
    border-radius: 50%;
    opacity: 0.4;
    background: #fff;
    animation: loaderAnim 0.7s linear infinite alternate forwards;
}

@keyframes loaderAnim {
    to {
    opacity: 1;
    transform: scale3d(0.5,0.5,1);
    }
}
.singleRefBlog, .page-blog{
    & .scroll-down{
        display: none;
    }
}
 /*SWIPER COMMON*/
 .swiper-pagination-bullet{
   background-color: var(--text-color);
   opacity: 1;
   transition: background-color .3s ease;
   width: 1rem;
   height: 1rem;
   &.swiper-pagination-bullet-active{
     background-color: var(--main-color);
   }
 }

/* PAGE BLOG */

.topPageBlog{
    padding-top: 200px !important;
    padding-bottom: 0;
}

.postList_row {
  padding-bottom: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(620px, 1fr));
  grid-gap: 1rem;
}

.postBlock {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: nowrap;
  padding: 0;
  width: 100%;
  max-width: 100%;
}

.postBlock_img {
  width: 300px;
  height: 300px;
  overflow: hidden;
    & div {
        height: 100%;
        width: 100%;
        overflow: hidden;
    }
    & picture{
        display: block;
        width: 100%;
        height: 100%;
        border-radius: var(--radius);
        overflow: hidden;
    }
    & img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        -o-object-fit: cover;
        -o-object-position: center;
        vertical-align: middle;
    }
}

.postBlock_content {
  width: calc(100% - 300px);
  padding: 1rem;
    & .postBlockTitle {
        font-size: 1.1rem;
        font-weight: bold;
        margin-bottom: 1rem;
        line-height: 1.2;
        text-wrap: balance;
        text-transform: uppercase;
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        flex-wrap: nowrap;
        & div{
            width: 2.5rem;
            min-width: 2.5rem;
            height: 2.5rem;
            display: inline-block;
            background-color: var(--main-color);
            padding: .5rem;
            border-radius: var(--radius);
            margin: 0 0.5rem 0 -2.5rem;
        }
        & svg {
            width: 100%;
            height: 100%;
            stroke: #fff;
        }
    }
    & .block-text {
        max-width: 100%;
        & p{
            width: 650px;
            max-width: 100%;
        }
    }
}

.postBlock_date {
  font-size:.9rem;
  margin-top: 1rem;
}

.loadMoreBtn {
  margin-top: 3rem;
}
/*SINGLE POST*/
.singleContent {
    padding: 0 !important;
    margin: 0 auto;
    max-width: 100%;
    line-height: 1.4;
    display: flex;
    flex-wrap: wrap;
    padding-top: 200px !important;
    padding-bottom: 3rem;
    position: relative;

    & .backToList {
        padding-left: 10%;
        padding-right: calc(10% + 380px);
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
    }

    & .content {
        width: 100%;

        & > * {
            padding-left: 10%;
            padding-right: calc(10% + 380px);
        }

        & > ul, & > ol {
            padding-left: calc(10% + 20px);
        }

        & > .wp-block-group.gradientBack {
            margin-top: 5rem;
            margin-bottom: 5rem;
            padding-top: 5rem;
            padding-bottom: 5rem;

            & > div {
                position: relative;
                z-index: 1;
            }
        }
    }

    & h1 {
        margin: .5rem 0 2rem 0;
        font-size: 2rem;
        font-weight: bold;
    }

    & h2 {
        margin: 2rem 0;
        font-weight: bolder !important;
        font-size: 1.6rem;

        & span {
            font-weight: bolder !important;
        }
    }

    & h3 {
        margin: 1.5rem 0;
        font-weight: bolder !important;
        font-size: 1.4rem;

        & span {
            font-weight: bolder !important;
        }
    }

    & h4 {
        margin: 1rem 0;
        font-weight: bolder !important;
        font-size: 1.1rem;

        span {
            font-weight: bolder !important;
        }
    }

    & p {
        margin: 0.5rem 0;
    }

    & strong {
        font-weight: bold;
    }

    & ul {
        margin: 0.5rem 0;
        padding-left: 1rem;
        list-style: disc;

        & li {
            margin: 0.5rem 0;
        }
    }

    & ol {
        margin: 0.5rem 0;
        padding-left: 1rem;
        list-style-type: decimal;

        & li {
            margin: 0.5rem 0;
        }
    }

    & .sommaire-block {
        margin-bottom: 2rem;
    }

    & .wp-block-column.has-background {
        padding: 2rem;
        border-radius: var(--radius);
    }

    & .wp-block-media-text {
        & figure {
            border-radius: var(--radius);
            overflow: hidden;
        }
    }

    & .wp-block-gallery {
        & figure {
            padding: 0.3rem;
            & img{
                border-radius: var(--radius);
            }
        }
        &.has-nested-images {
            & figure.wp-block-image {
                & figcaption{
                    background: var(--figcaption-bg);
                    width: calc(100% - 2rem);
                    left: 1rem;
                    bottom: 1rem;
                    border-radius: var(--radius);
                    text-shadow: none;
                }
                &:has(figcaption):before {
                    display: none;
                }
            }
        }
    }

    & figure.is-style-rounded {
        & img {
            border-radius: var(--radius);
        }
    }

    & .wp-block-buttons{
        & >.wp-block-button{
            display: inline-block;
            font-size: 1rem;
            margin: 1rem 0;
            text-align: center;
            line-height: 1.1;
            color: #fff;
            cursor: pointer;
            position: relative;
            outline: none;
            border: none;
            background: transparent;
            padding: 0;

            & .wp-block-button__link.wp-element-button {
                padding: 0.7rem 2.5rem;
                display: block;
                position: relative;
                background-color: transparent;
                z-index: 1;
                font-size: 1rem;
                transition: all 0.3s cubic-bezier(0, 0.07, 0.57, 0.99);
                background-color: var(--main-color);

                border-radius:2rem;
                &:hover{
                    background-color: var(--text-color);
                    color: #fff;
                }
            }
        }
    }

    & .wp-block-embed {
        margin: 1rem 0;

        & iframe {
            border-radius: var(--radius);
            overflow: hidden;
        }
    }
}

.quickAccess {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    border-radius: var(--radius);
    background-color: var(--main-color);
    color: #fff;

    & p {
        display: inline-block;
        font-size: 1.3rem;
        margin-top: 0;
        margin-bottom: 0.5rem;
        text-transform: uppercase;
        font-weight: bold;
    }

    & ul {
        list-style: none;
        padding-left: 0;
        & li {
            display: flex;
            flex-direction: row;
            justify-content: flex-start;
            align-items: flex-start;
            flex-wrap: nowrap;
            margin: .25rem 0;
            &:hover .quickAccessIcon {
                animation: bounceIt 1s infinite alternate;
            }
        }
        & a{
            color: #fff;
        }
    }

    & .quickAccessIcon {
        width: 1rem;
        height: 1rem;
        min-width: 1rem;
        margin-top: .5rem;
        margin-right: 0.5rem;
        transform: translateX(0);
        transition: transform 0.2s ease-in-out;
        background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9IiNmZmZmZmYiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBjbGFzcz0ibHVjaWRlIGx1Y2lkZS1jaXJjbGUtYXJyb3ctcmlnaHQtaWNvbiBsdWNpZGUtY2lyY2xlLWFycm93LXJpZ2h0Ij48Y2lyY2xlIGN4PSIxMiIgY3k9IjEyIiByPSIxMCIvPjxwYXRoIGQ9Im0xMiAxNiA0LTQtNC00Ii8+PHBhdGggZD0iTTggMTJoOCIvPjwvc3ZnPg==");
        background-position: center;
        background-repeat: no-repeat;
        background-size: contain;
    }

    & a {
        margin: 0.25rem 0;
        display: flex;
        align-items: flex-start;
        justify-content: flex-start;
        text-decoration: none;

        & br {
            display: none;
        }
    }
}

.postPanel {
    width: 380px;
    position: absolute;
    right: 5%;
    z-index: 2;

    & .stickyPanel {
        display: flex;
        flex-direction: column;
    }
}

.otherPost {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background-color: var(--main-color);
    color: #fff;
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 1rem;
    & p {
        display: inline-block;
        font-size: 1.1rem;
        margin-bottom: .5rem;
        text-transform: uppercase;
        font-weight: 700;
    }
    & a {
        margin: .3rem 0;
        font-size: 1rem;
        font-weight: 500;
        text-decoration: underline;
        margin-left: 1rem;
        color: #fff;
        & br {
            display: none;
        }
    }
} 

.contactPanel {
    background-color: var(--main-color);
    color: #fff;
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 1rem;
    & p {
        display: inline-block;
        font-size: 1.1rem;
        margin-bottom: .5rem;
        text-transform: uppercase;
        font-weight: 700;
    }
    & .link{
        background-color: #fff;
        color: var(--main-color);
    }
}

@keyframes bounceIt {
    0% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(3px);
    }
    100% {
        transform: translateX(0);
    }
}

.wp-block-image {
    margin: 2rem 0;
}

.wp-block-media-text {
    margin: 2rem 0;
}

/* RESONSIVE */

@media (max-width: 1500px) {
    .singleContent {
        & .backToList {
            padding-left: 5%;
            padding-right: calc(5% + 380px);
        }
        & .content > * {
            padding-left: 5%;
            padding-right: calc(5% + 380px);
        }
        & h1{
            font-size: 1.8rem;
        }
        & h2{
            font-size: 1.4rem;
        }
        & h3{
            font-size: 1.1rem;
        }
        & h4{
            font-size: 1rem;
        }
    
    }
    .postPanel {
        right: 2.5%;
    }

}
@media (max-width: 1200px) {
    .singleContent {
        & .backToList{
            order: 1;
            padding-left: 5%;
            padding-right: 5%;
        }
        & .content{
            order: 2;
        }
        & .content > * {
            padding-left: 5%;
            padding-right: 5%;
        }
    }
    .postPanel{
        position: initial;
        order: 3;
        padding-right: 5%;
        padding-left: 5%;
        width: 100%;
        margin-top: 2rem;
    }
    .otherPost, .contactPanel {
        border-radius: 1rem;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
}
@media (max-width: 1024px){
    .page-blog{
        & .bar-inf:after {
            margin: 15px 0;
        }
    }
}
@media (max-width: 991px){
    .singleContent{
        padding-top: 150px !important;
    }
    
}
@media (max-width: 767px){
    .postList_row{
        display: flex;
        padding-bottom: 0;
    }
    .postBlock {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 1rem;
    }
    .postBlock_content{
        width: 100%;
        padding: 1rem 0;
        & .postBlockTitle {
            font-size: 1rem;
            & div {
                display: none;
            }
        }
    }
    .postBlock_img {
        width: 200px;
        height: 200px;
    }
}
@media (max-width: 600px) {
    .singleContent {
        padding-top: 60px;
        & .backToList{
            padding-left: 1.5rem;
            padding-right: 1.5rem;
        }
        & .content > * {
            padding-left: 1.5rem;
            padding-right: 1.5rem;
        }
    }
    .quickAccess{
        padding: 1rem;
        border-radius: 1rem;
        & .quickAccessIcon{
           margin-top: .25rem;
        }
        & ul{
            & li{
                margin: .15rem 0;
            }
        }
        & a{
            font-size: .9rem;
            margin: 0;
        }
    }
    .postPanel{
        padding-right: 1.5rem;
        padding-left: 1.5rem;
    }
    .otherPost, .contactPanel {
        padding: 1rem;
    }

    .wp-block-gallery.has-nested-images {
        &.swiper{
            gap: 0;
            width: calc(100% - 3rem);
            padding: 0;
            margin: 0 auto;
            overflow: hidden;
            padding-bottom: 2rem;;
            & figure.wp-block-image:not(#individual-image){
                width: 100% !important;
            }
        }
    }

    .wp-block-media-text.is-stacked-on-mobile>.wp-block-media-text__content{
        padding: 0 ;
    }
}

@media (max-width: 580px){
    .singleContent, .topPageBlog {
        padding-top: 50px !important;
    }
}