:root{
    --nav-color: #ffffff;
    --nav-bg-color: #343a40;
}
body{
    margin: 0;
    background-color: #F2F2F2;
    color: #333333;
    font-family: "Fira Sans", "Source Sans Pro", Helvetica, Arial, sans-serif;
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-height: 100vh;
}
.flex{
    display: flex;
}
.grid{
    display: grid;
}
.g-half{
    grid-template-columns: 1fr 1fr;
}
.textCenter{
    text-align: center;
}
/*--------------------
   ! NAVIGATION !
----------------------*/
/* général */
.navigation{
    color: var(--nav-color);
}
.navigation a{
    color: var(--nav-color);
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 1rem;
    transition: background-color 0.3s linear;
}
.navigation a:hover{
    background-color: var(--nav-color);
    color:var(--nav-bg-color);
}
.navigation ul li{
    list-style: none;
    padding: 0.2rem;
}
.active > a{
    font-weight: 900;
}
/* header */
header .navigation{
    display: flex;
    background-color: var(--nav-bg-color);
    height: 3rem;
}
header .navigation ul{
    display: flex;
    width: 100%;
    justify-content: space-around;
    padding: 0;
}
header .navigation li{
    padding: 0;
    width: 100%;
    text-align: center;
    border-right: 1px solid #ffffff7a;
}
header .navigation li:last-child{
    border: none;
}
header #burger, header label[for="burger"]{
    display: none;
}
/* side menu */
.side.navigation{
    background-color: #52575c;
    max-width: 200px;
}
.side span{
    margin-left: -1rem;
}
.side.navigation ul{ 
    padding-left: 2rem;
    position: sticky;
    top: 20px;
    padding-right: 3rem;
}
/* sommaire */
.sommaire{
    position: fixed;
    right: 5px;
    top: 3rem;
    border-radius: 10px;
    background-color: #F2F2F2;
    padding: 0 1rem 0.5rem 2rem;
    border: 1px solid black;
    opacity: 0.2;
    transition: all 0.3s linear;
    z-index: 2;
}
.sommaire:hover{
    opacity: 1;
}
.sommaire ol{
    padding: 0;
}
/*--------------------
   ! MAIN CONTENU !
----------------------*/
main{
    display: flex;
    min-height: 50vh;
}
section{
    width: 100%;
}
.conteneur{
    padding: 1rem;
    width: 100%;
}
.conteneur h2{
    text-align: center;
    color: #793862;
    border-bottom: 1px dotted;
}
/* Zone de News */
.news h1{
    background-color: aquamarine;
    text-align: center;
    margin: 1rem auto 1rem auto;
    max-width: 50%;
}
.news article{
    margin-left: 10%;
    margin-right: 10%;
}
.news article:not(:last-child){
    border-bottom: 1px dashed #793862;
}
/* Zone de Code */
pre{
    text-align: center;
}
pre code.hljs{
    max-width: 80%;
    display: inline-block;
    text-align: left;
    margin: auto;
    padding: 0 1rem 1rem 1rem;
    white-space: pre-wrap;
    word-break: break-all;
    overflow-x: auto;
}
#resume{
    background-color: #111111;
    border-radius: 5px;
    width: 100%;
    position: relative;
}
#resume .resumeCode{
    position: relative;
    margin-left: auto;
    margin-right: auto;
    left: 0;
    right: 0;
    transition: opacity 0.5s linear;
}
#resume .hide{
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: -999px;
}
#resume .select{
    background-color: var(--nav-bg-color);
    font-weight: 900;
    transition: all 0.5s linear;
}
#resume ul{
    display: flex;
    flex: 1 1 1;
    background-color: #52575c;
    height: 3rem;
    width: 100%;
    justify-content: space-around;
    padding: 0;
    color: var(--nav-color);
    list-style: none;
    border-radius: inherit;
}
#resume ul li{
    flex-basis: 100%;
    border-radius: inherit;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
/*--------------------
   ! FOOTER !
----------------------*/
footer{
    background-color: var(--nav-bg-color);
    color: var(--nav-color);
}
footer .navigation{
    padding: 1rem;
}
.navigation h5{
    margin-top: 0;
}
footer p{
    text-align: center;
    padding-bottom: 0.5rem;
    margin-bottom: 0;
}
footer p a{
    color: var(--nav-color);
}
/*--------------------
   ! RESPONSIVE !
----------------------*/
@media screen and (max-width: 800px) {     
    /*--------------------
    ! RES NAVIGATION !
    ----------------------*/
    header .navigation{
        height: auto;
        width: fit-content;
        position: fixed;
        border-radius: 5px;
        min-width: 3rem;
        min-height: 3rem;
        display: block;
    }
    header .navigation ul{
        display: none;
        flex-direction: column;
    }
    header .navigation ul li{
        text-align: left;
        margin-bottom: 0.5rem;
    }
    header label[for="burger"]{
        display: block;
        font-size: 2rem;
        width: 100%;
        text-align: center;
    }
    header label[for="burger"]::after{
        content: "☰";
    }
    header #burger:checked + label[for="burger"]{
        text-align: right;
    }
    header #burger:checked + label[for="burger"]::after{
        content: "X";
        padding-right: 0.5rem;
    }
    header #burger:checked ~ ul{
        display: flex;
        margin: 1px 0 1rem 0;
    }
    /* RES side menu */
    .side{
        display: none;
    } 
    /* sommaire */
    .sommaire{
        display: none;
    }
    /*--------------------
    ! RES MAIN CONTENU !
    ----------------------*/
    /* RES Zone de Code */
    pre{
        text-align: left;
    }
    #resume pre code{
        max-width: none;
    }
}