/* Feuille de style spécifique pour la page Index*/

/* Paramétrage en disposition Mobile First */
#filtering {
	background-color: #00a5dc;
}

#filter {
	margin: 0;
	padding: 0 2%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 3rem;
    color: #000;
}

#catList {
	display: none;
	text-align: center;
}

.funnel {
	font-size: 3rem;
	width: 100%;
}

#articles {
	text-align: center;
}

#articles article {
	margin: 3%;
	padding: 0 2% 1%;
	border: solid 1px #000;
	border-radius: 5px;
}

#articles p {
	text-align: left;
	font-size: 2rem;
}

/* chaque premier p de l'id artciles aur une taille spécifique */
#articles p:first-of-type {
	font-size: 3rem;
}

#articles button {
	font-size: 3rem;
	text-decoration: none;
	padding: 2%;
	border-radius: 5px;
	background-color: #647883;
}

#articles button a {
	text-decoration: none;
	color: #000;
}

#noArticle {
	display: none;
}

/* mise en place de la présentation Tablette avec width >= 768px */
@media screen and (min-width: 768px) {
	#filter, .funnel { font-size: 4rem; }
	#articles article img {  width: 250px; float: left; }
	/* les photos des articles pairs de la liste d'article flotteront à droite */
	#articles article:nth-of-type(even) img { float: right; }
	#articles p:first-of-type { font-size: 3rem; }
	#articles p { font-size: 2rem; }
	#articles button { font-size: 5rem; }
}

/* mise en place de la présentation Desktop avec width >= 1024px */
@media screen and (min-width: 1024px) {
	main { min-height: 75vh; }
	#filtering { position: fixed; right: 0; top: 15%; width: 20%; display: flex; flex-direction: column; padding: 2%; border: solid 1px #647883; border-radius: 5px; }
	#catList { display: block; }
	#filter, .funnel { font-size: 3rem; }
	.funnel { margin: 1% auto; font-size: 2rem; }
	#articles, #noArticle { width: 50%; margin: 0 auto; }
	#articles { width: 60%; display: flex; flex-wrap: wrap; justify-content: space-around; }
	#articles article { width: 30%; margin: 1%; display: flex; flex-direction: column; }
	#articles article a { display: contents; }
	#articles p:first-of-type { font-size: 2rem; }
	#articles:hover > article { opacity: 0.33; transition: all 250ms ease-in; }
	#articles:hover > article:hover { opacity: 1; transition: all 250ms ease-in; }
	#articles button { width: 100%; font-size: 2rem; }
	#articles h2 { font-size: 2rem; }
}