@font-face {
    font-family:archivo ;
    src: url(font/ArchivoNarrow-VariableFont_wght.ttf);
}
@font-face{
font-family:sigma;
src:url(font/SigmarOne-Regular.ttf);
}



img{
   width:100%;
}

html{
scroll-behavior: smooth;
}

body{
    margin: 0;
    padding: 0;
}


h1{
    margin: 0;
    padding: 0; 
    font-family:"sigma";
    font-size: 5em;
    color:rgb(0, 0, 0,0.8) ;
}

header{
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url("img/fond.webp");
    height: 300px;
    background-size: cover;
    background-repeat: no-repeat;
}
main{
    display: flex;
    width: 100%;
}
.col1{
    width: 210px;
    background: rgb(2,32,83);
    background: linear-gradient(0deg, rgba(2,32,83,1) 0%, rgba(14,53,175,1) 48%, rgba(78,173,228,1) 100%);
    margin: 20px 0 20px 0;
    border-radius: 0 15px 15px 0;
    opacity: 90%;
    box-shadow: 3px 12px 30px 1px rgba(0,0,0,0.49);
    -webkit-box-shadow: 3px 12px 30px 1px rgba(0,0,0,0.49);
    -moz-box-shadow: 3px 12px 30px 1px rgba(0,0,0,0.49);
    
}
nav{
    display: flex;
    flex-direction: column;
    position: sticky;
    text-align: center;
    top: 0;
}
nav a{
   padding: 20px;
    text-decoration: none;
    font-size: 1.5em;
    font-family: "sigma";
    color: black;
}

nav a:hover, nav a:focus{
    color: white;
}
nav a:active{
    color: black;
}
.col2 div{
    width: 100%;
}

h2{
    font-family:"sigma";
    font-size: 2em;
}

.types a img{
    height: 100px;
    width: 100px;
}
.types{
    width: 100%;
    height: 100vh;
}

#types{
    padding-top: 5px;
}
#types h2{
    margin: 40px 15%;
    width: 20%;
    text-align: center;
    background-color: rgba(78,173,228,1);
    border-radius: 10px;
    box-shadow: 3px 6px 15px -8px rgba(0,0,0,0.49);
    -webkit-box-shadow: 3px 6px 15px -8px rgba(0,0,0,0.49);
    -moz-box-shadow: 3px 6px 15px -8px rgba(0,0,0,0.49);
}

.ligne{
    display: flex;
    justify-content: space-evenly;
    margin: 50px 0px;
}
.ligne h3{
    text-align: center;
    font-family: archivo, Arial, sans-serif;
}
.ligne a{
    text-decoration: none;
    color: black;
}

.ligne img{
    transition: 1s;
    border-radius: 50%;
    box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.49);
    -webkit-box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.49);
    -moz-box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.49);}

 .ligne a:hover, .ligne a:focus{
    img{
        scale: 130%;
        transition: 0.5s;
    }
    h3{
        color: rgba(78,173,228,1);
        transition:0.5s;
    }
}

#legendaires{
    height: 120vh;
}

h3{
    margin: 0 0 5px 0;
}

#legendaires #img1{
    height: 60px;
    background-image: url("img/legendaires/boreas.webp");
    background-size: cover;
    background-position:left 0px top -30px ;
}
#legendaires #img2{
    height: 60px;
    background-image: url("img/legendaires/Cobaltium.webp");
    background-size: cover;
    background-position: left 0px top -60px;
}
#legendaires #img3{
    height: 60px;
    background-image: url("img/legendaires/cresselia.webp");
    background-size: cover;
    background-position: left 0px top -30px;
}
#legendaires #img4{
    height: 60px;
    background-image: url("img/legendaires/dialga.webp");
    background-size: cover;
    background-position: left 0px top -20px;
}
#legendaires #img5{
    height: 60px;
    background-image: url("img/legendaires/entei-raikou-suicune.webp");
    background-size: cover;
    background-position: left 0px top -30px;
}
#legendaires #img6{
    height: 60px;
    background-image: url("img/legendaires/giratina.webp");
    background-size: cover;
}
#legendaires #img7{
    height: 60px;
    background-image: url("img/legendaires/heatran.webp");
    background-size: cover;
    background-position: left 0px top -100px;
}
#legendaires #img8{ 
    height: 60px;
    background-image: url("img/legendaires/terrakion.webp");
    background-size: cover;
    background-position: left 0px top -90px;
}

