@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;
}

:root{

    --main-padding: 15px;
    --main-font: "labeur";
    --title-font: "title"; 
    --main-fontsize: 17px;
    --main-line-height: 20px;
    --mauve: #7a11a6;
    --lila: #c261eb;
    --rose: #e6c7f3; 
    --background : #202020;
}

body{
    overflow-x: hidden;
    background-color: var(--background);
    padding: 300px 15px 15px 15px;    
    width: 100vw;
    height: 100vh;
    display : grid;


    grid-template-columns: minmax(auto,460px) 1fr 70px ;
    grid-template-rows: 1fr;
    grid-template-areas: 
        "colonne media .";
    gap: 5px;

    font-family: var(--main-font);
    color: var(--rose);
    font-size: var(--main-fontsize);
    line-height: var(--main-line-height);

    overflow-x: hidden;
    cursor: url("../src/img/souris_lila.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_rose.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(--rose);
    text-decoration-line: none;
}
ul#social li > a:hover{
    color: var(--lila);
    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(122, 17, 166, 0.8));
}
@keyframes ani{
    0% {transform: rotateX(0deg) ;}
    50% {transform: rotateX(0deg);}
    100% {transform: rotateX(360deg) ;}
}
#svg_logo path,
#svg_logo ellipse{
    fill: var(--mauve);
}


h2{
    text-transform: uppercase;
}
#txt h2{
    font-family: var(--title-font);
    margin-bottom: 15px;
    font-size: 19px;
}

#txt{
    grid-area: txt;
    position: fixed;
    justify-self: left;
    align-self: start;
    max-width: 460px;

    padding-top: 10px;
    padding-right: 20px;
    margin-left: 10px;
}

#media{
    grid-area: media;
    align-self: start;
    justify-self: stretch;
}

#images{
    display: grid;
    justify-content: center;
    align-items: center;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    grid-auto-flow: dense;
    padding-bottom: 10px;
    max-width: 1210px;
}
#images img{
    display: block;
    justify-self: center;
    width: 100%;
}

#video{
    width: 100%;
    padding-bottom: 20px;
}
#video video{
    display: block;
    max-width: 1000px;
    max-height: 600px;
    margin: 0 auto;
}

#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;
}

#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{
        grid-template-columns: 1fr 1fr ;
        grid-template-rows: 1fr;
        grid-template-areas: 
            "colonne media";
    }

    header{
        flex-direction: column-reverse;
        align-items: center;
        padding: 10px 0 0 0;
        margin: 0;
    }

    #svg_logo{
        margin-left: 0;
    }
    
    #txt{
        grid-area: colonne;
        position: unset;
    }

    #video{
        width: 100%;
    }
    #video video{
        max-width: calc(50vw - 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;
    }

    #txt{
        position: relative;
        padding-top: 0;
        padding-bottom: 10px;
    }

    #images{
        width: calc(100vw - 30px);
    }

    #video{
        width: 100%;
    }
    #video video{
        max-width: calc(100vw - 30px) !important;
        max-height: 600px;
    }

    #images[data-col="1"]{
        grid-template-columns: 1fr;
    }
    #images[data-col="2"]{
        grid-template-columns: 1fr; 
    }
    #images[data-col="3"]{
        grid-template-columns: 1fr; 
    }

    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; 
    }
}

