@font-face {
    font-family: 'MinecraftFont';
    src: url('../fonts/mac\'s Minecraft.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    
}

@font-face {
    font-family: 'MinecraftFont';
    src: url('../fonts/mac\'s Extended Minecraft Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    
}
*{
    font-family: "Noto Sans", "Helvetica Neue", Helvetica, Arial, "sans-serif";
    font-size: 1.05em;
    letter-spacing: 0.96px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.4;
    text-align: center;
    color: rgb(255, 255, 255);
    text-decoration-line: none;
}

html{
    background-color: rgb(59, 59, 59);
}
main{
    width: 80%;
    margin:auto;
}
header{
    position: sticky;
    top:0;
    z-index: 2;
}
body {
    cursor: url('../img/curseur-epee.png') 32 32, auto;
}
a, button, label, .cliquable {
    cursor: url('../img/curseur-pioche.png') 32 32, pointer;
}
p, input, textarea {
    cursor: url('../img/curseur-hoe.png') 32 32, text;
}
nav div ul li ul {
    display: none;
    list-style: none;
    background-color: rgb(77,77,77);
    padding: 0;
    width: 100%;
    position: absolute;
    left: 0;
    top: 99%;
    padding: 20px 0;
}
nav div ul li label img {
    
    width: 20px;
    margin-left: 0;
    vertical-align: middle;
}

nav div ul li input{
    display: none;
}

nav div ul li input:checked ~ ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
}


nav div ul li input:checked ~ label img {
    transform: rotate(180deg);
    transition: all 0.2s;
}
nav div ul{
    display: flex;
    left: 0;
    padding: 0;
}
nav div ul li{
    list-style: none;
    margin: 0 20px ;
}
nav div{
    position: relative;
    display: flex;
    background-color:rgb(77,77,77) ;
    justify-content: space-between;
    padding: 10px;
}
nav div a{
    width: 61px;
    height: 61px;
    position: relative;
}
nav div a img{
    object-fit: cover;
    position: relative;
    width: 100%;
    height: 100%;
    
}
h1{
    font-family: 'MinecraftFont', sans-serif;
    font-size: 3em;
    font-weight: 400;
    line-height: 1.4;
    margin: 20px 0;
}
h3{
    font-size: 1.8em;
}
main div{
    display: flex;
    flex-direction: column-reverse;
}
footer{
    padding: 10px;
    bottom: 0;
    background-color:rgb(77, 77, 77) ;
    display: flex;
    justify-content: center;
}
footer p{
    margin-right: 8px;
    margin:5px;
}
footer li{
    list-style:none;
}
footer ul{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    padding:0;
}
div ul li ul li a{
    font-family: 'MinecraftFont', sans-serif;
    font-size: 1.1em;
    font-weight: 400;
    display: block;
    width: 80%;
    height: 50%;
    line-height: 1.4;
}
 div ul li ul li{
    margin: 20px;
    display: flex;
    justify-content:center ;
}


div ul li a:hover{
    transition: all 0.1s;
    font-size: 1.1em;
}
div ul li label:hover{
    transition: all 0.1s;
    font-size: 1.1em;
    
}

main div video{
    width: 85%;
    border-radius: 20px;
    align-self: center;
}
main video:nth-child(2){
    display: none;
}
form{
    display: flex;
    justify-content: center;
}
form p{
    margin: 20px;
}
fieldset{
    width: 40%;
    border-radius: 10px;
    outline: 2px solid #7CFC00;
    outline-offset: 2px;
    background-color: #5D5D5D;
    margin: 63px;
    
}
textarea{
    font-size: 0.9em;
    margin: 15px;
    background-color: #2D2D2D;
    text-align: left;
    resize: none;
}
select{
    margin: 15px;
    background-color: #2D2D2D;
    text-align: left;
}
.mbutton{
    text-transform: none;
    padding: 20px 25px;
    background-color: #4D4D4D; 
    color: white;
    text-decoration: none;
    border: 2px solid #000;
    box-shadow: inset -7px 7px 0px #7D7D7D, inset 7px -7px 0px #2D2D2D;
    transition: all 0.2s;
}
.mbutton:hover{
    outline: 3px solid #7CFC00;
    outline-offset: 4px;
    background-color: #5D5D5D;
    font-size: 1em;
}

input{
    font-size: 0.9em;
    margin: 15px;
    background-color: #2D2D2D;
    text-align: left;
}
section article{
    display: flex;
    justify-content: center;
    margin: 20px;
    
}
section article a div{
    width: 500px;
    height: 500px;
    position: relative;
    z-index: 1;
}
section article a div:hover{
    transition: all 0.25s;
    outline: 3px solid #7CFC00;
    outline-offset: 4px;
    border-radius: 10px;
    transform: scale(1.02);
    transform: rotate(3deg);
}

section article a div h3{
    position: absolute;
    padding: 10px 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.651) ;
    z-index: 1;
    
}

 section article a div img{
    object-fit: cover;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    z-index: 1;
    
}
main section:nth-child(2) article{
    flex-direction: column;
}
main section:nth-child(3){
    display: grid;
    grid-template-columns: 1fr 1fr;
    z-index: 1;
    
}
main section>h2{
    display: none;
}
section article p{
    text-align: justify;
    font-size: 1.2em;
}
h2{
    font-size: 2em;
}
.contenus section article{
   display: block 
}

