nav #menu_hamburger{
    display: none;
}
@media screen and (min-width: 931px) {
    .onlyOnMobile{
        display: none;
    }
}

@media screen and (max-width: 1200px) {
    :root{
        --content-width: calc(100% - 2rem);
    }
    h1{
        font-size: 4.6rem;
    }
    h2{
        font-size: 2.6rem;
    }
    h3{
        font-size: 1.5rem;
        white-space: unset;
    }
    h4{
        font-size: 1.2rem;
        white-space: unset;
    }

}

@media screen and (max-width: 650px) {
    h1{
        font-size: 2.6rem;
    }
    h2{
        font-size: 1.6rem;
    }
    #hero .container {
        margin-top: 6rem;
        width: var(--content-width);
    }
    h1, h2{
        white-space: normal;
        text-align: center;
    }
}
@media screen and (max-width: 930px) {

    body{
        font-size: 16px;
        background: var(--main-bg-color);
    }

    .onlyOnOrdi{
        display: none;
    }

    #hero {
        width: 100%;
        min-height: 100vh;
        min-height: 100svh;
        height: fit-content;
        padding-top: 0;
        justify-content: space-between;
        position: relative;
    }
    #hero .container {
        margin-top: 6rem;
        margin-bottom: 0;
    }

    #hero .boutons{
        justify-content: space-evenly;
    }

    nav #menu_hamburger{
        display: flex !important;
        position: fixed;
        top: 0.75rem;
        right: 0;
        width: 2.5rem;
        height: 2.5rem;
        background-color: var(--medium-color);
        border-radius: 10px 0 0 10px;
        flex-flow: row wrap;
        justify-content: center;
        align-items: center;
        padding-right: 1rem;
        cursor: pointer;
    }
    /*nav #menu_hamburger {*/
    /*    display: flex !important;*/
    /*    position: fixed;*/
    /*    top: 0;*/
    /*    right: 0.75rem;*/
    /*    width: 2.5rem;*/
    /*    height: 2.5rem;*/
    /*    background-color: var(--medium-color);*/
    /*    border-radius: 0 0 10px 10px;*/
    /*    flex-flow: row wrap;*/
    /*    justify-content: center;*/
    /*    align-items: center;*/
    /*    padding-top: 0.75rem;*/
    /*    cursor: pointer;*/
    /*}*/
    nav #menu_hamburger img{
        width: 80%;
        height: auto;
    }
    header{
        height: 4rem;
        -webkit-backdrop-filter: blur(7px);
        backdrop-filter: blur(7px);
        background-color: rgba(223, 223, 223, 0.5);
        transition: height 500ms, background-color 500ms;
    }
    header.open{
        top: 0;
        right: 0;
        width: 100%;
        height: 100%;
        /*padding: 0 1rem;*/
        background-color: rgba(0, 0, 0, 0.62);
        transition: height 500ms, background-color 500ms;
    }
    header:before{
        content: "";
        position: absolute;
        width: 100%;
        height: 100%;
        z-index: -2;
    }
    nav{
        height: 100%;
        width: 100%;
        z-index: 105;
        position: relative;
    }
    nav ul {
        flex-flow: column nowrap;
        height: 100%;
        justify-content: space-evenly;
    }
    nav ul li a.selected {
        color: var(--medium-color);
    }
    nav ul li.sep {
        display: none !important;
    }
    nav ul #li_logo {
        order: -1;
    }
    nav li:not(#li_logo){
        /*display: none;*/
        overflow: hidden;  /* Hide the element content, while height = 0 */
        height: 0;
        opacity: 0;
        transition: height 0ms 500ms, opacity 500ms 0ms;
    }
    header.open nav li:not(#li_logo){
        display: unset;
        height: 5rem;
        opacity: 1;
        transition: height 0ms 0ms, opacity 500ms 0ms;
    }
    nav ul li a {
        font-size: 1.5rem;
        color: white;
    }
    nav ul li a:hover:before, nav ul li a.selected:before, nav ul li a:before {
        top: unset;
    }
    nav ul li img {
        height: 3rem;
        margin: 0.5rem 0;
    }



    #services .service{
        width: 100%;
    }

    #services .service .service_plus{
        display: none;
    }


    #quiSuisJe .QSJcarte {
        background-color: #ffffff00;
        color: #FFF;
        padding: 1rem 0;
        display: flex;
        width: 100%;
    }
    #quiSuisJe img {
        display: none;
    }
    #quiSuisJe .QSJcarte h4 {
        text-align: center;
        font-size: 1.6rem;
    }
    #quiSuisJe .QSJcarte p:before {
        content: "";
        display: block;
        background-image: url("/files/images/Moi.webp");
        border-radius: 100rem;
        width: 8rem;
        height: 8rem;
        background-size: 105%;
        background-color: black;
        background-position: center;
        margin: -1rem auto 1rem auto;
    }


    #mconanstudio .QSJcarte img.onlyOnMobile {
        margin: auto;
    }



    .portfolio_col {
        width: 100%;
        flex: unset !important;
    }


    #notice img {
        right: 0.2rem;
        top: -1.3rem;
        width: 2rem;
        height: 2rem;
        background-color: #d95050;
        border-radius: 2rem;
        padding: 0.2rem;
        transition: top 250ms;
    }
    #notice.cache img {
        right: 0;
        top: 0;
        width: 2rem;
        height: 2rem;
        background-color: #d95050;
        border-radius: 2rem;
        padding: 0.2rem;
        transition: top 250ms;
    }

    #en_tete {
        min-height: 6rem;
        height: unset;
        padding-top: 4rem;
    }

    .article_col{
        flex-flow: row wrap;
        gap: 0;
    }
    .article_col img{
        width: 100% !important;
        order: -1;
        margin-bottom: -1rem;
    }
    .h4_top0{
        margin-top: 2rem;
    }

    .article_col .article_col{
        width: 100%;
        flex: unset;
    }
    .article_col .article_col img{
        margin-bottom: 0;
    }

    .p404{
        text-align: center;
    }

    #portfolio .pf_tri {
        display: flex;
        flex-flow: row wrap;
        width: 100%;
        justify-content: space-evenly;
        border-bottom: unset;
        gap: 1rem;
    }

    #portfolio .pf_tri li {
        padding: 0.2rem 2rem;
        list-style: none;
        cursor: pointer;
        color: white;
        border-radius: 7px;
        flex: 1;
        text-align: center;
    }

    #portfolio .vignette {
        width: 100%;
    }

    #portfolio .portfolio {
        flex-flow: column wrap;
        order: 0 !important;
    }
    #portfolio .portfolio .img {
        width: 100%;
    }
    #portfolio .portfolio a.bouton{
        margin: auto;
    }
    #portfolio .portfolio .infos {
        width: 100%;
        flex-flow: column wrap;
        justify-content: space-evenly;
        gap: 1rem;
    }
}
