/* Résidence du Rhin — calendrier de réservation ajouté aux pages du site officiel (FR, DE, EN).
   S'appuie sur les couleurs et polices du site (--rhin, --verre, --display…). Aucun style en ligne. */
/* ---------- Réservation : calendrier et demande ---------- */
.resa-zone { margin-top: clamp(28px, 4vw, 48px); max-width: 1040px; }
.resa-titre { font: 700 1.35rem var(--display); letter-spacing: -0.01em; margin: 0 0 4px; }
.resa { background: var(--blanc); border-radius: 10px; padding: clamp(18px, 3vw, 28px); display: grid; gap: 16px; box-shadow: 0 1px 2px rgba(20, 48, 47, .08), 0 12px 32px -18px rgba(20, 48, 47, .35); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.champ { display: grid; gap: 6px; min-width: 0; }
.champ label { font-weight: 600; font-size: .95rem; }
.champ label span { font-weight: 400; color: var(--rhin-soft); }
.champ input, .champ select, .champ textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--gres); border-radius: 8px;
  background: var(--blanc); color: var(--rhin); font: 400 1rem var(--texte);
}
.champ textarea { min-height: 88px; resize: vertical; }
.champ input:focus-visible, .champ select:focus-visible, .champ textarea:focus-visible { border-color: var(--rhin); }
.champ .info { font-size: .92rem; color: var(--rhin-soft); }
.grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.grille .plein { grid-column: 1 / -1; }

.cal { position: relative; min-height: 330px; border: 1.5px solid var(--verre); border-radius: 10px; padding: 14px 12px 10px; }
.cal-msg { margin: 0; color: var(--rhin-soft); font-size: .95rem; }
.cal-nav { position: absolute; left: 10px; right: 10px; top: 10px; display: flex; justify-content: space-between; pointer-events: none; }
.cal-nav button { pointer-events: auto; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--verre); background: var(--blanc); color: var(--rhin); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.cal-nav button:disabled { opacity: .3; cursor: default; }
.cal-mois { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 28px; }
.cal h3 { text-align: center; font: 600 1.05rem var(--display); margin: 8px 0 14px; text-transform: capitalize; letter-spacing: 0; }
.cal-grille { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px 0; }
.cal-jsem { text-align: center; font-size: .78rem; color: var(--rhin-soft); padding-bottom: 6px; text-transform: capitalize; }
.jour {
  aspect-ratio: 1 / 1; min-height: 38px; border: 0; background: none; color: var(--rhin); font: 500 .95rem var(--texte);
  border-radius: 50%; cursor: pointer; position: relative; padding: 0;
}
.jour:hover:not(:disabled) { box-shadow: inset 0 0 0 1.5px var(--rhin); }
.jour.auj { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.jour:disabled { color: #A9B4B3; cursor: default; }
.jour.pris { color: #A9B4B3; text-decoration: line-through; }
.jour.pris.depart-ok { color: var(--rhin); text-decoration: none; }
.jour.dedans { background: var(--verre); border-radius: 0; }
.jour.debut, .jour.fin { background: var(--rhin); color: var(--blanc); text-decoration: none; }
.cal-legende { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: .82rem; color: var(--rhin-soft); margin: 12px 0 0; }
.cal-legende i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.cal-legende .l-libre { border: 1.5px solid var(--rhin); }
.cal-legende .l-pris { background: repeating-linear-gradient(135deg, #C3CCCB 0 2px, transparent 2px 4px); border: 1px solid #C3CCCB; }

.sel { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 600; min-height: 28px; }
.sel-effacer { border: 0; background: none; color: var(--rhin); text-decoration: underline; font: 500 .95rem var(--texte); cursor: pointer; padding: 8px 4px; }
.estimation { margin: 0; padding: 12px 14px; border-radius: 8px; background: var(--glace); }
.estimation.ok { background: #E3EEE6; }
.estimation.ko { background: #F6E7E2; color: #7A2E1D; }
.autres { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .95rem; }
.autres button { border: 1.5px solid var(--rhin); background: var(--blanc); color: var(--rhin); border-radius: 999px; padding: 8px 14px; min-height: 40px; font: 500 .92rem var(--texte); cursor: pointer; }
.autres button:hover { background: var(--rhin); color: var(--blanc); }
.erreur { margin: 0; padding: 12px 14px; border-radius: 8px; background: #F6E7E2; color: #7A2E1D; font-weight: 500; }
.note { font-size: .88rem; color: var(--rhin-soft); }
.resa .btn { width: 100%; }


@media (max-width: 480px) {
  .grille { grid-template-columns: minmax(0, 1fr); }
  .cal { padding-inline: 6px; }
}
.resa-photos { margin: -4px 0 4px; font-weight: 600; }

/* ---------- Bouton flottant « Réserver » (en bas à droite, caché sur la section de réservation) ---------- */
.resa-flottant {
  position: fixed; z-index: 50; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 22px 0 18px; border-radius: 999px;
  background: var(--rhin); color: var(--blanc); font: 600 1.02rem var(--texte); text-decoration: none;
  box-shadow: 0 2px 6px rgba(20, 48, 47, .25), 0 12px 28px -10px rgba(20, 48, 47, .6);
  transition: opacity .2s ease, transform .2s ease, visibility 0s;
}
.resa-flottant:hover { background: var(--rhin-soft); color: var(--blanc); }
.resa-flottant:focus-visible { outline: 3px solid var(--blanc); outline-offset: -6px; }
.resa-flottant.cache { opacity: 0; transform: translateY(16px); visibility: hidden; pointer-events: none; transition: opacity .2s ease, transform .2s ease, visibility 0s .2s; }
@media (prefers-reduced-motion: reduce) { .resa-flottant, .resa-flottant.cache { transition: none; } }
@media print { .resa-flottant { display: none; } }
