/* Styles pour les shortcodes de véhicules */

/* Styles communs */
.tec3h-search-title,
.tec3h-latest-title,
.tec3h-featured-title,
.tec3h-specs-title {
    font-size: 20px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    color: #333;
}

/* Formulaire de recherche */
.tec3h-vehicle-search-container {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 0px;
    margin-bottom: 30px;
}

.tec3h-vehicle-search-form {
    display: grid;
    gap: 15px;
}

.tec3h-search-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 14px;
}

.tec3h-search-field select,
.tec3h-search-field input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 0px;
}

.tec3h-search-submit {
    background-color: #ff4d4d;
    color: white;
    border: none;
    padding: 12px 15px;
    border-radius: 0px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s;
}

.tec3h-search-submit:hover {
    background-color: #e63939;
}

/* Derniers véhicules */
.tec3h-latest-vehicles-container {
    margin-bottom: 30px;
}

.tec3h-latest-vehicles {
    display: grid;
    gap: 20px;
}

.tec3h-latest-vehicles.tec3h-columns-1 {
    grid-template-columns: 1fr;
}

.tec3h-latest-vehicles.tec3h-columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.tec3h-latest-vehicles.tec3h-columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.tec3h-latest-vehicles.tec3h-columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {
    .tec3h-latest-vehicles.tec3h-columns-2,
    .tec3h-latest-vehicles.tec3h-columns-3,
    .tec3h-latest-vehicles.tec3h-columns-4 {
        grid-template-columns: 1fr;
    }
}

/* Style liste */
.tec3h-latest-vehicles.tec3h-layout-list .tec3h-vehicle-item {
    display: flex;
    background-color: white;
    border-radius: 0px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.tec3h-latest-vehicles.tec3h-layout-list .tec3h-vehicle-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.tec3h-latest-vehicles.tec3h-layout-list .tec3h-vehicle-thumb {
    flex: 0 0 40%;
}

.tec3h-latest-vehicles.tec3h-layout-list .tec3h-vehicle-info {
    flex: 1;
    padding: 15px;
    display: flex;
    flex-direction: column;
}

/* Style grille */
.tec3h-latest-vehicles.tec3h-layout-grid .tec3h-vehicle-item {
    background-color: white;
    border-radius: 0px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.tec3h-latest-vehicles.tec3h-layout-grid .tec3h-vehicle-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.tec3h-latest-vehicles.tec3h-layout-grid .tec3h-vehicle-info {
    padding: 15px;
}

/* Styles communs pour les véhicules */
.tec3h-vehicle-thumb img {
    width: 100%;
    height: auto;
    display: block;
}

.tec3h-vehicle-title {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.3;
}

.tec3h-vehicle-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.tec3h-vehicle-title a:hover {
    color: #ff4d4d;
}

.tec3h-vehicle-price {
    font-weight: 700;
    color: #ff4d4d;
    font-size: 18px;
    margin-bottom: 10px;
}

.tec3h-vehicle-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.tec3h-vehicle-year,
.tec3h-vehicle-mileage,
.tec3h-vehicle-fuel {
    font-size: 13px;
    color: #666;
    background-color: #f5f5f5;
    padding: 4px 8px;
    border-radius: 0px;
}

.tec3h-vehicle-link {
    display: inline-block;
    background-color: #ff4d4d;
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 0px;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.3s;
    margin-top: auto;
    text-align: center;
}

.tec3h-vehicle-link:hover {
    background-color: #e63939;
    color: white;
}

.tec3h-view-all {
    display: block;
    text-align: center;
    padding: 10px;
    background-color: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 0px;
    margin-top: 20px;
    transition: background-color 0.3s;
}

.tec3h-view-all:hover {
    background-color: #e0e0e0;
}

/* Véhicules en promotion */
.tec3h-featured-vehicles-container {
    margin-bottom: 30px;
}

.tec3h-featured-vehicles {
    display: grid;
    gap: 20px;
}

.tec3h-featured-vehicles.tec3h-columns-1 {
    grid-template-columns: 1fr;
}

.tec3h-featured-vehicles.tec3h-columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 768px) {
    .tec3h-featured-vehicles.tec3h-columns-2 {
        grid-template-columns: 1fr;
    }
}

.tec3h-featured-vehicle {
    background-color: white;
    border-radius: 0px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.tec3h-featured-vehicle:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.tec3h-featured-image {
    position: relative;
}

.tec3h-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.tec3h-promo-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ff4d4d;
    color: white;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 0px;
}

.tec3h-featured-content {
    padding: 15px;
}

.tec3h-featured-title {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.3;
}

.tec3h-featured-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.tec3h-featured-title a:hover {
    color: #ff4d4d;
}

.tec3h-featured-prices {
    margin-bottom: 15px;
}

.tec3h-old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 14px;
    margin-right: 10px;
}

