@import url(https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.5/font/bootstrap-icons.css);

/* ==========================================
   1. RÈGLES GÉNÉRALES / LAYOUT
   ========================================== */
section {
    padding: 32px 0;
}

figure {
    margin: 0;
}

a {
    color: #000000;
    text-decoration: none;
    background-color: transparent;
}

.h-100 {
    height: 100%;
}

.h-200 {
    height: 220px;
}

.mt-auto {
    margin-top: auto !important;
}

.mt-4 {
    margin-top: 24px;
}

.mb-4, .my-4 {
    margin-bottom: 24px !important;
}

.mr-2 {
    margin-right: 10px;
}

.mv-4 {
    margin-left: 30px !important;
}

.pr-1, .px-1 {
    padding-right: 4px !important;
}

.p-2, .tab-content {
    padding: 12px;
}

.p-md-3 {
    padding: 16px !important;
}

.flex-column, .flex-colmun {
    flex-direction: column;
}

/* ==========================================
   2. TYPOGRAPHIE
   ========================================== */
h6 {
    font-size: 16px;
    font-weight: 600;
}

.text-dark {
    color: #000000 !important;
}

.text-muted {
    color: #6c757d !important;
}

.font-weight-bold {
    font-weight: 700;
}

.font-weight-600 {
    font-weight: 600;
}

.fs-10 {
    font-size: 25px;
}

.fs-18 {
    font-size: 18px;
}

.titreModele {
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: 600;
    line-height: 1.5;
}

.text-color {
    color: var(--color-site-2) !important;
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 10px;
}

/* ==========================================
   3. ÉLÉMENTS DU THÈME / BANNER
   ========================================== */
.banner, .banner img, .h-200 {
    object-fit: cover;
    width: 100%;
}

.banner, .banner img {
    position: relative;
    background-size: cover;
    background-position: center center;
}

.bg-head-color {
    background: var(--color-site-2);
    color: #ffffff;
}

.bg-color-theme {
    background-color: #ffffff;
    border: 3px solid var(--color-site-1);
    border-top: none;
}

/* ==========================================
   4. COMPOSANTS DE RECHERCHE / FILTRES
   ========================================== */
.body-location {
    padding-top: 0;
}

.body-location .filter {
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.filter [class*=col-lg], .filter [class*=col-xs] {
    padding-right: 5px;
    padding-left: 5px;
}

.body-location .nav {
    display: flex;
    flex-wrap: wrap;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
}

.body-location .nav-tabs {
    border-bottom: none;
}

.body-location .nav-tabs .nav-link.active {
    background-color: #ffbc63;
    border: 1px solid #ffbc63;
}

.body-location .form-control {
    width: 100%;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #ffffff;
    border: 1px solid #ced4da;
    border-radius: 55px 0 55px 55px;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    background-clip: inherit;
    height: 55px !important;
    display: block;
}

.body-location .form-control:focus, .body-location .form-control:hover {
    color: #495057;
    background-color: #ffffff;
    border: 2px solid #80bdff;
    outline: 0;
}

.form-control[readonly] {
    background: #ffffff;
}

.checkin-wrapper {
    border-radius: 25px 0 25px 25px;
}

.body-location #btnSearch {
    font-weight: 500;
    user-select: none;
    padding: 6px 12px;
    font-size: 16px;
    background-color: var(--color-site-1);
    transition: color .15s ease-in-out;
    width: 125%;
    margin-top: 20px;
    height: 55px !important;
    border-radius: 55px 0 55px 55px;
    vertical-align: middle;
    border: 1px solid transparent;
    text-align: center;
}

.body-location #btnSearch:hover {
    color: var(--color-site-1);
    background-color: #ffffff;
    border: 1px solid var(--color-site-1);
}

.body-location .h-60 {
    height: 60px;
}

.body-location .pt-30 {
    padding-top: 32px;
}

.body-location .text-color-theme {
    color: var(--color-site-1) !important;
}

/* ==========================================
   5. CARDS / RÉSULTATS (item_car)
   ========================================== */
.body-location .card {
    position: relative;
    display: flex;
    flex-direction: column;
    word-wrap: break-word;
    background-color: #ffffff;
    background-clip: border-box;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius) !important;
    padding: 10px;
}

.body-location .shadow {
    box-shadow: 0px 1px 4px 0px rgba(0, 0, 0, 0.1) !important;
}

.card.shadow.p-2 {
    border: 1px solid var(--color-site-2);
    margin-bottom: 25px;
}

