@import url(../style.css);

#apropos {
    position: relative;

    .bloc1 {
        position: relative;
        height: 120vh;
        background-image: var(--apropos-hero);
        background-repeat: no-repeat;
        background-size: cover;
        background-position: right;
        background-attachment: fixed;
        z-index: 1;
        @media screen and (max-width: 1000px) {
            background-image: var(--apropos-hero-mobile);
        }
        @media screen and (max-width: 500px) {
            height: 122vh;
        }
        .contenu {
            position: sticky;
            top: 0;
            padding-top: 70vh;
            color: white;

            h2 {
                margin-top: 23px;
            }
        }
    }

    .bloc2 {
        position: relative;
        background-color: var(--bleu);
        margin-top: -20vh;
        z-index: 2;
        @media screen and (max-width: 500px) {
            margin-top: -22vh;
        }

        .container {
            position: relative;
            overflow: visible;
            padding: 71px 0;

            p {
                color: white;
                width: 55%;
                @media screen and (max-width: 500px) {
                    width: 100%;
                }
            }
        }

        img {
            position: absolute;
            right: 0;
            top: 0;
        }
    }


    .bloc4 {
        .container {
            padding: 91px 0;
            @media screen and (max-width: 500px) {
                padding-bottom: 50px;
            }

            h2 {
                margin: 28px 0 37.75px 0;
                color: var(--gris);
            }

            h3 {
                @media screen and (max-width: 1000px) {
                    margin-bottom: 20px;
                }   
            }

            .gridContainer {
                margin: 59.75px 0 60px 0;
                display: grid;
                grid-template-columns: auto auto;
                grid-template-rows: auto auto;
                column-gap: 20px;
                row-gap: 45px;
                @media screen and (max-width: 1000px) {
                    grid-template-columns: auto;
                    row-gap: 50px;
                }
            }

        }
    }

    .bloc5 {
        margin-top: 95px;
        position: relative;
        height: 180vh;
        @media screen and (max-width: 1024px) {
            height: auto;
         } 
        img {
            position: sticky;
            top: 0;
            width: 100%;
            height: 100vh;
            object-fit: cover;
            @media screen and (max-width: 1024px) {
                height: auto;
                position: static;
             } 
        }

        .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: -300px;
                    @media screen and (max-width: 1024px) {
                        position: static;
                        border-radius: 0;
                        margin-top: -5px;
                        width: 100%;
                        padding: 70px 0 105px 0;
                     } 

                    h2 {
                        margin: 28px 0 164px 0;
                        color: white;
                        @media screen and (max-width: 500px) {
                            margin-bottom: 28px;
                        }
            
                    }

                    p {
                        width: 90%;
                        @media screen and (max-width: 500px) {
                            width: 100%;
                        }
                    }

                    a {
                        background-color: white;

                        p {
                            color: var(--bleu);
                            width: 100%;
                        }
                    }
                }
            }
        }
    }

    .bloc7 {
        position: relative;
        height: 110vh;
        background-image: var(--apropos-founder);
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center;
        background-attachment: fixed;
        margin-top: -2px;
        @media screen and (max-width: 1000px) {
           height: auto;
           background-attachment: local;
         } 
         @media screen and (max-width: 500px) {
           background: none;
        }

        .container {
            position: relative;

            .contenu {
                padding-top: 324px;
                margin-left: auto;
                color: white;
                width: 55%;
                @media screen and (max-width: 1000px) {
                    width: 60%;
                    padding: 150px 0 50px 0;
                  } 
                  @media screen and (max-width: 500px) {
                    color: black;
                    width: 100%;
                 }
         
                h2 {
                    margin-bottom: 64px;
                    @media screen and (max-width: 500px) {
                       color: var(--bleu);
                     }
                }
            }
        
        }
        .fondateur { 
            display: none;
            @media screen and (max-width: 500px) {
                display: inline-block;
                width: 100%;
                height: auto;
             }
        }
    }

    .bloc8 {
        position: relative;
        background-color: var(--bleu);
        @media screen and (max-width: 500px) {
            margin-top: -5px;
          }

        .container {
            position: relative;
            color: white;
            padding: 203.25px 0;
            @media screen and (max-width: 500px) {
                padding: 100px 0;
              }

            .timeline {
                margin-top: 84.5px;
                ul {
                    display: flex;
                    gap: 78px;
                    list-style: none;
                    @media screen and (max-width: 1000px) {
                        flex-flow: column;
                        gap: 0;
                        align-items: center;
                      } 

                    .timelineSection {
                        width: 30%;
                        @media screen and (max-width: 1000px) {
                            width: 100%;
                          } 
                        li {
                            margin: 25px 0;
                        }
                    }
                }
            }
        }

    }


}
