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

#ecoazur {
    position: relative;

    .bloc1 {
        position: relative;
        height: 120vh;
        background-image: var(--ecoazur-hero);
        background-repeat: no-repeat;
        background-size: cover;
        background-position: right;
        background-attachment: fixed;
        z-index: 1;

        @media screen and (max-width: 1000px) {
            height: 125vh;
        }

        @media screen and (max-width: 1000px) {
            background-image: var(--ecoazur-hero-mobile);
        }

        .contenu {
            position: sticky;
            top: 0;
            padding-top: 70vh;

            @media screen and (max-width: 1024px) {
                padding-top: 50vh;
            }

            svg {
                @media screen and (min-width: 1920px) {
                    width: fit-content;
                    height: 45px;
                }
            }

            h1 {
                color: #fff;

                sup {
                    font-size: 25px;
                    margin-left: 4px;
                }
            }

            h2 {
                color: white;
                margin-top: 23px;
                letter-spacing: 0;
            }
        }
    }

    .bloc2 {
        position: relative;
        background-color: var(--bleu);
        margin-top: -20vh;
        z-index: 2;

        @media screen and (max-width: 1280px) {
            margin-top: -23vh;
        }

        @media screen and (max-width: 1000px) {
            margin-top: -25vh;
        }

        .container {
            padding-top: 80px;

            p {
                color: white;
                width: 40%;
                padding: 20px 0 134px 0;

                @media screen and (max-width: 1024px) {
                    width: 60%;
                }

                @media screen and (max-width: 600px) {
                    width: 100%;
                }
            }
        }
    }

    .bloc3 {
        position: relative;
        background-color: black;

        .schemaContainer {
            text-align: center;
            position: relative;

            .schema {
                width: 80%;
                height: auto;
            }

            #plus1 {
                position: absolute;
                top: 51%;
                left: 28.1%;
                transform: translate(-50%, -50%);
                width: 1.5%;
                height: auto;
                z-index: 2;
            }

            #plus1.rotated {
                transform: translate(-50%, -50%) rotate(45deg);
            }
        }

        .modal {
            display: none;
            position: absolute;
            z-index: 3;
            left: 50%;
            top: 50%;
            width: 80%;
            height: 80%;
            background-color: var(--gris-blanc);
            border-radius: 16px;
            transform: translate(-50%, -50%);


                .close {
                    position: absolute;
                    right: 5%;
                    top: 5%;
                    cursor: pointer;
                }

                .close:hover,
                .close:focus {
                    color: black;
                    text-decoration: none;
                    cursor: pointer;
                }

                .iris-bleue {
                    position: absolute;
                    left: 20%;
                    top: 0;
                    width: 13%;
                }

                .textContainer {
                    position: absolute;
                    top: 26%;
                    left: 46%;
                    width: 40%;
                h2 {
                    color: var(--bleu);
                    margin-bottom: 32px;
                }

                ul {
                    list-style-position: inside;
                }

                p,
                li {
                    color: var(--gris);
                }
            }
            }
        }

  


    .bloc4 {
        .container {
            margin-top: 91px;

            .hrTop {
                margin-bottom: 8px;
            }

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

            h2 {
                margin: 28px 0 87px 0;
                color: var(--gris);
            }

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

                @media screen and (max-width: 1439px) {
                    flex-flow: column;
                }

                img {
                    border-radius: 8px;

                    @media screen and (max-width: 1000px) {
                        width: 70%;
                        height: auto;
                        align-self: center;
                    }

                    @media screen and (max-width: 500px) {
                        width: 90%;
                    }
                }

                .contenu {
                    h3 {
                        margin-bottom: 28px;
                    }

                    p {
                        color: var(--gris);
                        width: 75%;

                        @media screen and (max-width: 500px) {
                            width: 100%;
                        }
                    }
                }
            }

            .videoContainer {
                position: relative;
                padding-bottom: 56.25%;
                /* 9/16 aspect ratio (height/width) */
                height: 0;
                overflow: hidden;
                margin-top: 106px;

                iframe {
                    position: absolute;
                    top: 0;
                    left: 0;
                    width: 100%;
                    height: 100%;
                }
            }
        }
    }

    .bloc5 {
        margin-top: 95px;
        position: relative;
        height: 180vh;

        @media screen and (max-width: 1024px) {
            height: auto;
        }

        img {
            position: sticky;
            top: 0;
            width: 100%;
            height: 111vh;
            object-fit: cover;

            @media screen and (max-width: 1024px) {
                position: static;
                width: 100%;
                height: auto;
            }
        }

        .bloc6 {
            @media screen and (max-width: 1024px) {
                width: 100%;
                background-color: var(--bleu);
            }

            .container {
                .contenu {
                    width: 554.291px;
                    border-radius: 8px;
                    background-color: var(--bleu);
                    color: white;
                    padding: 70px 48px 105px 39px;
                    position: relative;
                    top: -150px;

                    @media screen and (max-width: 1024px) {
                        position: static;
                        border-radius: 0;
                        margin-top: -5px;
                        width: 100%;
                        padding: 70px 0 105px 0;
                    }

                    .surtitre {
                        color: white;
                    }

                    hr {
                        width: 100%;
                        border: 1px solid white;
                        margin-bottom: 8px;
                    }

                    h2 {
                        margin: 28px 0 164px 0;

                        @media screen and (max-width: 600px) {
                            margin-bottom: 50px;
                        }
                    }

                    a {
                        background-color: white;

                        @media screen and (max-width: 600px) {
                            width: auto;
                        }

                        p {
                            color: var(--bleu);
                        }
                    }
                }
            }
        }
    }



    .bloc7 {
        background-color: var(--gris-blanc);

        .container {
            padding: 125.5px 0 131.91px 0;

            @media screen and (max-width: 1000px) {
                padding-top: 50px;
            }

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

            h2 {
                margin: 28px 0 87px 0;
                color: var(--gris);
            }

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

                @media screen and (max-width: 1024px) {
                    flex-flow: column;
                }

                img {
                    border-radius: 8px;

                    @media screen and (max-width: 1000px) {
                        width: 70%;
                        height: auto;
                        align-self: center;
                    }

                    @media screen and (max-width: 500px) {
                        width: 90%;
                    }
                }

                .contenu {
                    h3 {
                        margin-bottom: 28px;
                    }

                    p {
                        color: var(--gris);
                        width: 75%;

                        @media screen and (max-width: 500px) {
                            width: 100%;
                        }
                    }

                    a {
                        background-color: var(--bleu);

                        p {
                            color: white;
                        }
                    }
                }
            }
        }
    }

    .bloc8 {
        background-color: var(--bleu);
        position: relative;
        z-index: 2;

        .container {
            padding: 80px 0;
            display: flex;
            flex-flow: column;
            align-items: center;

            h2,
            p {
                color: #fff;
            }

            h2 {
                margin-bottom: 24px;
            }

            p.intro {
                text-align: center;
                font-weight: 200;
                margin-bottom: 33px;
            }

            a {
                background-color: #fff;
                border-radius: 4px;

                p {
                    color: var(--bleu);
                }
            }

            .logos {
                display: flex;
                align-items: center;
                gap: 88px;
                margin-bottom: 55px;

                @media screen and (max-width: 1024px) {
                    gap: 68px;
                }

                @media screen and (max-width: 1000px) {
                    gap: 40px;
                }

                @media screen and (max-width: 800px) {
                    flex-wrap: wrap;
                    justify-content: center;
                }

                @media screen and (max-width: 360px) {
                    gap: 30px;
                }
            }
        }
    }

    .bloc9 {
        margin-top: -2px;
        position: relative;
        height: 180vh;
        z-index: 2;

        @media screen and (max-width: 1024px) {
            height: auto;
        }

        img {
            position: sticky;
            top: 0;
            width: 100%;
            height: 111vh;
            object-fit: cover;

            @media screen and (max-width: 1024px) {
                position: static;
                width: 100%;
                height: auto;
            }
        }

        .bloc10 {
            @media screen and (max-width: 1024px) {
                width: 100%;
                background-color: var(--bleu);
            }

            .container {
                .contenu {
                    width: 554.291px;
                    border-radius: 8px;
                    background-color: var(--bleu);
                    color: white;
                    padding: 70px 48px 105px 39px;
                    position: relative;
                    top: -150px;

                    @media screen and (max-width: 1024px) {
                        position: static;
                        border-radius: 0;
                        margin-top: -5px;
                        width: 100%;
                        padding: 70px 0 105px 0;
                    }

                    .surtitre {
                        color: white;
                    }

                    hr {
                        width: 100%;
                        border: 1px solid white;
                        margin-bottom: 8px;
                    }

                    h2 {
                        margin: 28px 0 164px 0;

                        @media screen and (max-width: 600px) {
                            margin-bottom: 50px;
                        }
                    }

                    a {
                        background-color: white;

                        p {
                            color: var(--bleu);
                        }
                    }
                }
            }
        }
    }
}