.tec3h-new-price {
    font-weight: 700;
    color: #ff4d4d;
    font-size: 18px;
}

.tec3h-featured-button {
    display: block;
    text-align: center;
    background-color: #ff4d4d;
    color: white;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 0px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.tec3h-featured-button:hover {
    background-color: #e63939;
    color: white;
}

/* Spécifications du véhicule */
.tec3h-vehicle-specs-container {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 0px;
    margin-bottom: 30px;
}

.tec3h-vehicle-specs-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.tec3h-vehicle-spec-item {
    display: flex;
    flex-direction: column;
    background-color: white;
    padding: 10px;
    border-radius: 0px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.tec3h-spec-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.tec3h-spec-value {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.tec3h-vehicles-list .tec3h-vehicle-item {
    display: flex;
    background-color: white;
    border-radius: 0px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 220px; /* Hauteur fixe pour uniformiser les cartes */
    margin: 10px !important;
}

.tec3h-vehicles-list .tec3h-vehicle-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Image pleine hauteur */
.tec3h-vehicles-list .tec3h-vehicle-image {
    flex: 0 0 35%;
    position: relative;
    height: 100%;
}

.tec3h-vehicles-list .tec3h-vehicle-image a {
    display: block;
    height: 100%;
}

.tec3h-vehicles-list .tec3h-vehicle-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Contenu du véhicule */
.tec3h-vehicles-list .tec3h-vehicle-content {
    flex: 1;
    padding: 15px;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Titre du véhicule */
.tec3h-vehicles-list .tec3h-vehicle-title {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.3;
}

.tec3h-vehicles-list .tec3h-vehicle-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.tec3h-vehicles-list .tec3h-vehicle-title a:hover {
    color: #FFCC33; /* Jaune Renault */
}

/* Prix du véhicule */
.tec3h-vehicles-list .tec3h-vehicle-price {
    font-weight: 700;
    color: #0C2340; /* Bleu Renault */
    font-size: 20px;
    margin-bottom: 15px;
}

/* Spécifications du véhicule */
.tec3h-vehicles-list .tec3h-vehicle-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
    position: relative;
    padding-right: 30px; /* Espace pour le chevron */
}

.tec3h-vehicles-list .tec3h-vehicle-spec {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #666;
    background-color: #f5f5f5;
    padding: 4px 8px;
    border-radius: 0px;
}

/* Chevron pour voir le détail */
.tec3h-vehicles-list .tec3h-vehicle-chevron {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #FFCC33; /* Jaune Renault */
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s, color 0.3s;
}

.tec3h-vehicles-list .tec3h-vehicle-chevron:hover {
    background-color: #FFCC33; /* Jaune Renault */
    color: #0C2340; /* Bleu Renault */
}

.tec3h-vehicles-list .tec3h-chevron-icon {
    width: 16px;
    height: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .tec3h-vehicles-list .tec3h-vehicle-item {
        height: auto;
        flex-direction: column;
    }
    
    .tec3h-vehicles-list .tec3h-vehicle-image {
        flex: 0 0 200px;
        width: 100%;
    }
    
    .tec3h-vehicles-list .tec3h-vehicle-specs {
        margin-bottom: 30px;
    }
    
    .tec3h-vehicles-list .tec3h-vehicle-chevron {
        bottom: 0;
        top: auto;
        right: 10px;
        transform: none;
    }
}
/* Styles pour le slider de prix */
.tec3h-price-slider-container {
    margin-top: 10px;
}

.tec3h-price-values {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--tec3h-secondary-color);
}

.tec3h-price-slider-wrapper {
    padding: 0 10px;
    margin-bottom: 20px;
}

/* Personnalisation du slider jQuery UI aux couleurs Renault */
.ui-slider {
    height: 6px !important;
    border: none !important;
    background: #e0e0e0 !important;
    border-radius: 0px !important;
    position: relative;
}

.ui-slider .ui-slider-range {
    background: var(--renault-yellow) !important;
    height: 6px;
    border-radius: 0px;
}

.ui-slider .ui-slider-handle {
    width: 20px !important;
    height: 20px !important;
    border-radius: 50% !important;
    background: var(--renault-blue) !important;
    border: 2px solid var(--renault-yellow) !important;
    top: -7px !important;
    cursor: pointer !important;
    outline: none !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    transition: background 0.3s;
}

.ui-slider .ui-slider-handle:hover,
.ui-slider .ui-slider-handle:active {
    background: var(--renault-yellow) !important;
    border-color: var(--renault-blue) !important;
}

/* Styles pour le formulaire de recherche */
.tec3h-search-container {
    background-color: white;
    border-radius: 0px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.tec3h-search-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.tec3h-search-field {
    flex: 1;
}

.tec3h-search-field-wide {
    flex: 2;
}

.tec3h-search-field-full {
    flex: 0 0 100%;
}

.tec3h-search-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--tec3h-secondary-color);
}

/* Amélioration des styles pour les menus déroulants */
.tec3h-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 0px;
    background-color: white;
    font-size: 15px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230C2340' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
    padding-right: 40px;
    cursor: pointer;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.tec3h-select:hover {
    border-color: var(--renault-yellow);
}

.tec3h-select:focus {
    border-color: var(--renault-yellow);
    box-shadow: 0 0 0 2px rgba(255, 204, 51, 0.2);
    outline: none;
}

/* Styles pour les options des menus déroulants */
.tec3h-select option {
    padding: 10px;
    font-size: 15px;
}

.tec3h-search-submit {
    width: 100%;
    padding: 14px 20px;
    background-color: var(--renault-yellow);
    color: var(--renault-blue);
    border: none;
    border-radius: 0px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tec3h-search-submit:hover {
    background-color: var(--renault-blue);
    color: var(--renault-yellow);
}

/* Optimisation pour les appareils mobiles */
@media (max-width: 768px) {
    .tec3h-search-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .tec3h-search-container {
        padding: 15px;
    }
    
    .tec3h-select {
        font-size: 16px; /* Taille de police plus grande pour mobile */
        padding: 14px 15px; /* Zone de toucher plus grande */
        height: 50px; /* Hauteur fixe pour une meilleure zone de toucher */
    }
    
    .tec3h-search-submit {
        padding: 16px 20px; /* Bouton plus grand sur mobile */
        font-size: 16px;
    }
    
    /* Amélioration de l'affichage du slider sur mobile */
    .ui-slider .ui-slider-handle {
        width: 24px !important;
        height: 24px !important;
        top: -9px !important;
    }
    
    .tec3h-price-values {
        font-size: 15px;
    }
}

/* Correction pour Safari et iOS */
@supports (-webkit-touch-callout: none) {
    .tec3h-select {
        background-color: white;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230C2340' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 15px center;
        background-size: 12px;
    }
}
/* Styles pour les sliders de prix et kilométrage */
.tec3h-search-container {
  max-width: 100%;
  margin: 0 auto 30px;
  padding: 20px;
  background-color: #f8f8f8;
  border-radius: 0px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tec3h-search-row {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 15px;
  gap: 15px;
}

.tec3h-search-field {
  flex: 1;
  min-width: 200px;
}

.tec3h-search-field-wide {
  flex: 2;
  min-width: 300px;
}

.tec3h-search-field-full {
  flex: 0 0 100%;
}

.tec3h-search-field label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: #333;
}

.tec3h-select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 0px;
  background-color: #fff;
}

.tec3h-price-slider-container,
.tec3h-mileage-slider-container {
  padding: 10px 0;
}

.tec3h-price-values,
.tec3h-mileage-values {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-weight: 500;
}

.tec3h-price-slider-wrapper,
.tec3h-mileage-slider-wrapper {
  padding: 0 10px;
  margin-bottom: 10px;
}

.ui-slider {
  height: 6px;
  background: #e0e0e0;
  border: none;
  border-radius: 0px;
}

.ui-slider .ui-slider-range {
  background: #ffcc00;
}

.ui-slider .ui-slider-handle {
  width: 18px;
  height: 18px;
  background: #fff;
  border: 2px solid #ffcc00;
  border-radius: 50%;
  cursor: pointer;
  top: -7px;
}

.tec3h-search-submit {
  width: 100%;
  padding: 12px;
  background-color: #ffcc00;
  color: #333;
  border: none;
  border-radius: 0px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}

.tec3h-search-submit:hover {
  background-color: #e6b800;
}

/* Responsive */
@media (max-width: 768px) {
  .tec3h-search-field {
    flex: 0 0 100%;
  }

  .tec3h-search-field-wide {
    flex: 0 0 100%;
  }
}
