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

#ecoazur {
    position: relative;

    .bloc1 {
        position: relative;
        height: 120vh;
        background-image: url("/wp-content/uploads/2025/02/Header-EcoAzur.jpg");
        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: url("/wp-content/uploads/2025/02/Header-EcoAzur-MOBILE.jpg");
        }

        .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;

        @media screen and (max-width: 1439px) {
            background-color: black;
        }

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

        video {
            position: relative;
            right: 0;
            bottom: 0;
            width: 100vw;
            min-height: auto;

            @media screen and (max-width: 1439px) {
                display: none;
            }
        }

        .contenu {
            position: absolute;
            top: 90px;
            left: 5%;
            right: 5%;

            @media screen and (max-width: 1439px) {
                position: static;
                padding-top: 90px;
            }

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


            .schema {
                margin-top: 145.2px;
                transition: opacity 0.3s ease-in-out;

                p {
                    color: white;
                    width: 35%;

                    @media screen and (max-width: 1439px) {
                        position: static;
                    }

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

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

                h2 {
                    color: white;
                    width: 35%;
                    margin-bottom: 22px;
                }

                h3 {
                    margin: 12px 0 28px 0;
                }
            }

            #schemaIris {
                display: none;

            }

            #schemaFleche {
                display: none;
            }

            .schemaContainer {
                position: absolute;
                top: 0;

                @media screen and (max-width: 1439px) {
                    position: static;
                }

                .schemaImage {
                    @media screen and (max-width: 1439px) {
                        text-align: center;
                    }

                    .fleche {
                        position: relative;
                        left: 47.5%;
                        right: 47.5%;
                        top: 145px;
                        scale: 0.8;

                        @media screen and (max-width: 1439px) {
                            display: none;
                        }
                    }

                    .iris {
                        @media screen and (max-width: 1439px) {
                            display: none;
                        }
                    }

                    .imageMobile {
                        display: none;

                        @media screen and (max-width: 1439px) {
                            display: inline-block;
                            width: 80%;
                        }
                    }

                    #plus1 {
                        position: absolute;
                        left: 150px;
                        bottom: 35px;
                        transition: transform 0.3s ease-in-out;

                        @media screen and (max-width: 1439px) {
                            display: none;
                        }
                    }

                    #plus1Mobile {
                        display: none;

                        @media screen and (max-width: 1439px) {
                            left: 22%;
                            top: 79%;
                            bottom: 0;
                            display: block;
                            position: absolute;
                            z-index: 1;
                        }

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

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

                    #plus2 {
                        position: absolute;
                        left: 56.5%;
                        bottom: 46%;
                        transition: transform 0.5s ease-in-out;

                        @media screen and (max-width: 1439px) {
                            display: none;
                        }
                    }

                    #plus2Mobile {
                        display: none;

                        @media screen and (max-width: 1439px) {
                            left: 48.5%;
                            bottom: 43%;
                            display: block;
                            position: absolute;
                            z-index: 1;
                        }

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

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

            #modal {
                display: none;
                position: absolute;
                z-index: 1;
                left: 0;
                top: 0;
                width: 100%;
                height: 100%;
                background-color: rgba(0, 0, 0, 0.7);

                .container {
                    @media screen and (max-width: 600px) {
                        padding-bottom: 145.2px;
                    }

                    .close {
                        transform: rotate(45deg);
                        position: absolute;
                        right: 10%;
                        top: 20%;
                        cursor: pointer;
                    }

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

                    #schemaIrisMobile {
                        display: none;

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

                            p {
                                color: white;
                                width: auto;
                            }
                        }
                    }

                    #schemaFlecheMobile {
                        display: none;

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

                            p {
                                color: white;
                                width: auto;
                            }
                        }
                    }
                }
            }
        }
    }

    .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);
                        }
                    }
                }
            }
        }
    }
}