.aside{
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    position: relative;
}

#legendaires{
    padding-top: 5px;
    background-image: url("img/fond2.jpeg");
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

#legendaires h2{
    text-align: end ;
    margin: 20px 15%;
}

.aside aside{
    width: 40%;
    height: 60px;
    box-shadow: 3px 12px 92px 1px rgba(0,0,0,0.49);
    -webkit-box-shadow: 3px 12px 92px 1px rgba(0,0,0,0.49);
    -moz-box-shadow: 3px 12px 92px 1px rgba(0,0,0,0.49);
    margin-right: 15px;
    
}
.articles{
    background: black;
    opacity: 60%; 
    font-family: archivo, Arial, sans-serif;
}
.texte-boreas{
    color: white;
    margin: 20px;
    padding: 15px;
    opacity: 0%;
}

#legendaires:hover, #legendaires:focus{
    .texte-boreas{   
        opacity: 100%;
        transition: 0.5s;
    }
}

.aside div{
    transition:none;
}

#aside1:hover{
    #img1{
        transition: 1.5s;
        translate: -95% 0;
        width: 60%;
        height: 500px;
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
        float: left;
        position: absolute;
        border-radius: 5px;
        box-shadow: 3px 12px 24px 10px rgba(0,0,0,0.49);
        -webkit-box-shadow: 3px 12px 24px 10px rgba(0,0,0,0.49);
        -moz-box-shadow: 3px 12px 24px 10px rgba(0,0,0,0.49);
      
    }
}
#aside2:hover{
    #img2{
        transition: 1.5s;
        translate: -95% -60px;
        width: 60%;
        height: 500px;
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
        float: left;
        position: absolute;
        border-radius: 5px;
        box-shadow: 3px 12px 24px 10px rgba(0,0,0,0.49);
        -webkit-box-shadow: 3px 12px 24px 10px rgba(0,0,0,0.49);
        -moz-box-shadow: 3px 12px 24px 10px rgba(0,0,0,0.49);
      
    }
}
#aside3:hover{
    #img3{
        transition: 1.5s;
        translate: -95% -120px;
        width: 60%;
        height: 500px;
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
        float: left;
        position: absolute;
        border-radius: 5px;
        box-shadow: 3px 12px 24px 10px rgba(0,0,0,0.49);
        -webkit-box-shadow: 3px 12px 24px 10px rgba(0,0,0,0.49);
        -moz-box-shadow: 3px 12px 24px 10px rgba(0,0,0,0.49);
      
    }
}
#aside4:hover{
    #img4{
        transition: 1.5s;
        translate: -95% -180px;
        width: 60%;
        height: 500px;
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
        float: left;
        position: absolute;
        border-radius: 5px;
        box-shadow: 3px 12px 24px 10px rgba(0,0,0,0.49);
        -webkit-box-shadow: 3px 12px 24px 10px rgba(0,0,0,0.49);
        -moz-box-shadow: 3px 12px 24px 10px rgba(0,0,0,0.49);
      
    }
}
#aside5:hover{
    #img5{
        transition: 1.5s;
        translate: -95% -240px;
        width: 60%;
        height: 500px;
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
        float: left;
        position: absolute;
        border-radius: 5px;
        box-shadow: 3px 12px 24px 10px rgba(0,0,0,0.49);
        -webkit-box-shadow: 3px 12px 24px 10px rgba(0,0,0,0.49);
        -moz-box-shadow: 3px 12px 24px 10px rgba(0,0,0,0.49);
      
    }
}
#aside6:hover{
    #img6{
        transition: 1.5s;
        translate: -95% -300px;
        width: 60%;
        height: 500px;
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
        float: left;
        position: absolute;
        border-radius: 5px;
        box-shadow: 3px 12px 24px 10px rgba(0,0,0,0.49);
        -webkit-box-shadow: 3px 12px 24px 10px rgba(0,0,0,0.49);
        -moz-box-shadow: 3px 12px 24px 10px rgba(0,0,0,0.49);
      
    }
}
#aside7:hover{
    #img7{
        transition: 1.5s;
        translate: -95% -360px;
        width: 60%;
        height: 500px;
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
        float: left;
        position: absolute;
        border-radius: 5px;
        box-shadow: 3px 12px 24px 10px rgba(0,0,0,0.49);
        -webkit-box-shadow: 3px 12px 24px 10px rgba(0,0,0,0.49);
        -moz-box-shadow: 3px 12px 24px 10px rgba(0,0,0,0.49);
      
    }
}
#aside8:hover{
    #img8{
        transition: 1.5s;
        translate: -95% -420px;
        width: 60%;
        height: 500px;
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
        float: left;
        position: absolute;
        border-radius: 5px;
        box-shadow: 3px 12px 24px 10px rgba(0,0,0,0.49);
        -webkit-box-shadow: 3px 12px 24px 10px rgba(0,0,0,0.49);
        -moz-box-shadow: 3px 12px 24px 10px rgba(0,0,0,0.49);
      
    }
}

