/* Styles CSS pour le shortcode des derniers véhicules */

/* Variables de couleurs Renault */
:root {
  --renault-yellow: #FDB515;
  --renault-black: #000000;
  --renault-gray: #f5f5f5;
  --renault-dark-gray: #333333;
  --renault-light-gray: #eeeeee;
}

/* Conteneur principal */
.tec3h-latest-vehicles-container {
  margin-bottom: 30px;
  width: 100%;
}

/* Titre du shortcode */
.tec3h-latest-title {
  font-size: 24px !important;
  font-weight: 700 !important;
  margin-bottom: 20px !important;
  color: var(--renault-black) !important;
  text-align: center !important;
}

/* Grille de véhicules */
.tec3h-latest-vehicles {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -10px;
}


/* Styles pour les colonnes */
.tec3h-columns-1 .tec3h-vehicle-item {
  flex: 0 0 100%;
  max-width: 100%;
}

.tec3h-columns-2 .tec3h-vehicle-item {
  flex: 0 0 calc(50% - 20px);
  max-width: calc(50% - 20px);
}

.tec3h-columns-3 .tec3h-vehicle-item {
  flex: 0 0 calc(33.333% - 20px);
  max-width: calc(33.333% - 20px);
}

.tec3h-columns-4 .tec3h-vehicle-item {
  flex: 0 0 calc(25% - 20px);
  max-width: calc(25% - 20px);
}

/* Carte véhicule */
.tec3h-vehicle-item {
  border: 1px solid #eee;
  border-radius: 0;
  overflow: hidden;
  background-color: #fff;
  transition: transform 0.3s, box-shadow 0.3s;
  margin-bottom: 20px;
}

.tec3h-vehicle-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Image du véhicule */
.tec3h-vehicle-thumb {
  height: 300px;
  overflow: hidden;
  position: relative;
}

.tec3h-vehicle-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 0.5s !important;
}

.tec3h-vehicle-item:hover .tec3h-vehicle-thumb img {
  transform: scale(1.05) !important;
}

/* Contenu de la carte */
.tec3h-vehicle-info {
  padding: 15px !important;
  display: flex !important;
  flex-direction: column !important;
  max-width: 100% !important;
}

/* Titre du véhicule */
.tec3h-vehicle-title {
  margin: 0 0 10px !important;
  font-size: 16px !important;
  line-height: 1.3 !important;
  font-weight: 600 !important;
}

.tec3h-vehicle-title a {
  color: var(--renault-black) !important;
  text-decoration: none !important;
  transition: color 0.3s !important;
}

.tec3h-vehicle-title a:hover {
  color: var(--renault-yellow) !important;
}

/* Prix du véhicule */
.tec3h-vehicle-price {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: var(--renault-black) !important;
  margin-bottom: 10px !important;
}

/* Métadonnées du véhicule */
.tec3h-vehicle-meta {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin-bottom: 15px !important;
  font-size: 13px !important;
}

.tec3h-vehicle-year,
.tec3h-vehicle-mileage,
.tec3h-vehicle-fuel {
  display: inline-block !important;
  background-color: var(--renault-light-gray) !important;
  padding: 3px 8px !important;
  border-radius: 3px !important;
}

/* Lien "Voir le détail" */
.tec3h-vehicle-link {
  display: inline-block !important;
  padding: 8px 15px !important;
  background-color: var(--renault-yellow) !important;
  color: var(--renault-black) !important;
  text-decoration: none !important;
  border-radius: 0 !important;
  transition: background-color 0.3s !important;
  margin-top: auto !important;
  align-self: flex-start !important;
  
  /* Typographie "Accent" (celle du Kit 61) */
  font-family: var(--e-global-typography-accent-font-family), sans-serif !important;
  font-size: var(--e-global-typography-accent-font-size) !important;
  font-weight: 700 !important;
  text-transform: var(--e-global-typography-accent-text-transform) !important;
  line-height: var(--e-global-typography-accent-line-height) !important;
  letter-spacing: var(--e-global-typography-accent-letter-spacing) !important;
}

.tec3h-vehicle-link:hover {
  background-color: #E09F0F !important;
  color: var(--renault-black) !important;
}
/* Bouton "Voir tous les véhicules" */
.tec3h-view-all {
  display: block !important;
  width: fit-content !important;
  margin: 20px auto 0 !important;
  padding: 10px 20px !important;
  background-color: var(--renault-yellow) !important;
  color: var(--renault-black) !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  border-radius: 0 !important;
  transition: background-color 0.3s !important;
  text-align: center !important;
  font-family: var(--e-global-typography-accent-font-family), sans-serif !important;
  font-size: var(--e-global-typography-accent-font-size) !important;
  font-weight: 700 !important;
  text-transform: var(--e-global-typography-accent-text-transform) !important;
  line-height: var(--e-global-typography-accent-line-height) !important;
  letter-spacing: var(--e-global-typography-accent-letter-spacing) !important;
}

.tec3h-view-all:hover {
  background-color: #E09F0F !important;
  color: var(--renault-black) !important;
}

/* Responsive */
@media (max-width: 1024px) {
  .tec3h-columns-3 .tec3h-vehicle-item,
  .tec3h-columns-4 .tec3h-vehicle-item {
    flex: 0 0 calc(50% - 20px) !important;
    max-width: calc(50% - 20px) !important;
  }

  .tec3h-layout-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
  }
}

@media (max-width: 768px) {
  .tec3h-columns-2 .tec3h-vehicle-item,
  .tec3h-columns-3 .tec3h-vehicle-item,
  .tec3h-columns-4 .tec3h-vehicle-item {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  .tec3h-layout-grid {
    grid-template-columns: 1fr !important;
  }

  .tec3h-vehicle-title {
    font-size: 14px !important;
  }

  .tec3h-vehicle-price {
    font-size: 16px !important;
  }
}
