/* ===================================
   STYLES LISTE DES VÉHICULES
   =================================== */

.vtcad-vehicles-grid {
    display: grid;
    gap: 30px;
    margin: 40px 0;
}

.vtcad-vehicles-grid.vtcad-columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.vtcad-vehicles-grid.vtcad-columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.vtcad-vehicles-grid.vtcad-columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
    .vtcad-vehicles-grid.vtcad-columns-3,
    .vtcad-vehicles-grid.vtcad-columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .vtcad-vehicles-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
}

/* Carte véhicule */
.vtcad-vehicle-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vtcad-vehicle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.vtcad-vehicle-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.vtcad-vehicle-image {
    position: relative;
    width: 100%;
    padding-bottom: 66.67%; /* Ratio 3:2 */
    overflow: hidden;
    background: #f5f5f5;
}

.vtcad-vehicle-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.vtcad-vehicle-card:hover .vtcad-vehicle-image img {
    transform: scale(1.05);
}

.vtcad-vehicle-content {
    padding: 20px;
}

.vtcad-vehicle-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: #222;
}

.vtcad-vehicle-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.vtcad-spec {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.95rem;
    color: #666;
}

.vtcad-icon {
    font-size: 1.1rem;
}

.vtcad-vehicle-price {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
}

.vtcad-vehicle-btn {
    display: inline-block;
    padding: 12px 25px;
    background: #3498db;
    color: #fff;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    transition: background 0.3s ease;
}

.vtcad-vehicle-card:hover .vtcad-vehicle-btn {
    background: #2980b9;
}

.vtcad-no-vehicles {
    text-align: center;
    padding: 60px 20px;
    font-size: 1.1rem;
    color: #999;
}

/* ===================================
   STYLES PAGE DÉTAIL
   =================================== */

.vtcad-vehicle-detail {
    max-width: 1200px;
    margin: 0 auto;
}

.vtcad-vehicle-featured-image {
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
}

.vtcad-vehicle-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.vtcad-vehicle-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 30px 0;
}

.vtcad-vehicle-meta span {
    font-size: 1rem;
    font-weight: 600;
    color: #555;
}

.vtcad-vehicle-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 40px;
}

/* Galerie photos */
.vtcad-vehicle-gallery {
    display: grid;
    gap: 15px;
    margin: 30px 0;
}

.vtcad-vehicle-gallery.vtcad-gallery-columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.vtcad-vehicle-gallery.vtcad-gallery-columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.vtcad-vehicle-gallery.vtcad-gallery-columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {
    .vtcad-vehicle-gallery {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 480px) {
    .vtcad-vehicle-gallery {
        grid-template-columns: 1fr !important;
    }
}

.vtcad-gallery-item {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    padding-bottom: 75%; /* Ratio 4:3 */
}

.vtcad-gallery-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.vtcad-gallery-item:hover img {
    transform: scale(1.1);
}

/* Équipements */
.vtcad-features-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.vtcad-features-list li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    font-size: 1rem;
    color: #555;
}

.vtcad-features-list li:before {
    content: "✓";
    color: #27ae60;
    font-weight: bold;
    margin-right: 10px;
}

.vtcad-features-list li:last-child {
    border-bottom: none;
}

.vtcad-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.vtcad-feature-item {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #555;
}

.vtcad-feature-item:before {
    content: "✓";
    color: #27ae60;
    font-weight: bold;
    margin-right: 8px;
}

/* Bouton réservation */
.vtcad-reservation-btn {
    display: inline-block;
    padding: 18px 40px;
    background: #e74c3c;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    transition: all 0.3s ease;
    margin-top: 30px;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.vtcad-reservation-btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(231, 76, 60, 0.4);
    color: #fff;
}

/* ===================================
   STYLES COMPATIBLES ELEMENTOR
   =================================== */

/* S'assurer que les styles fonctionnent dans Elementor */
.elementor-widget-container .vtcad-vehicles-grid,
.elementor-widget-container .vtcad-vehicle-detail {
    width: 100%;
}

.elementor-widget-container .vtcad-vehicle-card {
    height: 100%;
}

/* Espacement pour Elementor */
.elementor-widget-shortcode {
    margin: 0;
}

/* ===================================
   ANIMATIONS
   =================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vtcad-vehicle-card {
    animation: fadeIn 0.5s ease forwards;
}

.vtcad-vehicle-card:nth-child(1) { animation-delay: 0.1s; }
.vtcad-vehicle-card:nth-child(2) { animation-delay: 0.2s; }
.vtcad-vehicle-card:nth-child(3) { animation-delay: 0.3s; }
.vtcad-vehicle-card:nth-child(4) { animation-delay: 0.4s; }
.vtcad-vehicle-card:nth-child(5) { animation-delay: 0.5s; }
.vtcad-vehicle-card:nth-child(6) { animation-delay: 0.6s; }