/* Système de voitures d'occasion - Styles */

/* Grille des voitures */
.cars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

/* Carte de voiture */
.car-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
}

.car-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.car-image {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.car-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.car-card:hover .car-image img {
  transform: scale(1.05);
}

.car-details {
  padding: 1.5rem;
}

.car-details h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
  line-height: 1.3;
}

.car-details h3 a {
  color: #e12020;
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: bold;
}

.car-details h3 a:hover {
  color: #a11818;
}

.car-brand {
  color: #666;
  font-size: 0.9rem;
  margin: 0 0 1rem 0;
  font-weight: 500;
}

.car-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.car-specs span {
  background: #f8f9fa;
  color: #495057;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid #e9ecef;
}

.car-price {
  font-size: 1.5rem;
  color: #495057;
  margin-top: 0.5rem;
}

/* Filtres */
.cars-filters {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
  border: 1px solid #e0e0e0;
}

.cars-filters h3 {
  margin: 0 0 1.5rem 0;
  color: #e12020;
  font-size: 1.5rem;
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.filter-group {
  display: flex;
  flex-direction: column;
}

.filter-group label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #333;
  font-size: 0.9rem;
}

.filter-group select,
.filter-group input {
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: border-color 0.3s ease;
}

.filter-group select:focus,
.filter-group input:focus {
  outline: none;
  border-color: #e12020;
  box-shadow: 0 0 0 3px rgba(225, 32, 32, 0.1);
}

.filter-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-primary {
  background: #e12020;
  color: white;
}

.btn-primary:hover {
  background: #af1919;
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: #e12020;
  border: 2px solid #e12020;
}

.btn-secondary:hover {
  background: #e12020;
  color: white;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: #e12020;
  border: 2px solid #e12020;
}

.btn-outline:hover {
  background: #e12020;
  color: white;
}

/* Page single voiture */
.single-car-header {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  color: white;
  padding: 3rem 0;
  margin-bottom: 2rem;
  position: relative;
}

.single-car-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.single-car-header h1 {
  margin: 0;
  font-size: 2.5rem;
  font-weight: 700;
}

.car-main-content {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 3rem;
  margin: 2rem 0;
}

.car-gallery {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.car-gallery img {
  width: auto;
  height: 100%;
  display: block;
}

.car-info-sidebar {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  height: fit-content;
  position: sticky;
  top: 2rem;
}
/* Prix */
.car-price-large {
  font-size: 2.5rem;
  font-weight: 700;
  color: #000;
  text-align: center;
  margin-bottom: 2rem;
  padding: 1rem;
  background: #f8f9fa;
}

.car-specs-detailed {
  margin-bottom: 2rem;
}

.car-specs-detailed h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid #e9ecef;
}

.spec-item:last-child {
  border-bottom: none;
}

.spec-label {
  font-weight: 600;
  color: #495057;
}

.spec-value {
  color: #6c757d;
}

.car-contact {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 1.5rem;
}

.car-contact h4 {
  margin: 0 0 1rem 0;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
}

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-icon {
  margin-right: 0.75rem;
  color: #6c757d;
  width: 20px;
}

.car-description {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.car-description h3 {
  margin-bottom: 1rem;
}

.car-features {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.car-features h3 {
  margin-bottom: 1rem;
}

.features-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.5rem;
}

.feature-item {
  display: flex;
  align-items: center;
  padding: 0.5rem 0;
}

.feature-item::before {
  content: "✓";
  color: #e12020;
  font-weight: bold;
  margin-right: 0.5rem;
}

/* Section voitures récentes sur la page d'accueil */
.latest-cars-section {
  padding: 4rem 0;
}

.latest-cars-section h2 {
  text-align: center;
  margin-bottom: 3rem;
  color: #e12020;
  font-size: 2.5rem;
  font-weight: 700;
}

.latest-cars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Pagination */
.cars-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin: 3rem 0;
}

.cars-pagination .page-numbers {
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  text-decoration: none;
  color: #333;
  transition: all 0.3s ease;
}

.cars-pagination .page-numbers:hover,
.cars-pagination .page-numbers.current {
  background: #e12020;
  color: white;
  border-color: #e12020;
}

/* Loading state */
.cars-loading {
  text-align: center;
  padding: 2rem;
  color: #666;
}

.cars-loading::after {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #ddd;
  border-radius: 50%;
  border-top-color: #e12020;
  animation: spin 1s ease-in-out infinite;
  margin-left: 0.5rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .cars-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .filters-grid {
    grid-template-columns: 1fr;
  }

  .car-main-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .car-info-sidebar {
    position: static;
  }

  .single-car-header h1 {
    font-size: 2rem;
  }

  .latest-cars-grid {
    grid-template-columns: 1fr;
  }

  .filter-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .car-details {
    padding: 1rem;
  }

  .car-specs {
    gap: 0.5rem;
  }

  .car-specs span {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
  }

  .car-price {
    font-size: 1.25rem;
  }

  .cars-filters {
    padding: 1.5rem;
  }

  .single-car-header {
    padding: 2rem 0;
  }

  .single-car-header h1 {
    font-size: 1.75rem;
  }
}

/* États vides */
.no-cars-found {
  text-align: center;
  padding: 4rem 2rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.no-cars-found p {
  font-size: 1.1rem;
  color: #666;
  margin: 0;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.car-card {
  animation: fadeInUp 0.6s ease-out;
}

.car-card:nth-child(2) {
  animation-delay: 0.1s;
}

.car-card:nth-child(3) {
  animation-delay: 0.2s;
}

.container::before {
  display: none !important;
}
@media (min-width: 981px) {
  body.wp-singular.voiture-template-default.single.single-voiture
    div#page-container
    div#et-boc.et-boc
    div#et-main-area
    div#main-content
    div.container
    div#content-area.clearfix
    div#left-area {
    float: left;
    padding: 0 15rem 0 15rem !important;
  }
}