.contenus section article:nth-child(2){
    width: 500px;
    height: 500px;
    float: left; 
    margin-right: 20px;
}
.contenus section article:nth-child(2) img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    border-radius: 10px;
}
.contenus body main section:nth-child(3){
    display: block; 
}
.contenus body main section:nth-child(3) article{
    flex-direction: column;
}
@media (max-width: 980px) and (orientation: portrait) {
    main video:nth-child(1){
        display: none;
    }
    main video:nth-child(2){
        display: block;
    }
    main section:nth-child(3){
    display: grid;
    grid-template-columns: 1fr;
    z-index: 1;
    }
    nav div ul li label img {
        width: 28px;
    }
    section article p{
        text-align: justify;
        font-size: 2.4em;
    }
    h3{
        font-size: 2.8em;
    }
    h2{
        font-size: 3em;
    }
    h1{
        font-size: 4em;
    }
    section article a div{
        width: 700px;
        height: 700px;
    }
    fieldset{
        width: 60%;
    }
    form label {
        font-size: 2.4em;
    }
    input{
        font-size: 2.4em;
    }
    textarea{
        font-size: 1.5em;
    }
    select{
        font-size: 2.4em;
    }
    form .mbutton{
        font-size: 2.4em;
    }
    form .mbutton:hover{
        font-size: 2em;
    }
    footer{
        font-size: 2em;
    }
    header{
        font-size: 1.5em;
    }
    nav div a{
    width: 120px;
    height: 120px;
    }
    .mbutton{
        padding: 40px 45px;
        font-size: 1em;
    }
    .mbutton:hover{
        font-size: 0.9em;
    }
    .contenus section article:nth-child(1){
        width: 500px;
        height: 500px;
    }
    .contenus section article:nth-child(2){
        width: 800px;
        height: 800px;
        float:none;
        margin: auto;
        display: flex;
    }
    main{
        width: 90%;
    }
    footer ul{
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 980px) and (orientation: landscape ) {
    section article a div{
        width: 300px;
        height: 300px;
    }
    h3{
        font-size: 1.1em;
    }
    .mbutton{
        padding: 20px 25px;
        font-size: 0.85em;
    }
    .mbutton:hover{
        font-size: 0.75em;
    }
    div ul li ul li{
        margin: 18px 0;
    }
    .contenus section article:nth-child(2){
        width: 350px;
        height: 350px;
    }
    input{
        margin: 0;
    }
    label{
        margin: 2px;
    }
    fieldset p{
        margin:10px;
    }
    textarea{
        height: 200px;
    }
    header{
        position:relative;
    }
}