/* Styles pour la page détaillée d'un véhicule - Couleurs Renault */
:root {
  --renault-yellow: #FDB515;
  --renault-black: #000000;
  --renault-gray: #f5f5f5;
  --renault-dark-gray: #333333;
  --renault-light-gray: #eeeeee;
}

.tec3h-vehicle-single-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue",
    sans-serif;
  color: var(--renault-dark-gray);
}

.tec3h-vehicle-single {
  background-color: #fff;
  border-radius: 0;
  overflow: hidden;
}

/* Section supérieure (header) */
.tec3h-vehicle-header-section {
  width: 100%;
  background-color: #fff;
  padding: 20px 0;
  margin-bottom: 20px;
}

/* Modifier la structure de la section d'en-tête pour afficher correctement le titre et le prix */
.tec3h-vehicle-header-content {
  display: flex;
  flex-direction: row;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  gap: 30px;
}

/* Galerie d'images */
.tec3h-vehicle-gallery {
  flex: 3;
  max-width: 60%;
}

/* Ajuster les proportions entre la galerie et les infos */
.tec3h-vehicle-main-image {
  position: relative;
  height: 450px;
  overflow: hidden;
  margin-bottom: 10px;
  background-color: var(--renault-light-gray);
}

.tec3h-vehicle-main-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background-color: #f8f8f8;
}

.tec3h-image-navigation {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.tec3h-prev-image,
.tec3h-next-image {
  background-color: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 0; /* Carré au lieu de rond */
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.tec3h-prev-image:hover,
.tec3h-next-image:hover {
  background-color: rgba(255, 255, 255, 1);
}

/* Miniatures */
.tec3h-image-thumbnails {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 10px;
  max-width: 100%;
}

.tec3h-thumbnail {
  width: 80px;
  height: 80px;
  border-radius: 0;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  flex: 0 0 80px;
}

.tec3h-thumbnail.active {
  opacity: 1;
  border: 2px solid var(--renault-yellow);
}

.tec3h-thumbnail:hover {
  opacity: 1;
}

.tec3h-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: #f8f8f8;
}

/* Informations du véhicule */
.tec3h-vehicle-info {
  flex: 2;
  padding: 0;
  max-width: 40%;
}

.tec3h-vehicle-title {
  margin: 0 0 20px 0;
  font-size: 24px !important; /* Taille encore plus réduite */
  font-weight: 700;
  color: var(--renault-black);
  line-height: 1.3;
  text-transform: capitalize;
}

.tec3h-vehicle-price-container {
  margin-bottom: 20px;
}

.tec3h-vehicle-price {
  font-size: 32px;
  font-weight: 700;
  color: var(--renault-black);
}

.tec3h-vehicle-monthly {
  font-size: 16px;
  color: var(--renault-dark-gray);
  margin: 5px 0;
}

.tec3h-vehicle-price-info {
  margin-top: 10px;
}

.tec3h-price-tag {
  display: inline-block;
  background-color: var(--renault-light-gray);
  padding: 4px 8px;
  border-radius: 0; /* Carré au lieu de arrondi */
  font-size: 12px;
  font-weight: 500;
}

/* Boutons de contact */
.tec3h-contact-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.tec3h-contact-button {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: 0; /* Carré au lieu de arrondi */
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
  transition: background-color 0.2s;
}

.tec3h-phone-button {
  background-color: var(--renault-yellow);
  color: var(--renault-black) !important
}

.tec3h-phone-button:hover {
  background-color: var(--renault-yellow);
  color: var(--renault-black) !important
}

.tec3h-message-button {
  background-color: #fff;
  color: var(--renault-black);
  border: 1px solid var(--renault-black);
}

.tec3h-message-button:hover {
  background-color: var(--renault-light-gray);
}

/* Actions */
.tec3h-image-actions {
  display: flex;
  gap: 10px; /* Réduit l'espace entre les boutons */
  margin-top: 20px;
}

/* Nouveau style pour les boutons d'action (partager et imprimer) */
.tec3h-action-button {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: 0; /* Carré au lieu de arrondi */
  font-weight: 600;
  font-size: 14px;
  background-color: #fff;
  color: var(--renault-black);
  border: 1px solid var(--renault-black);
  cursor: pointer;
  transition: background-color 0.2s;
}

.tec3h-action-button:hover {
  background-color: var(--renault-light-gray);
  color: var(--renault-black);
}

/* Section détails */
.tec3h-vehicle-details-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Titres de section */
.tec3h-section-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 15px 0;
  color: var(--renault-black);
  border-bottom: 1px solid var(--renault-light-gray);
  padding-bottom: 8px;
}

