#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;
}

.hero-container {
    position: relative;
    margin-bottom: 2em;
    z-index: 1;
}

#ImgHead {
    position: relative;
    width: 100%;
}

.hero-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 5%;
    z-index: 2;
}

#ImgHead h1 {
    font-size: 80px;
    max-width: 37%;
    margin-bottom: 1rem;
}

#ImgHead p {
    font-size: 22px;
    max-width: 37%;
    margin-bottom: 2rem;
}

#ImgHead a {
    font-size: 20px;
    width: 201px;
}

h3, h4 {
    color: #0B034F;
}

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


#support {
    background-color: #EEEEFD;
}

#services, #support, #etudeCas {
    padding-bottom: 6em !important;
}


.cardService {
    margin-bottom: 2em;
}

.imgCardService {
    border-radius: 2em
}

#suiviPerfosTitle {
    width: 100%;
    padding-left: 5%;
    padding-right: 5%;
}


#suiviPerfosGrid {
    width: 100%;
}

.grid44 {
    display: grid;
    grid-template-columns: repeat(2, minmax(auto,1fr));
    grid-template-rows: repeat(2, minmax(auto,1fr));
    grid-column-gap: 30px;
    grid-row-gap: 40px;

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


h2 {
    color: #0B034F;
}


.legendTemoignage {
    width: 50%;
    background: #4540E1;
    border-radius: 2em 0 0 2em;
}

.legendTemoignage > div > p {
            font-size: 25px;
            width: 75%;

}

.imgTemoignagne {
    object-fit: cover;
    border-radius: 0 2em 2em 0;
}

/*
RESPONSIVE
 */


@media screen and (min-device-width: 1200px) and (max-device-width: 1919px) {
    #ImgHead h1 {
        font-size: 70px;
    }
    
    #ImgHead p {
        font-size: 20px;
    }
}

@media screen and (min-device-width: 992px) and (max-device-width: 1199px) {
    #ImgHead h1 {
        font-size: 48px;
        max-width: 40%;
    }

    #ImgHead p {
        font-size: 18px;
        max-width: 40%;
    }

    #services {
        .container {
            width: 80%;
            margin: auto;
        }
    }


    #suiviPerfosTitle {
        width: 100%;
        padding-left: 5%;
        padding-right: 5%;
    }

    #suiviPerfosGrid {
        width: 100%;
        margin-top: 3em !important;
    }
    
    .grid44 h4 {
        font-size: 20px;
    }
    
    .grid44 p {
        font-size: 16px;
    }

    .legendTemoignage {
        padding-top: 10%;
        padding-bottom: 10%;

        div {
            p {
                font-size: 20px;
                width: 80%
            }
        }
    }


    .formulaire {
        width: 80%;
        margin: auto;
    }


    footer {
        font-size: 15px;
    }
}

@media screen and (min-device-width: 768px) and (max-device-width: 991px) {
    #ImgHead h1 {
        font-size: 35px;
        max-width: 42%;
    }

    #ImgHead p {
        font-size: 16px;
        max-width: 42%;
    }

    #ImgHead a {
        width: 180px;
        height: 60px;
    }

    #services {
        .container {
            width: 80%;
            margin: auto;
        }
    }

    #suiviPerfosTitle {
        width: 100%;
        padding-left: 5%;
        padding-right: 5%;
    }

    #suiviPerfosGrid {
        width: 100%;
        margin-top: 3em !important;
    }
    
    .grid44 {
        grid-column-gap: 20px;
        grid-row-gap: 30px;
    }
    
    .grid44 h4 {
        font-size: 18px;
    }
    
    .grid44 p {
        font-size: 14px;
    }

    .legendTemoignage {
        width: 100%;
        padding-top: 10%;
        padding-bottom: 10%;
        border-radius: 2em;

        div {
            p {
                font-size: 20px;
                width: 80%
            }
        }
    }

    .infoFormulaire {
        width: 80% !important;
        margin: auto;

        h2 {
            width: 100% !important;
        }

        p {
            width: 100% !important;
        }
    }


    .formulaire {
        width: 80%;
        margin: auto;
    }


    footer {
        font-size: 15px;
    }
}

