/* =========================================================================
   Love House — Page Réservation
   Le calendrier est généré en PHP (CalendarController::generateMonth) :
   on habille ici ses classes existantes sans toucher au markup ni aux
   accroches JS (.day-free, .active-td, #dayselect, .formu, .line-cart).
   ========================================================================= */

/* ---------- En-tête de page ---------- */

.lh-resa-head {
    text-align: center;
    padding: clamp(1rem, 3vw, 2.5rem) 0 clamp(2rem, 5vw, 3.5rem);
}

/* ---------- Panneaux ---------- */

/* ---------- Barre de mois ---------- */

.lh-cal-wrap > .d-flex:first-child {
    padding-bottom: 1.1rem;
    margin-bottom: .75rem;
    border-bottom: 1px solid rgba(213, 178, 82, .18);
}

.month-top-calendar {
    font-family: 'Stylish California', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    line-height: 1;
    color: #fff;
    text-transform: capitalize;
}

.lh-cal-wrap .nextprevmonth {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(213, 178, 82, .3);
    border-radius: 50%;
    color: #d5b252;
    text-decoration: none;
    transition: border-color .3s ease, background-color .3s ease, transform .3s ease;
}

.lh-cal-wrap .nextprevmonth:hover {
    border-color: #d5b252;
    background-color: rgba(213, 178, 82, .1);
    transform: scale(1.06);
}

/* Réserve la place des flèches pour que le mois reste centré */
.lh-cal-wrap .btn-left {
    min-width: 44px;
    min-height: 44px;
}

/* ---------- Grille du calendrier ---------- */

.lh-cal-wrap .calendar {
    width: 100%;
    table-layout: fixed;
    margin-bottom: 0;
    border-color: transparent;
    --bs-table-bg: transparent;
    --bs-table-color: #fff;
}

.lh-cal-wrap .calendar,
.lh-cal-wrap .calendar > :not(caption) > * > * {
    background-color: transparent;
    border-color: rgba(255, 255, 255, .06);
}

.lh-cal-wrap .calendar th.header {
    padding: .35rem .25rem .9rem;
    border: 0;
    border-bottom: 1px solid rgba(213, 178, 82, .18);
    font-family: 'Roboto', sans-serif;
    font-size: .64rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    text-align: center;
    color: rgba(213, 178, 82, .85);
}

/* La largeur/hauteur fixes d'origine débordaient sous 448px : on passe en
   colonnes fluides pour que le mois tienne sur un écran de téléphone. */
.lh-cal-wrap .calendar .day {
    width: auto !important;
    height: auto !important;
    padding: .5rem .3rem !important;
    vertical-align: top;
    text-align: center;
    border-radius: 4px;
    transition: background-color .25s ease, box-shadow .25s ease;
}

.lh-cal-wrap .calendar .not-month {
    border: 0;
    background: transparent;
}

.lh-cal-wrap .day-date {
    display: block;
    font-family: 'Stylish California', sans-serif;
    font-size: 1.3rem;
    line-height: 1.2;
    color: #fff;
}

.lh-cal-wrap .day-date-lasted {
    display: block;
    font-family: 'Stylish California', sans-serif;
    font-size: 1.3rem;
    line-height: 1.2;
    color: rgba(255, 255, 255, .18);
}

.lh-cal-wrap .day-price {
    margin-top: .3rem;
    font-family: 'Nunito', sans-serif;
    font-size: .78rem;
    font-weight: 400;
    color: rgba(255, 255, 255, .55);
}

/* Jour disponible */
.lh-cal-wrap .day-free {
    cursor: pointer;
}

.lh-cal-wrap .day-free:hover {
    background-color: rgba(213, 178, 82, .08);
    box-shadow: inset 0 0 0 1px rgba(213, 178, 82, .35);
}

.lh-cal-wrap .day-dispo {
    display: inline-block;
    width: auto;
    padding: .2em .7em;
    border: 1px solid rgba(213, 178, 82, .4);
    border-radius: 2em;
    background-color: transparent;
    font-family: 'Roboto', sans-serif;
    font-size: .6rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #d5b252;
}

/* Jour complet : sobre, pas d'alerte rouge */
.lh-cal-wrap .day-complet {
    display: inline-block;
    width: auto;
    padding: .2em .7em;
    border-radius: 2em;
    background-color: rgba(255, 255, 255, .07);
    font-family: 'Roboto', sans-serif;
    font-size: .6rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .4);
}

.lh-cal-wrap .day-complet-td .day-date {
    color: rgba(255, 255, 255, .35);
}

/* Jour sélectionné (classe posée par le JS) */
.lh-cal-wrap .calendar .active-td {
    background-color: transparent !important;
    background-image: linear-gradient(140deg, #a8853a, #d5b252 55%, #efd79b) !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .35);
}

.lh-cal-wrap .active-td .day-date,
.lh-cal-wrap .active-td .day-price {
    color: #151D33;
}

.lh-cal-wrap .active-td .day-dispo {
    border-color: rgba(21, 29, 51, .45);
    color: #151D33;
}

/* ---------- Panier ---------- */

.lh-cart-empty,
.line-cart {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    color: rgba(255, 255, 255, .55);
}

.lh-cart-selected .line-cart {
    font-family: 'Nunito', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: #d5b252;
    line-height: 1.6;
}

.lh-cart-hint {
    font-family: 'Nunito', sans-serif;
    font-weight: 300;
    font-size: .85rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, .45);
}

.lh-panel--cart .btn {
    margin: 0;
    width: 100%;
}

/* =========================================================================
   Vues internes (admin / ménage)
   Dans ces vues, .day-complet-td ne veut pas dire « complet » mais « jour
   réservé », et la cellule porte le client, le montant et les articles :
   elle doit rester lisible et disposer de place, contrairement au public.
   ========================================================================= */

/* Les colonnes fluides conviennent au public ; ici le contenu prime, et le
   panneau défile horizontalement au besoin plutôt que de tronquer. */
.lh-cal-wrap--ops {
    overflow-x: auto;
}

.lh-cal-wrap--ops .calendar {
    table-layout: auto;
    min-width: 760px;
}

.lh-cal-wrap--ops .calendar .day {
    padding: .6rem .5rem !important;
    vertical-align: top;
    min-width: 104px;
}

/* Un jour réservé n'est pas un jour éteint : on le met en avant. */
.lh-cal-wrap--ops .day-complet-td {
    background-color: rgba(213, 178, 82, .07);
    box-shadow: inset 0 0 0 1px rgba(213, 178, 82, .22);
}

.lh-cal-wrap--ops .day-complet-td .day-date {
    color: #fff;
}

/* Montants et articles : contraste plein, ils se lisent d'un coup d'œil. */
.lh-cal-wrap--ops .day-price {
    font-size: .8rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, .82);
}

/* Lien vers la commande (admin) / mention « Réservé » (ménage) */
.lh-cal-wrap--ops .day-complet-td a {
    display: inline-block;
    margin-bottom: .15rem;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: .88rem;
    line-height: 1.4;
    color: #d5b252;
    text-decoration: none;
    border-bottom: 1px solid rgba(213, 178, 82, .35);
}

.lh-cal-wrap--ops .day-complet-td a:hover {
    color: #efd79b;
    border-bottom-color: #efd79b;
}

/* Jours libres : en interne, l'information utile est « rien de prévu ». */
.lh-cal-wrap--ops .day-free:hover {
    background-color: rgba(213, 178, 82, .1);
}
