/* MORE : calendrier « disponibilités et prix » de la page des chambres
   (js/calendrier.js). Deux mois côte à côte sur grand écran, l'un sous
   l'autre sur téléphone. Couleurs et polices : celles de styles.css. */
.cal {
  width: min(760px, calc(100vw - 24px)); max-height: calc(100dvh - 24px);
  /* styles.css remet toutes les marges à zéro (« * { margin: 0 } »), ce qui
     retire à <dialog> son centrage d'origine et le colle en haut à gauche.
     On le recentre explicitement, dans les deux sens. */
  position: fixed; inset: 0; margin: auto; height: fit-content;
  padding: 0; border: 1px solid var(--border-soft, #e5dcc9); border-radius: var(--radius, 14px);
  background: var(--sand-000, #fff); color: var(--ink-900, #0b1f19);
  box-shadow: 0 24px 60px rgba(11, 31, 25, .28);
  font-family: var(--font-body, "Inter", sans-serif);
  overflow: auto; overscroll-behavior: contain;
}
.cal::backdrop { background: rgba(11, 31, 25, .55); }
.cal-corps { padding: 18px 20px 20px; }

.cal-tete { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.cal-titre { margin: 0; font-family: var(--font-display, "Fraunces", serif); font-size: 1.3rem; line-height: 1.25; font-weight: 600; }
.cal-fermer {
  flex: none; width: 40px; height: 40px; margin: -6px -8px 0 0; border: 0; border-radius: 50%;
  background: none; color: inherit; font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.cal-fermer:hover { background: var(--sand-100, #f5ede0); }

.cal-qui { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin-bottom: 14px; }
.cal-question { font-weight: 600; }
.cal-nombres { display: flex; gap: 8px; }
.cal-nombre {
  width: 46px; height: 44px; border: 1px solid var(--border-soft, #e5dcc9); border-radius: 10px;
  background: var(--sand-000, #fff); color: inherit; font: inherit; font-weight: 600; cursor: pointer;
}
.cal-nombre:hover { background: var(--sand-100, #f5ede0); }
.cal-nombre.is-on { background: var(--ink-900, #0b1f19); border-color: var(--ink-900, #0b1f19); color: #fff; }

.cal-grille {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px;
  padding: 10px 12px 12px; border: 1px solid var(--border-soft, #e5dcc9); border-radius: 12px;
  transition: opacity .15s;
}
.cal-grille.is-charge { opacity: .5; }
.cal-nav { position: absolute; inset: 8px 8px auto 8px; display: flex; justify-content: space-between; pointer-events: none; }
.cal-fleche {
  pointer-events: auto; display: grid; place-items: center; width: 40px; height: 40px;
  border: 0; border-radius: 8px; background: none; color: inherit; cursor: pointer;
}
.cal-fleche:hover:not(:disabled) { background: var(--sand-100, #f5ede0); }
.cal-fleche:disabled { opacity: .25; cursor: default; }
.cal-mois + .cal-mois { border-left: 1px solid var(--border-soft, #e5dcc9); margin-left: -12px; padding-left: 12px; }
.cal-mois-nom { height: 40px; display: grid; place-items: center; font-weight: 600; font-size: .95rem; }
.cal-mois-nom::first-letter { text-transform: uppercase; }
.cal-jours { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 2px; }
.cal-entete { height: 28px; display: grid; place-items: center; font-size: .8rem; font-weight: 600; color: var(--text-secondary, #47584f); }

.cal-jour {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  min-height: 48px; padding: 2px 0; border: 0; border-radius: 10px; background: none;
  color: inherit; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer;
}
.cal-jour:hover:not(:disabled) { background: var(--sand-100, #f5ede0); }
.cal-jour:disabled { cursor: default; color: #9aa59f; }
.cal-prix { font-size: .72rem; font-weight: 400; color: #6f7d76; }
.cal-prix.is-bon { color: #1a7f4b; }
.cal-jour.is-pris .cal-num { text-decoration: line-through; }
.cal-jour.is-court:not(.is-pris) { opacity: .45; }
.cal-jour.is-auj .cal-num { text-decoration-line: underline; text-underline-offset: 3px; }
.cal-jour.is-pris.is-auj .cal-num { text-decoration-line: line-through; }
.cal-jour.is-dans { background: var(--sand-100, #f5ede0); border-radius: 0; }
.cal-jour.is-arr, .cal-jour.is-dep,
.cal-jour.is-arr:hover:not(:disabled), .cal-jour.is-dep:hover:not(:disabled) { background: var(--ink-900, #0b1f19); color: #fff; }
.cal-jour.is-arr .cal-prix, .cal-jour.is-dep .cal-prix { color: #cfe0d8; }
.cal :focus-visible { outline: 2px solid var(--terra-700, #b25e24); outline-offset: 2px; }

.cal-legende { margin: 10px 2px 0; font-size: .82rem; line-height: 1.45; color: var(--text-secondary, #47584f); }
.cal-legende strong { color: var(--ink-900, #0b1f19); }

.cal-resume { margin-top: 14px; padding: 14px 16px; border-radius: 12px; background: var(--sand-100, #f5ede0); }
.cal-resume p { margin: 0; }
.cal-sejour { font-weight: 600; }
.cal-total { margin-top: 6px !important; font-family: var(--font-display, "Fraunces", serif); font-size: 1.5rem; font-weight: 600; }
.cal-acompte, .cal-message { margin-top: 4px !important; font-size: .9rem; line-height: 1.45; }
.cal-message--ko { color: #a03a25; }
.cal-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; }
.cal-cta { text-decoration: none; }
.cal-lien {
  padding: 8px 2px; border: 0; background: none; color: var(--text-secondary, #47584f);
  font: inherit; font-size: .88rem; text-decoration: underline; text-underline-offset: 2px; cursor: pointer;
}
.cal-lien:hover { color: var(--ink-900, #0b1f19); }
.cal > .cal-corps > .cal-message { margin: 6px 0 14px; }

/* Téléphone : plein écran, un mois sous l'autre, cases à la largeur du doigt. */
@media (max-width: 680px) {
  .cal { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border: 0; border-radius: 0; }
  .cal-corps { padding: 14px 14px 22px; }
  .cal-grille { grid-template-columns: 1fr; padding: 8px 6px 10px; }
  .cal-mois + .cal-mois { border-left: 0; margin-left: 0; padding-left: 0; margin-top: 8px; border-top: 1px solid var(--border-soft, #e5dcc9); }
  .cal-actions .cal-cta { width: 100%; justify-content: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .cal-grille { transition: none; } }
