﻿/*
 * Styles du site, sur Bootstrap 5.3 et le thème Kendo UI Bootstrap (2026).
 * La couleur de chaque site (COULEUR1) est appliquée dans _Layout.cshtml par variables CSS.
 */

body {
    font-family: Circular, -apple-system, BlinkMacSystemFont, Roboto, Helvetica Neue, sans-serif;
    font-size: 14px;
    line-height: 1.43;
    color: #222;
}

html, body {
    height: 100%;
}

body {
    min-height: 100%;
}

/* Bootstrap 3 ne soulignait les liens qu'au survol. */
a {
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/*
 * Couleur par défaut d'un site sans COULEUR1 : le bleu de Bootstrap 3.3.7 (#337ab7), comme
 * l'ancienne version, au lieu du bleu de Bootstrap 5 / Kendo 2026 (#0d6efd). Quand COULEUR1
 * est renseignée, le bloc <style> de _Layout.cshtml, chargé après ce fichier, l'emporte.
 */
:root {
    --site-color: #337ab7;
    --bs-primary: #337ab7;
    --bs-primary-rgb: 51, 122, 183;
    --bs-link-color: #337ab7;
    --bs-link-color-rgb: 51, 122, 183;
    --bs-link-hover-color: #23527c;
    --bs-link-hover-color-rgb: 35, 82, 124;
    --kendo-color-primary: #337ab7;
    --kendo-color-primary-hover: #286090;
    --kendo-color-primary-active: #204d74;
    --kendo-color-primary-emphasis: #337ab7;
}

.btn-primary {
    --bs-btn-bg: #337ab7;
    --bs-btn-border-color: #2e6da4;
    --bs-btn-hover-bg: #286090;
    --bs-btn-hover-border-color: #204d74;
    --bs-btn-focus-shadow-rgb: 51, 122, 183;
    --bs-btn-active-bg: #204d74;
    --bs-btn-active-border-color: #122b40;
    --bs-btn-disabled-bg: #337ab7;
    --bs-btn-disabled-border-color: #2e6da4;
}

/*
 * Boutons et champs à la taille de Bootstrap 3.3.7 : Bootstrap 5 les passe en 1rem (16px) avec
 * un line-height de 1.5, soit ~38px de haut au lieu de 34px (48px au lieu de 46px en btn-lg).
 */
.btn {
    --bs-btn-padding-x: 12px;
    --bs-btn-padding-y: 6px;
    --bs-btn-font-size: 14px;
    --bs-btn-line-height: 1.42857143;
    --bs-btn-border-radius: 4px;
}

.btn-lg, .btn-group-lg > .btn {
    --bs-btn-padding-x: 16px;
    --bs-btn-padding-y: 10px;
    --bs-btn-font-size: 18px;
    --bs-btn-line-height: 1.3333333;
    --bs-btn-border-radius: 6px;
}

.btn-sm, .btn-group-sm > .btn {
    --bs-btn-padding-x: 10px;
    --bs-btn-padding-y: 5px;
    --bs-btn-font-size: 12px;
    --bs-btn-line-height: 1.5;
    --bs-btn-border-radius: 3px;
}

.form-control, .form-select {
    font-size: 14px;
    line-height: 1.42857143;
}

.pagination {
    --bs-pagination-active-bg: #337ab7;
    --bs-pagination-active-border-color: #337ab7;
}

/* Titres à l'échelle de Bootstrap 3.3.7 (px fixes), Bootstrap 5 les agrandit (rem + vw). */
h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6 {
    line-height: 1.1;
}

h1, .h1, h2, .h2, h3, .h3 {
    margin-top: 20px;
    margin-bottom: 10px;
}

h4, .h4, h5, .h5, h6, .h6 {
    margin-top: 10px;
    margin-bottom: 10px;
}

h1, .h1 { font-size: 36px; }
h2, .h2 { font-size: 30px; }
h3, .h3 { font-size: 24px; }
h4, .h4 { font-size: 18px; }
h5, .h5 { font-size: 14px; }
h6, .h6 { font-size: 12px; }

footer {
    padding-left: 5px;
}

button:focus, input[type=button], input[type=submit] {
    outline: 0 !important;
}

/* ---- Composants Bootstrap 3 encore utilisés par les gabarits (absents de Bootstrap 5) ---- */

.thumbnail {
    display: block;
    position: relative;
    padding: 4px;
    margin-bottom: 20px;
    line-height: 1.43;
    color: inherit;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: border .2s ease-in-out;
}

a.thumbnail:hover, a.thumbnail:focus {
    color: inherit;
    text-decoration: none;
}

.thumbnail .caption {
    padding: 9px;
    color: #333;
    min-height: 200px;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.well {
    min-height: 20px;
    padding: 19px;
    margin-bottom: 20px;
    background-color: #f5f5f5;
    border: 1px solid #e3e3e3;
    border-radius: 4px;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .05);
}

/* ---- Kendo UI ---- */

.k-list {
    white-space: nowrap;
}

#destination-list.k-list-container {
    width: auto !important;
}

