<style>
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css');

.vehicle-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    max-width: 1300px;
    margin: 0 auto;
}

/* Carte du véhicule */
.vehicle-item {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    padding: 15px;
    gap: 20px;
    position: relative;
}

.vehicle-item:hover {
    transform: translateY(-5px);
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.2);
}

/* Image du véhicule */
.vehicle-image {
    width: 280px;
    height: 180px;
    overflow: hidden;
    border-radius: 8px;
    position: relative;
    flex-shrink: 0;
}

.vehicle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.vehicle-item:hover .vehicle-image img {
    transform: scale(1.1);
}

/* Détails du véhicule */
.vehicle-details {
    flex: 1;
    text-align: left;
}

.vehicle-details h3 {
    font-size: 20px;
    color: #333333;
    margin-bottom: 8px;
    font-weight: bold;
}

.vehicle-details p {
    font-size: 14px;
    color: #666666;
    margin: 3px 0;
    display: flex;
    align-items: center;
}

.vehicle-details p i {
    color: #e60000;
    margin-right: 8px;
}

/* Prix et durée (droite) */

.vehicle-price {
    text-align: right;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
}

/* 🏷️ Prix modernisé */
.vehicle-price .price {
    background: #e60000;
    color: #ffffff;
    font-size: 26px;
    font-weight: bold;
    padding: 12px 18px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease-in-out;
}

.vehicle-price .price:hover {
    transform: scale(1.05);
}

/* Icône devant le prix */
.vehicle-price .price i {
    font-size: 20px;
    color: #fff;
}

/* Durée de location */
.vehicle-price .duration {
    font-size: 18px;
    color: #666666;
    margin-top: 8px;
}s

.renthub-reserve {
    background: #e60000;
    color: #ffffff;
    border: none;
    padding: 12px 18px;
    font-size: 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
    font-weight: bold;
    text-transform: uppercase;
    margin-top: 10px;
}

.renthub-reserve:hover {
    background: #cc0000;
}

/* Mode Mobile (Affichage en colonne) */
@media (max-width: 768px) {
    .vehicle-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .vehicle-details {
        text-align: center;
        width: 100%;
    }

    .vehicle-price {
        width: 100%;
        text-align: center;
    }
}

/* 📱 Sur mobile, le bouton s'étend en pleine largeur */
@media (max-width: 768px) {
    .vehicle-price {
        text-align: center;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .vehicle-price .price {
        font-size: 24px; /* Taille légèrement réduite pour mobile */
        padding: 10px 16px;
    }

    .renthub-reserve {
        width: 100%; /* 🌟 Pleine largeur */
        max-width: 320px; /* Optionnel pour limiter la taille sur grand mobile */
        font-size: 18px;
        padding: 12px 0;
        background: #e60000; /* Rouge vif */
        color: white;
        border: none;
        border-radius: 6px;
        font-weight: bold;
        cursor: pointer;
        transition: background 0.3s ease, transform 0.2s ease-in-out;
    }

    .renthub-reserve:hover {
        background: #cc0000; /* Rouge légèrement plus foncé au survol */
        transform: scale(1.03);
    }
}

/* 📱 Centrage des caractéristiques du véhicule sur mobile */
@media (max-width: 768px) {
    .vehicle-details {
        text-align: center; /* 🌟 Centre le texte */
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px; /* Espacement entre les lignes */
    }

    .vehicle-details h3 {
        font-size: 22px; /* Ajustement du titre */
        margin-bottom: 10px;
    }

    .vehicle-details p {
        font-size: 16px;
        margin: 2px 0;
    }
}


</style>