main.realisations{
    background-image: url('./../img/decoCubesDroits2.png');
    background-repeat: no-repeat;
    background-position: right top;
}

main.realisations .introduction,
main.realisations #gridReal{
    padding-inline: 8%;
}

@media (max-width: 1200px){
    main.realisations .introduction,
    main.realisations #gridReal{
        padding-inline: 80px;
    }
}

@media (max-width: 992px){
    main.realisations{
        background: none;
    }
}

@media (max-width: 800px){
    main.realisations .introduction,
    main.realisations #gridReal{
        padding-inline: 36px;
    }
}

/* --------------------------- INTRODUCTION --------------------------- */

main.realisations .introduction{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: end;
    gap: 40px;
    margin-bottom: 70px;
}

main.realisations .introduction .titre{
    font-size: 60px;
    line-height: 65px;
    font-weight: bold;
    margin-bottom: 10px;
}

main.realisations .introduction .paragraphe{
    max-width: 500px;
}

main.realisations .introduction .right p{
    text-transform: uppercase;
    font-size: 16px;
    line-height: 20px;
    margin-bottom: 10px;
    font-weight: 600;
}

main.realisations .introduction select{
    padding: 12px 20px;
    background-color: var(--gris1);
    clip-path: polygon(5px 0, calc(100% - 5px) 0, 100% 5px, 100% calc(100% - 5px), calc(100% - 5px) 100%, 5px 100%, 0 calc(100% - 5px), 0 5px);
    outline: none;
    border: none;
    cursor: pointer;
}

main.realisations .introduction select,
main.realisations .introduction select::placeholder{
    font-size: 16px;
    line-height: 26px;
    font-weight: 500;
    color: #000;
    font-family: "Figtree", sans-serif;
}

@media (max-width: 992px){
    main.realisations .introduction{
        margin-bottom: 40px;
    }
    main.realisations .introduction .titre{
        font-size: 46px;
        line-height: 51px;
    }
    main.realisations .introduction .paragraphe{
        max-width: none;
    }
}

/* --------------------------- GRID --------------------------- */

main.realisations #gridReal{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 100px 26px;
    margin-bottom: 100px;
}

main.realisations #gridReal > .miniature{
    min-height: 0px;
    min-width: 0px;
}

main.realisations #gridReal > .miniature.miniaModaleOpen figcaption{
    display: none;
}

main.realisations #gridReal > .miniature.miniaModaleOpen .slider{
    max-height: 100%;
    height: 100%;
}

main.realisations #gridReal.chape-fluide .miniature:not(.chape-fluide){
    display: none;
}
main.realisations #gridReal.beton-cire .miniature:not(.beton-cire){
    display: none;
}

@media (max-width: 1300px){
    main.realisations #gridReal{
        grid-template-columns: repeat(2, 1fr);
    } 
}

@media (max-width: 800px){
    main.realisations #gridReal{
        grid-template-columns: 1fr;
        gap: 42px;
    } 
}

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

main.realisations .references .titre{
    font-size: 60px;
    line-height: 65px;
    font-weight: bold;
    margin-bottom: 10px;
}


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

main.realisations .references{
    margin-bottom: 130px;
}

main.realisations .references header{
    padding-inline: 8%;
    margin-bottom: 50px;
}

main.realisations .references header .titre{
    font-size: 60px;
    line-height: 65px;
    font-weight: bold;
    margin-bottom: 16px;
}

main.realisations .references .slider{
    padding-left: 8%;
    overflow: initial;
}

main.realisations .references .slider img{
    aspect-ratio: 810/580;
}

main.realisations .references .slider .navigation{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row-reverse;
    gap: 17px;
    width: fit-content;
    height: fit-content;
    position: absolute;
    top: -68px;
    right: 8%;
}

main.realisations .references .slider .navigation .swiper-button-next,
main.realisations .references .slider .navigation .swiper-button-prev{
    position: relative;
    top: initial;
    bottom: initial;
    left: initial;
    right: initial;
    background-color: #000;
    width: fit-content;
    height: fit-content;
    padding: 15px 10px;
    clip-path: polygon(5px 0, calc(100% - 5px) 0, 100% 5px, 100% calc(100% - 5px), calc(100% - 5px) 100%, 5px 100%, 0 calc(100% - 5px), 0 5px);
}

main.realisations .references .slider .navigation .swiper-button-next::after,
main.realisations .references .slider .navigation .swiper-button-prev::after{
    content: "";
    height: 10px;
    width: 20px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

main.realisations .references .slider .navigation .swiper-button-next::after{
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='19.075' height='9.22' viewBox='0 0 19.075 9.22'%3E%3Cpath id='Icon_ionic-ios-arrow-round-forward' data-name='Icon ionic-ios-arrow-round-forward' d='M15.37,11.428a.627.627,0,0,0,0,.883l2.919,2.924H1.923a.624.624,0,0,0,0,1.248H18.28l-2.919,2.924a.632.632,0,0,0,0,.883.622.622,0,0,0,.879,0L20.2,16.3h0a.7.7,0,0,0,.13-.2.6.6,0,0,0,.048-.24.626.626,0,0,0-.178-.437l-3.957-3.985A.612.612,0,0,0,15.37,11.428Z' transform='translate(-1.303 -11.252)' fill='%23fff'/%3E%3C/svg%3E%0A");
}

main.realisations .references .slider .navigation .swiper-button-prev::after{
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='19.075' height='9.22' viewBox='0 0 19.075 9.22'%3E%3Cpath id='Icon_ionic-ios-arrow-round-forward' data-name='Icon ionic-ios-arrow-round-forward' d='M6.312,11.428a.627.627,0,0,1,0,.883L3.4,15.236H19.759a.624.624,0,0,1,0,1.248H3.4l2.919,2.924a.632.632,0,0,1,0,.883.622.622,0,0,1-.879,0L1.481,16.3h0a.7.7,0,0,1-.13-.2.6.6,0,0,1-.048-.24.626.626,0,0,1,.178-.437l3.957-3.985A.612.612,0,0,1,6.312,11.428Z' transform='translate(-1.303 -11.252)' fill='%23fff'/%3E%3C/svg%3E%0A");
}

@media (max-width: 1600px){
    main.realisations .references .slider{
        padding-left: 10%;
    }
    main.realisations .references header{
        padding-inline: 10%;
    }
    main.realisations .references .slider .navigation{
        right: 10%;
    }
}

@media (max-width: 1200px){
    main.realisations .references header .titre{
        font-size: 50px;
        line-height: 55px;
    }
}

@media (max-width: 800px){
    main.realisations .references .slider,
    main.realisations .references header{
        padding-inline: 36px;
    }
    main.realisations .references > img{
        display: none;
    }
    main.realisations .references .slider .navigation{
        top: 50%;
        right: initial;
        left: 50%;
        width: 96%;
        justify-content: space-between;
        transform: translate(-50%, -50%);
        z-index: 1;
        height: 40px;
    }
    main.realisations .references .slider .navigation .swiper-button-next, 
    main.realisations .references .slider .navigation .swiper-button-prev{
        margin: 0px;
    }
    main.realisations .references header .titre{
        font-size: 46px;
        line-height: 51px;
    }
    main.realisations .references header{
        margin-bottom: 38px;
    }
    main.realisations .references{
        margin-bottom: 80px;
    }
}