/* Points forts */
.tec3h-vehicle-highlights {
  margin-bottom: 30px;
}

.tec3h-highlights-list {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.tec3h-highlight-item {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 0 calc(25% - 15px);
  min-width: 200px;
  font-size: 14px;
}

.tec3h-highlight-item svg {
  color: var(--renault-yellow);
}

/* Caractéristiques */
.tec3h-vehicle-characteristics {
  margin-bottom: 30px;
}

.tec3h-characteristics-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 15px;
}

.tec3h-characteristic-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.tec3h-characteristic-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  color: #666;
}

.tec3h-characteristic-value {
  font-weight: 600;
  font-size: 16px;
}

/* Équipements */
.tec3h-vehicle-equipment {
  margin-bottom: 30px;
}

/* Ajouter ces styles pour la nouvelle grille d'équipements */

/* Équipements en grille */
.tec3h-equipment-grid {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
}

.tec3h-equipment-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tec3h-equipment-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  padding: 5px 0;
  line-height: 1.4;
}

.tec3h-check-icon {
  color: var(--renault-yellow);
  flex-shrink: 0;
  margin-top: 2px;
}

.tec3h-equipment-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
  margin-bottom: 15px;
}

.tec3h-equipment-item {
  font-size: 14px;
  padding: 5px 0;
}

/* Corriger l'affichage des listes d'équipements */
.tec3h-vehicle-characteristics:not(.show-all) .tec3h-characteristics-list,
.tec3h-vehicle-equipment:not(.show-all) .tec3h-equipment-list {
  max-height: 150px;
  overflow: hidden;
  position: relative;
}

/* Limiter la hauteur de la grille quand elle n'est pas en mode "voir tout" */
.tec3h-vehicle-equipment:not(.show-all) .tec3h-equipment-grid {
  max-height: 300px;
  overflow: hidden;
  position: relative;
}

.tec3h-vehicle-characteristics.show-all .tec3h-characteristics-list,
.tec3h-vehicle-equipment.show-all .tec3h-equipment-list {
  max-height: none;
  overflow: visible;
}

.tec3h-vehicle-equipment.show-all .tec3h-equipment-grid {
  max-height: none;
  overflow: visible;
}

/* Améliorer la visibilité du bouton voir plus/moins */
.tec3h-show-more-btn {
  background-color: var(--renault-yellow);
  border: none;
  color: var(--renault-black);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 12px 16px;
  margin-top: 10px;
  display: inline-block;
  border-radius: 0; /* Carré au lieu de arrondi */
  transition: all 0.3s ease;
}

.tec3h-show-more-btn:hover {
  background-color: #e6b800;
  color: white;
}

/* Formulaire de contact */
.tec3h-vehicle-contact-form {
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tec3h-contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 800px;
  width: 100%;
}

/* Véhicules similaires */
.tec3h-vehicle-similar {
  margin-bottom: 30px;
}

/* Assurez-vous que le titre de section est également centré */
.tec3h-vehicle-contact-form .tec3h-section-title {
  text-align: center;
  width: 100%;
}

