/* home.css — styles spécifiques à la page d'accueil (index.php).
 * Extrait du bloc <style> inline historique pour bénéficier du cache
 * HTTP et nettoyer le markup HTML. Chargé uniquement sur la home.
 *
 * Couvre : background #Homepage, Formbox, cross-promo Avis Tahiti,
 * boutons go/choose, datepicker override (#ui-datepicker-div),
 * inputs heure (#voldepheure / #volarrheure) et media queries
 * spécifiques à ce layout.
 */

#Homepage {
    padding: 40px 0 60px;
    background-color: #333;
    background-image: url(../img/vehicles/bandeau3.jpg);
    background-image: image-set(url(../img/vehicles/bandeau3.webp) type("image/webp"), url(../img/vehicles/bandeau3.jpg) type("image/jpeg"));
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

.bouton-reserver-container {
    width: 200px;
    height: 28%;
    float: right;
    text-align: right;
    margin-right: 30px;
    text-transform: uppercase;
}
.bouton-reserver-container i {
    font-style: normal;
    color: #121212;
    font-size: 11px;
    letter-spacing: .1em;
    font-weight: 600;
    line-height: 40px;
}
.bouton-reserver-container i:hover { color: #d4002a; }
.bouton-reserver-container .fa {
    bottom: -1px;
    font-size: 15px;
    margin: 0 0 0 10px;
    position: relative;
    color: #d4002a;
}

.go-button {
    background-color: #f03;
    background-image: -webkit-linear-gradient(top, #f03, #d4002a);
    background-image: linear-gradient(to bottom, #f03, #d4002a);
    border: 0;
    color: #fff;
    line-height: 35px;
    padding: 0 20px;
    text-transform: uppercase;
    width: 100%;
    border-radius: 0;
    font-size: 16px;
    font-weight: 500;
    transition: .4s;
    letter-spacing: .05em;
}
.go-button:active,
.go-button:focus,
.go-button:hover {
    background-color: #d2002a;
    color: #fff;
    background-image: -webkit-linear-gradient(top, #d2002a, #a80021);
    background-image: linear-gradient(to bottom, #d2002a, #a80021);
    transition: .4s;
}
.go-button .fa {
    bottom: -2px;
    font-size: 25px;
    margin: 0 0 0 10px;
    position: relative;
}

.choose-button {
    height: 100%;
    width: 70%;
    background-color: #f03;
    background-image: -webkit-linear-gradient(top, #f03, #d4002a);
    background-image: linear-gradient(to bottom, #f03, #d4002a);
    border: 0;
    color: #fff;
    padding: 0 0 10px;
    margin: 10px 0 20px 10px;
    text-transform: uppercase;
    border-radius: 20px;
    font-size: 13px;
    letter-spacing: .1em;
    font-weight: 500;
    transition: .4s;
    -moz-border-radius: 20px;
    -webkit-border-radius: 20px;
}
.choose-button:hover,
.go-button:active,
.go-button:focus {
    background-color: #d2002a;
    color: #fff;
    background-image: -webkit-linear-gradient(top, #d2002a, #a80021);
    background-image: linear-gradient(to bottom, #d2002a, #a80021);
    transition: .4s;
}

.Formbox {
    position: relative;
    background: rgba(0, 0, 0, .75);
    border-left: 30px solid #c40018;
    max-width: 850px;
    margin: 50px auto 0;
    height: 100%;
}

/* Bloc cross-promo Avis Tahiti / Moorea — sous la Formbox sur la home.
   Harmonie visuelle : même max-width que la Formbox, fond noir
   translucide légèrement plus light, accent rouge en bordure droite
   (mirroir de la Formbox qui a son accent à gauche). */
.cross-promo {
    position: relative;
    max-width: 850px;
    margin: 14px auto 0;
    background: rgba(0, 0, 0, .6);
    border-right: 6px solid #c40018;
    border-radius: 2px;
    padding: 14px 22px;
    display: flex;
    align-items: center;
    gap: 18px;
    color: #fff;
    text-decoration: none;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    transition: color .2s;
}
/* On force la couleur sur a:hover pour neutraliser le bleu par défaut
   du browser (et tout règle globale a:hover{color:...} du site).
   Le titre passe en gris clair lisible, le sous-titre reste cohérent. */
.cross-promo:hover,
.cross-promo:focus,
.cross-promo:active {
    color: #e5e5e5;
    text-decoration: none;
}
.cross-promo:hover .cross-promo-text strong { color: #e5e5e5; }
.cross-promo:hover .cross-promo-text span { color: #bdbdbd; }
.cross-promo-icon {
    font-size: 24px;
    color: #ffd24a;
    flex-shrink: 0;
    line-height: 1;
}
.cross-promo-text {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    line-height: 1.4;
}
.cross-promo-text strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .2px;
    margin-bottom: 2px;
    color: #fff;
    transition: color .2s;
}
.cross-promo-text span {
    color: #ccc;
    font-size: 12.5px;
    transition: color .2s;
}
/* CTA harmonisé avec le style des datepicker triggers (.ui-datepicker-trigger,
   #voldepheure) — dégradé charcoal pour rester cohérent avec le reste du
   formulaire au-dessus. Pas de border-radius pour matcher le look "carré"
   industriel du formulaire. */
.cross-promo-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
    padding: 10px 22px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: uppercase;
    white-space: nowrap;
    border: none;
    background: #292929;
    background: -moz-linear-gradient(top, #292929 0, #323232 48%, #232323 51%, #232323 100%, #242424 100%);
    background: -webkit-linear-gradient(top, #292929 0, #323232 48%, #232323 51%, #232323 100%, #242424 100%);
    background: linear-gradient(to bottom, #292929 0, #323232 48%, #232323 51%, #232323 100%, #242424 100%);
    transition: box-shadow .2s, transform .15s;
}
.cross-promo-cta:hover {
    color: #fff;
    text-decoration: none;
    background: #353535;
    box-shadow: inset 0 6em 5em #2b2b2b;
    transform: translateX(2px);
}
.cross-promo-cta i { font-size: 11px; }

@media (max-width: 600px) {
    .cross-promo {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding: 16px;
    }
    .cross-promo-text { text-align: center; }
}

.Formbox .js-date-picker { display: none; }

.Step {
    position: absolute;
    text-align: center;
    font-size: 16px;
    color: #fff;
    left: -20px;
    top: 30px;
}
.line-box {
    position: relative;
    color: #fff;
    height: 90px;
    vertical-align: middle;
    padding: 10px 0 0;
    justify-content: center;
}
.Step_date-title {
    display: inline-block;
    box-sizing: border-box;
    vertical-align: middle;
    text-align: left;
    position: relative;
    padding: 0;
    top: 10px;
}
.Step_date-title span {
    display: inline-block;
    line-height: 15px;
    border-left: 1px solid #c40018;
    color: #ccc;
    margin-left: 20px;
    padding-left: 5px;
    vertical-align: middle;
    font-size: 10px;
    text-transform: uppercase;
}

label {
    display: inline-block;
    cursor: pointer;
    position: relative;
    padding-left: 25px;
    margin-right: 15px;
    font-size: 13px;
}

#Homepage input[type=radio].css-checkbox,
.popup_block input[type=radio].css-checkbox {
    position: absolute;
    z-index: -1000;
    left: -1000px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    height: 1px;
    width: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
}
#Homepage input[type=radio].css-checkbox + label.css-label,
.popup_block input[type=radio].css-checkbox + label.css-label {
    padding-left: 16px;
    margin-left: 20px;
    height: 12px;
    margin-top: 20px;
    display: inline-block;
    line-height: 12px;
    background-repeat: no-repeat;
    background-position: 0 0;
    font-size: 12px;
    vertical-align: middle;
    cursor: pointer;
}
#Homepage input[type=radio].css-checkbox:checked + label.css-label,
.popup_block input[type=radio].css-checkbox:checked + label.css-label {
    background-position: 0 -12px;
}
label.css-label {
    background-image: url(../img/radiobutton.png);
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

#volarrheure,
#voldepheure {
    padding-left: 0;
    display: inline-block;
    font-size: 30px;
    color: #fff;
    text-align: center;
    height: 60px;
    margin-left: 25px;
    width: 100%;
    border: none;
    font-weight: 500;
    box-shadow: none;
    background: #292929;
    background: -moz-linear-gradient(top, #292929 0, #323232 48%, #232323 51%, #232323 100%, #242424 100%);
    background: -webkit-linear-gradient(top, #292929 0, #323232 48%, #232323 51%, #232323 100%, #242424 100%);
    background: linear-gradient(to bottom, #292929 0, #323232 48%, #232323 51%, #232323 100%, #242424 100%);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 0;
}
#volarrheure:hover,
#voldepheure:hover { background: #242424; }

#ui-datepicker-div {
    background: #353535;
    width: 100% !important;
    max-width: 800px;
    min-height: 320px;
    margin: auto;
    padding: 20px 15px;
    position: absolute;
    top: 100px !important;
    box-shadow: 0 0 15px #000;
    z-index: 200;
    border: 1px solid #fff;
    -webkit-animation-duration: 0s;
    -moz-animation-duration: 0s;
    animation-duration: 0s;
    border-radius: 0;
    display: none;
}
.ui-datepicker .ui-datepicker-next,
.ui-datepicker .ui-datepicker-prev {
    color: #b2b2b2;
    font-size: 11px;
    text-transform: uppercase;
    top: 260px;
    width: auto;
}
.ui-datepicker .ui-datepicker-next span,
.ui-datepicker .ui-datepicker-prev span {
    display: inline-block !important;
    position: static !important;
    margin-left: 0;
    width: auto;
    margin-top: 20px;
}
.ui-datepicker .ui-datepicker-prev { text-align: left; }
.ui-datepicker .ui-datepicker-next { text-align: right; }
.ui-datepicker-multi-3 .ui-datepicker-group { min-height: 230px; }
.ui-datepicker .ui-datepicker-next:hover,
.ui-datepicker .ui-datepicker-prev:hover {
    background: #353535;
    color: #fff;
    border: none;
    cursor: pointer;
}
.ui-widget-header {
    border: none !important;
    background: #353535 !important;
    color: #fff !important;
    text-align: center;
}
.ui-datepicker .ui-datepicker-title .ui-datepicker-month {
    text-transform: uppercase;
    font-weight: 700;
}
.ui-datepicker .ui-datepicker-title {
    font-size: 16px;
    letter-spacing: 1px;
    color: #fff;
}
.ui-datepicker .ui-state-disabled {
    color: #b2b2b2;
    border-color: #121212;
}
.ui-datepicker a.ui-state-default {
    border: 1px solid #000;
    color: #fff;
    background: #000;
    text-align: center;
    display: block;
}
.ui-datepicker .is-hover a.ui-state-hover,
.ui-datepicker .ui-datepicker-current-day a.ui-state-active,
.ui-datepicker td a.ui-state-active,
.ui-datepicker td a.ui-state-hover {
    background: #fff;
    border-color: #fff;
    color: #d4002a;
}

.ui-datepicker-trigger {
    display: inline-block;
    margin-top: 10px;
    width: 120px;
    padding: 5px;
    height: 60px;
    border: none;
    float: left;
    background: #292929;
    background: -moz-linear-gradient(top, #292929 0, #323232 48%, #232323 51%, #232323 100%, #242424 100%);
    background: -webkit-linear-gradient(top, #292929 0, #323232 48%, #232323 51%, #232323 100%, #242424 100%);
    background: linear-gradient(to bottom, #292929 0, #323232 48%, #232323 51%, #232323 100%, #242424 100%);
}
.ui-datepicker-trigger:hover {
    background: #353535;
    color: #fff;
    box-shadow: inset 0 6em 5em #2b2b2b;
}

.set-date-time-button {
    width: 120px;
    display: relative;
    color: #fff;
    height: 60px;
    border: none;
    box-shadow: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}
.set-date-time-button:hover { color: #fff; }
.set-date-time-button .day,
.set-date-time-button .hour {
    border-bottom: 0;
    float: left;
    font-size: 31px;
    line-height: 58px;
    overflow: hidden;
    text-align: right;
    text-decoration: none;
    width: 53%;
    font-weight: 700;
}
.set-date-time-button .minute,
.set-date-time-button .smalls {
    border-bottom: 0;
    float: right;
    line-height: 13px;
    padding-top: 15px;
    text-align: left;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 11px;
    width: 43%;
}
.set-date-time-button .minute {
    padding-top: 25px;
    font-size: 17px;
    font-weight: 700;
}
.set-date-time-button .month,
.set-date-time-button .weekday {
    border-bottom: 0;
    display: block;
    text-decoration: none;
}

.is-visually-hidden {
    border: 0;
    clip: rect(0, 0, 0, 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

@media (min-width: 768px) and (max-width: 991px) {
    .Formbox { max-width: 700px; }
    .line-box {
        height: auto;
        min-height: 70px;
        padding: 8px 0;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }
    .line-box .Step_date-title,
    .line-box [class*="col-"] {
        float: none;
        display: inline-flex;
        align-items: center;
        vertical-align: middle;
    }
    .col-md-offset-1 { margin-left: 0 !important; }
    .line-box:last-child .Step_date-title { width: 100%; margin-left: 0 !important; }
}

@media (max-width: 767px) {
    #Homepage { background-image: url(../img/vehicles/bandeau_smart.jpg); }
    #choixvehicule { padding-left: 0; padding-right: 0; }
    #ui-datepicker-div { width: 90% !important; margin: auto; box-sizing: content-box; }
    .sectionreviews { display: none; }
}
