@font-face {
    font-family: 'header';
    src: url(/medias/_kernel/fonts/WindSong-Medium.ttf) format('truetype');
}
@font-face {
    font-family: 'body';
    src: url(/medias/_kernel/fonts/Poppins-Regular.ttf) format('truetype');
}




body{
    display:grid;
    grid-template-areas: 
        "header"
        "main"
        "footer";
    grid-template-rows: var(--header-height) 1fr var(--header-height);
    background:var(--section-background);
    height:100vh;
    margin:0;
    font-family: body;
    color:var(--content-text-color)
}


a{
    text-decoration: none;
    color:var(--content-text-color);
}

button{
    border:var(--button-border);
    background: var(--button-background);
    color: var(--button-text-color);
    padding: 10px 30px;
    font-size: 1.2em;
}   

button:hover{
    background:var(--button-hover-background);
}


main{
    grid-area: main;
    
}





/* ---------------------------------- Common / header -------------------------- */
header{


    grid-area: header;
    position: fixed;
    z-index: 1;

    width: 100%;
    height:var(--header-height);
    box-shadow: var(--shadow);
}
header a{
    display:inline-block;
    vertical-align:middle;
    color:var(--header-text-color);
    text-decoration: none;
}
header nav{
    display:grid;
    grid-template-columns: 400px auto;
    background: var(--header-background);
    box-shadow:var(--shadow);
}

header nav .title{
    font-family: header;
    font-size:1.5em;
    line-height: 0;
}

header nav img#logo{
    height:var(--header-height);
}

header nav ul{  
    margin: 0;
    padding:0;
}
header nav ul li{
    display:inline-block;
    padding: 0 0 0 2vw;
}
header nav ul li a{
  line-height:var(--header-height);
  font-size:1.1em;

}


header nav div#menu-icon{ /* le toggle */
    display:none;
}
header nav div#menu-icon svg{
    fill:var(--header-text-color);
    width:calc(var(--header-height) / 2);
}

.template{
    display:none;
}





/* ================= section  =================== */
section{
    display: grid;
    position:relative;
    background:var(--section-background);
    color: var(--section-text-color);
    overflow: hidden;
}
section > .anchor{
    position:absolute;
    margin-top:calc(-1 * var(--header-height));
    height:0;
    width:0;
}
section > .media{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
        
}
section > .media img{
    position:absolute;
    opacity:0;
    transition: opacity 3s;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
section > .media img.loaded{
    opacity:1;
}
section > .media svg{
    height:100%;
    fill:var(--section-background-2);
}

section > .content{
    position:relative;
    align-self: center;
    justify-self: center;
    margin: 40px auto;
    padding:20px;
    max-width:800px;
    background:var(--content-background);
    color:var(--content-text-color);
}
section > .content h2{
    text-align: center;
    margin:40px 0;
    
}
section > .content p{
    text-align: left;
    line-height: 2em;  
}


/* ================= articles =================== */
section article{
    overflow:hidden;
    position:relative;

    background: var(--section-background-2);
    color:var(--content-text-color);


    box-shadow: none;
    transition: box-shadow 1s;
}

section article > h3,
section article > p,
section article > img{
    position:relative;
}
section article > p{
    line-height: 1.7em;  
    padding:10px;
    text-align: left;
}

section article > ul{
    display: inline-block;
    padding: 0px;
    
    text-align: left;
}

section article.over{
    box-shadow:var(--shadow);
}

section article > img{   
    filter:saturate(0);
    transition: filter 2s;
    -webkit-user-drag: none;
    user-drag: none;
    pointer-events: auto;
}
section article.visible > img{
    filter:saturate(1);
}

section article > .media{

}
section article > .bg > img{
    position:absolute;

    left:0;
    width:100%;
    height:100%;
}




/* un seul article */
section > .article{

    width:800px;
    max-width:1200px;
    height:325px;
    margin:-50px auto 40px auto;
    overflow:hidden;
}
section > .article > article{
    height:100%;
    padding:0;
    overflow: hidden;
}
section > .article > article > img{
    float:left;
    margin:0 40px 0 0;
    width:250px; /* [imageWidth] */
    height: 100%;
    object-fit: fill;
}
section > .article > article > h3{
    padding-top:20px;
}
section > .article > article > p{
    padding: 0;
    margin: 0 40px 0 250px;/* [imageWidth] */


}
section > .article > article > h3{
    text-align:left;
}

/* plusieurs articles */
section > .articles{
    position: relative;
    margin:0 auto 40px auto;
    text-align: center;
    max-width: 70vw;
}
section > .articles > article{
    display:inline-block;
    margin:10px;
    vertical-align: top;
    min-height:230px;
    width: calc(33% - 40px);
    max-width:400px;
}



section > .articles > article > img{
    width: 100%;
    height: 400px;
    object-fit: cover;
}
section > .articles > article > h3{
    text-align:center;
    margin:20px;
}





footer{
    grid-area: footer;
    background: var(--header-background);
    color:var(--header-text-color);
    font-size: 0.7em;
    height:var(--header-height);
}
footer a{
    color:var(--header-text-color);
}
footer p{
    text-align:center;
    margin:20px auto;
}