.tec3h-similar-vehicles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.tec3h-similar-vehicle {
  background-color: #fff;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.tec3h-similar-vehicle:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.tec3h-similar-vehicle-image {
  height: 180px;
  overflow: hidden;
}

.tec3h-similar-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.tec3h-similar-vehicle:hover .tec3h-similar-thumbnail {
  transform: scale(1.05);
}

.tec3h-similar-vehicle-content {
  padding: 15px;
}

.tec3h-similar-vehicle-title {
  margin: 0 0 10px 0;
  font-size: 16px;
  font-weight: 600;
}

.tec3h-similar-vehicle-title a {
  color: var(--renault-black);
  text-decoration: none;
}

.tec3h-similar-vehicle-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.tec3h-similar-vehicle-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--renault-black);
}

.tec3h-similar-vehicle-details {
  display: flex;
  gap: 15px;
  font-size: 13px;
  color: #666;
}

/* États pour afficher/masquer du contenu */

/* Responsive fixes */
@media (max-width: 1024px) {
  .tec3h-vehicle-header-content {
    flex-direction: column;
  }

  .tec3h-vehicle-gallery,
  .tec3h-vehicle-info {
    max-width: 100%;
    flex: 1;
  }

  .tec3h-vehicle-gallery {
    margin-right: 0;
    margin-bottom: 20px;
  }

  .tec3h-vehicle-main-image {
    height: 400px;
  }

  .tec3h-vehicle-info {
    padding: 0;
  }
}

@media (max-width: 768px) {
  .tec3h-form-row {
    flex-direction: column;
  }

  .tec3h-vehicle-main-image {
    height: 300px;
  }

  .tec3h-similar-vehicles {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

  .tec3h-highlight-item {
    flex: 1 0 calc(50% - 15px);
  }

  .tec3h-characteristics-list {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .tec3h-equipment-grid {
    flex-direction: column;
    gap: 10px;
  }

  .tec3h-equipment-column {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .tec3h-vehicle-main-image {
    height: 250px;
  }

  .tec3h-vehicle-title {
    font-size: 14px; /* Encore plus petit sur mobile */
  }

  .tec3h-vehicle-price {
    font-size: 28px;
  }

  .tec3h-highlight-item {
    flex: 1 0 100%;
  }
}

/* Styles pour l'impression */
@media print {
  /* Cacher les éléments non nécessaires pour l'impression */
  header,
  footer,
  .tec3h-contact-buttons,
  .tec3h-image-actions,
  .tec3h-image-navigation,
  .tec3h-image-thumbnails,
  .tec3h-show-more-btn,
  .tec3h-vehicle-contact-form,
  .tec3h-vehicle-similar {
    display: none !important;
  }

  /* Ajuster les marges et la largeur */
  body {
    margin: 0;
    padding: 0;
    width: 100%;
    background-color: white;
  }

  .tec3h-vehicle-single-container {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  /* Forcer l'affichage de tous les équipements */
  .tec3h-vehicle-equipment .tec3h-equipment-grid,
  .tec3h-vehicle-characteristics .tec3h-characteristics-list {
    max-height: none !important;
    overflow: visible !important;
  }

  /* Ajuster la mise en page pour l'impression */
  .tec3h-vehicle-header-content {
    flex-direction: column;
  }

  .tec3h-vehicle-gallery,
  .tec3h-vehicle-info {
    max-width: 100%;
    width: 100%;
  }

  .tec3h-vehicle-main-image {
    height: 300px;
  }

  /* Ajouter un saut de page avant certaines sections */
  .tec3h-vehicle-characteristics,
  .tec3h-vehicle-equipment {
    page-break-before: auto;
  }

  /* Éviter les sauts de page à l'intérieur des sections */
  .tec3h-characteristic-item,
  .tec3h-equipment-item {
    page-break-inside: avoid;
  }

  /* Ajouter l'URL du site en bas de page */
  @page {
    margin: 2cm;
  }

  @page :first {
    margin-top: 1cm;
  }
}
