@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500&display=swap');

body {
    body {
        font-family: 'DM Sans', sans-serif;
        font-weight: 300; /* fin et élégant */
      }    
      header h1 {
        font-family: 'DM Sans', sans-serif;
        font-weight: 500;
        font-size: 28px; /* tu peux ajuster ici si tu veux */
        letter-spacing: 1px; /* optionnel : pour plus de style luxe */
    }  
  margin: 0;
  font-family: 'DM Sans', sans-serif;
  background-color: #f5f5f5;
  color: #333;
}

/* En-tête et pied */
header, footer {
  background-color: #1e1e1e;
  color: white;
  padding: 20px 0;
    height: 80px;
    display: flex;
    align-items: center;
  }
  
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}
nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 10px 0;
}
nav ul li a {
  color: white;
  text-decoration: none;
}
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center; /* ✅ ceci aligne verticalement au milieu */
    padding: 0 5%;
  }

/* Titre section */
.section-title {
  text-align: center;
  padding: 40px 0 20px;
  font-size: 32px;
  font-weight: 400;
}

/* Liste verticale */
.car-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
  padding: 40px 0;
}

/* Lien de carte cliquable */
.car-link {
  text-decoration: none;
  color: inherit;
  display: block;
  width: 100%;
  max-width: 600px;
}

/* Carte voiture */
.car-item {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(6px);
  border-radius: 16px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.05);
  padding: 30px;
  text-align: center;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Carrousel */
.carousel {
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 15px;
}
.carousel img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 12px;
  display: none;
}
.carousel img:first-child {
  display: block;
}

/* Bouton */
.car-item button {
  margin-top: 15px;
  padding: 12px 25px;
  background: #1e1e1e;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
}
.car-item button:hover {
  background-color: #000;
}

/* Avis clients */
.reviews-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 40px;
}
.review-item {
  background: #eee;
  padding: 20px;
  border-radius: 10px;
  max-width: 300px;
  font-style: italic;
  text-align: center;
}

/* Animations */
.hidden {
  opacity: 0;
  transform: translateY(20px);
}
.show {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.6s ease-out;
}
.car-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    max-width: 600px;
    cursor: pointer;
  }
  .back-button {
    margin: 30px auto 0;
    max-width: 900px;
    text-align: left;
  }
  .back-button a {
    color: #1e1e1e;
    text-decoration: none;
    font-size: 16px;
  }
  .back-button a:hover {
    text-decoration: underline;
  }
  .vehicle-detail {
    max-width: 900px;
    margin: 40px auto;
    text-align: center;
  }
  .vehicle-detail h2 {
    font-size: 32px;
    margin-bottom: 10px;
  }
  .vehicle-detail p {
    font-size: 18px;
    margin-bottom: 30px;
  }
  .gallery {
    border-radius: 10px;
    overflow: hidden;
  }
  .gallery img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: none;
  }
  .gallery img:first-child {
    display: block;
  }
  .gallery-controls {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 20px;
  }
  .gallery-controls button {
    background-color: #1e1e1e;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
  }
  .reserve-btn {
    margin-top: 40px;
    background-color: #1e1e1e;
    color: white;
    padding: 14px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    text-decoration: none;
    display: inline-block;
  }
  .reserve-btn:hover {
    background-color: #000;
  }
/* Style global pour TOUS les boutons */
button,
.reserve-btn,
.gallery-controls button,
input[type="submit"] {
  background-color: transparent;
  color: #1e1e1e;
  padding: 12px 25px;
  border: 1.5px solid #1e1e1e;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

/* Hover sur tous les boutons */
button:hover,
.reserve-btn:hover,
.gallery-controls button:hover,
input[type="submit"]:hover {
  background-color: #1e1e1e;
  color: white;
}
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: white;
    color: #25D366;
    font-size: 28px;
    padding: 12px 14px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    z-index: 999;
    transition: all 0.3s ease;
    border: 1.5px solid #25D366;
  }
  .whatsapp-float:hover {
    background-color: #25D366;
    color: white;
  }
  h1, h2, h3, h4, h5, h6 {
    font-family: 'DM Sans', sans-serif;
  }
  /* Bouton mode sombre */
#darkModeToggle {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    margin-left: auto;
    color: white;
  }
  
  /* Mode sombre global */
  body.dark-mode {
    background-color: #111;
    color: #f1f1f1;
  }
  
  body.dark-mode header,
  body.dark-mode footer {
    background-color: #000;
    color: #f1f1f1;
  }
  
  body.dark-mode .car-item,
  body.dark-mode .contact-info,
  body.dark-mode .contact-form {
    background-color: rgba(255, 255, 255, 0.05);
    color: #f1f1f1;
    border: 1px solid #444;
  }
  
  body.dark-mode input,
  body.dark-mode textarea,
  body.dark-mode select {
    background-color: #222;
    color: white;
    border: 1px solid #555;
  }
  
  body.dark-mode button,
  body.dark-mode .reserve-btn {
    border-color: #f1f1f1;
    color: #f1f1f1;
  }
  
  body.dark-mode button:hover,
  body.dark-mode .reserve-btn:hover {
    background-color: #f1f1f1;
    color: #000;
  }
  header h1 {
    font-family: 'DM Sans', sans-serif;
    font-size: 24px;
    font-weight: 500;
    margin: 0;
  }
  /* Contenu de la bannière (header) */
.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
  }
  
 /* Header : logo + menu + bouton alignés */