div.k-window-content {
    overflow: hidden;
}

/* ListView Kendo 2026 : les éléments sont rendus dans .k-listview-content, qui sert de ligne de grille. */
.lot-list .k-listview-content {
    display: flex;
    flex-wrap: wrap;
}

.lot-list, .lot-list.k-listview, #list-facturation, #list-comptes {
    border: 0;
    box-shadow: none;
}

.list-item {
    padding-left: .75rem;
    padding-right: .75rem;
}

/* ---- Recherche ---- */

#result {
    visibility: hidden;
    position: absolute;
    top: 220px;
    bottom: 0;
    right: 0;
    left: 0;
}

#search-container {
    width: 66% !important;
    position: absolute;
    bottom: 0;
    top: 0;
    overflow: auto;
}

#search-body {
    display: flex;
    flex-direction: column;
    justify-content: end;
    padding-top: 30px;
}

#search-speciale, #search-body {
    padding-left: 30px;
    padding-right: 30px;
}

#search-speciale {
    position: relative;
    min-height: 400px;
}

#list-cdc-pager, #list-promotions-pager {
    display: none;
}

#map {
    position: fixed !important;
    top: 220px !important;
    bottom: 0px !important;
    right: 0px !important;
    display: block !important;
    left: auto !important;
    width: 34% !important;
}

#form-search {
    position: relative;
}

#form-search .form-control,
#form-search .k-input,
#form-search .k-picker {
    font-size: 15px;
    height: 48px;
}

#form-search label[for=destination],
#form-search label[for=dates],
#form-search label[for=occupants],
#form-search #b-rechercher {
    font-size: 16px;
    font-weight: normal;
}

/* Comme l'ancienne version : largeur du texte + padding 13px. Le line-height de 20px donne 48px de haut, la hauteur des champs. */
#form-search #b-rechercher {
    padding: 13px;
    line-height: 20px;
}

#search-panel {
    background-color: transparent;
}

.list-lot-item > * {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.price-night {
    font-size: 11pt;
    padding-top: 4px;
    padding-left: 5px;
    position: absolute;
}

.a-plus {
    position: absolute;
    bottom: 0;
    right: 0;
    color: #808080;
}

.a-plus .bi {
    font-size: smaller;
}

.div-img {
    height: 242px;
    position: relative;
}

.rating-xs {
    font-size: 1.5em;
}

.rating-container .filled-stars {
    color: #2e6da4;
}

.div-rating {
    position: absolute;
    right: 5px;
    top: 0;
}

.div-rating-promo {
    text-align: right;
}

.price-container {
    display: inline-block;
    padding: 5px 10px;
    color: #fff;
    background-color: #333;
    margin-top: 0;
}

.lot-lbl-3 {
    color: #686868;
    min-height: 3em;
}

.no-price {
    visibility: hidden;
}

.no-search-result #map, .no-search-result #search-container {
    visibility: hidden;
}

#no-search-result-message {
    display: none;
}

.no-search-result #no-search-result-message {
    display: block;
}

