/* ========== HERO SECTION ========= */
.hero-section {
  position: relative;
  background: url('ressources visuels/voiture.webp') center/cover no-repeat;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  overflow: hidden;
}

.hero-overlay {
  background: rgba(0, 0, 0, 0.6);
  padding: 3rem;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

/* ========== SEARCH BAR ========= */
.search-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  max-width: 600px;
  width: 100%;
}

.search-bar input {
  flex: 1;
  padding: 12px 20px;
  border: none;
  outline: none;
  font-size: 1rem;
  border-radius: 50px 0 0 50px;
}

.search-bar button {
  padding: 12px 20px;
  background-color: #FF6500;
  color: white;
  border: none;
  border-radius: 0 50px 50px 0;
  cursor: pointer;
  transition: background 0.3s ease;
  font-size: 1.1rem;
}

.search-bar button:hover {
  background-color: #e25700;
}

/* ========== SIDEBAR FILTRES ========= */
.filter-sidebar {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100%;
  background: #f7f7f7;
  box-shadow: -2px 0 10px rgba(0,0,0,0.2);
  padding: 20px;
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
}

.filter-sidebar.active {
  right: 0;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.sidebar-header h4 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: bold;
  color: #333;
}

#close-sidebar {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #333;
  cursor: pointer;
}

.filter-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.filter-item {
  display: block;
  width: 100%;
  background: #fff;
  border: 1px solid #ddd;
  margin-bottom: 10px;
  padding: 12px 15px;
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
  transition: 0.2s ease;
  font-size: 1rem;
}

.filter-item:hover {
  background: #FF6500;
  color: white;
  border-color: #FF6500;
}

/* ========== RESPONSIVE ========= */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .search-bar {
    flex-direction: column;
    border-radius: 20px;
  }

  .search-bar input,
  .search-bar button {
    width: 100%;
    border-radius: 0;
  }

  .search-bar input {
    border-radius: 20px 20px 0 0;
  }

  .search-bar button {
    border-radius: 0 0 20px 20px;
  }
}


/* voitures à afficher  */



























