$font : Arial, Helvetica, sans-serif;
$normalfontsize : 12px;
$marge : 8px;

body 
{
    font-family: $font;
    font-size:$normalfontsize;
}

h4
{
    font-size:$normalfontsize + 2px;
}

body,figure,img
{
    padding:0;
    border:none;
    margin:0;
}

#switch:checked ~ p 
{
    background-color:green;
}

img
{
    // avec interpolation
    width:calc(100% - (#{$marge}*2));
    height:auto;
    margin:0 auto;
}

picture
{
    display:block;
    max-height:40vh;
    overflow:hidden;
}

#main-menu
{
    text-align:center;
    ul
    {
        list-style:none;
    }

    li
    {
        text-align: left;
    }

    li a,
    li span
    {
        color:black;
        text-decoration:none;
        font-size:1.1rem;
    }

    li span
    {
        color:#666;
    }

    .menu-label
    {
        font-size:1.5rem;
        color:black;
        text-decoration:none;
        font-weight:bold;
        display:inline-block;
        line-height:2rem;
    }
}
.burger
{
    float:left;
    margin: 3px 8px;
    .burger-line
    {
        display: block;
        width: 20px;       
    }
    .burger-line
    {   
        height: 2px;
        margin-bottom: 5px;
        position: relative;
        background: #000;
        border-radius: 2px;
        z-index: 1;
        &:first-of-type
        {
            margin-top:5px;
        }
    }
}

#main-menu ul
{
    display:none;
}

main, h1
{
    margin:1rem;
    padding:1rem;
}

#main-menu #switch:checked ~ ul
{
    display:block;
}

@media (min-width: 480px)
{
    #main-menu
    {
        .menu-label
        {
            display:none;
        } 
        ul
        {
            display:block;
                 margin-block-start: 1em;
                margin-block-end: 1em;
                margin-inline-start: 0px;
                margin-inline-end: 0px;
                padding-inline-start: 0px;
                margin:0px;
            li
            {
                display:inline-block;
                width:24%;
            }
        } 
    }
}

@media print
{
    #main-menu
    {
        display: none!important;
    }    
}