/* CSS modifié le 20/9/2024 à 13h32
	
	
	=============================================================================
   SPECS DE BASE POUR TÉLÉPHONES (pas de hover) > 500 px
   ========================================================================== */
   
   
 #catalogue {
	margin-top: 20px;
	margin-left:15px;
	margin-right: 15px;
	margin-bottom: 25px;
	display: grid;
	grid-template-columns: 1fr;
	grid-gap: 15px;
	align-items:center;
	justify-items: center;
}

.encadre {
	border: 1px solid #cfc8c8;
}

#catadesfaits {
	display: grid;
	grid-template-columns: 1fr;
	grid-gap: 0px;
}


figure { 
	position:relative;
	overflow:visible; 
}

figcaption {
	position:absolute;
	text-align:left;
	padding-top: 10px;
	padding-left:10px;
	font-family: "BebasKai";
	font-size: 1em;
	font-weight: normal;
	line-height: 105%; 
	opacity: 0;
	top: 0;
	left:0; 
	right:0;
	bottom: 0;
	transition:all 0.4s;
	}
	
/*
	
	figcaption.top {
	padding-top: 5px;
	}
	
	*/




/* =============================================================================
   ÉCRANS PLUS GRANDS (tablettes et petits écrans d'ordi) > 900 px
   ========================================================================== */




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

#catalogue {
	margin-top: 30px;
	margin-left:35px;
	grid-template-columns: 1fr 1fr;
	grid-auto-rows: 1fr;
	grid-gap: 10px;
}


figure:hover figcaption{
	opacity: 1;
	background: rgba(255,255,255,0.95);
	color: #000;
}

#catadesfaits  {
	grid-template-columns: 1fr 1fr;
}

#catadesfaits img {
width: 100%;
}
}

/* =============================================================================
   					MODE SOMBRE
   ========================================================================== */

@media (prefers-color-scheme: dark) {
/* CSS propre au mode sombre */


figcaption {
color: white;
	}
	
figure:hover figcaption{
	opacity: 2;
	background: rgba(0, 0, 0, 0.85);
	color: #FFF;
}
}

/* =============================================================================
   ÉCRANS ENCORE PLUS GRANDS > 1200 px
   ========================================================================== */

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


#catalogue {
grid-template-columns: 1fr 1fr 1fr;
}

figcaption {
font-size: 1.1em;
}
}
  
  
  /* =============================================================================
   ÉCRANS ENCORE PLUS PLUS GRANDS + de 1200 pixels
   ========================================================================== */

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


#catalogue {
grid-template-columns: 1fr 1fr 1fr 1fr;
}


figcaption {
font-size: 1.2em;
}
}

