* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #636468;
}

main {
    font-family: 'Open Sans Condensed', sans-serif;
}

hr {
    width: 80%;
    display: block;
    margin: 0 auto;
    border: 1px solid lightgrey;
}


/*-----------header & nav -------------*/
header{
    width: 100%;
    height:auto;
    display: inline-block;
    background: #EEE;
    font-family: 'Open Sans Condensed', sans-serif;
    border-radius: 0px 0px 20px 20px;
}
header h1{
    width: 100%;
    font-size: 2em;
    align-items: center;
    display: flex;
    margin: 0 auto 0 auto;
    justify-content: center;
}
header h1 span{
    color: rgba(172, 24, 24, 0.767);
    font-size: 130%;
    font-family: 'Permanent Marker', cursive;
}
header nav{
    width: 100%;
    background: rgb(51,51,51);
    padding: 12px;
}
header nav ul{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    width: 100%;
    height: 100%;
}
nav ul li{
    font-size: 2.5rem;
    height: 100%;
    list-style-type: none;
    align-items:center;
    display: flex;
    color:white;
}
header nav ul li a{
    width: 20%;
    color: #EEE

}
nav ul li a:hover{
    color:rgba(172, 24, 24, 0.767);
}
header nav ul li .nomLi{
    display: none;
}
nav ul #lienHome{
    background-color:rgba(172, 24, 24, 0.767);
    padding: 6px;
    border-radius:6px;
}
nav ul #lienHome:hover a{
    color:rgb(51, 51, 51);
}


/*-----------Body-----------*/

main h1 {
    margin: 5% 0;
    color:#EEE;
    font-size: 2em;
}

#bio-container{
    display: grid;
    grid-template: repeat(3, auto) / 100% ;
    grid-template-areas: 
    "bio"
    "picture"
    "namedescription";
    justify-items: center;
    margin-bottom: 5%;
}

#bio-container h1 {
    grid-area: bio;
}

#bio-container img {
    grid-area: picture;
    margin: 5% 0;
}

#bio-container div {
    grid-area: namedescription;
    width: 300px;
    border: 4px black double;
    border-radius: 5px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    background-color: #EEE;
}

#bio-container div p {
    text-align: justify;
    font-size: 1.2rem;
    margin: 2% 0 3% 0;
    overflow-y: scroll;
    height: 300px;
}

#bio-container div h2 {
    text-align: center;
    margin: 3% 0;
    background-color: rgb(51,51,51);
    color: #EEE;
	padding: 6px 3px;
    border-radius: 5px;
}

.article-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 5%;
}

.article-item {
    margin: 5px 0;
    border: 4px black double;
    border-radius: 5px;
}

figure a {
    text-decoration: none;
    color: rgb(51, 51, 51);
}


.description {
	text-align: center;
	overflow: hidden;
	white-space: pre-wrap;
	background-color: #EEE;
}

.description::first-letter {
	font-size: 2rem;
}

figure {
	width: 300px;
	height: 400px;
	padding: 10px;
	display: grid;
    grid-template-areas: 
    "I1"
    "I2"
    "I3";
    justify-items: center;
    align-items: center;
    background-color: #EEE;
}

figcaption {
    grid-area: I1;
	font-weight: bold;
    text-align: center;
	font-size: 1rem;
    background-color: rgb(51,51,51);
    color: #EEE;
	padding: 6px 3px;
    border-radius: 5px;
    width: 280px;
}

figcaption > p {
    grid-area: I3;
}

img {
    grid-area: I2;
    border: 1px solid #000;
    border-radius: 5px;
    width: 280px;
    height: auto;
    align-self: center;
}

section h1 {
    text-align: center;
}

a.button {
    display: block;
    padding:10px 20px;
    border: 3px solid #FFFFFF;
    margin: 0 auto 5%;
    border-radius:2px;
    text-decoration:none;
    font-weight:300;
    color:#FFFFFF;
    text-align:center;
    transition: all 0.2s;
    width: fit-content;
    width: -moz-fit-content;
    }

    a.button:hover {
    color:#000000;
    background-color:#FFFFFF;
    }


