

:root {
    /*colors*/
    --custom_black: #000000;
    --custom_darkGray: #171717;
    --custom_gray: #7f7f7f;
    --custom_white: #efefef;
    --custom_lightYellow: #949494;
    /*--custom_lightYellow: #F9F4EB;*/

    --custom_accent: #b9291b;

    color-scheme: light only;
}

@font-face{
    font-family: 'Herold';
    src:  url('fonts/herold_bold.otf');
}

@font-face{
    font-family: 'Abordage';
    src:  url('fonts/Abordage-Regular.woff');
}

html {
    color: var(--custom_black);
    text-align: left;
    line-height: 1.7;
    font-family: 'Abordage';
    font-size: 1.3rem;
}

*:focus-visible {
    outline: 4px solid var(--custom_accent);
    text-decoration: underline;
}

h1 {
    line-height: 1.2;
    font-weight: normal;
    font-family: 'Herold';
}

h2 {
    line-height: 1.2;
    font-weight: normal;
    font-family: 'Herold';
}

h3,
h4,
h5,
h6 {
    line-height: 1.2;
}

a {
    font-size: 1rem;
}

a:link {
    text-decoration: underline;
}

a:link:visited,
a:link:active {
    text-decoration: none;
}

a:link:hover {
    text-decoration: underline;
    color: white;
    cursor: pointer;
    background: black;
}

body{
    background-color: var(--custom_accent);
    padding: 1rem;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#container{
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 14px solid var(--custom_darkGray);
    border-radius: 10px;
    width: 100%;
    max-width: 1200px;
    background-color: var(--custom_white);
    pointer-events: auto;
}

@media only screen and (max-width: 767px) {
    .hideOnMobile{
        display: none;
    }
    body{
        padding: 0;
    }
    #container{
        border-radius: 0;
    }
}

@media only screen and (min-width: 768px) {
    .hideOnDesktop{
        display: none;
    }
}


body:after{
    content:"";
    background-image:url("https://upload.wikimedia.org/wikipedia/commons/7/76/1k_Dissolve_Noise_Texture.png");
    height: 300%;
    width: 300%;
    position: fixed;
    background-repeat: repeat;
    opacity: 0.12;
    animation: animateGrain 2.4s steps(10) infinite;
    mix-blend-mode: hard-light;
    top: 0;
    left: 0;
}

@keyframes animateGrain{
0% { 
    transform:translate(-15%,-20%)
}
10%{
    transform:translate(-5%,-10%)
}
20%{
    transform:translate(-15%,-20%)
}
30%{
    transform:translate(-5%,-10%)
}
40%{
    transform:translate(-15%,-20%)
}
50%{
    transform:translate(-5%,-10%)
}
60%{
    transform:translate(-15%,-20%)
}
70%{
    transform:translate(-5%,-10%)
}
80%{
    transform:translate(-15%,-20%)
}
90%{
    transform:translate(-5%,-10%)
}
100%{
    transform:translate(-15%,-20%)
}

}


/*
    HEADER
*/

.header{
    display: flex;
    justify-content: center;
    width: 100%;
    background-color: var(--custom_darkGray);
}

.title{
    width: fit-content;
    color: var(--custom_lightYellow);
    background-color: var(--custom_darkGray);
    padding: 1.6rem;
    display: flex;
    color: var(--custom_white);
    display: flex;
    align-items: center;
}

.title img{
    height: 9rem;
    margin-right: calc(2rem + 2.5vw);
    user-select: none;
    -webkit-user-drag: none;
}

.title div{
    height: fit-content;
}

.title h1{
    font-size: 5.5rem;
    line-height: 0.9;
    margin: 0;
    text-transform: uppercase;
}

.title h2{
    font-size: 3.2rem;
    line-height: 1;
    margin: 0;
}


@media only screen and (max-width: 1200px) {

    .title{
        padding: 1.5rem;
    }

    .title img{
        height: calc(4rem + 4.4vw);
        margin-right: calc(1rem + 1.1vw);
    }

    .title h1{
        font-size: calc(2.8rem + 2vw);
        line-height: 0.9;
        margin: 0;
    }
    
    .title h2{
        font-size: calc(1.6rem + 1.2vw);
        margin: 0;
    }

}


@media only screen and (max-width: 767px) {

    .title{
        margin: 1rem 0.2rem;
        padding: 0;
    }

    .title img{
        height: calc(4rem + 4.4vw);
        margin-right: 0.7rem;
    }

    .title h1{
        font-size: calc(0.65rem + 6.5vw);
        line-height: 1;
        margin: 0;
    }
    
    .title h2{
        font-size: calc(0.38rem + 3.8vw);
        margin: 0;
    }

}

/* 
=========================================================================================
    Main
*/

#corps{
    height: 100%;
    width: 100%;
    padding: 20px;  
    display: flex;
    flex-direction: column;
}

.description>p{
    line-height: 1.5;
    font-size: 1rem;
    margin-bottom: 0;
    max-width: 800px;  
    color: var(--custom_black);
}
.description b{
    color: var(--custom_accent);
    font-weight: 900;
}
.description .small{
    font-size: 0.8rem;
}

