#contactMain {
    width: 201px;
    height: 66px;
    background: #FFFFFF 0% 0% no-repeat padding-box;
    border-radius: 19px;
    opacity: 1;
    text-align: center;
    font: normal normal medium 20px/33px IBM Plex Sans;
    letter-spacing: 0;
    color: #4540E1;
}

#ImgHead {

    margin-bottom: -36em;

    div {
        height: 480px;
        background: #4540E1;
    }

    h1 {
        width: 100% !important;
        font-size: 60px
    }

    p {
        font-size: 20px;

    }

    img {
        border-radius: 2em;
        max-height: 75%;
        max-width: 75%;
        margin: auto;
    }
}

.gridHeader {
    position: relative;
    top: -480px;
    background: transparent !important;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 1fr;
    grid-column-gap: 20px;
}

.header-background {
    background-image: url('../img/header-about.png') !important;
    background-position: right !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
}

/* Media query to hide background image when width is under 1400px */
@media screen and (max-width: 1400px) {
    .header-background {
        background-image: none !important;
    }
    
    .gridHeader {
        grid-template-columns: repeat(1, 1fr);
    }
    
    .gridHeader > div:nth-child(1) {
        width: 95% !important;
        margin: auto;
    }
}

.gridHeader > div:nth-child(1) {
    background: transparent !important;
    width: 75%;
    margin: auto;
}

p.text-white {
    margin-top: 1em;
}

h1.text-white {
    margin-top: 1em;
}

#conseilTech {
    padding-bottom: 6em !important;
    margin-top: 10em;
}

h3, h4 {
    color: #0B034F;
}

p, ul {
    color: #585880 !important;
}


.grid44 {
    width: 75%;

    display: grid;
    grid-template-columns: repeat(2, minmax(auto, 1fr));
    grid-template-rows: repeat(2, minmax(auto, 1fr));
    grid-column-gap: 64px;
    grid-row-gap: 50px;

    h4 {
        font-size: 23px;
        font-weight: bold;
    }
}


#VRTrainingLab, #RedirectToContact {
    background-color: #EEEEFD !important;
}


.cardIndex {
    font-size: 23px;
    color: #4540E1 !important;
}

.cardAbout {
    padding: 50px;
    background: white 0% 0% no-repeat padding-box;
    box-shadow: 0px 0px 40px #0000000F;
    border-radius: 14px;

    h3 {
        font-size: 30px !important;
        margin-bottom: 1em;
    }
}


h2 {
    color: #0B034F;
}


@media screen and (min-device-width: 1200px) and (max-device-width: 1919px) {


}

@media screen and (min-device-width: 992px) and (max-device-width: 1199px) {


    .gridHeader {
        position: relative;
        top: -480px;
        background: transparent !important;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: 1fr;
        grid-column-gap: 20px;
    }


    .imgStrategie {
        display: none
    }

    #RedirectToContact {
        div {
            h2 {
                font-size: 31px !important;
            }
        }
    }

}

@media screen and (min-device-width: 768px) and (max-device-width: 991px) {
    #ImgHead {

        & div {
            height: 420px;
        }

        h1 {
            font-size: 40px;
        }

    }

    .gridHeader {
        top: -420px;
    }

    h1.text-white {
        margin-top: 0.5em;
    }

    #conseilTech {
        margin-top: 14em;
    }


    .grid44 {
        display: flex;
        flex-direction: column;

    }

    .imgStrategie {
        display: none
    }


    #RedirectToContact {
        div {
            h2 {
                font-size: 31px !important;
            }
        }
    }
}

@media screen and (min-device-width: 576px) and (max-device-width: 767px) {

    #ImgHead {

        & div {
            height: 360px;
        }

        h1 {
            font-size: 35px;
        }

        p {
            font-size: 16px;
        }

    }

    .gridHeader {
        top: -360px;
    }


    h1.text-white {
        margin-top: 0.5em;
    }

    #conseilTech {
        margin-top: 14em;
    }


    .grid44 {
        display: flex;
        flex-direction: column;

    }

    .imgStrategie {
        display: none
    }

    #RedirectToContact {
        div {
            h2 {
                font-size: 23px !important;
            }

            p {
                font-size: 17px !important;
            }
        }
    }

}


@media screen and (min-device-width: 400px) and (max-device-width: 575px) {
    #ImgHead {

        & div {
            height: 360px;
        }

        h1 {
            font-size: 35px;
        }

        p {
            font-size: 17px;
        }

    }

    .gridHeader {
        top: -360px;
        display: block;

    }

    h1.text-white {
        margin-top: 0.5em;
    }

    #conseilTech {
        margin-top: 14em;
    }

    div.d-flex:nth-child(2) {
        display: none !important;
    }

    #conseilTech, #VRTrainingLab {
        h2 {

            font-size: 31px !important;
        }

        p {
            font-size: 17px !important;
        }
    }

    .grid44 {
        display: flex;
        flex-direction: column;
        width: 90%;
    }


    .cardAbout {
        padding: 2em;
    }

    .imgStrategie {
        display: none
    }


    #RedirectToContact {
        div {
            flex-direction: column;
            row-gap: 1em;

            div {
                width: 80% !important;
                margin: auto;
            }

            h2 {
                text-align: center;
                width: 100% !important;
                font-size: 23px !important;
            }

            p {
                width: 100% !important;
                font-size: 17px !important;
            }
        }
    }

}

@media screen and (max-device-width: 399px) {

    #ImgHead {

        & div {
            height: 360px;
        }

        h1 {
            font-size: 35px;
        }

        p {
            font-size: 17px;
        }

    }

    .gridHeader {
        top: -360px;
        display: block;

    }
    div.d-flex:nth-child(2) {
        display: none !important;
    }



    h1.text-white {
        margin-top: 0.5em;
    }

    #conseilTech {
        margin-top: 14em;
    }

    div.d-flex:nth-child(2) {
        display: none !important;
    }

    #conseilTech, #VRTrainingLab {
        h2 {

            font-size: 31px !important;
        }

        p {
            font-size: 17px !important;
        }
    }

    .grid44 {
        display: flex;
        flex-direction: column;
        width: 90%;
    }


    .cardAbout {
        padding: 2em;
    }

    .imgStrategie {
        display: none
    }


    #RedirectToContact {
        div {
            flex-direction: column;
            row-gap: 1em;

            div {
                width: 80% !important;
                margin: auto;
            }

            h2 {
                text-align: center;
                width: 100% !important;
                font-size: 23px !important;
            }

            p {
                width: 100% !important;
                font-size: 17px !important;
            }
        }
    }

}