@media screen and (max-device-width: 767px) {
    .hero-container {
        background-color: #4540E1; /* Blue background */
        min-height: 300px; /* Ensure minimum height when image is hidden */
    }
    
    #ImgHead {
        min-height: 300px; /* Ensure minimum height */
    }
    
    #ImgHead img {
        display: none; /* Hide the image */
    }
    
    .hero-content {
        position: relative; /* Change from absolute to relative positioning */
        height: auto;
        padding: 2rem 5%;
    }
    
    #ImgHead h1 {
        max-width: 90%; /* Allow text to take more width */
        position: static; /* Remove absolute positioning */
    }
    
    #ImgHead p {
        max-width: 90%; /* Allow text to take more width */
        position: static; /* Remove absolute positioning */
    }
    
    #ImgHead a {
        position: static; /* Remove absolute positioning */
        margin-top: 1rem;
    }
}

@media screen and (min-device-width: 576px) and (max-device-width: 767px) {
    #ImgHead h1 {
        font-size: 26px;
        max-width: 90%;
    }

    #ImgHead p {
        font-size: 14px;
        max-width: 90%;
    }

    #ImgHead a {
        width: 160px;
        height: 55px;
        font-size: 16px;
    }

    #services {
        .container {
            width: 80%;
            margin: auto;
        }
    }


    .imgCardService {
        width: 100%
    }


    #suiviPerfosTitle {
        padding-left: 0;
        padding-right: 0;
        width: 100%;
    }

    #suiviPerfosGrid {
        width: 100%;
        margin-top: 3em !important;
    }
    
    .grid44 {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, auto);
    }

    .legendTemoignage {
        width: 100%;
        padding-top: 10%;
        padding-bottom: 10%;
        border-radius: 2em;

        div {
            p {
                font-size: 20px;
                width: 80%
            }
        }
    }

    .infoFormulaire {
        width: 80% !important;
        margin: auto;

        h2 {
            width: 100% !important;
        }

        p {
            width: 100% !important;
        }
    }


    .formulaire {
        width: 80%;
        margin: auto;

        div {
            flex-direction: column !important;
            gap : 0 !important;

            input {
                margin-top: 1.5em !important;
            }
        }

        input {
            margin-top: 1.5em !important;
        }

        textarea {
            margin-top: 1.5em !important;
        }

    }


    footer {
        font-size: 15px;
    }
}

@media screen and (max-device-width: 575px) {
    #ImgHead h1 {
        font-size: 22px;
        max-width: 90%;
    }

    #ImgHead p {
        font-size: 14px;
        max-width: 90%;
        line-height: 1.3;
    }

    #ImgHead a {
        width: 150px;
        height: 50px;
        font-size: 16px;
    }

    #services {
        .container {
            width: 90%;
            margin: auto;
        }
    }


    .imgCardService {
        width: 100%
    }


    #suiviPerfosTitle {
        padding-left: 0;
        padding-right: 0;
        width: 100%;
    }

    #suiviPerfosGrid {
        width: 100%;
        margin-top: 3em !important;
    }
    
    .grid44 {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, auto);
    }

    .legendTemoignage {
        width: 100%;
        padding-top: 10%;
        padding-bottom: 10%;
        border-radius: 2em;

        div {
            p {
                font-size: 20px;
                width: 80%
            }
        }
    }

    .infoFormulaire {
        width: 80% !important;
        margin: auto;

        h2 {
            width: 100% !important;
        }

        p {
            width: 100% !important;
        }
    }


    .formulaire {
        width: 80%;
        margin: auto;

        div {
            flex-direction: column !important;
            gap : 0 !important;

            input {
                margin-top: 1.5em !important;
            }
        }

        input {
            margin-top: 1.5em !important;
        }

        textarea {
            margin-top: 1.5em !important;
        }

    }


    footer {
        font-size: 15px;
    }
}