#regions{
    padding-top: 5px;
}
#regions h2{
    margin: 40px 15%;
    text-align: center;
    color: white;
    background-color: rgba(36,69,168,1);
    border-radius: 10px;
    box-shadow: 3px 6px 15px -8px rgba(0,0,0,0.49);
    -webkit-box-shadow: 3px 6px 15px -8px rgba(0,0,0,0.49);
    -moz-box-shadow: 3px 6px 15px -8px rgba(0,0,0,0.49);
}

.img-regions{
    display: flex;
    flex-direction: column;
}

.img-regions img{
    height: 400px;
    border-radius: 5px;
    margin-top: 5px;
    box-shadow: 3px 12px 24px -8px rgba(0,0,0,0.49);
    -webkit-box-shadow: 3px 12px 24px -8px rgba(0,0,0,0.49);
    -moz-box-shadow: 3px 12px 24px -8px rgba(0,0,0,0.49);
}
.img-regions  figure{
    width: 40%;
    text-align: center;
}
.img-regions figcaption{
    background-color: rgba(36,	69,	168,1);
    padding: 20px 10px;
    border-radius: 10px;
    margin-bottom: -15px;
    color: white;
}
.ligne-figure{
    display: flex;
    justify-content: center ;
    margin: 20px 0;
    font-family: archivo, Arial, sans-serif;
    font-size: 1.2em;
}

footer{
    height: 150px;
    background-color: rgba(2,32,83,1);
    display: flex;
    align-items: center;
    justify-content: space-around;
}

footer a{
    text-decoration: none;
    color: white;
    font-size: 1.5em;
    padding: 25px;
    transition: none;
}

footer a:hover, footer a:focus{
    color: rgba(78,173,228,1);
    transition: none;
}
footer a:active{
    color: rgb(216, 161, 57);
}

@media (max-width: 1300px){

    .ligne-figure{
    flex-direction: column;
    align-items: center;
    }
    .img-regions figure{
        width: 60%;
      
    }

}
@media (max-width: 1000px){

   main{
    flex-direction: column;
   }
   .col1{
    width: 100%;
    margin: 0 ;
    border-radius: 0;
    position: sticky;
    top: 0;
    z-index: 10;
  
   }
   nav {
    flex-direction: row;
    justify-content: center; 
    height: 80px;
    }
    .articles article{
        opacity: 1.0;
    }
    #types{
        height: 900px;
    }
    #types h2{
        width:70%;
        margin: 100px 15% 50px 15%;
    }
    #legendaires h2{
        text-align: center;
        margin-top: 80px;
    }
    #legendaires{
        height: 1000px;
    }

    #legendaires #img1{
        transition:none;
        translate: -95% 0;
        width: 60%;
        height: 400px;
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
        float: left;
        position: absolute;
        border-radius: 5px;
        box-shadow: 3px 12px 24px 10px rgba(0,0,0,0.49);
        -webkit-box-shadow: 3px 12px 24px 10px rgba(0,0,0,0.49);
        -moz-box-shadow: 3px 12px 24px 10px rgba(0,0,0,0.49);
      
    }
    .texte-boreas{
        font-size: 1.5em;
    }
    .articles{
        opacity: 80%;
    }
    #regions h2{
        margin-top: 80px;
    }
    figcaption{
        font-size: 1.5em;
    }
}
    
@media (max-width: 1000px){
    .types{
        display: flex;
    }
    .ligne{
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
    }
    #types{
        height: 1300px;
    }
    h2{
        font-size: 3em;
    }
}