/* Carrousel d'accueil (sliders du site) */

.home-display #slider, #search-body.home-display, .slide-overlay.home-display, #search-overlay .carousel-inner,
.div-slider-img {
    height: 500px;
}

#search-overlay .carousel-inner img {
    max-height: 500px;
}

.slide-overlay {
    background-color: rgba(0,0,0,0.6);
    position: absolute;
    width: 100%;
}

.home-display #form-search {
    background: rgb(255 255 255 / 80%);
    padding: 10px;
}

#search-overlay {
    display: none;
}

#search-overlay.home-display {
    display: block;
}

@media screen and (min-width: 768px) {
    #search-overlay .carousel-indicators {
        bottom: 120px;
    }
}

.slider-headline {
    position: absolute;
    width: 100%;
    top: 50%;
}

.slider-headline-action {
    margin-top: 10px;
    margin-bottom: 10px;
}

.slider-headline-text {
    font-size: 16pt;
}

.slider-headline-text span {
    background: rgba(66,66,66,.3);
    padding: 10px;
    color: white;
}

.div-slider-img {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

/* ---- Fiche lot ---- */

.carousel-inner {
    height: 630px;
}

.carousel-inner img {
    margin: 0 auto;
    max-height: 630px;
}

#lot-address {
    margin: 0;
    line-height: 2;
}

#lot-headlines img {
    width: 50px;
}

#lot-headlines > div, .lot-headlines > div {
    text-align: center;
}

.lot-headlines img {
    width: 30px;
}

#lot-container {
    position: relative;
}

#lot-container .breadcrumb {
    --bs-breadcrumb-divider: '.';
}

.descriptif-value {
    font-weight: bold;
}

#container-conforts img {
    width: 40px;
}

#lot-container-summary {
    margin-right: 400px;
}

#lot-container-dates {
    background-color: #f5f5f5;
    border-radius: 4px;
    position: absolute;
    top: 0;
    right: 0;
    padding: 30px;
    width: 380px;
}

#btn-book {
    width: 100%;
}

#div-book, #div-price {
    margin-top: 15px;
}

#div-price {
    font-weight: bold;
}

#lot-address-container .rating-container .rating-stars {
    cursor: default;
}

.action-not-available {
    margin-top: 5px;
}

/* ---- Réservation ---- */

#book-container {
    position: relative;
    width: 1200px;
}

#book-form-container {
    margin-right: 500px;
}

#book-form-container label.required:after,
#form-register label[for=nom]:after,
#form-register label[for=prenom]:after,
#form-register label[for=e_mail]:after,
#form-register label[for=pays]:after,
#form-register label[for=login]:after,
#form-register label[for=password]:after {
    content: '*';
    margin-left: 5px;
    color: red;
}

#book-listing {
    position: absolute;
    top: 0;
    right: 0;
    left: 700px;
}

#book-listing .thumbnail {
    border: 0;
}

#book-alert {
    padding: 5px;
    display: none;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: .75rem;
}

#step3 img {
    width: 50px;
}

#table-prestations > tbody > tr > td {
    vertical-align: middle;
}

#table-prestations .k-numerictextbox {
    width: 90px;
}

/* Assistant (onglets ronds) */
.wizard {
    background: #fff;
}

.wizard .nav-tabs {
    position: relative;
    margin-bottom: 0;
    border-bottom-color: #e0e0e0;
}

.wizard > div.wizard-inner {
    position: relative;
}

.connecting-line {
    height: 2px;
    background: #e0e0e0;
    position: absolute;
    width: 80%;
    margin: 0 auto;
    left: 0;
    right: 0;
    top: 50%;
    z-index: 1;
}

.wizard .nav-tabs .nav-item {
    width: 25%;
}

.wizard .nav-tabs .nav-link {
    position: relative;
    width: 70px;
    height: 70px;
    margin: 20px auto;
    border-radius: 100%;
    padding: 0;
    border: 0;
    background: transparent;
}

.wizard .nav-tabs .nav-link.active {
    color: #555555;
    cursor: default;
    border: 0;
    background: transparent;
}