.description{
    margin: 15px;
    display: flex;
    flex-direction: column;
}

.description .cta{
    text-align: center; 
    margin-top: 30px;
}

.description .cta>a{
    color: white;
    background: var(--custom_accent);
    padding: 10px;
    font-family: 'Herold';
    font-size: 1.8rem;
}

.description .cta>a:hover{
    background-color: var(--custom_darkGray);
}

.description .trailer{
    text-align: center; 
    margin-top: 30px;
}

.description .trailer video{    
    padding: 10px;
    background: var(--custom_accent);
    width: 600px;
    max-width: 100%;
}

.description .trailer video:hover{
    cursor: pointer;
}

div.programmation{
    display: flex;
    text-align: center;
    min-width: -moz-available;
    width: 100%;
    padding: 20px;
    padding-top: 0;
}
div.programmation>div{
    width: calc(100% / 3);
}

div.programmation>div>div:hover{
    cursor: url('/assets/imgs/pr-r100.jpg'), auto;	
}
div.programmation>div>div:focus-visible{
    text-decoration: none;
}
div.programmation>div>div{
    display: flex;
    width: auto;
    margin: 0 1vw 20px;
    background-color: var(--custom_darkGray);
    padding: 20px;
    color: var(--custom_white);
    border-radius: 10px;
    flex-direction: column;
    align-items: center;
}

div.programmation>div>div p{
    text-align: left;
    margin-top: 0;
}

div.programmation>div>div p:last-of-type{
    margin-bottom: 0;
}

div.programmation span{
    font-size: 0.9rem; 
}

div.programmation span.time{
    margin: 2.2rem 0 0;
    line-height: 0.3;
}

div.programmation span.real{
    margin: 0rem 0 0.9rem;
    line-height: 0.3;
}

div.programmation span.metadata{
    margin: 0rem 0 0.7rem;
    line-height: 0.3;
}

div.programmation span.genre{
    margin: 0rem 0 2.8rem;
    line-height: 1;
    max-width: 80%;
    color: var(--custom_accent);
}

div.programmation h4{
    color: var(--custom_accent);
    margin: 0rem 0.3rem 0rem;
    font-family: 'Herold';
    font-size: 60px;
    line-height: 0.9;
    padding: 10px 0 15px;
}

div.programmation p{
    font-size: 0.9rem;
    line-height: 1.3;
}

div.programmation details{
    margin-bottom: 20px;
    max-width: 80%;
}

div.programmation .tw{
    width: 100%;
}

div.programmation .tw>span{
    filter: blur(7px);
}

div.programmation .tw>span:hover{
    filter: none;
    user-select: none;
}

div.programmation h2{    
    font-family: 'Herold';
    font-size: calc(1.1rem);
    margin: 0 0 20px;
    line-height: 1;
    padding: 0 20px;
    text-transform: uppercase;
}   
div.programmation h3{
    font-family: 'Herold';
    font-size: calc(1.2rem + 1vw);
    margin-bottom: 0;
}

@media only screen and (max-width: 1100px) {

    #corps{
        padding: 15px;
    }
    .description>p{
        line-height: 1.4;
        font-size: 0.9rem;
    }
    .description .small{
        font-size: 0.7rem;
        line-height: 1.3;
    }
    div.programmation{
        padding: 10px;
        flex-direction: column;
    }
    div.programmation>div{
        width: 100%;
    }
    div.programmation h2{     
        font-size: 1.1rem;
    }      
    div.programmation h3{
        font-size: calc(1.4rem + 1vw);
    }
    div.programmation>div>div{
        margin: 0 0 20px;
    }

}

.follower-image {
    display: none;
}

@media only screen and (max-width: 1100px) {

    .follower-image{
        display: none !important;
    }
}

@media only screen and (min-width: 1101px) {

    .follower-image {
        border: 10px solid var(--custom_darkGray);
        border-radius: 10px;
        position: absolute;
        width: 500px;
        mix-blend-mode: screen;
        height: auto;
        pointer-events: none;
        transform: translate(-50%, -100%);
        display: none;
    }

    .description:hover + .follower-image {
        display: block; /* Affiche l'image lorsqu'on survole la description */
    }
}

/* 
=========================================================================================
    Footer
*/

#sponsors{
    pointer-events: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

#sponsors img{
    max-width: 200px;
    padding: 20px;
}

#sponsors img.ig{
    width: 100px;
}

#sponsors a:hover{
    background-color: transparent;
}

#sponsors a:hover{
    filter: invert(100%) sepia(100%) saturate(0%) hue-rotate(138deg) brightness(102%) contrast(105%);
    background: #e2e2e2;
    border-radius: 15px;
}


#credits{
    width: 100%;
    padding: 0 10px;
    text-align: left;
    pointer-events: auto;
}
#credits a{
    color: white;
    text-decoration: none;
    padding: 3px;
}
#credits span:hover + .fontPlus{
    display: inline;
}

#credits .fontPlus{
    display: none;
}

@media only screen and (max-width: 767px) {
    #sponsors{
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}
