:root {
    --side-base: 100px;
    --ltspace: 70px;
}

.container-projets {
    padding-bottom: 200px;
}
.page-template-template-portfolio .fond-header-general{
    padding: 0;
}
.page-template-template-portfolio .baseline-general{
    padding-left: var(--side-base);
    padding-right: var(--side-base);
}
.sd-base{
    padding-left: var(--side-base);
    padding-right: var(--side-base);
}
.category-projets {
    font-size: 1.5rem;
    font-weight: 500;
}

.title-category-news-2.active {
    background-color: #f7bd0e;
}

.grid-projets {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-gap: 20px;
}
.relative-proj{
    position: relative;
}
.block-projet {
    position: relative;
    height: 29.4vw;
    /*height: 22vw;*/
    /*height: 30.9vw;*/
    width: 100%;
    transition: all .5s cubic-bezier(.25, .46, .45, .94);
    display: block;
    clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0% 100%);

}

.block-projet.appear {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.block-projet.active {
    z-index: 200;
}

.block-projet img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all .5s cubic-bezier(.25, .46, .45, .94);
    transform: scale(1);
}

.project-image-container {
    height: 29.4vw;
    /*height: 22vw;*/

    /*height: 30.9vw;*/
    width: 100%;
    position: relative;
    overflow: hidden;
}

.txt-projets {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    /*bottom: 30px;*/
    /*left: 30px;*/
    /*width: calc(100% - 80px);*/
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
    padding: 50px;
    opacity: 0;
    transition: all 0.5s cubic-bezier(.25, .46, .45, .94);
    background-color: black;
    /*background-color: var(--bleu);*/
}
.txt-projets *{
    color: white;
}
.block-projet:hover .txt-projets {
    opacity: 1;
    transition: all 0.5s .1s cubic-bezier(.25, .46, .45, .94);
}
.loader {
    /*position: fixed;*/
    /*top: 50%;*/
    left: 50%;
    /*transform: translate(-50%, 0%);*/
    z-index: 100001;
    /*position: absolute;*/
    /*top: 100px;*/
    margin: 50px auto;
    width: 100%;
    text-align: center;
}

.loader polygon {
    animation: fadeInOutSmooth 4s linear infinite;
    margin-right: 25px;
}

.loader path {
    animation: fadeInOutSmooth 4s linear infinite;
    animation-delay: 0.5s;
    margin-left: 25px;
}

@keyframes fadeInOutSmooth {
    0%, 50%, 100% {
        opacity: 0;
    }
    25%, 75% {
        opacity: 1;
    }
}





/*********
SINGLE
 */
.single-projets {
    padding-left: var(--side-base);
    padding-right: var(--side-base);
}
.head-projet {
    padding-top: 200px;
}

.head-projet, .grid-content-projet {
    display: grid;
    grid-template-columns: 1fr 2fr;
    /*grid-gap: 35px;*/
    margin-bottom: 70px;
    position: relative;
}


.grid-content-projet {
    /*margin-top: var(--ltspace);*/
    /*margin-bottom: var(--mdspace);*/
    margin-bottom: var(--ltspace);
}

.grid-content-projet .titre-txt {
    max-width: 900px;
}

.grid-content-projet .titre-txt p {
    margin-bottom: 10px;
}

.head-projet p {
    margin-bottom: 0;
}

.head-projet > div:nth-of-type(1) {
    padding-right: 11.5px;
}

.head-projet > div:nth-of-type(2), .grid-content-projet > div:nth-of-type(2) {
    padding-left: 11.5px;
}


.grid-galerie {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 30px;
    opacity: 0;

    animation: appear 0.4s 0.1s ease-in-out forwards;
    /*margin-bottom: var(--mdspace);*/
    margin-bottom: var(--ltspace);
}

@keyframes appear {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.grid-galerie a:nth-of-type(1) {
    grid-area: 1 / 1 / 2 / 2;
}

.grid-galerie a:nth-of-type(2) {
    grid-area: 1 / 2 / 2 / 3;
}

.grid-galerie a:nth-of-type(3) {
    grid-area: 1 / 3 / 2 / 4;
}

.grid-galerie a:nth-of-type(4) {
    grid-area: 2 / 1 / 3 / 2;
}

.grid-galerie a:nth-of-type(6) {
    grid-area: 3 / 1 / 4 / 2;
}

.grid-galerie a:nth-of-type(5) {
    grid-area: 2 / 2 / 4 / 4;
}

.grid-galerie a {
    line-height: 0;
}

.grid-galerie img,
.grid-galerie video {
    width: 100%;
    height: 29.4vw;
    object-fit: cover;
}

.grid-galerie a:nth-of-type(5) img,
.grid-galerie a:nth-of-type(5) video {
    /*height: 100%;*/
    height: calc(29.4vw * 2 + 30px);
}

.image-full-bloc {
    width: calc(100% + var(--side-base) * 2);
    height: auto;
    margin-left: calc(-1 * var(--side-base));
    margin-bottom: var(--ltspace);
}

.image-full-bloc.no-marg {
    margin-bottom: -4px;
}
.flex-prev>a{
    transform: translateY(-2px);
    display: inline-block;
}
.flex-prev span, .go-back{
    font-family: "SequelSans-MediumDisp";
}
.prev-proj>svg, .go-back>svg{
    transform: rotate(180deg);
}

@media (max-width: 1100px) {
    .grid-projets, .grid-galerie {
        grid-template-columns: 1fr 1fr;
        grid-gap: 15px;
    }
    .block-projet, .project-image-container {
        height: 44.9vw;
    }
    .grid-galerie img, .grid-galerie video {
        height: 44.9vw;
    }
    .grid-galerie a {
        grid-area: unset !important;
    }
}
@media (max-width: 850px) {
    .grid-projets, .grid-galerie {
        grid-template-columns: 1fr;
        grid-gap: 15px;
    }
    .block-projet, .project-image-container {
        height: 89.9vw;
    }
    .grid-galerie img, .grid-galerie video {
        height: 90vw;
    }
}