.ph-post-grid
{
	
	display:grid;
	 grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
	 padding:0;
	 gap:24px;
}

ul.ph-post-grid.home
{
	padding-bottom:8px!important;
}


.ph-post-grid.child
{
	
	 grid-template-columns: 1fr 1fr 1fr 1fr;
	
}
@media(min-width:769px)
{
	.ph-post-grid.child.grid-small
	{
		display:flex;
		justify-content:center;
		flex-wrap:no-wrap;
	}

	.ph-post-grid.child.grid-small .splide__slide
	{
		max-width:33%;
	}
}


.ph-post-grid.related
{
	
	 grid-template-columns: 1fr 1fr 1fr;
	
}
.ph-post-grid li
{
	list-style: none;
	display:flex;
	flex-direction:column;
	justify-content:center;
	align-items:center;
	aspect-ratio:1;
	text-align:center;
	position:relative;
	overflow:hidden;
	background-size:cover;
	background-repeat:no-repeat;
	background-position:center ;
}
.ph-post-grid.child li
{
	
	aspect-ratio:auto;

}



.ph-post-grid.child li img
{
	
	width:100%;
	height:auto;

}

.ph-post-grid.autre li
{
	background:white;
	font-weight:600;
	padding:16px;
}

.ph-post-grid.autre li a
{
	gap:8px;
}

.ph-post-grid li a
{
	
	width:100%;
	height:100%;
	
	display:flex;
	flex-direction:column;
	justify-content:center;
	align-items:center;
	flex-wrap:nowrap;
	text-decoration:none;

}

.ph-post-grid.child li a{

	justify-content:flex-start;

}

.ph-post-grid.home li:first-child {
    grid-column: span 2;
    grid-row: span 2;
}

.ph-post-grid.home li:nth-child(3), .ph-post-grid.home li:nth-child(8)  {
    grid-column: span 2;
    grid-row: span 1;
    aspect-ratio:auto;
}




.ph-post-grid li a, .ph-post-grid li .card-icon
{
	position:relative;
	z-index:1;
}
.ph-post-grid.home li a
{
	 background: rgba(0, 0, 0, 0);
	 //text-shadow: 1px 1px 10px black;


}

.ph-post-grid li:hover a
{
	 background: rgba(0, 0, 0, 0);
}
.ph-post-grid li:hover .front-card
{
	display:none;
}
.ph-post-grid:not(.child) li:hover 
{
	box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
	background-image:none!important;
}

.ph-post-grid li:hover .card-icon img, .ph-post-grid.home li:hover .card-icon img
{
	display:block;
}

.ph-post-grid li .card-icon img
{
	width:74px;
	height:auto;
	
}
.ph-post-grid.home li .card-icon img
{
	
	display:none;
}

.ph-post-grid li .card-label
{
	color:black;
}


.ph-post-grid.child li .card-label
{
	margin-top:16px;
	text-align:left;
	width:100%;
	font-family:Isidora sans;
}
.ph-post-grid.child
{
	row-gap:48px;
}

.ph-post-grid.home li .card-label
{
	font-size:25px;
	color:white;
	font-weight:800;
	
	text-transform: uppercase;
	line-height:1.2;
	font-family: var(--wp--preset--font-family--isidora-sans);
	padding:24px;
	
}

.ph-post-grid.home li:hover .children_container
{
	display:none;
}

.children_container
{
	
	padding:0px 24px;
	max-width:286px;
	color:white;
	 overflow: hidden;
   text-overflow: ellipsis;
   display: -webkit-box;
   -webkit-line-clamp: 3; /* number of lines to show */
           line-clamp: 3;
   -webkit-box-orient: vertical;
}



.grid-slider.splide, .grid-slider .splide
{
	visibility:visible;
}



.ph-post-grid li:hover .card-label
{
	
	color:black;
	
	text-shadow: none;
	
}

@media(max-width:1328px)
{	.ph-post-grid
	{
		padding-left:24px!important; 
		   padding-right:24px!important; 
		  
	}
	.ph-post-grid.home li .card-label
	{
		font-size:24px;
	}
}






