html,
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: hidden;
    height: 100%; 
    width: 100%;
    position: fixed;
}

/* --------------------------------------------------- */
/* --------------------------------------------------- */
/* ------------- MEDIA MIN-WIDTH 350PX --------------- */
/* ------------------ SUP. OU ÉGALE ------------------ */
/* --------------------------------------------------- */
@media screen and (min-width: 350px) {
    .main_home {
        padding-top: 360px;
        overflow: hidden;
        position: relative;
        width: 100%;
        height: calc(100vh - 360px); 
    }

    .sr-only {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

    .container_page {
        border-top: 1px solid black;
    }

    .image_wrapper {
        display: inline-block;
        text-align: right;
    }

    .image_home {
        width: 100vw;
        height: auto;
        display: flex;
        justify-content: center;
        max-height: calc(100vh - 360px); 
    }

    .image_home img {
        width: 100%;
        height: auto;
        max-height: calc(100vh - 380px); 
        object-fit: contain;
    }

    .legend {
        display: none;
    }

    .project-name {
        font-family: "InclusiveSans-LightItalic";
        font-style: italic;
    }

    .project-year {
        font-family: "InclusiveSans-Light";
        font-style: normal;
    }
}


/* --------------------------------------------------- */
/* --------------------------------------------------- */
/* ------------- MEDIA MIN-WIDTH 768PX --------------- */
/* ------------------ SUP. OU ÉGALE ------------------ */
/* --------------------------------------------------- */
@media screen and (min-width: 768px) {
    body {
        position: relative; 
        overflow-y: hidden;
    }

    .main_home {
        padding-top: 280px;
        overflow: scroll;
    }

    .image_home img {
        max-height: calc(100vh - 450px);
    }
}


/* --------------------------------------------------- */
/* --------------------------------------------------- */
/* ------------- MEDIA MIN-WIDTH 1000PX -------------- */
/* ----------------- SUP. OU ÉGALE ------------------- */
/* --------------------------------------------------- */
@media only screen and (min-width: 1000px) {
    .main_home {
        padding-top: 220px;
        height: calc(100vh - 140px);
    }

    .image_home img {
        width: 720px;
        max-height: calc(100vh - 180px);
    }

    .logo img {
        margin-bottom: 550px;
    }

    .legend {
        display: block;
        margin-top: 4px;
        max-width: 100%;
        text-align: right;
        font-size: 0.9rem;
    }
}


/* --------------------------------------------------- */
/* --------------------------------------------------- */
/* ------------- MEDIA MIN-WIDTH 1200PX -------------- */
/* ----------------- SUP. OU ÉGALE ------------------- */
/* --------------------------------------------------- */
@media only screen and (min-width: 1200px) {
    .main_home {
        padding-top: 170px;
        height: calc(100vh - 170px);
        overflow-y: hidden;
        display: flex;
        justify-content: center;
        align-items: flex-start;
        padding-bottom: 20px;
    }

    .image_home {
        display: flex;
        justify-content: center;
        align-items: center;
        height: auto;
        margin-top: 60px;
    }

    .image_wrapper {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
    }

    .logo img {
        margin-bottom: 0;
    }

    .image_home img {
        width: auto;
        max-width: 820px;
        max-height: calc(100vh - 220px);
        object-fit: contain;
    }
}


/* --------------------------------------------------- */
/* --------------------------------------------------- */
/* ------------- MEDIA MIN-WIDTH 1500PX -------------- */
/* ----------------- SUP. OU ÉGALE ------------------- */
/* --------------------------------------------------- */
@media only screen and (min-width: 1500px) {
    .main_home {
        padding-top: 185px;
        height: calc(100vh - 185px);
    }

    .image_home {
        margin-top: 30px;
    }

    .image_home img {
        max-width: 1050px;
        max-height: calc(100vh - 245px);
}
}