/* Styles généraux */
.rubrique {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 580px;
    width: 100%;
}

.gallery-container {
    width: 100%;
    max-width: 1920px;
    position: relative;
}

/* Styles pour la galerie */
.gallery {
    display: flex;
    width: 100%;
    max-width: 1000px;
    position: relative;
    height: 580px;
    margin: 10px auto;
    overflow: hidden;
	top: 0;
	left:0;
}


.triplet {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; 
    max-width: 1000px;
    height: 100%;
    opacity: 0;
    transition: transform 1s ease-in-out, opacity 1s ease-in-out;
    /* padding: 10px; */
    box-sizing: border-box;
}

.triplet.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 10;
}

.triplet .left-image,
.triplet .right-images {
    display: flex; 
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    margin-top: 0;
    margin-bottom: 0;
}

.triplet .left-images,
.triplet .right-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    margin-top: 0;
    margin-bottom: 0;
}

/* Largeur des colonnes en disposition normale */
.triplet:not(.inverse) .left-image {
/* .triplet:not(.inverse) .left-col { */
    width: 44%;
    max-width: 100%;
    margin-right: 7px;
	vertical-align: top;
	box-sizing: border-box;
}


/* Largeur des colonnes en disposition inversée */
/* .triplet.inverse .left-col { */
.triplet.inverse .left-images {
    width: 55%;
    max-width: 100%;
    margin-right: 7px;
	vertical-align: top;
	box-sizing: border-box;
}

/* .triplet.inverse .right-col { */
.triplet.inverse .right-image {
    width: 44%;
    max-width: 100%;
    margin-left: 7px;
	vertical-align: top;
	box-sizing: border-box;
}

/* Largeur des colonnes en disposition normale */
/* .triplet:not(.inverse) .right-col { */
.triplet:not(.inverse) .right-images{
    width: 55%;
    max-width: 100%;
    margin-left: 7px;
	vertical-align: top;
	box-sizing: border-box;
}

/* Styles pour les conteneurs d'images */
.image-container {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    width: 100%;
	width: 890px;
    margin: 5px;
    box-sizing: border-box;
	border-radius: 15px;
}

/* Styles spécifiques pour la taille des images */
.image-container.small {
    width: 100%;
    height: 270px;
}
.image-container.small img{
    width: 100%;
    height: 270px;
	min-width: 450px;
}
.image-container.large {
    width: 100%;
	height: 100%;
    /* height: 550px; */
}
.image-container.large img{
    width: 100%;
    height: 550px;
	min-width: 300px;
}

/* Styles pour les images */
.image-container img {
    max-width: 100%;
    max-height: 100%;
    display: block;
    object-fit: cover;
	/* z-index: 40; */
}

/* Style pour le texte */
.image-container .text {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
	background-color:  rgba(240, 240, 240, 0.9);
    color: #DA0710;
	font-weight: bold;
    padding: 10px;
    font-size: 15px;
    text-align: center;
    z-index: 1;
    border-radius: 0 0 15px 15px;
}

/* Ajustement du border-bottom */
/* .image-container { */
    /* border-radius: 15px; */
/* } */


/* Style des boutons de navigation */
.navigation {
    position: absolute;
    top: 48%;
    left: 10%;
    right: 10%;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    z-index: 10;
}

.nav-button {
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    padding: 10px 15px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border-radius: 5px;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.nav-button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}


/* Animations */
.slide-in-left {
    animation: slideInLeft 1s ease-out forwards;
}

@keyframes slideInLeft {
    from {
        transform: translateX(100%); 
    }

    to {
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 1s ease-out forwards;
}

@keyframes slideInRight {
    from {
        transform: translateX(-100%); 
    }

    to {
        transform: translateX(0);
    }
}

.slide-out-left {
    animation: slideOutLeft 1s ease-in forwards;
}

@keyframes slideOutLeft {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(100%); 
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}


/* Animations de permutation */
.swap .left-images {
    animation: slideRight 1s forwards;
}

@keyframes slideRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(150%);
        opacity: 0;
    }
}

@keyframes slideLeft {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(-150%);
        opacity: 0;
    }
}

.slide-out-left {
    animation: slideOutLeft 3s ease-in; /* Suppression de forwards */
}

@keyframes slideOutLeft {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%); 
        opacity: 0;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(-100%); 
        opacity: 0;
    }
}

