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;
  top: 0;
  height: 80px;
  width: 100%;
  z-index: 999;
  background-color: rgba(232, 241, 241, 0.4);
  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: 10px;
  display: flex;
  list-style: none;
  position: relative;
}
.logo img {
  width: 130px;
  height: auto;
}

.nav-links ul li {
  margin: 0 15px;
  position: relative;
  list-style-type: none;
}

.nav-links ul li a {
  color: rgb(27, 26, 26);
  text-decoration: none;
  font-size: 18px;
  padding: 5px;
}

.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;
}

.sidenav {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 1000;
  top: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.9);
  overflow-x: hidden;
  transition: 0.5s;
  padding-top: 60px;
}

.overlay {
  display: none; /* Initially hidden */
  position: fixed;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  top: 0;
  left: 0;
  z-index: 999; /* Placed above everything else */
}

.sidenav a {
  padding: 8px 8px 8px 32px;
  text-decoration: none;
  font-size: 25px;
  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: 36px;
}

@media screen and (max-width: 770px) {
  .nav-links ul {
    display: none;
  }
  .menu-toggle {
    display: block;
    color: #000;
    font-size: 34px;
    padding-top: 25px;
  }
  .logo img {
    width: 100px;
    height: auto;
  }
}

.models-section {
  background-color: #ffffff;
  padding: 0px;
  text-align: center;
}
.model-titles {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: nowrap; /* Évite le retour à la ligne */
  overflow-x: auto; /* Ajoute un défilement horizontal si nécessaire */
  margin-bottom: 5px;
  white-space: nowrap; /* Évite le retour à la ligne */
}
.model-title {
  margin: 10px;
  cursor: pointer;
  font-size: 24px;
  color: #050505;
  text-decoration: none;
  position: relative;
  padding: 0px 20px;
  transition: color 0.3s;
}
.model-title img {
  width: 50px; /* Ajustez la taille de l'image */
  height: auto;
}
.model-title img:hover {
  width: 100px; /* Ajustez la taille de l'image */
  height: auto;
}

.model-title h2 {
  width: 100px; /* Ajustez la taille du texte */
  height: auto;
  color: black;
}

.model-title::before,
.model-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background-color: #007bff;
  transition: width 0.3s;
}
.model-title:hover::before,
.model-title:hover::after {
  width: 100%;
}
.model-title.active::before,
.model-title.active::after {
  width: 100%;
}
.model-images {
  display: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.model-image {
  position: relative;
  width: 100%;
  height: auto;
}
.model-images img {
  width: 100%;
  height: 90%;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}
.model-images img:hover {
  transform: scale(1.05);
}

.model-image .car-name {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 16px;
}

.model-image .hover-info {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s;
}
.model-image:hover .hover-info {
  opacity: 1;
}
.hover-info a {
  text-decoration: none;
}
.hover-info div {
  margin: 10px 0;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.8);
  color: #000;
  border-radius: 5px;
  cursor: pointer;
  transition: transform 0.3s;
}
.hover-info div:hover {
  transform: scale(1.1);
}
/* Style pour la section assurance */
.steps-section {
  padding: 40px 20px;
  background-color: #e7e2e2;
  text-align: center;
  border-radius: 15px;
}
.steps-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  position: relative;
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.step-icon {
  width: 60px;
  height: 60px;
  background-color: #b2c0cf;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-size: 24px;
  margin-bottom: 10px;
}
.step-icon:hover {
  background-color: #edf6ff;
  width: 63px;
  height: 63px;
}

.step-description {
  margin-top: 20px;
  font-size: 14px;
  color: #0c0b0b;
}
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  width: 40px;
  height: 3px;
  background-color: #333;
  transform: translateY(-50%);
}
.step:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(100% + 40px);
  width: 40px;
  height: 3px;
  background-color: #333;
  transform: translateY(-50%);
}

