/* ✅ Réinitialisation générale */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

/* ✅ Conteneur principal */
.renthub-container {
    width: 100%;
    max-width: 1400px; /* 🔥 Augmente la largeur max */
    margin: 0 auto;
    padding: 20px;
}

/* ======= 🌍 FORMULAIRE DE RECHERCHE ======= */

/* ✅ Conteneur du formulaire (ÉLARGI & SANS BORDS ARRONDIS) */
.search-form {
    background-color: #ffffff; /* Fond blanc */
    padding: 20px;
    border: 1px solid #ddd;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    justify-content: space-between;
    max-width: 100%; /* 🔥 Prend toute la largeur */
    width: 90vw; /* 🔥 S'adapte au viewport */
    margin: 0 auto; /* 🔥 Centré */
    border-radius: 0px !important; /* ❌ Supprime les bordures arrondies */
}

/* ✅ Supprime les bordures arrondies des champs */
.search-form input,
.search-form select,
.search-form button {
    border-radius: 0px !important;
}

/* ✅ Champs du formulaire */
.search-form .form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ✅ Style des champs */
.search-form input,
.search-form select {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    background: white;
}

/* ✅ Icônes */
.search-form label i {
    color: #007bff; /* 🔥 Bleu */
    margin-right: 5px;
    font-size: 18px; /* 🔥 Taille uniforme */
}

/* ✅ Alignement des champs Date & Heure */
.date-time-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: space-between;
    width: 100%;
}

.date-time-container .form-group {
    flex: 1;
    min-width: 200px; /* 🔥 Empêche que les champs deviennent trop petits */
}

/* ✅ Style du bouton Rechercher */
.search-button {
    background-color: #007bff; /* 🔥 Bleu */
    color: white;
    font-size: 16px;
    font-weight: bold;
    padding: 12px 20px;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
    display: block;
    text-align: center;
    width: auto; /* 🔥 Taille auto sur desktop */
    min-width: 220px; /* 🔥 Évite un bouton trop petit */
    margin: 0 auto; /* 🔥 Centré */
    border-radius: 0px !important; /* ❌ Supprime les bords arrondis */
}

/* ✅ Au survol */
.search-button:hover {
    background-color: #0056b3;
}

/* ======= 📱 RESPONSIVE ======= */
@media screen and (max-width: 1024px) {
    .search-form {
        flex-direction: column;
        width: 100%;
        padding: 15px;
    }

    .date-time-container {
        flex-direction: column;
        gap: 10px;
    }

    .search-button {
        width: 100%; /* 🔥 Pleine largeur sur mobile */
        text-align: center;
        font-size: 18px;
    }
}




/* ✅ Conteneur du récapitulatif */
.summary-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 0px; /* Supprime les bords arrondis */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    max-width: 100%; /* Utilisation de toute la largeur */
    width: 100%;
}

/* ✅ Titre plus grand */
.summary-card h2 {
    font-size: 22px; /* Augmentation de la taille */
    color: #333;
    font-weight: bold;
    margin-bottom: 15px;
    text-align: left; /* Alignement à gauche */
}

/* ✅ Structure du tableau */
.summary-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Deux colonnes */
    gap: 20px;
    width: 100%;
}

/* ✅ Style des textes */
.summary-details p {
    font-size: 16px; /* Légèrement plus grand */
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ✅ Icônes en bleu */
.summary-details p i.fas {
    color: #007bff !important; /* Icônes bleues */
    font-size: 18px; /* Légèrement plus grandes */
}

/* ✅ Mode responsive */
@media (max-width: 768px) {
    .summary-details-grid {
        grid-template-columns: 1fr; /* Passage en colonne unique sur mobile */
    }

    .summary-card h2 {
        font-size: 20px; /* Réduction du titre pour mobile */
        text-align: center;
    }
}




/* ✅ Conteneur principal des véhicules */
.vehicle-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    max-width: 100%;
    margin: 0 auto;
}

/* ✅ Carte du véhicule */
.vehicle-item {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 0px; /* ✅ Suppression des bords arrondis */
    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;
    border: 1px solid #ddd;
    width: 100%;
}

/* ✅ Image du véhicule */
.vehicle-image {
    width: 250px; /* Réduction pour éviter le débordement */
    height: 160px;
    overflow: hidden;
    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.05);
}

/* ✅ Conteneur du prix et du bouton */
.vehicle-price-container {
    background: #007bff; 
    padding: 15px;
    width: 220px; /* Réduction de la largeur */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 0px;
    text-align: center;
}

/* ✅ Prix et durée */
.vehicle-price .price {
    font-size: 20px;
    font-weight: bold;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    text-align: center;
}

.vehicle-price .price i {
    color: #ccc;
    font-size: 22px;
}