.post-grid-container img
{
	max-width:100%;
}


.post-grid-container .post-card-a
{
	display:flex;
	flex-direction:column;
	background:#f3f3f2;
	
}



.img-container
{
	width:100%;
	aspect-ratio:9/6;
	overflow:hidden;
	display:block;
	

}

.card-content a
{
	text-decoration:none;
	color:black;
}


.img-container img
{
	
	 width: 100%;
  height: 100%;
object-fit: cover;
object-position:center center;	
	
}

.card-content .post-content
{
	 display: -webkit-box;           /* Utilise un modèle de boîte flexible WebKit */
    -webkit-box-orient: vertical;   /* Définit l'orientation de la boîte flexible en mode vertical */
    overflow: hidden;               /* Cache tout texte qui dépasse le conteneur */
    text-overflow: ellipsis;        /* Ajoute des points de suspension "..." à la fin du texte coupé */
    -webkit-line-clamp: 12; 
    line-height:1.75; 

}


.post-card-a
{
	color:black;
	text-decoration:none;
}

.card-content
{
	padding: 0 16px 16px 16px ;
	display:flex;
	flex-direction:column;
	gap:8px;
	position:relative;
}


.card-content h2
{
	font-size:25px;
	padding:0;
	margin:0;
	font-family:Inter;
	font-weight:600;
	 line-height:1.25; 
}



.card-content .taxo span
{
	
	position:relative;
	margin-bottom:12px;
	font-family:Isidora Sans;
	font-weight:800;
	width:auto;
	padding:16px 16px 16px 0px;
	
	display:inline-block;
	
	
}
.card-content .taxo span
{
	font-size:15px;
	font-weight:600;
	text-transform:uppercase;
	position:relative;
	margin-bottom:12px;
	font-family:Isidora Sans;
	font-weight:800;
	width:auto;
	color:black;
	text-decoration:none;
	
	
	
}

.card-content .taxo span:after
{
	content:"";
	position:absolute;
	left:0;
	bottom:-2px;
	width:48px;
	height:8px;
	background:rgb(7, 0, 76);

}

.card-content .date-autor
{
	margin-bottom:8px;
	color:#878787;
	text-transform:uppercase;
	
	display:flex;
	flex-wrap: wrap;
	gap:8px;
}

.card-content .date-autor .autor
{
	text-transform:none;
	color:black;
	 font-style: italic;

}


.filter-container .filter, .filter-container .filter .drop-container{
	
	display:flex;
	gap:24px;
}
.filter-title
{
	font-weight:600;
	font-size:24px;
}
.filter-drop
{
	
	position:relative;
	padding:0 24px;
}
.filter-drop .drop-option
{
	position:absolute;
	min-width:100%;
	left:0;
	top:calc(100% + 8px);
	background:white;
	padding:0 4px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	z-index:2;

}

.filter-drop:not(.active) .drop-option
{
	visibility:hidden;
}

.drop-option ul 
{
	list-style:none;
	padding:0;
}
.drop-option ul li
{
	
	padding:4px 8px;
	white-space: nowrap;
}
.drop-title
{
	cursor:pointer!important;
}

.drop-title:before
{
	  content: var(--checked-count, '0'); /* Affiche 0 par défaut si non défini */
	background:#4776f6;
	color:white;
	display:inline-block;
	width:16px;
	aspect-ratio:1;
	font-size:12px;
	text-align:center;
	border-radius:100%;
	vertical-align:middle;
	opacity:0;
	
}
.drop-title.has-checked:before
{
	
	opacity:1;
}

.drop-title:after
{
 content:"";
 width:8px;
 aspect-ratio:1;
 display:inline-block;
 border-right:2px solid #4776f6;
 border-bottom:2px solid #4776f6;
 
 margin-left:8px;
 transform:translateY(-3px) rotate(45deg);
 transform-origin:center center;
 transition:0.2s ease-in-out;
}

.active .drop-title:after
{
	transform:rotate(225deg);
}

.custom-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

