@import url(../style.css);

#realisations {
    position: relative;

    .bloc1 {
        position: relative;
        height: 120vh;
        background-image: var(--realisations-hero);
        background-repeat: no-repeat;
        background-size: cover;
        background-position: right;
        background-attachment: fixed;
        z-index: 1;
        isolation: isolate;
        @media screen and (max-width: 800px) {
            background-image: none;
            background-attachment: scroll;
        }
        .bloc1-hero-media {
            position: absolute;
            top: 0;
            right: 0;
            left: 0;
            bottom: 0;
            z-index: 0;
            display: none;
            width: 100%;
            height: 100%;
            pointer-events: none;
            overflow: hidden;

            @media screen and (max-width: 1000px) {
                display: block;
                height: calc(var(--bloc1-hero-vh, 1vh) * 100);
            }

            img {
                display: block;
                width: 100%;
                height: 100%;
                object-fit: cover;
                object-position: right center;
                transform: none;
            }
        }
        .contenu {
            position: sticky;
            top: 0;
            z-index: 2;
            padding-top: calc(70vh - 100px);
            padding-bottom: 20vh;

            color: white;
            @media screen and (max-width: 800px) {
                padding-top:48vh;
            }
            h2 {
                margin-top: 23px;
                letter-spacing: 0;
            }
        }
    }

    .bloc2 {
        position: relative;
        background-color: var(--bleu);
        height: 450px;
        margin-top: -20vh;
        z-index: 2;
        @media screen and (max-width: 1024px) {
            height:auto;
        }
        
        .container {
            p {
                color: white;
                width: 60%;
                padding: 120px 0 134px 0;
                @media screen and (max-width: 1024px) {
                    padding:100px 0;
                }
                @media screen and (max-width: 800px) {
                    width:80%;
                    padding:80px 0;
                }
                @media screen and (max-width: 500px) {
                    width:100%;
                }
            }
        }
    }


    .bloc4 {
         padding-bottom: 100px;
        .container {
            margin-top: 91px;
            

            hr {
                width: 100%;
                border: 1px solid var(--gris);
                margin: 48px 0;
            }

            h2 {
                margin: 28px 0 87px 0;
                color: var(--gris);
                @media screen and (max-width: 500px) {
                    margin:28px 0 40px 0;
                }
            }

            .projet {
                display: flex;
                gap: 125px;

                @media screen and (max-width: 1024px) {
                    gap:50px;
                }
                @media screen and (max-width: 800px) {
                    flex-flow:column;
                }
                img {
                    width: auto;
                    height: 100%;
                    border-radius: 16px;
                }

                .contenu {
                    .section {
                        margin: 28px 0;
                        @media screen and (max-width: 1024px) {
                            margin:20px 0;
                        }
                    }
                    h3 {
                        margin-bottom: 28px;
                        @media screen and (max-width: 1024px) {
                            margin-bottom:15px;
                        }
                    }

                    p {
                        color: var(--gris);
                        width: 75%;
                        @media screen and (max-width: 1024px) {
                            width:100%;
                        }
                    }
                    p.nomCitation{
                        margin-top: 10px;
                        font-weight:600;
                    }
                    ul{
                        padding-left:18px;
                        margin-top:5px;
                        li{
                            color:var(--gris);
                            margin-bottom:5px;
                        }
                    }
                }
            }
        }
    }

  

}
