/*------------------------------------*\
    $Base / Version mobile
\*------------------------------------*/
* {
	padding: 0;
	margin: 0;
	box-sizing: border-box;
}

body {
	color: white;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 10px;
}

a {
	transition: all 0.1s ease-in;
}

#conteneur{
    display: grid;
    grid-template-columns: 50% 50%;
    grid-template-rows: auto auto auto auto;
    min-height: 100vh;
}

/* ---------------------------------------------------------en-tête---------------------------------------------- */
header, footer{

	background-color: black;
	padding: 10px;
}

header{
    grid-column: 1/3;
    grid-row: 1/2;
    display: grid;
    width: 100%;

    grid-template-columns: 50% 50%;
    grid-template-rows: 50px auto;
}

header a{
	color: white;
	text-decoration: none;
	transition: 0.4s;
	font-size: 16px;
	text-transform: uppercase;
}

#titre {
    grid-column: 1/2;
    grid-row: 1/2;
    font-family: 'Permanent Marker';
	font-size: 20px;
}

#liens_secondaires{
    grid-column: 2/3;
    grid-row: 1/2;
}

#navigation-principale{
    grid-column: 1/2;
    grid-row: 2/3;
    display : flex;
    /*align-items: flex-start;*/
    flex-direction: column;
    font-size: 25px;
}

#navigation-principale a {
    margin-bottom: 3px;
}

header a:hover{ 
    color:#006eff
}


#liens-secondaires{
	display: flex;
	justify-content: flex-end;
}
/*--------------------------------------------------------------------------------------------------------------*/


/*----------------------------------------------------------ASIDE------------------------------------------------*/
aside{
    grid-column: 1/3;
    grid-row: 2/3;

}

#tri{
	margin-left: 10px;
	margin-top: 10px;
}

.tri-collection label {
	text-transform: uppercase;
	color: #666;
	margin-bottom: 5px;
	font-size: 12px;
}

.tri-collection select {
	margin-top: 2px;
	margin-bottom: 6px;
	border-radius: 5px;
	height: 22px;
	width: 38%;
	padding-left: 5px;
}


/*---------------------------------------------------------------------------------------------------------------*/

/*-------------------------------------------------------------PRODUITS--------------------------------------------------*/
#produits{
    grid-column: 1/3;
    grid-row: 3/4;
    display: grid;
    grid-template-columns: 50% 50%;
    grid-template-rows: auto auto auto;
}

.article-image img {
	height: 120px;
	max-width: 150px; 
}

article a {
	text-decoration: none;
	color: #0b0707;
    position: relative;
}

.article-infos{
	text-align: center;
	text-decoration: none;
	font-size: 20px;
}

.article-image{
	display: flex;
	justify-content: center;
}

.article-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.article-overlay span {
    font-size: 16px;
    background-color: transparent;
    color: white; 
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.article-overlay:hover {
    opacity: 1;
}

.article-overlay:hover span {
    background-color: #006eff; 
}
/*-------------------------------------------------------------------------------------------------------------*/
footer{
    grid-column: 1/3;
    grid-row: 4/5;
    padding: 5px 8px;
}

footer 	a{
	text-decoration: none;
	color:#aaa;
}

footer p, footer li {
	margin-bottom: 10px;
	color:#aaa;
    font-size: 12px;
    list-style: none;
}

footer p:hover {
	color: #fff;
  }

footer a:hover {
	color: #fff;
}

footer h3{
	font-size:16px;
    text-transform: uppercase;
    margin-bottom: 2px;
}

#footer-inner{
	color: white;
}

.credit{
    margin-top: 15px;
    margin-left: 10px;
    font-size: 9px;
    color: #aaa;
    display: flex;
    justify-content: center;
}




/*------------------------------------*\
    $Version Tablette
\*------------------------------------*/
@media screen and (min-width: 480px) {

#conteneur{
    grid-template-columns: 40% 60%;
    grid-template-rows:  auto 0 auto auto;
}


#navigation-principale{
 grid-column: 1/4;
 grid-row: 2/3;
 display: flex;
 flex-direction: row;
 justify-content: space-around;
} 

#produits{
    grid-column: 2/3;
    grid-row: 2/4;
}

aside{
    grid-column: 1/2;
    grid-row: 2/4;
}

.tri-collection select{
    width: 70%;
}

#footer-inner{
    display: flex;
    justify-content: space-between;
}

footer h3 {
    margin-top: 15px;
}

}
/*------------------------------------*\
    $Version Desktop
\*------------------------------------*/

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

    #conteneur{
        grid-template-columns: 25% 50% 25%;
        grid-template-rows: 10% 60% 30%;
        
        
    }   

    header{
        grid-column: 1/4;
        grid-row: 1/3;
        z-index: -1;
    }

   #navigation-principale{
    grid-row: 2/3;
    flex-direction: column;
    justify-content: flex-start;
   }
   
    aside{
        grid-column: 3/4;
        grid-row: 2/3;
        background-color: white;
    }

    #produits{
        background-color: white;
        grid-column: 2/3;
        grid-row: 2/3;
        grid-template-columns: 1fr 1fr 1fr;
    }

    footer{
        grid-column: 1/4;
        grid-row: 3/4;
    }

}

/* Effet de survol sur les appareils mobiles et tablettes */
@media screen and (max-width: 959px) {
    .article-overlay {
        opacity: 0;
        background-color: rgba(0, 0, 0, 0.1);
        transition: opacity 0.3s ease;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .article-overlay span {
        font-size: 16px;
        background-color: transparent;
        color: white;
        padding: 10px 20px;
        border-radius: 5px;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }

    article:hover .article-overlay {
        opacity: 1;
    }

    article:hover .article-overlay span {
        background-color: #006eff;
    }
}
