.voitures-occasion-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

.voiture-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border: 1px solid #ddd;
}

.voiture-item:hover {
    transform: scale(1.02);
}

.voiture-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.favori-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: white;
    border-radius: 50%;
    padding: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.favori-btn:hover {
    background: #f7a800;
}

.voiture-content {
    padding: 15px;
}

.voiture-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.voiture-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.voiture-details {
    font-size: 12px;
    color: #777;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.voiture-details span {
    background: #f0f0f0;
    padding: 3px 8px;
    border-radius: 5px;
}

.voiture-info {
    width: 100%;;
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 13px;
    color: #555;
}

.voiture-info span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.voiture-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.voiture-price {
    font-size: 22px;
    font-weight: bold;
    color: #f7a800;
}

.voiture-mensuel {
    font-size: 14px;
    color: #666;
}

/* Formulaire de filtre */
.form-label {
    font-weight: bold;
}

/* Liste des véhicules */
.vehicles-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

.vehicle-item {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Pagination */
.pagination {
    margin-top: 20px;
    text-align: center;
}

.pagination a {
    display: inline-block;
    padding: 5px 10px;
    margin: 0 5px;
    background-color: #0073e6;
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
}

.pagination a.active {
    background-color: #005bb5;
}

.pagination a:hover {
    background-color: #005bb5;
}

/* single-vehicule */
.vehicule-details-container {
    display: flex;
    flex-direction: row; 
    align-items: center; /* Center horizontally */
    padding: 20px;
    font-family: sans-serif;
}

.galery {
    width: 50%;
    margin-right: 20px;
    float: left;
}

.voiture-main-image {
    width: 100%;
    margin-bottom: 20px;
}

.voiture-main-image img {
    width: 100%;
    height: auto;
    display: block;
}

.voiture-gallery {
    display: flex;
    gap: 10px; /* Space between images */
    margin-bottom: 20px;
}

.voiture-gallery img {
    width: 150px; /* Adjust as needed */
    height: auto;
    cursor: pointer; /* Indicate clickability */
}

.vehicule-info {
    width: 500px; /* Match main image width */
    margin-bottom: 20px;
}

.vehicule-info h2 {
    margin-bottom: 10px;
}

.vehicule-description {
    width: 500px; /* Match main image width */
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .galery {
        width: 100%;
    }
    .vehicule-details-container {
        flex-direction: column; /* Stack vertically on smaller screens */
    }
    .voiture-main-image, .vehicule-info, .vehicule-description {
        width: 90%; /* Occupy most of the screen width */
    }
    .voiture-gallery img {
        width: 100px;
    }
}