#content > h2{
	margin-top: 0;
	color: var(--primary);
}

.center{
	text-align: center;
}

/* liste de sites */
#content .site-list{
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

#content .site-list .site{
	position: relative;
	flex: 1;
}

#content .site-list .site-thumbnail{
	display: flex;
}

#content .site div:nth-child(2){
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	padding: 1rem;
	background-color: rgba(0, 0, 0, .50);
}

#content .site div:nth-child(2) h3{
	display: block;
	margin: 0;
	font-size: 1.5rem;
	font-weight: normal;
	color: white;
}

#content .site:hover div:nth-child(2) h3{
	text-decoration: underline;
}

#content .site div:nth-child(2) p{
	margin: 0;
	color: white;
}

@media screen and (max-width: 640px){
	#content .site-list{
		display: flex;
		flex-direction: column;
	}

	#content .site div:nth-child(2) h3{
		font-size: 1.25rem;
	}
}

/* aperçu de ressources */
.preview-block .resource-list.item-set.grid{
	flex-wrap: nowrap;
}

.preview-block .resource-list.item-set.grid{
	margin: 0;
}

.preview-block .resource-list.item-set .item-set{
	position: relative;
	display: flex;
	padding: 0;
	align-items: center;
	justify-content: center;
}

.preview-block .resource-list.item-set .resource-meta{
	position: absolute;
	width: 100%;
	height: 100%;
}

.preview-block .resource-list.item-set .resource-meta h4{
	height: 100%;
	margin: 0;
}

.preview-block .resource-list.item-set .resource-meta h4 a{
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: 0 1.5rem;
	text-align: center;
	font-size: 1.5rem;
	font-weight: normal;
	background-color: rgba(0, 0, 0, .15);
	color: white;
	transition: .25s;
}

.preview-block .resource.item-set:hover h4 a{
	text-decoration: underline;
	background-color: rgba(0, 0, 0, .8);
}

/* accueil */
#home #content{
	max-width: none;
	padding: 2rem 0;
}

/* projet */
#content > .pages{
	display: flex;
	grid-column: 1/3;
	gap: 1rem;
}

#content > .pages .asset{
	flex: 1;
}

#content > .pages .asset a{
	position: relative;
	display: flex;
}

#content > .pages .asset img{
	width: 100%;
}

#content > .pages .asset span{
	position: absolute;
	display: flex;
	width: 100%;
	height: 100%;
	align-items: center;
	justify-content: center;
	background-color: rgba(0, 0, 0, .15);
	font-size: 2rem;
	color: white
}

#content > .pages .asset a:hover span{
	text-decoration: underline;
	background-color: rgba(0, 0, 0, .8);
}

/* editeurs, comités */
.profils{
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 2rem;
}

.profils .img-with-html{
	position: relative;
	height: max-content;
}

.profils .img-with-html .imgurl{
	position: relative;
	display: flex;
	width: 100%;
	height: auto;
	aspect-ratio: 1/1;
	align-items: center;
	justify-content: center;
}

.profils .img-with-html .imgurl::after{
	content: attr(title);
	position: absolute;
	top: 0;
	display: flex;
	width: 100%;
	height: 100%;
	aspect-ratio: 1/1;
	align-items: center;
	justify-content: center;
	font-size: 2rem;
	font-weight: normal;
	background-color: rgba(0, 0, 0, .15);
	color: white;
	transition: .25s;
}

.profils .img-with-html .imgurl:hover::after{
	text-decoration: underline;
	background-color: rgba(0, 0, 0, .8);
}

/* credits */
#credits #content{
	display: grid;
	grid-template-columns: 200px 1fr;
	gap: 1rem;
}

#credits #content > h2, #credits #content .text{
	grid-column: 1/3;
}

#credits #content .legend > p{
	margin: 0;
}