/*-----------footer---------*/

footer{
    font-family: 'Open Sans Condensed', sans-serif;
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-direction: column-reverse;
    width: 100%;
    padding: 0px;
    background-color:rgb(51, 51, 51);
}
footer .gauche{
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: space-around;
    flex-direction: column;
    width: 100%;
    padding: 0px;
    margin: 0px;
}
.pourGauche{
    display: flex;
    width: 30%;
    flex-direction: row;

}
footer .gauche i{
    text-decoration: none;
    color: #EEE;
    padding: 5px;
    font-size: 2rem;
}
footer .droite{
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: space-around;
    flex-direction: column;
    width: 100%;
    padding: 0px;
    
}
footer .droite a{
    text-decoration: none;
    color: #EEE;
    padding: 5px;
    font-size: 1rem;
}
footer .gauche i:hover, footer .droite a:hover{
    color: rgba(172, 24, 24, 0.767);
}


/* <<<<<<<-----------Desktop Styles------------->>>>>>> */

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

    /*-------------header---------------*/
    header{
        display:flex;
        height: 200px;
        background: linear-gradient(130deg, #EEE 37%,rgb(51, 51, 51) 37%);
        
        
    }
    header h1{
        width: 60%;
        font-size: 4rem;
        
    }
    header nav {
        background: none;
    }
    nav{
        width: 40%;
    }
    nav ul{
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-around;
        width: 100%;
        height: 100%;
        
    }
    nav ul li a .nomLi{
        display: flex;
    }

    nav ul li a #shop{
        width: 100px;
    }

    nav ul li{
        font-size: 2.5rem;
        height: 100%;
        list-style-type: none;
        align-items:center;
        display: flex;
        color:white;
    }
    nav ul li a {
        text-decoration: none;
        color:white;
    }
    nav ul li .icone{
        display: none;
    }
    nav ul #lienHome{
        background-color:rgba(172, 24, 24, 0.767);
        padding-right: 10px;
        padding-left: 10px;
        border-radius:6px;
    }
    nav ul #lienHome a:hover{
        color: rgb(51, 51, 51);
    }

    /*-------------Body---------------*/
    
    #bio-container{
        grid-template: repeat(2, auto) / 30% 70%;
        grid-template-areas: 
        "bio bio "
        "picture namedescription";
        width: 90%;
        margin: auto;
        margin-bottom: 5%;
    }

    #bio-container div {
        justify-self: flex-start;
        height: auto;
        width: auto;
    }

    #bio-container div p {
        overflow: visible;
        height: min-content;
    }

    #bio-container div h2 {
        margin-bottom: 0;
    }

    #bio-container img{
        margin-top: 0;
    }


    .article-container {
        justify-content: space-around;
        flex-direction: row;
    }

    .article-item {
        transition: all 0.2s ease-in 0.2s;
    }
    
    .article-item:hover {
        border: 8px #555 double;
        background-color: rgba(172,24,24,0.767);
        letter-spacing:2px;
        cursor: pointer;
     }

     figure a:hover {
        text-decoration: underline;
    }


    /*-------------footer---------------*/


    footer{
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        padding: 30px;
        flex-direction: row;
        
    }

    footer .pourGauche{
        width: 30%;
        display: flex;
        align-items: start;
        justify-content: center;
        flex-wrap: wrap;
        text-align: left;
    }
    
    footer .gauche{
        display: flex;
        align-items: center;
        margin-right: 0px;
        flex-wrap: wrap;
        flex-direction: row;
        justify-content: stretch;
    
    }

    footer .droite{
        display: flex;
        text-align: end;
        justify-content: space-around;
        flex-wrap: wrap;
        flex-direction: row;
        width: 65%;
    }

    footer .droite a {
        font-size: 1rem;
    }

    footer .gauche i{
        text-decoration: none;
        color: #EEE;
        padding: 5px;
        font-size: 2rem;
    }
    
}