#formationsCards {
    width: fit-content;
    margin: 4em auto auto auto;

    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    grid-column-gap: 3em;
    grid-row-gap: 6em;


    h2 {
        font-size: 1.75em !important;
        margin-bottom: 1em !important;
        margin-top: 1em !important;
    }

    p {
        font-size: 1em !important;
    }
}

#formationsCards > div {
    max-width: 562px;
}

#ImgHead {

    div {
        height: 480px;
        background-color: #eeeefd;
    }

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

    p {
        font-size: 20px;

    }

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

.gridHeader {
    color : rgba(11, 3, 79, 1) !important;
    position: relative;
    top: -480px;
    margin-bottom : -480px;
    background: transparent !important;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 1fr;
    grid-column-gap: 20px;
    div:nth-child(1){
        margin-left: 10%;
        margin-top : 4em;
    }

}

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

@media screen and (max-width: 1199px) {
    .gridHeader {
        grid-template-columns: 1fr !important;
    }
    
    .header-background {
        background-image: none !important;
    }

    
    .gridHeader div {
        margin-left: 5% !important;
        margin-right: 5% !important;
        width: 90% !important;
    }
}

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

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


h3, h4 {
    color: #0B034F;
}

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

.text-blue {
    color: #4540E1;
}

.btnFormation {
    background: #4540E1 !important;
    color: white !important;
    padding: 1em 2em !important;
    border-radius: 1em !important;
    font-weight: bold !important;
}

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

h2 {
    color: #0B034F;
}

.formulaire {
    input {
        width: 100%;
    }
}


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

    #formationsCards {
        > div {
            > img {
                width: 100%;
            }

            width: 500px;
        }
    }


}

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

    #formationsCards {
        > div {
            > img {
                width: 100%;
            }

            width: 450px;
        }
    }


}

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

        h1 {
            font-size: 40px;
        }

        p {
            font-size: 17px;
        }

    }


    #formationsCards {
        > div {
            > img {
                width: 100%;
            }

            width: 350px;
        }
    }


    #RedirectToContact {
        h2 {
            font-size: 2.5em !important;
        }
    }

}

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

    #ImgHead {

        & div {
            height: 430px;
        }

        h1 {
            font-size: 35px;
        }

        p {
            font-size: 15px;
        }

    }


    #formationsCards {
        display: flex;
        flex-direction: column;
        width: 90%;

        > div {
            > img {
                width: 100%;
            }
        }
    }


    #RedirectToContact > div {
        > div {
            width: 80% !important;
        }

        flex-direction: column;
    }
}


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

        h1 {
            font-size: 35px;
        }

        p {
            font-size: 17px;
        }

    }

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


    #formationsCards {
        display: flex;
        flex-direction: column;
        width: 90%;

        > div {
            > img {
                width: 100%;
            }
        }
    }



    #RedirectToContact > div {
        div {
            width: 80% !important;
        }

        h2 {
            font-size: 2em !important;
        }

        flex-direction: column;
    }


}

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



        h1 {
            font-size: 35px;
        }

        p {
            font-size: 17px;
        }

    }

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


}
