body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Évite la barre de défilement horizontale */
    background-color: #faf6f6;
  }

  
  header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    height: 80px;
    width: 100%;
    z-index: 999;
    background-color: rgba(10, 9, 7, 0.5);
    box-shadow: 0 2px 4px rgba(179, 167, 167, 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 {
  border-radius: 7px;
}
  .nav-links ul li {
    margin: 5 15px;
    position: relative;
    list-style-type: none;
  }

  .nav-links ul li a {
    color: rgb(255, 253, 253);
    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;
    }
    .logo-img {
      width: 80px; /* Ajustez la largeur selon vos besoins */
  }
  .logo-img-small {
    width: 110px ;/* Taille spécifique pour la deuxième image */
}
  }
  
  


  .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 a {
    color: #09080a;
    text-decoration: none;
    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;
    color: #ffffff;
    cursor: pointer;
}

/* Modification pour afficher l'overlay au survol de l'image uniquement */
.image-container:hover .overlay {
    opacity: 1;
}
.secEntete{
  display: flex;
  justify-content:center;
  align-items: center;
  padding-left: 120px;
  height: auto;
  background-color: #242027;
  border-bottom: #09080a solid 2px;
}


 .secEntete img{
  width: 30%;
  height: 20%;
  }


/* Responsive design */
@media (max-width: 600px) {
  .secEntete a{
    margin-left: 0px;
  }
  
}


/* 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 img{
      width: 100%;
      height: 100%;
      }
      .secEntete{
        padding-left: 20px;
      }
}