/* Responsive Design Navigation */
@media (max-width: 1717px) {
	.navigation {
		top: 48%;
		left: 5%;
		right: 5%;
	}
	.nav-button {
		justify-content: space-around;
		margin-right: 4px;
   }
}
@media (max-width: 1515px) {
	.navigation {
		left: 0%;
		right: 0%;
	}
}
@media (max-width: 1414px) {
	.navigation {
		left: -2%;
		right: -2%;
	}
}
@media (max-width: 1343px) {
	.navigation {
		left: -4%;
		right: -5%;
	}
}
@media (max-width: 1280px) {
	.gallery {
		left:-20px;
	}
	.navigation {
		left: -9%;
		right: -5%;
	}
}
@media (max-width: 1111px) {
	.navigation {
		top: 100%;
		left: 41%;
		right: 58%;
	}
	.nav-button {
		justify-content: space-around;
		margin-right: 5px;
   }
}
@media (max-width: 969px) {
	.gallery {
		left:0px;
	}
	.navigation {
		left: 38%;
   }
}
@media (max-width: 898px) {
	.gallery {
		left:0px;
	}
	.navigation {
		left: 38.5%;
		/* right: 42.5%; */
	}
}
@media (max-width: 888px) {
	/* #formateurs-exceptions #engagement, */
	.image-container.small img{
		min-width: 323px;
	  }
    #formateurs-exceptions #approche {
		margin-top: 3%;
	  }
}
@media (max-width: 858px) {
  .image-container.small img{
	width: 100%;
	min-height: 270px;
	height: auto;
	min-width: 330px;
  }
  .image-container.large img{
	width: 100%;
	min-height: 550px;
	height: auto;
	min-width: 280px;
  }
}
@media (max-width: 820px) {
	.navigation {
		left: 42.5%;
		right: 42.5%;
	}
}
@media (max-width: 818px) {
	  .gallery {
		margin-left: 19px;
	  }
	  .navigation {
		left: 38.5%;
		/* right: 42.5%; */
	}
	#formateurs-exceptions #pre-footer {
		margin-top: 50px;
    }
}
@media (max-width: 812px) {
	  .gallery {
		margin-left: 0px;
	  }
	  /* .navigation { */
		/* left: 38.5%; */
		/* right: 42.5%; */
	/* } */
	/* #formateurs-exceptions #pre-footer { */
		/* margin-top: 50px; */
    /* } */
	/* } */
}
@media (max-width: 434px) {
	  .gallery {
		height: 1131px;
		max-width: 555px;
		flex-direction: column;
		margin-bottom: -13px;
		margin-left: 25px;
	  }

	  .triplet {
		position: absolute; 
		display: block;
		width: 100%;
		height: 100%; 
	  }

	  .triplet .left-image,
	  .triplet .left-images,
	  .triplet .right-image,
	  .triplet .right-images {
		width: 100%;
		min-width: 322px;
	  }

	  .triplet .right-image {
		padding-left: 2px;
		min-width: 324px;
	  }
	  
	  .triplet .left-images  {
		padding-left: 12px;
		min-width: 330px;
	  }
	  
	  .triplet .left-image {
		padding-left: 7px;
		min-width: 329px;
	  }
	  
	  .image-container.small img {
		width: 100%;
		min-height: 270px;
		height: auto;
		min-width: 330px;
	}
	  
	  .navigation {
		position: relative;
		width: 25%;
		max-width: 292px;
		float: left;
		margin-bottom: 20px;
		margin-left: -10px;
	  }
	  .nav-button {
		justify-content: space-around;
		margin-right: 5px;
	  }
  
}
@media (max-width: 414px) {
	  .gallery {
		max-width: 535px;
		margin-left: 20px;
	  }

	  .triplet .left-image,
	  .triplet .left-images,
	  .triplet .right-image,
	  .triplet .right-images {
		width: 100%;
		min-width: 317px;
	  }

	  .triplet .right-image {
		padding-left: 2px;
		min-width: 319px;
	  }
	  
	  .triplet .left-images  {
		padding-left: 12px;
		min-width: 324px;
	  }
	  
	  .triplet .left-image {
		padding-left: 7px;
		min-width: 323px;
	  }
	  
	  .image-container.small img {
		min-width: 324px;
	  }
	  .navigation {
		margin-left: -20px;
      }
}

/* @media (max-width: 412px) { */
	  /* .gallery { */
		/* margin-left: 20px; */
	  /* } */
	  /* .navigation { */
		/* margin-left: -20px; */
      /* } */
/* } */

@media (max-width: 390px) {
	  .gallery {
		max-width: 505px;
		margin-left: 19px;
	  }

	  .triplet .left-image,
	  .triplet .left-images,
	  .triplet .right-image,
	  .triplet .right-images {
		width: 100%;
		min-width: 290px;
	  }

	  .triplet .right-image {
		padding-left: 3px;
		min-width: 296px;
	  }
	  
	  .triplet .left-images  {
		padding-left: 13px;
		min-width: 300px;
	  }
	  
	  .triplet .left-image {
		padding-left: 13px;
		min-width: 298px;
	  }
	  .triplet .right-images {
		padding-left: 7px;
		min-width: 294px;
	  }
	  .image-container.small img {
		min-width: 297px;
	  }
	  /* .navigation { */
		/* margin-left: -25px; */
      /* } */
}

@media (max-width: 384px) {
	  .gallery {
		max-width: 505px;
		
	  }
	  .triplet .right-image  {
		padding-left: 3px;
		min-width: 292px; 
	  }
}

@media (max-width: 375px) {
	  .gallery {
		margin-left: -4px;
		margin-bottom: 15px;
		margin-left: 15px;
	  }
	  .triplet .right-image  {
		padding-left: 3px;
		min-width: 292px; 
	  }
	  .navigation {
		position: relative;
		float: left;
		margin-bottom: 20px;
		margin-left: -15px;
  }
}

@media (max-width: 363px) {
  .gallery {
    /* height: 1141px; */
	/* max-width: 450px; */
	/* margin-bottom: 0; */
	margin-left: 9px;
  }
  
  .navigation {
	margin-left: -20px;
  }
}

@media (max-width: 323px) {
  .gallery {
    height: 1141px;
	max-width: 404px;
	margin-bottom: 0;
	/* margin-left: 5px; */
	margin-left: 15px;
  }
  .triplet .left-image {
	min-width: 275px;
  }

  .triplet .left-image,
  .triplet .left-images,
  .triplet .right-image,
  .triplet .right-images {
	width: 100%;
	min-width: 242px;
  }

  .triplet .right-image {
	padding-left: 3px;
	min-width: 247px;
  }
  
  .triplet .left-images  {
	padding-left: 13px;
	min-width: 250px;
  }
  
  .triplet .left-image {
	padding-left: 10px;
	min-width: 251px;
  }
  .triplet .right-images  {
	padding-left: 2px;
	min-width: 247px;
  }
}