header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
  }
  
  /* Logo "Aura Car" */
  header h1 {
    font-family: 'DM Sans', sans-serif;
    font-size: 24px;
    font-weight: 500;
    margin: 0;
  }
  
  /* Menu */
  nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    padding: 10px 0;
    margin: 0;
  }
  
  nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 400;
  }
  form {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(6px);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    max-width: 700px;
    margin: 50px auto;
  }
  
  .form-group {
    margin-bottom: 25px;
  }
  
  .form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: #1e1e1e;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    background-color: white;
    transition: border 0.3s ease, box-shadow 0.3s ease;
  }
  
  .form-group input:focus,
  .form-group select:focus,
  .form-group textarea:focus {
    border-color: #1e1e1e;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.08);
    outline: none;
  }
  
  form button {
    padding: 14px 28px;
    font-size: 16px;
    background-color: transparent;
    color: #1e1e1e;
    border: 1.5px solid #1e1e1e;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  form button:hover {
    background-color: #1e1e1e;
    color: white;
  }
  button:hover {
    transform: scale(1.02);
    transition: all 0.2s ease-in-out;
  }
  
  #devis {
    margin-top: 20px;
    font-weight: 500;
    text-align: center;
  }
  .logo-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .logo-img {
    height: 180px;
    object-fit: contain;
  }
  /* Menu classique (desktop) visible uniquement au-dessus de 768px */
/* Base */
.menu-toggle,
.mobile-menu {
  display: none;
}
.desktop-menu {
  display: flex;
}

/* Alignement général */
.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

/* Responsive */
@media (max-width: 768px) {
  .desktop-menu {
    display: none;
  }

  .menu-toggle {
    display: block;
    font-size: 26px;
    color: white;
    cursor: pointer;
  }

  .mobile-menu {
    display: none;
    flex-direction: column;
    align-items: center;
    background-color: #1e1e1e;
    width: 100%;
    padding: 10px 0;
  }

  .mobile-menu.active {
    display: flex;
  }

  .mobile-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .mobile-menu ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
  }
}
  .header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
  }
  /* Pour que le header prenne 100% largeur */
header {
  width: 100%;
  box-sizing: border-box;
}

/* Empêche les débordements sur mobile */
body {
  overflow-x: hidden;
}

/* Menu mobile caché par défaut */
.menu-toggle {
  display: none;
}

@media (max-width: 768px) {
  .desktop-menu {
    display: none; /* Cache le menu horizontal sur petit écran */
  }

  .menu-toggle {
    display: block;
    font-size: 26px;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
  }

  .mobile-menu {
    display: none;
    background-color: #1e1e1e;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
  }

  .mobile-menu.active {
    display: flex;
  }

  .mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 10px;
    display: flex;
    flex-direction: column;
  }

  .mobile-menu ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
  }

  .header-flex {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
  }

  .logo-img {
    max-width: 160px;
    height: auto;
  }
}

 

/* === Responsive Header & Menu Mobile === */
@media (max-width: 768px) {
  header .container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .desktop-menu {
    display: none;
  }

  .menu-toggle {
    display: block;
    font-size: 28px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    margin-top: 10px;
  }

  .mobile-menu {
    display: none;
    flex-direction: column;
    background-color: #1e1e1e;
    width: 100%;
    padding: 15px 0;
  }

  .mobile-menu.active {
    display: flex;
  }

  .mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .mobile-menu ul li a {
    color: white;
    font-size: 18px;
    text-decoration: none;
  }

  .logo-img {
    max-width: 160px;
    height: auto;
  }

  .car-list {
    flex-direction: column;
    gap: 30px;
  }

  .car-item {
    padding: 20px;
  }

  footer {
    text-align: center;
  }
}


/* === Animation au scroll === */
.hidden {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.show {
  opacity: 1;
  transform: translateY(0);
}

/* === Animation menu mobile === */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-in-out;
}

.mobile-menu.active {
  max-height: 300px;
}


/* === LANG SWITCH ICON === */
.lang-switch {
  margin-left: 10px;
  font-size: 20px;
}
.lang-switch a {
  color: white;
  text-decoration: none;
  padding: 5px;
}
.lang-switch a:hover {
  opacity: 0.8;
}

/* === FOOTER IMPROVED === */
footer {
  background-color: #1e1e1e;
  color: white;
  padding: 40px 0;
  font-size: 14px;
}

footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

@media (min-width: 768px) {
  footer .container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

}
@media (max-width: 768px) {
  header {
    height: 80px;
  }

  header .container {
    flex-direction: row;              /* ✅ Garde la disposition horizontale */
    justify-content: space-between;  /* ✅ Espacement entre logo et menu */
    align-items: center;
    padding: 0 20px;
  }

  .logo-img {
    height: 60px;                     /* ✅ Ajuste la taille du logo pour mobile */
    object-fit: contain;
  }

  nav ul {
    flex-direction: row;             /* ✅ Menu à l’horizontale même sur mobile */
    gap: 15px;
    padding: 0;
    margin: 0;
  }

  nav ul li a {
    font-size: 14px;
    padding: 4px 0;
  }

  #darkModeToggle,
  .language-switcher {
    font-size: 16px;
    margin-left: 15px;
  }
}
/* ✅ Style moderne pour les menus déroulants */
select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 16px;
  width: 100%;
  font-family: inherit;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='5' viewBox='0 0 10 5'%3E%3Cpath fill='%23333' d='M0 0l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
  cursor: pointer;
}

select:focus {
  border-color: #1e1e1e;
  outline: none;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
}

/* ✅ Ajustement du bouton d’envoi */
form button[type="submit"] {
  background-color: #f0f0f0;
  color: #1e1e1e;
  border: 1.5px solid #1e1e1e;
  border-radius: 8px;
  font-size: 16px;
  padding: 14px 28px;
  cursor: pointer;
  transition: all 0.3s ease;
}

form button[type="submit"]:hover {
  background-color: #1e1e1e;
  color: white;
}
