@font-face {
    font-family: "labeur";
    src: url("../src/font/terminal-grotesque-webfont.woff");
}
@font-face {
    font-family: "title";
    src: url("../src/font/terminal-grotesque-webfont.woff");
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* variables */
:root{
    --main-padding: 15px;
    --main-font: "labeur";
    --title-font: "title"; 
    --main-fontsize: 17px;
    --main-line-height: 20px;
    --orange:#eb8224;
    --jaune: #ebc952; 
    --jaune-clair: #e9d58f;
    --background : #202020;
}

body{
    overflow-x: hidden;
    background-color: var(--background);
    padding: 300px 15px 15px 15px;
    width: 100vw;
    display : grid;

    grid-template-columns: minmax(auto,460px) auto;
    grid-template-rows: 1fr;
    grid-template-areas: 
        "txt media media";
    gap: 5px;

    font-family: var(--main-font);
    color: var(--jaune);
    font-size: var(--main-fontsize);
    line-height: var(--main-line-height);

    cursor: url("../src/img/souris_jaune.png") 5 5, auto;
    /**/
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
body::-webkit-scrollbar {
    display: none;
}
a:hover{
    cursor: url("../src/img/souris_jaune.png") 5 5, auto;
}

header{
    position: fixed;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    padding: 15px;
    padding-right: 50px;
    top: 0;
    left: 0;
    right: 0;
    margin-left: var(--main-padding);    
    font-size: var(--main-fontsize);
    font-family:var(--main-font);
    color:var(--rose);
}
header::before{
content: "";
z-index: -1;
display: block;
position: fixed;
top: 0;
left: 0;
right: 0;
height: 45px;
background-color: var(--background);
}
header nav{
    display: flex;
}
ul#social {
    display: flex;
    gap: 50px;
}
ul#social li {
    display: block;
    list-style: none;
    min-width: 4rem;
}
ul#social li > a{
    color: var(--jaune);
    text-decoration-line: none;
}
ul#social li > a:hover{
    color: var(--orange);
    text-decoration-line: underline;
}

#svg_logo{
    display: flex;
    margin-left: 120px;
    width: 200px;
    height: 200px;    
    justify-content: center;
    align-items: center;
}
#svg_logo a{    
    display: block;
    width: 140px;
    height: 140px;
    background-color: var(--background);
    border-radius: 50%;
    padding: 5px;
    animation: ani 4s linear infinite;}
#svg_logo svg{
    width: 100%;
    filter: drop-shadow(0px 0px 5px rgba(235, 130, 36, 0.8));
}
@keyframes ani{
    0% {transform: rotateY(0deg) ;}
    50% {transform: rotateY(0deg);}
    100% {transform: rotateY(360deg) ;}
}
#svg_logo path,
#svg_logo ellipse{
    fill: var(--orange);
}

h2{
    text-transform: uppercase;
}
#txt h2{
    font-family: var(--title-font);
    margin-bottom: 15px;
    font-size: 18px;
}

#txt{
    grid-area: txt;
    justify-self: left;
    align-self: start;
    max-width: 460px;
    padding-top: 120px;

    padding-top: 10px;
    padding-right: 20px;
    margin-left: 10px;
}
#txt p{
    margin-bottom: 12px;
}

#media{
    grid-area: media;
    justify-self: center;
    align-self: stretch;
}

#images{
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    grid-auto-flow: dense;
    max-width: 1210px;
    padding-bottom: 10px;
}
#images img{
    display: block;
    justify-self: center;
    align-self: center;
    max-width: 100%;
    max-height: 400px;
}

#images[data-col="1"]{
    grid-template-columns: 1fr;
}
#images[data-col="2"]{
    grid-template-columns: 1fr 1fr; 
}
#images[data-col="3"]{
    grid-template-columns: 1fr 1fr 1fr; 
}

#images img[data-colspan="1"]{
    max-width: 500px;
}
#images img[data-colspan="2"]{
    grid-column: span 2;
    max-width: 805px;
}
#images img[data-colspan="3"]{
    grid-column: span 3;
    max-width: 1210px;
}

.date{
    margin-top: 20px;
}

#video{
    width: 100%;
    padding-bottom: 20px;
}
#video video{
    display: block;
    max-width: 805px;
    margin: 0 auto;
}

#big-viewer{
    position: fixed;
    top:0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10; 

    display: flex;
    justify-content: center;
    align-items: center;
   backdrop-filter: blur(10px);
}
#big-viewer.hidden{
    display: none;
}
#big-viewer figure{
    background-color: none;
}
#big-viewer img{
    max-width: 85vw;
    max-height: 85vh;
    display: block;
}

@media screen and (max-width:1200px){

    body{
        display: block;
    }

    header{
        flex-direction: column-reverse;
        align-items: center;
        padding: 10px 0 0 0;
        margin: 0;
    }

    #svg_logo{
        margin-left: 0;
    }  

    #images{
        display: block;
        width: calc(100vw - 30px);
        padding-bottom: 0;
    }

    #images img{
        width: 100%;
        max-height: none;
        margin-bottom: 10px;
    }

    #video{
        width: 100%;
        padding-bottom: 10px;
    }
    #video video{
        max-width: calc(100vw - 30px);
        max-height: 600px;
    }


    ul#social li {
        -webkit-tap-highlight-color: rgba(0,0,0,0);
        -webkit-tap-highlight-color: transparent; 
    }

    #svg_logo a{    
        -webkit-tap-highlight-color: rgba(0,0,0,0);
        -webkit-tap-highlight-color: transparent; 
    }
}
@media screen and (max-width:500px){
    
    header{
        flex-direction: column-reverse;
        align-items: center;
        padding: 10px 0 0 0;
        margin: 0;
    }

    #svg_logo{
        margin-left: 0;
    }   

    body{
       display: block;
       padding: 300px 15px 0px 15px;
    }

    #images{
        display: block;
        width: calc(100vw - 30px);
        padding-bottom: 0;
    }

    #images img{
        width: 100%;
        max-height: none;
        margin-bottom: 10px;
    }
    
    #images[data-col="1"]{
        grid-template-columns: 1fr;
    }
    #images[data-col="2"]{
        grid-template-columns: 1fr; 
    }
    #images[data-col="3"]{
        grid-template-columns: 1fr; 
    }

    #video{
        width: 100%;
        padding-bottom: 10px;
    }
    #video video{
        max-width: calc(100vw - 30px);
        max-height: 600px;
    }

    ul#social li {
        -webkit-tap-highlight-color: rgba(0,0,0,0);
        -webkit-tap-highlight-color: transparent; 
    }

    #svg_logo a{    
        -webkit-tap-highlight-color: rgba(0,0,0,0);
        -webkit-tap-highlight-color: transparent;    
    }
}