.vehicle-price .duration {
    font-size: 14px;
    color: #007bff;
    padding: 8px 12px;
    border-radius: 0px;
    border: 2px solid #007bff;
    background: white;
    display: inline-block;
    text-align: center;
    font-weight: bold;
    width: 100%;
}

/* ✅ Bouton "Réserver" */
.renthub-reserve {
    background: #0056b3;
    color: white;
    border: none;
    padding: 12px 15px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease-in-out;
    width: 100%;
    font-weight: bold;
    text-transform: uppercase;
    margin-top: 10px;
    border-radius: 0px;
    text-align: center;
}

.renthub-reserve:hover {
    background: #003d80;
    transform: scale(1.03);
}

/* ✅ Mode Tablette */
@media (max-width: 1024px) {
    .vehicle-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }

    .vehicle-image {
        width: 90%; /* ✅ Largeur adaptative */
        max-width: 320px;
        height: auto;
    }

    .vehicle-details {
        text-align: center;
        display: flex;
        flex-direction: column;
    }

    .vehicle-price-container {
        width: 100%;
        padding: 12px;
    }

    .vehicle-price .duration {
        font-size: 16px;
        padding: 8px 12px;
    }

    .renthub-reserve {
        width: 100%;
        font-size: 18px;
        padding: 12px 0;
    }
}

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

    .vehicle-image {
        width: 100%;
        max-width: 250px;
    }

    .vehicle-price-container {
        width: 100%;
    }

    .renthub-reserve {
        width: 100%;
        font-size: 18px;
    }
}




/*PAGE RESERVATION*/







/* ✅ Conteneur principal : tout le contenu est dedans */
.renthub-booking {
    width: 95%;
    max-width: 1200px;
    margin: 40px auto;
    padding: 30px;
    background: #ffffff;
    border: 1px solid #ddd;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ✅ Titre */
.renthub-vehicle-info h2 {
    font-size: 26px;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 20px;
}


/* ✅ Résumé de la location */
.vehicle-summary {
    width: 100%;
    padding: 20px;
    background: #e3e3e3;
    border: 1px solid #ddd;
    margin-bottom: 20px;
    font-size: 16px;
}

/* ✅ Services optionnels */
.vehicle-services {
    width: 100%;
    padding: 20px;
    background: #f4f4f4;
    border: 1px solid #ddd;
    margin-bottom: 20px;
}

.service-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    border-bottom: 1px solid #ddd;
}

.service-item:last-child {
    border-bottom: none;
}

/* ✅ Formulaire */
form {
    width: 100%;
    background: #fff;
    padding: 20px;
    border: 1px solid #ddd;
}

/* ✅ Champs en grille */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
}

/* ✅ Cases à cocher */
.checkboxes {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
}

/* ✅ Boutons */
.renthub-button {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: 0.3s ease-in-out;
    text-transform: uppercase;
}

.renthub-button.orange {
    background-color: #f8a600;
    color: white;
}

.renthub-button.blue {
    background-color: #007bff;
    color: white;
}

/* ✅ Espacement entre boutons */
.renthub-button + .renthub-button {
    margin-top: 10px;
}

/* ✅ Responsive */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .vehicle-details-grid {
        flex-direction: column;
    }
}





/*================ERVICES OPTIONNELS*/

/* Conteneur principal */
.vehicle-services {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Espace entre les rangées */
    padding: 20px;
}

/* Rangée de services */
.service-row {
    display: flex;
    justify-content: space-between; /* Répartit les services sur la ligne */
    gap: 20px; /* Espace entre les services */
}

/* Carte de service */
.service-item {
    flex: 1; /* Chaque service prend une part égale de l'espace */
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center; /* Centrage du contenu */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centrage vertical */
    align-items: center; /* Centrage horizontal */
}

/* Contenu du service */
.service-content {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Espace entre les éléments */
    width: 100%; /* Prend toute la largeur */
}

/* Titre du service */
.service-title {
    margin: 0;
    font-size: 20px;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px; /* Espace entre l'icône et le texte */
}

.service-title i {
    font-size: 24px;
    color: #0073e6;
}

/* Prix du service */
.service-rate {
    margin: 0;
    font-size: 18px;
    color: #28a745;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px; /* Espace entre l'icône et le texte */
}

.service-rate i {
    font-size: 20px;
}

/* Sélecteur de quantité */
.service-quantity-control {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px; /* Espace entre le label et le sélecteur */
    width: 100%; /* Prend toute la largeur */
}

.service-quantity-control label {
    font-size: 16px;
    color: #555;
}

.service-quantity {
    padding: 8px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #f9f9f9;
    cursor: pointer;
    width: 80%; /* Largeur du sélecteur */
    max-width: 150px; /* Largeur maximale */
    text-align: center; /* Centrage du texte */
    text-align-last: center; /* Centrage de la dernière ligne (pour les options) */
}