/* Media query pour les écrans de taille moyenne (max-width: 690px) */
@media (max-width: 620px) {
  header {
    flex-direction: block;
    align-items: flex-start;
  }

  .contact-info .logo {
    padding: 0;
    margin: 0;
    width: 110px; /* Diminution de la taille du logo */
  }

  .brand-links img {
    width: 80px; /* Diminution de la taille des images */
  }

  nav ul {
    margin-top: 15px;
    flex-direction: flex;
    align-items: flex-start;
  }

  nav ul li a {
    font-size: smaller; /* Diminution de la taille de la police */
    padding: 7px;
  }

  .dropdown-content img {
    width: 80px; /* Diminution de la taille des images dans la liste déroulante */
  }

  .model-images {
    grid-template-columns: 1fr; /* Une colonne sur les écrans de moins de 688px */
  }
  .steps-container {
    flex-wrap: wrap;
  }
  .step {
    flex: 1 1 50%;
    max-width: 50%;
  }
  .step:not(:last-child)::after,
  .step:not(:last-child)::before {
    width: 0;
    height: 0;
  }
}

#scrollTopBtn {
  display: none;
  position: fixed;
  bottom: 50px;
  right: 20px;
  z-index: 99;
  font-size: 16px;
  border: none;
  outline: none;
  background-color: #09d3ee;
  cursor: pointer;
  padding: 15px;
  margin-right: 50px;
  border-radius: 15px;
  transition: background-color 0.3s ease-out; /* Ajoute une transition sur le changement de couleur de fond */
}

#scrollTopBtn:hover {
  background-color: #1fe5ff;
}


.contact-section {
  padding: 20px;
  background-color: #f1f1f1;
  text-align: center;
}

.contact-section h2 {
  font-size: 24px;
  margin-bottom: 20px;
}

.contact-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}

.contact-form,
.contact-map {
  flex: 1 1 calc(44% - 5px);
  background: white;
  padding: 10px;
  box-shadow: 0 0 10px rgba(2, 18, 241, 0.7);
  /* margin: 10px; */
}

.contact-form input,
.contact-form textarea {
  width: 97%;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #ccc;
}

.contact-form button {
  padding: 10px 20px;
  background-color: #007bff;
  color: white;
  border: none;
  cursor: pointer;
}

#map {
  width: 100%;
  height: 400px;
}

.social-media-section {
  padding: 20px;
  background-color: #f1f1f1;
  text-align: center;
}

.social-media-icons {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  box-shadow: 0 0 10px rgba(2, 18, 241, 0.7);
}

.social-media-icons a {
  font-size: 24px;
  margin: 10px;
  text-decoration: none;
  color: #000;
}

/* Media query pour les écrans de taille moyenne (max-width: 720px) */
@media (max-width: 720px) {
  iframe {
    width: 280px;
  }
  .social-media-icons a {
    flex: 1 1 calc(33.333% - 20px);
  }
}




.car-interior {
  padding: 50px 20px;
  background-color: #e9e9e9;
  text-align: center;
}


.interior-row {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.interior-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.interior-item.reverse {
  flex-direction: row-reverse;
}

.interior-image {
  width: 60%;
}

.interior-image img {
  width: 70%;
  transition: transform .2s;
  border-radius: 20px;
  height: auto;
}

.interior-description {
  width: 40%;
  padding: 0 20px;
}

.interior-description p {
  font-size: 1.2em;
  line-height: 2;


}



.interior-image img:hover{
    -ms-transform: scale(0.98); /* IE 9 */
    -webkit-transform: scale(0.98); /* Safari 3-8 */
    transform: scale(0.98); 
}


.description-buttons {
  margin-top: 10px;
}
.description-buttons a {
  display: inline-block;
  margin: 5px;
  padding: 10px 20px;
  text-decoration: none;
  color: black;
  background-color: #86878894;
  border-radius: 5px;
  transition: background-color 0.3s ease-in-out;
}
.description-buttons a:hover {
  background-color:#94969794;
  text-decoration: none;

}


  /* Car Interior Items */
  @media (max-width: 860px) {
    .car-interior .interior-item {
        flex-direction: column;
    }
    .car-interior .interior-description, .car-interior .interior-image {
        width: 100%;
    }
  }