.wizard .nav-tabs li.disabled .nav-link {
    cursor: not-allowed;
}

span.round-tab {
    width: 70px;
    height: 70px;
    line-height: 70px;
    display: inline-block;
    border-radius: 100px;
    background: #fff;
    border: 2px solid #e0e0e0;
    z-index: 2;
    position: absolute;
    left: 0;
    top: 0;
    text-align: center;
    font-size: 25px;
}

span.round-tab i {
    color: #555555;
}

.wizard .nav-link.active span.round-tab {
    background: #fff;
    border: 2px solid #2e6da4;
}

.wizard .nav-link.active span.round-tab i {
    color: #2e6da4;
}

span.round-tab:hover {
    color: #333;
    border: 2px solid #333;
}

.wizard .tab-pane {
    position: relative;
    padding: 20px;
}

.wizard h3 {
    margin-top: 0;
    margin-bottom: 30px;
}

/* ---- Connexion / inscription ---- */

#register-container {
    max-width: 600px;
    padding: 15px;
    margin: 0 auto;
}

.form-signin {
    max-width: 370px;
    padding: 15px;
    margin: 0 auto;
}

.form-signin .form-signin-heading {
    margin-bottom: 10px;
}

.form-signin .form-control {
    position: relative;
    height: auto;
    padding: 10px;
    font-size: 16px;
}

.form-signin .form-control:focus {
    z-index: 2;
}

.form-signin input[type="text"] {
    margin-bottom: -1px;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

.form-signin input[type="password"] {
    margin-bottom: 10px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

/* ---- Espace propriétaire ---- */

.list-label {
    display: inline-block;
    padding-right: 5px;
}

.list-value {
    font-weight: bold;
}

.b-planning {
    margin-right: 5px;
}

/* Fenêtres à la taille de l'ancienne version : détail du compte et réservations à la largeur de leur tableau, planning à 50 %. */
#modal-cpt-details-dialog, #modal-resa-dialog {
    width: fit-content;
    max-width: calc(100% - 2 * var(--bs-modal-margin));
}

#modal-calendar-dialog {
    width: 50%;
    max-width: none;
}

#calendar {
    width: 500px;
    max-width: 100%;
}

#cal-slide-content {
    color: black;
    background-color: #e0e0e0;
    background-image: none;
    -webkit-box-shadow: none;
    box-shadow: none;
}

#cal-slide-content a.event-item {
    color: black;
    font-weight: normal;
    line-height: 22px;
}

.etat--1 {
    background-color: #d9823b;
}

.etat-1 {
    background-color: #925fb1;
}

.etat-2 {
    background-color: #98a5a6;
}

.etat-3 {
    background-color: #4e98d5;
}

.etat-4 {
    background-color: #ebc445;
}

.etat-5 {
    background-color: #65c87a;
}

.etat-6 {
    background-color: #38495c;
}

.etat-7 {
    background-color: #d75745;
}

#legends {
    margin-top: 10px;
    padding: 10px;
}

#legends .event {
    display: inline-block;
    margin-bottom: 0;
}

.legend-text {
    margin-right: 10px;
}

/* ---- Petits écrans ---- */

@media only screen and (max-width: 768px) {
    #lot-container-summary {
        margin-right: 0;
    }

    #lot-container-dates {
        position: initial;
        width: auto;
    }

    #book-form-container {
        margin-right: 0;
    }

    #book-listing {
        position: initial;
    }

    #book-container {
        width: auto;
    }

    #map {
        display: none !important;
    }

    #result {
        position: initial;
    }

    #search-container {
        width: initial !important;
        position: initial !important;
        overflow: initial !important;
    }
}

@media (max-width: 585px) {
    .wizard {
        height: auto !important;
    }

    span.round-tab {
        font-size: 16px;
        width: 50px;
        height: 50px;
        line-height: 50px;
    }

    .wizard .nav-tabs .nav-link {
        width: 50px;
        height: 50px;
        line-height: 50px;
    }
}
