

.container1{
	max-width: 1000px;
	margin: auto;
}
.gallery{
	

	padding:30px 15px;
}
.gallery .title h1{
	font-size:36px;
	margin:0 0 30px;
	color:#000000;
	text-align: center;
}
  
.gallery-items{
	max-width: 1200px;
	display: grid;
	gap: 20px;
    grid-template-columns: repeat(3, 1fr);
	

}


.gallery .gallery-items .item.hide{
	display: none;
}
.gallery .gallery-items .item.show{
	display: block;
	animation: show .5s ease;
}
@keyframes show{
    0%{
    	opacity:0;
    	transform: scale(0.9);
    }
    100%{
    	opacity:1;
    	transform: scale(1);
    }
}

.gallery .gallery-items .item {
overflow: hidden;
display: block;
overflow: hidden;
position: relative;
border-radius: 10px;
max-width: 100%;
height: auto;  /* S'assure que la hauteur s'ajuste automatiquement */
text-align: center;
}
/* Style de base de l'image dans la galerie */
.gallery .gallery-items .item img {
	width: 100%;

	transition: transform 0.3s ease; /* Transition pour un zoom fluide */
  }
  
  /* Effet de zoom au survol */
  .gallery .gallery-items .item img:hover {
	transform: scale(1.2); /* Zoom de l'image */
  }

.gallery .pagination{
	width: 100%;
	float: center;
	padding:15px;
	text-align: center;
	margin: 0 auto;
}
.gallery .pagination div{
	display: inline-block;
	margin:0 10px;
}
.gallery .pagination .page{
	color:gray;
}
.gallery .pagination .prev,.gallery .pagination .next {
 color:#000;
 border:1px solid #000;
 font-size:15px;
 padding:7px 15px;
 cursor: pointer;
}

.gallery .pagination .prev.disabled,
.gallery .pagination .next.disabled{
	border-color: gray;
	color:gray;
	pointer-events: none;
}

.pagination {
	display: flex;
	align-items: center;
	gap: 10px;
	justify-content: center;
	margin-top: 20px;
  }
  
  .pagination .page-numbers {
	display: flex;
	gap: 5px;
  }
  
  .pagination .page-number {
	padding: 8px 12px;
	border: 1px solid #057e2b;
	cursor: pointer;
	border-radius: 4px;
	background: #f1f1f1;
	color: #057e2b;
	transition: background 0.3s, color 0.3s;
  }
  
  .pagination .page-number.active {
	background: #057e2b;
	color: white;
	font-weight: bold;
  }
  
  .pagination .page-number:hover:not(.active) {
	background: #057e2b;
	color: white;
  }
  
  .pagination .prev,
  .pagination .next {
	padding: 8px 16px;
	border: 1px solid #057e2b;
	cursor: pointer;
	border-radius: 4px;
	background: #f1f1f1;
	color: blue;
	transition: background 0.3s, color 0.3s;
  }
  
  .pagination .prev.disabled,
  .pagination .next.disabled {
	cursor: not-allowed;
	opacity: 0.5;
  }
  
  .pagination .prev:hover:not(.disabled),
  .pagination .next:hover:not(.disabled) {
	background: #057e2b;
	color: white;
  }
  





/* Style des onglets */
.tabs {
	
	display: grid;
    gap: 1rem;
    grid-template-columns: repeat(4, 1fr);
	margin:  20px auto;
  }
  
  .tabs .tab {
	font-size: 14px;
	padding: 10px 20px;
	border: 1px solid #057e2b;
	border-radius: 5px;
	background: #f1f1f1;
	color: #057e2b;
	cursor: pointer;
	transition: all 0.3s ease;
  }
  
  .tabs .tab.active {
	background: #057e2b;
	color: white;
	font-weight: bold;
  }
  
  .tabs .tab:hover:not(.active) {
	background: #057e2b;
	color: white;
  }


/* Responsivité pour petits écrans */
@media (max-width: 1200px) {
	.tabs {
	
		
		grid-template-columns: repeat(3, 1fr);
		
	  }
}
@media (max-width: 968px) {
	.tabs .tab {
	font-size: 14px;
	padding: 6px 12px;
	}
}
@media (max-width: 768px) {
	.tabs {
	flex-wrap: wrap;
	}
  
	.tabs .tab {
	  width: 100%; /* Les onglets occupent toute la largeur */
	  margin-bottom: 10px; /* Espacement entre les onglets */
	}
  }
  
  @media (max-width: 560px) {
	
	.tabs {
	  gap: 10px; /* Réduit l'espacement entre les onglets pour les très petits écrans */
	  grid-template-columns: repeat(1, 1fr);
	}
  
	.tabs .tab {
	  font-size: 14px; /* Réduit la taille de la police pour les petits écrans */
	  padding: 8px 16px; /* Ajuste le padding pour économiser de l'espace */
	}
  }
  
  /* Style des images */
  /* .gallery-items {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	justify-content: center;
  } */


@media (max-width: 1200px) {
	.gallery-items {
	  grid-template-columns: repeat(2, 1fr); /* 2 colonnes sur les écrans plus petits */
	}
  }
  
  @media (max-width: 768px) {
	.gallery-items {
	  grid-template-columns: repeat(1, 1fr); /* 1 colonne sur les petits écrans */
	}
  }
  
  .item {
	display: none; /* Par défaut, masqué */
	flex: 1 1 calc(25% - 20px); /* 4 colonnes */
	max-width: calc(25% - 20px);
	text-align: center;
  }
  
  .item img {
	width: 100%;
	border-radius: 10px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }
  
  .caption {
	margin-top: 10px;
	font-size: 1.2rem;
	font-weight: bold;
  }
  