.card.border .card-body {
    padding: 20px !important;
    border: 1px solid var(--color-site-2);
}

.item_car:hover {
    box-shadow: 0px 3px 5px 2px #f7f8fc;
    border: 2px solid #ffbc63;
}

.item_car:hover .bg-light {
    background-color: var(--color-site-1) !important;
}

.card .fa-road, .card i.bi {
    color: var(--color-site-1);
}

.body-location .list-inline {
    padding-left: 0;
    list-style: none;
}

.list-inline-item:not(:last-child) {
    margin-right: 8px;
}

/* ==========================================
   6. COMPOSANTS DE PRIX & INFOS
   ========================================== */
.price-unitaire span {
    font-size: 16px;
    font-weight: 600;
}

.price-unitaire h6, .price-totale h6 {
    color: #000000;
    margin-bottom: 5px;
}

.price-totale span {
    color: #000000;
    font-weight: 600;
    font-size: 20px;
}

.title-card-price {
    font-weight: 600;
    font-size: 16px;
    color: #000000;
}

.price-box {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 8px 12px;
    color: #ffffff;
    font-size: 16px;
    background-color: rgba(0, 0, 0, 0.6);
    width: 100%;
}

.col-xs-7.control-label, .span-montant {
    font-weight: 600;
    font-size: 14px;
    color: var(--color-site-1);
}

.my-total, .my-total #total {
    font-weight: 600;
    font-size: 18px;
    color: var(--color-site-1);
}

.body-location .btn-reserve {
    background-color: var(--color-site-2);
    display: inline-block;
    font-weight: 400;
    color: #ffffff;
    user-select: none;
    line-height: 1.5;
    box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);
    transition: box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    width: 100%;
    font-size: 15px;
    vertical-align: middle;
    border: 1px solid transparent;
    text-align: center;
    border-radius: var(--border-radius);
}

.body-location .btn-reserve:hover {
    background-color: #ffffff;
    border: 1px solid var(--color-site-2);
    color: var(--color-site-2);
}

.body-location .btn-block {
    display: block;
    width: 100%;
}

.btn-light {
    color: #212529;
    background-color: #e1e1e1;
    border-color: #e1e1e1;
}

/* ==========================================
   7. BADGES & MISC FORM CONTROLS
   ========================================== */
.body-location .badge {
    display: inline-block;
    padding: 4px 6px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: var(--border-radius);
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.body-location .badge-warning {
    color: #212529;
    background-color: #ffc107;
}

.body-location .bg-light {
    background-color: #ebebeb !important;
    padding: 12px;
    border-radius: var(--border-radius);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.bg-light > * {
    font-size: 12px;
    font-weight: 500;
    width: 100%;
}

.body-location .rounded-25, .rounded-25 {
    border-radius: 25px;
}

.step.info-detail h6 {
    margin: 10px 0;
}

.alert.alert-danger h6 {
    margin: 0;
}

.input-group-text {
    padding: 4px 5px;
}

.input-mobile::before {
    font-size: 19px;
}

.label, .switch-label {
    display: inline-block;
}

.switch-label {
    display: block;
}

.info-conducteur {
    margin-bottom: 20px;
}

#optionsService .group-input {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom:10px
}

/* ==========================================
   8. PAGES D'ERREUR
   ========================================== */
.error-page {
    text-align: center;
    background: transparent;
    border-top: 1px solid #eeeeee;
}

.error-page .error-inner {
    display: block;
}

.error-page .error-inner h1 {
    font-size: 140px;
    text-shadow: 3px 5px 2px rgba(33, 33, 33, 0.2);
    color: #006dfe;
    font-weight: 700;
}

.error-page .error-inner h1 span {
    display: block;
    font-size: 25px;
    color: #333333;
    font-weight: 600;
    text-shadow: none;
}

.error-page .error-inner p {
    padding: 20px 15px;
}

.error-page .search-form {
    width: 100%;
    position: relative;
}

.error-page .search-form input {
    width: 400px;
    height: 50px;
    padding: 0 78px 0 30px;
    border: none;
    background: #f6f6f6;
    border-radius: 5px;
    display: inline-block;
    margin-right: 10px;
    font-weight: 400;
    font-size: 14px;
}

.error-page .search-form input:hover {
    padding-left: 35px;
}

.error-page .search-form .btn {
    width: 80px;
    height: 50px;
    border-radius: 5px;
    cursor: pointer;
    background: #006dfe;
    display: inline-block;
    position: relative;
    top: -2px;
}

.error-page .search-form .btn i {
    font-size: 16px;
}

.error-page .search-form .btn:hover {
    background: #333333;
}

/* External Vendors Fallback */
.daterangepicker td.active, .daterangepicker td.active:hover {
    background-color: var(--color-site-1) !important;
}

/* ==========================================
   9. MEDIA QUERIES (RESPONSIVE)
   ========================================== */
@media only screen and (min-width: 992px) {
    .card.mb-4.shadow.item_car > .row {
        display: flex !important;
        flex-wrap: wrap !important;
        margin-right: -15px !important;
        margin-left: -15px !important;
    }
}

@media only screen and (max-width: 992px) {
    .body-location #btnSearch {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .item_car .list-inline > li a.text-body {
        font-size: 12px !important;
    }
    
    .h-200 {
        object-fit: contain;
    }
}

