/* SECTION REPONSE */
#section-media {
	display: flex; 
	flex-direction: row;
	justify-content: flex-start;
	flex-wrap: wrap;  	
	background-color: #FFF;
}

#section-media #contenu {
	vertical-align: top;
	position: relative;
	flex: 5;
	background-color: #FFF;
	padding: 40px 20px 40px 20px;
}

#section-media #contenu #texte {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

#section-media #contenu #texte #titre-album {
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-content: center;
	align-content: center;
}

#section-media #contenu #texte #titre-album .bouton { flex: 0.5; align-self: center; }

#section-media #contenu #texte p { flex: 2; font-size: 1.5vw; }
#section-media #contenu #texte #titre-album h1 { flex: 2; text-align: left; font-size: 1.5rem; }
#section-media #contenu #texte h2 { text-transform: uppercase; color: #D2312A; text-align: left; margin-bottom: 10px; margin-top: 0; }

#section-media #contenu .album {
	display: flex;
	flex-direction: row;
	justify-content: flex-start;
	align-items: center;
	flex-wrap: wrap;	
}

.section-media #contenu .album .grid-item {
	width: calc(100% / 10); /* Répartit l'espace en parts égales pour 10 images */
	box-sizing: border-box;
	overflow: hidden;
}

.section-media #contenu .album .img-wrapper {
	position: relative;
	width: 100%;
	padding-top: 100%; /* Crée un espace vertical égal à la largeur pour obtenir un carré */
}

.section-media #contenu .album .img-wrapper img,
.section-media #contenu .album .img-wrapper .video {
	position: absolute;
	top: 0;
	left: 0;
	width: calc(100% - 10px);
	height: calc(100% - 10px);
	margin: 5px;
	object-fit: cover;
}

#section-media #contenu .album .img-wrapper .video .control {
	position: absolute; 
	z-index: 100; 
	left: 0; top: 0; 
	top: 50%; left: 50%; 
	transform: translate(-50%, -50%); 
	font-size: 1.9vw; 
	color: white;
}

#section-media #contenu .album img:hover {
	opacity: 1;
}

#section-media #titre { 
	flex: 1;
	font-size: 1.6vw;
	padding: 40px;

	position: relative;
	background-color: rgba(8, 139, 73, 1); /*#0D5047;*/
	text-align: center;
	color: #FFF;

	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

#section-media #contenu .bouton-mobile { display: none; }
#section-media #contenu .bouton-mobile { 
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	display: block; 
	width: auto; 
	font-size: 1.2rem; 		
	padding: 5px 10px 5px 10px;
	margin: 10px 0 10px 0;
}

#section-media #titre #boutons {
	flex: 0.4;
	text-align: center;
	padding: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	align-content: center;
	margin-top: 20px;
	width: 100%;
}

#section-media #titre #boutons a {
	flex-direction: column;

	justify-content: center;
	align-items: center;
	align-content: center;
	text-align: center;
}

#section-media #titre #boutons .bouton {
	color: white;
	font-size: 1.1rem;
	border: 2px solid #FFF;
	border-radius: 5px;
	padding: 5px 10px 5px 10px;
	margin: 0;
	margin-bottom: 0px;
	width: 50px;
	height: 50px;
	line-height: 50px;
	text-transform: uppercase;
	cursor: pointer;
}
#section-media #titre #boutons .bouton i { text-align: center; }

#section-media #titre #boutons .sous-titre {
	color: white;
	margin-bottom: 20px;
	padding: 5px;
	text-align: center;
}

#section-media #titre #boutons .bouton:hover {
	background-color: white;
	color: #0D5047;
}

#section-media #titre #boutons .bouton.active {
	background-color: white;
	color: #0D5047;
}

#section-media #titre h1 { font-size: 1.5rem; color: #FFF; padding: 0; text-transform: capitalize; margin-bottom: 20px; }
#section-media #titre img { width: 30%; margin-right: 20px; padding: 5px; }
#section-media #film { background-position: top; width: 30px; display: none; }

@media only screen and (max-width: 1024px) {

	#section-media #contenu .bouton-mobile { font-size: 0.8rem; }

	#section-media #titre #boutons .bouton {
		width: 30px;
		height: 30px;
		line-height: 30px;		
	}

	#section-media #titre #boutons .bouton .sous-titre { color: white; }
	#section-media #titre #boutons .bouton i { font-size: 1.2rem; }

}

@media only screen and (max-width: 500px) {

	#section-media {
		width: calc(100%);
		padding: 0;
		display: block;
	}

	#section-media #titre { 
		padding: 0px; 
		margin: 0; 
		padding-bottom: 5px;
		background-color: white; 
		border-bottom: 1px solid #555;
	}
	
	#section-media #titre h1 { 
		width: 100%;
		font-size: 1.4rem; 
		text-transform: uppercase; 
		padding-top: 5px;
		padding-bottom: 5px;
		background-color: rgba(8, 139, 73, 1); /*#0D5047;*/		
	}

	#section-media #titre #boutons {
		text-align: center;
		display: flex;
		flex-direction: row;
		justify-content: space-between;
		width: calc(100% - 40px);
		padding: 0 20px 0 20px;
		margin: 0;
	}

	#section-media #titre #boutons .bouton {
		color: #555;
		font-size: 1rem;
		border: 2px solid #555;
		border-radius: 5px;
		padding: 5px 10px 5px 10px;
		margin: 0 10px 0 10px;
		margin-bottom: 0px;
		width: auto;
		text-transform: uppercase;
		cursor: pointer;
	}

	#section-media #titre #boutons .bouton.active {
		background-color: #555;
		color: white;
	}

	#section-media #titre #boutons .sous-titre {
		margin: 0;
		padding: 0;
		color: #555;
	}

	#section-media #contenu #titre-album .bouton { display: none; }
	#section-media #contenu .bouton-mobile { 
		position: relative;
		bottom: unset;
		left: unset;
		transform: translateX(0);
		display: block; 
		width: 100%; 
		font-size: 1.2rem; 		
		padding: 5px 10px 5px 10px;
 		margin: 10px 0 10px 0;
 	}

	#section-media #contenu { padding: 10px; }
	#section-media #contenu #texte #titre-album { display: block; }
	#section-media #contenu #texte #titre-album h1 { font-size: 1.0rem; }
	#section-media #contenu #texte h2 { display: none; }
	.section-media #contenu .album .grid-item { width: calc(100%/4); }

}