@media only screen and (max-width: 1140px) {
    :root {
        --width_img: 50%;
    }

    * {
        font-size: unset;
    }

    h1 {
        font-size: 24px;
    }

    .image {
        width: 100%;
        height: auto;
    }

    .imgBox {
        height: auto;
    }

    .BoxTexte {
        width: 50%;
    }

    #header {
        z-index: 3;
        width: 50%;
    }

    #logo {
        width: 95%;
        margin: auto;
    }

    #logo>a>img {
        width: 100%;
    }

    .Texte {
        z-index: 1;
    }

    #infos {
        display: none;
        width: 50%;
        z-index: 2;
        background-color: var(--fond);
        padding: calc(var(--header_h) + var(--marges)) var(--marges) 0 var(--marges);
    }

    #bio,
    #lang_switch {
        margin-top: var(--marges);
        font-size: 1.3rem;
    }

    #bio {
        margin-bottom: 70px;
    }

    .BoxFooter {
        display: block;
        position: fixed;
        bottom: 0;
        left: 30px;
        z-index: 99;
        background-color: var(--typo);
    }

    .BoxFooter>a {
        background-color: var(--typo);
        box-shadow: var(--shadow);
        border: none;
        padding: 6px 16px;

        color: var(--fond);
        font-size: 18px;
        margin-bottom: 20px;


        text-align: center;
        text-decoration: none;
        display: inline-block;
        cursor: pointer;
    }

    footer {
        display: flex;
        flex-direction: column;
        padding-left: 0;
        margin-bottom: 70px;
        padding-left: var(--marges);
    }

    footer>p {
        align-self: flex-start;
        font-size: 0.8rem;
        width: calc(100% - var(--marges) - 124px - 10px);
    }

    #footerText {
        user-select: none
    }

}

@media only screen and (max-width:660px) {
    :root {
        --width_img: 100%;
        --text-normal: 18px;
    }

    #header {
        width: 100vw;
        z-index: 98;
    }

    #infos {
        display: none;
        z-index: 97;
        width: 100vw;
        background-color: var(--fond);
        padding: calc(var(--header_h) + var(--marges)) var(--marges) 0 var(--marges);
    }

    .Box {
        display: none;
    }

    .Projet {
        flex-direction: column;
        box-shadow: 0 0 10px 5px rgba(0, 0, 0, .15);
        background-color: var(--fond);
    }

    .imgBox {
        height: auto;
        width: 100%;
        margin: 0;
    }

    .image {
        height: auto;
        width: calc(100% - var(--marges) * 2);
        margin: auto;
    }

    .BoxTexte {
        width: 100%;
    }

    #logo {
        width: 100%;
    }

    #logo>a>img {
        width: 100%;
        height: 90%;
        padding: 0px 30px 0px 30px;
    }

    footer {
        display: flex;
        flex-direction: column;
        padding-left: 0;
        margin-bottom: 10px;
        background-color: var(--fond);
    }


    footer>p {
        align-self: flex-end;
        padding-right: var(--marges);
        font-size: 1rem;
    }
}

@media only screen and (min-width: 1140px) {
    #infos {
        display: block !important;
    }
}