/* Créer un cercle vide pour la case à cocher personnalisée */
.custom-checkbox .checkmark {
    position: relative;
    height: 16px;
    width: 16px;
    background-color: white;
    border: 2px solid #ccc;
    border-radius: 50%;
    display: inline-block;
    margin-right: 10px;
    vertical-align: middle;
    transition: background-color 0.2s, border-color 0.2s;
}

/* Modifier l'apparence du cercle lorsque la case est cochée */
.custom-checkbox input[type="checkbox"]:checked ~ .checkmark {
    background-color: #4776f6;
    border-color: #4776f6;
}

/* Ajouter une petite pastille au centre quand c'est coché */
.custom-checkbox input[type="checkbox"]:checked ~ .checkmark::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

/* Style du label pour qu'il soit cliquable */
.custom-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    user-select: none;
}

.filter-container hr{
 color:#f3f3f2;
 margin-bottom:48px;
 opacity:0.5;
}

@media(min-width:1162px)
{
	.ph-post-grid.home li:first-child .diamond
	{
			display:block;
			z-index:1;
	}
	
	.ph-post-grid.home li:first-child:hover .diamond
	{
			  border: 8px solid #ff0048;
	}
}

@media(min-width:1024px)
{
	.post-grid-container
	{
		
		 grid-template-columns: 1fr 1fr 1fr 1fr;
		 

	}
	.post-grid-container .post-card-a:nth-child(6n + 1) .card-content .post-content, .post-grid-container .post-card-a:nth-child(6n + 6) .card-content .post-content
	{
		-webkit-line-clamp: 6; 
	}
	.post-grid-container .post-card-a:nth-child(6n + 1) .card-content .taxo span, .post-grid-container .post-card-a:nth-child(6n + 6) .card-content .taxo span
	{
		
		background:white;
	}
	.post-grid-container .post-card-a:nth-child(6n + 1) .card-content .taxo, .post-grid-container .post-card-a:nth-child(6n + 6) .card-content .taxo
	{
		
		
		position:absolute;
		top:-45px;
		left:00;
	}
	.post-grid-container .post-card-a:nth-child(6n + 1) .card-content .tile-container, .post-grid-container .post-card-a:nth-child(6n + 6) .card-content .tile-container
	{
		
		padding-top:8px;
	}


	.post-grid-container .post-card-a:nth-child(6n + 1) .card-content .taxo span:after, .post-grid-container .post-card-a:nth-child(6n + 6) .card-content .taxo span:after
	{
		background:#fecb00;

	}

	.post-grid-container .post-card-a:nth-child(6n + 1) .card-content, .post-grid-container .post-card-a:nth-child(6n + 6) .card-content
	{
		
		padding-top:16px;

	}
	.post-grid-container .post-card-a:nth-child(6n + 1), .post-grid-container .post-card-a:nth-child(6n + 6) {
    grid-column: span 2;
    background:white;
   
	}

	
}

@media(max-width:1023px)
{
	.ph-post-grid.home
	{
		
		                
		 grid-template-columns: 1fr 1fr 1fr 1fr ;

		
	}
	.ph-post-grid.home li:nth-child(3)
	{
	    grid-column: span 1;
	    grid-row: span 1;
	    aspect-ratio:auto;
	}
	.ph-post-grid.home li:nth-child(8)
	{
	    grid-column: span ;
	    grid-row: span 1;
	    aspect-ratio:auto;
	}
	.ph-post-grid.home li:first-child 
	{
    	grid-column: span 2;
    	grid-row: span 1;
    	aspect-ratio:auto;
	}

	.ph-post-grid li .card-label
	{
		font-size:18px;
		
		
	}
	.ph-post-grid.home li .card-label
	{
		font-size:18px;
		padding:8px;
	}
	.post-grid-container .post-card-a .card-content .post-content
	{
		-webkit-line-clamp: 6; 
	}
	.post-grid-container .post-card-a:nth-child(2n) .card-content .taxo span
	{
		
		background:white;
	}
	.post-grid-container .post-card-a:nth-child(2n) .card-content .taxo
	{
		
		
		position:absolute;
		top:-45px;
		left:00;
	}
	.post-grid-container .post-card-a:nth-child(2n) .card-content .tile-container
	{
		
		padding-top:8px;
	}


	.post-grid-container .post-card-a:nth-child(2n) .card-content .taxo span:after
	{
		background:#fecb00;

	}

	.post-grid-container .post-card-a:nth-child(2n) .card-content
	{
		
		padding-top:16px;

	}
	.post-grid-container .post-card-a:nth-child(2n){
   
    background:white;
   
	}

	.filter-title
	{
		display:none;
	}
	.filter-container .filter .drop-container
	{
		width:100%;
		display:grid;
		 grid-template-columns: 1fr 1fr ;
		 margin-bottom:32px;

	}
	.filter-container .filter .drop-container .filter-drop
	{
		
		padding:0;
		
	}

	.filter-drop .drop-title
	{
		
		display:block;
		border:1px solid #f3f3f2;
		text-align:center;
		padding:24px;

	}
	.filter-drop.active .drop-title
	{
		border:1px solid #4776f6;
	}
	.filter-container hr
	{
		display:none;
	}
}

