body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.voitures-xcmg {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background-color: #f9f9f9;
    flex-wrap: wrap; /* Allows the items to wrap on smaller screens */
}
.voitures-xcmg1 {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: flex-start;
    background-color: #f9f9f9;
    flex-wrap: wrap; /* Allows the items to wrap on smaller screens */
}

.image-container {
    padding: 2px 5px;
    flex: 0 0 52%;
}

.image-container img {
    width: 100%;
    height: auto;
    transition: transform .4s;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.text-container {
    text-align: center;
    flex: 0 0 42%;
    display: flex;
    flex-direction: column;
}

.car-title {
    font-size: 26px;
    font-weight: bold;
    margin-bottom: 10px;
    color: rgb(255, 217, 0);
}

.car-features {
    list-style-type: none;
    padding: 0;
    margin-bottom: 10px;
}

.car-features li {
    margin-bottom: 10px;
    font-size: 18px;
    color: rgb(0, 17, 255);
}

.car-features span {
    color: black;
    font-weight: bold;
    font-size: larger;
}

.buttons {
    margin-top: auto;
}

.button {
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background-color: #007BFF;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 10px;
    text-decoration: none;
    display: inline-block;
}

.button.fiche-technique {
    background-color: #28a745;
}

.button.demande-devis {
    background-color: #dc3545;
}

.button:hover {
    opacity: 0.8;
}

@media (max-width: 1240px) {
    .image-container,
    .text-container {
        flex: 0 0 100%;
        padding: 0;
        margin-bottom: 20px;
    }

    .image-container {
        padding-right: 0;
    }
}


header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    width: 100%;
    z-index: 999;
    background-color:  rgba(224, 210, 20, 0.3);
    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 */
  }

  .nav-links ul {
    padding-right: 60px;
    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: 5px;
  width: 190px ;/* 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: 20px;
  }

  .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: 825px) {
    .nav-links ul {
      display: none;
    }
    .menu-toggle {
      display: block;
    }
    .logo-img {
      width: 100px; /* Ajustez la largeur selon vos besoins */
  }

    
  }
  @media screen and (max-width: 500px) {
    .logo-img-small {
        width: 150px ;/* Taille spécifique pour la deuxième image */
      }
  }

 
  .image-container img:hover{
    -ms-transform: scale(1.01); /* IE 9 */
    -webkit-transform: scale(1.01); /* Safari 3-8 */
    transform: scale(1.01); 
}