.service-quantity:hover {
    border-color: #0073e6;
}

/* Message "Aucun service disponible" */
.no-services {
    text-align: center;
    font-size: 18px;
    color: #777;
    padding: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .service-row {
        flex-direction: column; /* Une seule colonne sur mobile */
    }

    .service-item {
        padding: 15px;
    }

    .service-title {
        font-size: 18px;
    }

    .service-rate {
        font-size: 16px;
    }

    .service-quantity-control label {
        font-size: 14px;
    }

    .service-quantity {
        padding: 6px;
        font-size: 14px;
    }
}

/*PARTIE OPTIONS SELECTIONNES*/


/* Conteneur principal */
.summary-container {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 20px;
    max-width: 400px; /* Largeur maximale */
    margin: 0 auto; /* Centrage horizontal */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center; /* Centrage du texte */
}

/* Titre */
.summary-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
}

/* Liste des options sélectionnées */
.selected-options {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    text-align: left; /* Alignement à gauche pour la liste */
}

.selected-options li {
    font-size: 16px;
    color: #555;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.selected-options li:last-child {
    border-bottom: none;
}

/* Style des prix */
.price {
    font-size: 18px;
    color: #333;
    margin: 15px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px; /* Espace entre l'icône et le texte */
}

.price i {
    font-size: 20px;
    color: #0073e6;
}

/* Conteneur du prix total (mis en avant) */
.total-price-container {
    background: #f9f9f9;
    border: 1px solid #0073e6;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
}

.total-price-container .price {
    font-size: 22px;
    color: #0073e6;
    font-weight: bold;
}

.total-price-container i {
    color: #28a745; /* Couleur différente pour l'icône du prix total */
}

/* Responsive Design */
@media (max-width: 480px) {
    .summary-container {
        padding: 15px;
    }

    .summary-title {
        font-size: 20px;
    }

    .price {
        font-size: 16px;
    }

    .total-price-container .price {
        font-size: 20px;
    }
}
.summary-container:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}
/* ======= 🌍 FORMULAIRE DE réservation ======= */

/* Conteneur principal */
.page-container {
    display: grid;
    grid-template-columns: 1fr 2fr; /* 1/3 pour l'affiche, 2/3 pour le formulaire */
    gap: 20px; /* Espace entre les colonnes */
    padding: 20px;
    max-width: 1200px; /* Largeur maximale */
    margin: 0 auto; /* Centrage horizontal */
}

/* Affiche des options et prix total */
.summary-container {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: sticky; /* Fixe lors du défilement */
    top: 150px; /* Décalage des pixels vers le bas  */
    height: fit-content; /* Hauteur adaptée au contenu */
}

/* Formulaire de contact */
.form-container {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    /* Suppression du défilement interne */
    overflow-y: visible;
    max-height: none;
}

/* Champs de formulaire */
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 0; /* Bordures carrées */
    font-size: 16px;
    margin-top: 5px;
}

/* Champs indicatif */
.phone-input {
    display: flex;
    gap: 10px; /* Espace entre les éléments */
}

.phone-input select {
    width: 30%; /* Taille réduite à 1/3 */
}

.phone-input input[type="text"],
.phone-input input[type="tel"] {
    flex: 1; /* Prend le reste de l'espace */
}

/* Cases à cocher */
.checkboxes label {
    display: block;
    margin-bottom: 10px;
}

/* Boutons de soumission */
.renthub-button {
    background-color: #0073e6;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 20px;
    width: 100%;
    border-radius: 0; /* Bordures carrées */
}

.renthub-button:hover {
    background-color: #005bb5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-container {
        grid-template-columns: 1fr; /* Une seule colonne sur mobile */
    }

    .summary-container {
        position: static; /* Supprime le sticky sur mobile */
        margin-bottom: 20px;
    }

    /* Un champ par ligne sur mobile */
    .form-grid {
        display: flex;
        flex-direction: column; /* Empile les champs verticalement */
        gap: 15px; /* Espace entre les champs */
    }

    .form-group {
        width: 100%; /* Prend toute la largeur */
    }

    .phone-input {
        flex-direction: column; /* Empile les éléments du groupe téléphone */
        gap: 10px; /* Espace entre les éléments */
    }

    .phone-input select,
    .phone-input input[type="text"],
    .phone-input input[type="tel"] {
        width: 100%; /* Prend toute la largeur */
    }

    .form-group[style*="grid-column: span 2"] {
        grid-column: span 1; /* Réduit la largeur des champs qui prenaient 2 colonnes */
    }
}



.link-highlight {
			        color: #007bff; /* Bleu */
			        text-decoration: underline;
			        font-weight: bold;
			        transition: color 0.3s ease-in-out;
			    }
			
			    .link-highlight:hover {
			        color: #0056b3; /* Bleu plus foncé au survol */
			    }