#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-suivi.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 1500px */
@media screen and (max-width: 1500px) {

    .gridHeader{
        grid-template-columns: repeat(1, 1fr);
    }
    .header-background {
        background-image: none !important;
    }
    
    .gridHeader > div:nth-child(1) {
        width: 95% !important;
    }
}

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

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

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


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

h3, h4{
    color: #0B034F;
}

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


.grid44 {

    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    grid-column-gap: 22px;
    grid-row-gap: 34px;

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





#suiviTools > div > p {
    width : 50%;
    font-size: 20px;
}

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


.cardConseil {
    img {
        height: 90px;
        width: 90px;
    }
    padding : 50px;
    background: #FFFFFF 0% 0% no-repeat padding-box;
    box-shadow: 0px 0px 40px #0000000F;
    border-radius: 14px;
}


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) {

    #ImgHead {
        margin-bottom : -33em;

        div{
            height : 320px;
        }

        h1 {
            width : 40%;
            left : 1em;
            top : -6.5em;
            font-size : 48px;
        }


        img {
            left : 30em;
            top : -32em;
            width : 496.5px;
            height : 361.9px;
        }
    }


    .gridHeader{
        top : -320px
    }

    #suiviTools > div > p {
        width : 75%;
    }

    #suiviTools {
        margin-top : 13em
    }



    .cardConseil {
        img {
            height: 80px;
            width: 80px;
        }
    }


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

}

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

    #ImgHead {
margin-bottom: -24em;

        div{
            height : 320px;
        }

        h1 {
            left : 1em;
            top : -7.5em;
            font-size : 40px;
        }

        img {
            left : 30em;
            top : -30em;
            width : 270px;
            height : 196px;
        }
    }
    .gridHeader{
        top : -320px
    }

    #suiviTools > div > p {
        width : 75%;
    }

    #suiviTools {
        margin-top : 8em
    }


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

    .cardConseil {
        img {
            height: 80px;
            width: 80px;
        }
    }

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

}

@media screen and (min-device-width: 576px) and (max-device-width: 767px) {
    #ImgHead {
        margin-bottom: -18em;
        div{
            height : 320px;
        }

        h1 {
            left : 1em;
            top : -6.5em;
            font-size : 40px;
        }

        p {
            top : -14em;
            left : 2em;
            width : 50%;
        }

        img {
            left : 22em;
            top : -28em;
            width : 209px;
            height : 151px;
        }
    }

    .gridHeader{
        top : -320px
    }


    #suiviTools > div > p {
        width : 75%;
    }

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

    .cardConseil {
        img {
            height: 80px;
            width: 80px;
        }
    }


    #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 {
        margin-bottom: -10em;
        div{
            height : 280px;
        }

        h1 {
             width : 75%;
            left : 1em;
            top : -6.5em;
            font-size : 35px;
            text-align: center;
        }


        img {
     display : none
        }
    }

    .gridHeader{
        display: block;
        top : -280px
    }

    #suiviTools{
        margin-top : 0;
    }

    div.d-flex:nth-child(2) {
        display: none !important;
    }
    #suiviTools > div > p {
        width : 75%;
    }

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

    .cardConseil {
         padding : 1.5em;
        img {
            height: 50px;
            width: 50px;
        }
    }

    #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 : 280px;
        }

        h1 {
            width : 75% !important;
            left : 0;
            margin : auto;
            top : -8.5em;
            font-size : 30px;
        }

        p {
            top : -12em;
            left : 0;
            margin : auto;
            width : 75%;
            font-size: 19px;
        }

        img {
            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;
            }
        }
    }

}