@media(max-width:768px)
{
	.ph-post-grid
	{
		
		  padding-left:0; 
		   padding-right:0;                 
		 display:flex;

		
	}
	

}




.post-grid-container
{
	display:grid;
	
	 padding:0;
	 gap:24px;

}
#load-more-container
{
	justify-content:center;
	display:flex;
	padding-top:64px;
}

#load-more
{
background-color: white
font-family: var(--wp--preset--font-family--isidora-sans);
font-style: normal;
font-weight: 700;
letter-spacing: 1px;
line-height: 1.5;
padding-top: 12px;
padding-right: 27px;
padding-bottom: 12px;
padding-left: 27px;
text-transform: uppercase;

border-width: 2px;
color: #4776f6;
border:2px solid #4776f6 ;
border-radius:9999px;

}


@media(max-width:464px)
{
	.splide__track .ph-post-grid.splide__list .splide__slide
	{
		max-width:calc(80vw - 48px)
	}
}


.diamond {
      width: 150px;
      height: 150px;
      border: 8px solid white; /* Couleur similaire à celle de votre capture */
      transform: translate(-112px, 112px) rotate(45deg) ; /* Rotation pour obtenir un losange */
      position: absolute;
      top: 0;
      left: 0;
      display:none;
    }

    /* Pour les autres losanges imbriqués, réduire la taille et les décaler */
    .diamond:nth-child(2) {
      width: 118px;
      height: 118px;
      top: 16px;
      left: 16px;
    }

    .diamond:nth-child(3) {
      width: 86px;
      height: 86px;
      top: 32px;
      left: 32px;
    }

    .diamond:nth-child(4) {
      width: 54px;
      height: 54px;
      top: 48px;
      left: 48px;
    }


@media(min-width:1024px)
{
	.gallerie-image 
	{
		column-count: 3;
	}
}


.gallerie-image .gallerie_real
{
	 width: 100%;
	
	
}




.gallerie-image .gallerie_real img
{
	width:100%;
	height:auto;
	
	
}
.grid-item img
{
	//transform:scale(0);
	//transition: all 0.5s ease-in-out;
}
.grid-item.active img
{
	//transform:scale(1);

}
.grid-item
{

	
	display:none;
	
	 
}
.grid-item.active
{

	
	display:block;
	
	 
}


.galerie_filter_container
{
	margin-bottom:64px;
	text-align:center;
	display:flex;
	gap:24px;
	justify-content:center;
	flex-wrap: wrap;
}

.galerie_filter_container button
{
	background:none;
	box-shadow: none;
	border:none;
	text-decoration: none;
font-weight: 800;
color: black;
text-transform: uppercase;
font-family: Isidora Sans;
font-size:16px;
position:relative;
}
.galerie_filter_container button:after
{
	content: "";
	position: absolute;
	bottom: -12px;
	left: calc(50% - 22px);
	width: 0px;
	height: 8px;
	background: #f5038f;
	transition: width 0.2s ease-in-out;
}


.galerie_filter_container button.menu_underlined:after
{
	
	width: 44px;
	
}














