@import url('https://fonts.googleapis.com/css?family=Permanent+Marker');

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
}

header {
    align-items: center;
    background-color: black;
    margin: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
}

header h1 {
    margin: 0 0 0 10px;
}

header h1 a:hover {
    transition: 0.5s;
    color: #006eff;
}

header h1 a {
    font-family: 'Permanent Marker';
    transition: 0.5s;
    text-decoration: none;
    color: white;
}

#liens-secondaires {
    margin-right: 15px;
    display: flex;
}

nav {
    background-color: black;
    margin: 0;
}

nav ul {
    flex-direction: column;
    margin: 0;
    padding-left: 10px;
    list-style: none;
    display: flex;
}

nav ul li {
    margin: 5px 0 5px 0;
}

nav ul li a {
    text-transform: uppercase;
    transition: 0.5s;
    text-decoration: none;
    color: white;
}

nav ul li a:hover {
    color: #006eff;
    transition: 0.5s;
}

aside {
    margin: 10px 0 0 15px;
}

.tri-collection {
    flex-direction: column;
    align-items: baseline;
    display: flex;
}

.tri-collection select {
    width: 100px;
}

.tri-collection label {
    margin-top: 5px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 5px;
}

#articles {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    margin: 15px 0 15px 0;
}

.article {
    flex-direction: column;
    align-items: center;
    margin: 10px 0 10px 0;
    width: 49%;
    display: flex;
}

.article a {
    color: black;
    height: 193px;
    text-decoration: none;
}

.article-image img {
    height: 132px;
    max-width: 150px;
}

.article-infos {
    justify-content: center;
    align-items: center;
    display: flex;
    flex-direction: column;
}

.article-infos h5 {
    margin: 0;
}

.article-infos h6 {
    margin: 0;
}

.article-overlay {
        display: flex;
        position: relative;
        height: 100%; 
        background-color: rgba(0,0,0,0);
        top: -170px;
        width: 100%;
        transition: 0.5s;
    }
        justify-content: center;
        align-items: center;
       
    a:hover .article-overlay {
         transition: 0.5s;
         background-color: rgba(0,0,0,0.1);
       
    }
    .article-overlay span {
        display:block;
        z-index: 999;
        padding: 5px;
        background-color: rgba(0,0,0,0);
        color: transparent;
    }
    a:hover .article-overlay span {
        background-color:#006eff;
        color: white;
    }

footer {
    background-color: black;
    color: white;
    padding: 10px 0 10px 10px;
}

footer p {
    margin: 3px 0 3px 0;
}

footer ul {
    list-style: none;
    padding: 0;
}

footer ul li a {
    color: #aaa;
    margin: 3px 0 3px 0;
    transition:1s;
}

footer ul li a:hover {
    color:white;
    transition:1s;
}

@media screen and (min-width:480px)
{
    
    header {
        grid-column-start: 1;
        grid-column-end: 3;
    }
    nav {
        width: 100%;
        grid-column-start: 1;
        grid-column-end: 3;
    }
    nav ul {
        justify-content: space-around;
        align-items: center;
        display: flex;
        flex-direction: row;
    }
    #conteneur {
        display: grid;
        grid-template-columns:1fr 2fr;
    }
    aside {
        grid-column: 1;
        grid-row: 3;
    }
    .tri-collection select {
    width: 100%;
    }
    footer {
        grid-column-start: 1;
        grid-column-end: 3;
    }
    #footer-inner {
        justify-content: space-around;
        align-items: center;
        display: flex;
        flex-direction: row;
        
    }
}

@media screen and (min-width:960px)
{
    #conteneur {
        display: grid;
        grid-template-columns:1fr 3fr 1fr;
    }
    header {
        grid-column-start:1;
        grid-column-end:4;
    }
    nav {
        grid-column-start:1;
        grid-column-end:1;
    }
    nav ul {
    display: flex;
    flex-direction: column;
    align-items: baseline;
    list-style: none;
    margin: 0;
    padding-left: 10px;
}
    aside {
        grid-column-start:3;
        grid-column-end:4;
        grid-row-start:2;
        grid-row-end:2;
        margin: 10px 15px 0 0;
    }
    #articles {
        grid-column-start:2;
        grid-column-end:3;
    }
    .article {
        width: 33%;
    }
    .article a {
        height: 240px;
    }
    .article-image img {
        width: 180px; 
        height: 180px;
    }
    .article-overlay {
        display: flex;
        position: relative;
        justify-content: center;
        align-items: center;
        top: -215px;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0);
        transition: 0.5s;
    }
    a:hover .article-overlay {
        background-color: rgba(0,0,0,0.1);
        transition: 0.5s;
    }
    .article-overlay span {
        display:block;
        color: transparent;
        padding: 5px;
        background-color: rgba(0,0,0,0);
        z-index: 9999;
        transition: 0.5s;
    }
    a:hover .article-overlay span {
        background-color:#006eff;
        color: white;
    }
    footer {
        grid-column-end:4;
        grid-column-start:1;
    }
}