/**
 * css/booking_calendar_widget.css
 * Calendrier de réservation (widget) — mêmes styles que l'étape 1 de reserver.php (qui les garde en ligne dans
 * sa propre page), chargés ici pour la page d'accueil. `.booking-widget.compact` réduit la taille des cases du
 * calendrier, des champs et des boutons pour un affichage intégré à la page d'accueil plutôt qu'en pleine page.
 */
.booking-widget h1,
.booking-widget h2 { font-size: 1.45rem; margin: 22px 0 4px; text-align: center; font-weight: 700; }
/* Titre de la section « Tarifs et Disponibilités »/« Réservez maintenant ! » (main.php) : même taille que
   ci-dessus, pour que le titre affiché au-dessus du widget (unique, dynamique selon la réservation en ligne)
   ne tranche pas avec le reste. */
.tarifs-titre { font-size: 1.45rem; font-weight: 700; }
.booking-widget .sous-titre { text-align: center; color: #555; margin: 0 0 22px; font-size: 1rem; }
.booking-widget .dates-grille { display: flex; gap: 28px; align-items: flex-start; justify-content: center; flex-wrap: wrap; }
.booking-widget .cal-zone { flex: 0 0 auto; max-width: 100%; }
.booking-widget .flatpickr-calendar.inline { box-shadow: none; border: 1px solid #dde3ea; margin: 0 auto; max-width: 100%; }
/* Jours libres = vert (comme le calendrier du site), passage = orange, réservé = barré */
.booking-widget .flatpickr-day.libre { background: #e5f3e5; border-color: #e5f3e5; }
.booking-widget .flatpickr-day.passage { background: #ffe2b0; border-color: #ffe2b0; }
.booking-widget .flatpickr-day.jour-barre, .booking-widget .flatpickr-day.jour-barre:hover { background: #f3e3e3; border-color: #f3e3e3; color: #a33 !important; text-decoration: line-through; cursor: not-allowed; }
.booking-widget .flatpickr-day.jour-refuse, .booking-widget .flatpickr-day.jour-refuse:hover { background: #fde0dd; border-color: #fde0dd; color: #b3261e; font-weight: 700; }
.booking-widget .flatpickr-day.inRange { background: #d5e3f2 !important; border-color: #d5e3f2 !important; color: #222 !important; }
.booking-widget .flatpickr-day.selected, .booking-widget .flatpickr-day.startRange, .booking-widget .flatpickr-day.endRange { background: #3a668e !important; border-color: #3a668e !important; color: #fff !important; text-decoration: none; }
.booking-widget .legende { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 0.75rem; color: #666; justify-content: center; margin-top: 10px; }
.booking-widget .legende span { display: inline-flex; align-items: center; gap: 5px; }
.booking-widget .legende i { display: inline-block; width: 14px; height: 14px; border-radius: 3px; }
.booking-widget .saisie { flex: 1 1 240px; max-width: 320px; text-align: left; }
.booking-widget .saisie label { display: block; font-weight: 600; font-size: 0.85rem; margin: 0 0 5px; color: #555; }
.booking-widget .saisie input[type=text] { width: 100%; padding: 10px 12px; border: 1px solid #ccd; border-radius: 6px; font-size: 1rem; background: #fafbfc; margin-bottom: 14px; box-sizing: border-box; }
.booking-widget .nuits { font-weight: 700; color: #3a668e; min-height: 1.5em; margin-bottom: 8px; }
.booking-widget .saisie button { cursor: pointer; border: none; border-radius: 6px; padding: 11px 20px; font-size: 1rem; font-weight: 600; }
.booking-widget .btn-principal { background: #3a668e; color: #fff; width: 100%; }
.booking-widget .btn-principal:disabled { background: #b5c5d6; cursor: not-allowed; }
.booking-widget .btn-secondaire { background: #eceff3; color: #333; width: 100%; margin-top: 8px; }
.booking-widget .saisie .btn-outline { background: #fff; color: #3a668e; border: 2px solid #3a668e; width: 100%; margin-top: 8px; padding: 9px 20px; }
.booking-widget .saisie .btn-outline:disabled { color: #9fb2c6; border-color: #c9d5e2; cursor: not-allowed; }
.booking-widget .saisie .btn-principal { margin-top: 0; }
.booking-widget .verdict { border-radius: 8px; padding: 12px 16px; margin-top: 20px; font-weight: 600; text-align: left; }
.booking-widget .verdict.ok { background: #e6f4ea; color: #1e6b34; }
.booking-widget .verdict.ko { background: #fdecea; color: #b3261e; }
.booking-widget .verdict.info { background: #eef3f8; color: #3a668e; }
.booking-widget ::placeholder { color: #b4bac3; opacity: 1; }

.cal-tip { position: fixed; z-index: 2000; background: #222; color: #fff; padding: 6px 10px; border-radius: 6px; font-size: 0.8rem; line-height: 1.35; pointer-events: none; max-width: 260px; display: none; box-shadow: 0 2px 8px rgba(0,0,0,.3); }

/* Modale « Voir le tarif » : textes >= 16px, lisible sur mobile */
#modal-tarif { font-size: 16px; }
#modal-tarif .modal-title { font-size: 1.2rem; font-weight: 700; color: #3a668e; line-height: 1.3; }
#modal-tarif .sejour { color: #555; margin: 0 0 14px; }
#modal-tarif .ligne { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 9px 0; border-bottom: 1px solid #e3e8ef; }
#modal-tarif .ligne .mt { white-space: nowrap; font-weight: 600; }
#modal-tarif .ligne.total { border-bottom: none; border-top: 2px solid #3a668e; margin-top: 4px; padding-top: 12px; font-size: 1.3rem; font-weight: 700; color: #3a668e; }
#modal-tarif .note { font-size: 0.95rem; color: #666; margin: 10px 0 0; }
#modal-tarif .modal-footer { gap: 8px; }
#modal-tarif .modal-footer .btn { font-size: 1rem; font-weight: 600; padding: 10px 20px; }
#modal-tarif .btn-reserver { background: #3a668e; color: #fff; border: none; }
#modal-tarif .btn-reserver:hover { background: #2f5578; color: #fff; }
@media (max-width: 576px) { #modal-tarif .modal-footer .btn { flex: 1 1 100%; margin: 0; } }

/* ── .compact : intégration page d'accueil — cases du calendrier, champs et boutons réduits ──
   Important : la largeur de .flatpickr-calendar/.flatpickr-days/.dayContainer et le max-width de
   .flatpickr-day doivent rester cohérents entre eux (largeur du conteneur = 7 × largeur d'une case).
   Sinon flatpickr (qui empile les jours par simple retour à la ligne, sans notion de « 7 colonnes »)
   peut caser plus de 7 jours par ligne et décaler tout le calendrier par rapport aux en-têtes lun-dim. */
.booking-widget.compact .dates-grille { gap: 18px; }
.booking-widget.compact .flatpickr-calendar.inline { font-size: 13px; width: 238px; }
.booking-widget.compact .flatpickr-day { height: 34px; line-height: 34px; max-width: 34px; }
.booking-widget.compact .flatpickr-days,
.booking-widget.compact .dayContainer { width: 238px; min-width: 238px; max-width: 238px; }
.booking-widget.compact .saisie { max-width: 260px; }
.booking-widget.compact .saisie input[type=text] { padding: 7px 10px; font-size: 0.9rem; margin-bottom: 10px; }
.booking-widget.compact .saisie button { padding: 8px 16px; font-size: 0.9rem; }
.booking-widget.compact .saisie .btn-outline { padding: 6px 16px; margin-top: 6px; }
.booking-widget.compact .saisie .btn-secondaire { margin-top: 6px; }
.booking-widget.compact .legende { font-size: 0.68rem; gap: 4px 10px; }
.booking-widget.compact .legende i { width: 11px; height: 11px; }
.booking-widget.compact .verdict { padding: 9px 12px; margin-top: 14px; font-size: 0.9rem; }