/* --- Style spécifique pour le bloc conducteur et ses widgets --- */
.step.info-detail {
    font-family: var(--font);
}

.step.info-detail .control-label {
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 6px;
    display: inline-block;
}

.step.info-detail .obligatoire {
    color: var(--danger-500);
}

/* Harmonisation des champs de saisie et selects */
.step.info-detail .form-control {
    height: 50px !important;
    padding: 10px 15px;
    font-size: 14px;
    font-family: var(--font);
    color: #495057;
    background-color: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    box-shadow: none;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.step.info-detail select.form-control {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232764ae' 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 12px center;
    background-size: 16px;
    padding-right: 35px;
}

.step.info-detail .form-control:focus, 
.step.info-detail .form-control:hover {
    border-color: var(--color-site-3);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(42, 158, 209, 0.15);
}

/* Espacement vertical des lignes et des champs */
.step.info-detail .row {
    margin-left: -10px;
    margin-right: -10px;
}

.step.info-detail .row > [class*="col-"] {
    padding-left: 10px;
    padding-right: 10px;
    margin-bottom: 16px;
}

/* Gestion des icônes intégrées dans les inputs */
.step.info-detail .input-icon input {
    padding-left: 45px !important;
}

.step.info-detail .input-icon {
    position: relative;
}


/* Blocs d'alertes (Conditions de location, annulation, tarif inclus) */
.step.info-detail .alert {
    border-radius: var(--border-radius);
    padding: 20px;
    margin-top: 20px;
    margin-bottom: 0;
    border: 1px solid transparent;
    font-family: var(--font);
}

.step.info-detail .alert h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
}

.step.info-detail .alert-success {
    background-color: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.step.info-detail .alert-success h4 {
    color: #15803d;
}

.step.info-detail .alert-danger {
    background-color: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.step.info-detail .alert-danger h4 {
    color: #b91c1c;
}

.step.info-detail .alert ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.step.info-detail .alert ul li {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 8px;
}

.step.info-detail .alert ul li:last-child {
    margin-bottom: 0;
}

.step.info-detail .alert label {
    font-weight: normal;
    cursor: default;
    display: inline;
}

/* --- Style spécifique pour la carte de réservation et récapitulatif --- */
.card.shadow {
    font-family: var(--font);
    background-color: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    overflow: hidden;
}

/* En-tête de la carte */

.card .group-input {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background-color: #f8fafc;
    border: 1px solid var(--color-border);
    padding: 10px 12px;
    border-radius: var(--border-radius);
}

.card .group-input input[type="checkbox"] {
    margin-top: 3px;
    accent-color: var(--color-site-3);
}

.card .group-input label {
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
    cursor: pointer;
    flex: 1;
}

.card .group-input label span {
    font-weight: normal;
    color: #718096;
    display: block;
    font-size: 13px;
}

/* Bloc Montant à payer / Récapitulatif financier */
.card .bg-light {
    background-color: #f8fafc !important;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 12px !important;
    
}

.card .bg-light .col-xs-8,
.card .bg-light .col-xs-4 {
    display: inline-block;
    font-size: 14px;
    color: #4a5568;
    padding-bottom: 6px;
}

.card .bg-light .col-xs-8 {
    width: 65%;
}

.card .bg-light .col-xs-4 {
    width: 33%;
    text-align: right;
    font-weight: 600;
}

/* Montant total TTC mis en valeur */
.card .mt-2 .col-xs-12.p-0 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #edf2f7;
    border: 1px solid #cbd5e0;
    padding: 12px 15px !important;
    border-radius: var(--border-radius);
    margin-top: 10px;
}




