body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* Évite la barre de défilement horizontale */
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  height: 100px;
  top: 40px;
  width: 100%;
  z-index: 999;
  background-color: rgb(255, 255, 255, 0.5);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Ajout d'une ombre pour le contraste */
  transition: background-color 0.3s ease; /* Transition pour changement d'arrière-plan */
  padding: 0 20px;
}

.nav-links ul {
  padding-right: 20px;
  display: flex;
  list-style: none;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  width: 130px; /* Ajustez la largeur selon vos besoins */
}

.logo-img-small {
  width: 145px; /* Taille spécifique pour la deuxième image */
}
.nav-links ul li {
  margin: 5 15px;
  position: relative;
  list-style-type: none;
}

.nav-links ul li a {
  color: rgb(27, 26, 26);
  text-decoration: none;
  font-size: 18px;
  padding: 10px;
}

.nav-links ul li a:hover {
  color: rgb(46, 42, 42);
}

.dropdown-content {
  display: none;
  position: absolute;
  left: 0;
  background-color: rgba(187, 180, 180, 0.4);
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.dropdown-content a {
  color: rgb(255, 255, 255);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: rgb(172, 151, 151);
}

.dropdown:hover .dropdown-content {
  display: block;
}

.menu-toggle {
  display: none;
  cursor: pointer;
  font-size: 24px;
  padding-right: 40px;
}

.sidenav {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 1001;
  top: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.9);
  overflow-x: hidden;
  transition: 0.5s;
  padding-top: 60px;
}

.overlay1 {
  display: none; /* Initially hidden */
  position: fixed;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  top: 0;
  left: 0;
  z-index: 1000; /* Placed above everything else */
}

.sidenav a {
  padding: 8px 8px 8px 32px;
  text-decoration: none;
  font-size: 15px;
  color: white;
  display: block;
  transition: 0.3s;
}

.sidenav div a {
  color: rgb(110, 211, 204);
}

.sidenav a:hover {
  color: #f1f1f1;
}

.sidenav .closebtn {
  position: absolute;
  top: 0;
  right: 25px;
  font-size: 20px;
}

@media screen and (max-width: 770px) {
  .nav-links ul {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
}

.main-container {
  display: flex;
  height: calc(
    100vh - 60px
  ); /* Ajustez en fonction de la hauteur de votre header */
  margin-top: 60px; /* Ajustez en fonction de la hauteur de votre header */
}

.modelContainer {
  width: 20%;
  background-color: #f4f4f4;
  overflow-y: auto;
}

.itemContainer {
  width: 80%;
  display: flex;
  flex-wrap: wrap;
  background-color: #f9f9f9; /* Ajout de la couleur de fond */
  overflow-y: auto;
}

.model {
  padding: 20px;
  text-align: center;
  cursor: pointer;
  border-bottom: 1px solid #ddd;
}

.model:hover {
  background-color: #ddd;
}

.model.active {
  background-color: #ccc;
}

.model-images {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* Quatre colonnes */
  gap: 10px;
  width: 100%;
}

.item {
  text-align: center;
}

.image-container {
  position: relative;
  width: 100%;
  height: 200px; /* Fixer une hauteur pour les images */
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Assurer que les images remplissent leur conteneur */
}

.image-container a {
  text-decoration: none;
  color: #ddd;
}

.item p {
  margin: 10px 0 0;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6); /* Couleur de fond semi-transparente */
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.overlay-text {
  margin: 5px 0;
  font-size: 14px;
  cursor: pointer;
}

/* Modification pour afficher l'overlay au survol de l'image uniquement */
.image-container:hover .overlay {
  opacity: 1;
}

/* Responsive design */
@media (max-width: 768px) {
  .main-container {
    flex-direction: column;
  }
  .modelContainer {
    width: 100%;
    height: auto;
  }
  .itemContainer {
    width: 100%;
  }
  .model-images {
    grid-template-columns: repeat(2, 1fr); /* Deux colonnes sur petits écrans */
  }
}

.secEntete {
  display: flex;
  top: 0;
  justify-content: center;
  align-items: center;
  height: 50%;
  background-color: rgba(0, 26, 255, 0.5);
  border-bottom: #1f01a3 solid 2px;
}

.secEntete a {
  font-size: larger;
  text-decoration: none;
  margin-left: 40px;
  color: white;
}

/* Responsive design */
@media (max-width: 600px) {
  .secEntete a {
    margin-left: 0px;
  }
}

.container {
  width: 100%;
  padding: 0 15px;
  box-sizing: border-box;
}
.row {
  display: flex;
  flex-wrap: wrap;
}
.main-image-container, .description-container, .thumbnail-container {
  transition: transform 0.3s ease-in-out;
  width: 100%;
}
.main-image-container img, .main-image-container-second img {
  width: 100%;
  height: auto;
  transition: opacity 0.5s ease-in-out;
}
.description-container, .description-container-second {
  text-align: center;
  padding-top: 15px;
}
.description-buttons {
  margin-top: 10px;
}
.description-buttons a {
  display: inline-block;
  margin: 5px;
  padding: 10px 20px;
  text-decoration: none;
  color: white;
  background-color: #007bff;
  border-radius: 5px;
  transition: background-color 0.3s ease-in-out;
}
.description-buttons a:hover {
  background-color: #0056b3;
}
.thumbnail-container {
  display: flex;
  overflow-x: auto;
  padding: 10px 0;
  white-space: nowrap;
  
}
.thumbnail-item {
  display: inline-block;
  text-align: center;
}
.thumbnail-container img {
  width: 100px; /* Fixed width */
  height: 75px; /* Fixed height */
  object-fit: cover; /* Ensure the image covers the box */
  cursor: pointer;
  transition: transform 0.3s ease-in-out;
}
.thumbnail-container img:hover {
  transform: scale(1.1);
}
@media (min-width: 781px) {
  .main-image-container {
      width: 60%;
  }
  .description-container {
      width: 40%;
      text-align: center;
  }
  .image-description-container {
      display: flex;
      align-items: center;
  }
  .main-image-container-second {
      width: 60%;
      order: 1;
  }
  .description-container-second {
      width: 40%;
      order: 2;
      text-align: center;
  }
  .image-description-container-second {
      display: flex;
      align-items: center;
      flex-direction: row-reverse;
  }
}