/* =========================================================
   La Maison Bisca — V2 / V3 shared core
   Fonts : Brandon Grotesque (kit Adobe Fonts du site actuel, jzu2pyq)
   Themes set the tokens; this file holds reset, buttons, booking, calendar, drawer, reveals.
   ========================================================= */
:root {
  --cream: #f7f1e4;
  --cream-2: #efe6d3;
  --blue: #3753a0;
  --blue-dark: #263d7d;
  --navy: #16224a;
  --lavender: #e1d6ff;
  --charcoal: #363636;
  --text: #2b2b2b;
  --muted: #6b6a66;
  --line: rgba(54, 54, 54, .16);
  --sun: #f2c14e;

  --sans: "brandon-grotesque", "Josefin Sans", "Avenir Next", "Futura", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1320px;
  --radius: 3px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --nav-h: 76px;

  --pop-bg: #fff;
  --pop-ink: var(--charcoal);
  --pop-accent: var(--blue);
  --pop-soft: var(--lavender);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--sans); font-size: 18px; line-height: 1.55; color: var(--text); background: var(--cream); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
h1, h2, h3, h4 { margin: 0; }
p { margin: 0; }
.container { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--charcoal); color: #fff; padding: 10px 16px; }
.skip:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--blue); --fg: #fff; --bd: var(--bg); --hbg: var(--blue-dark); --hfg: var(--fg);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px; border: 2px solid var(--bd); border-radius: var(--radius);
  background: var(--bg); color: var(--fg); text-decoration: none; white-space: nowrap;
  font-family: var(--sans); font-weight: 700; font-size: 15px; letter-spacing: .12em; text-transform: uppercase;
  transition: background .25s, color .25s, border-color .25s, transform .2s;
}
.btn:hover { background: var(--hbg); border-color: var(--hbg); color: var(--hfg); }
.btn:active { transform: translateY(1px); }
.btn svg { font-size: 18px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { --bg: var(--blue); --fg: #fff; --hbg: var(--navy); }
.btn--dark { --bg: var(--charcoal); --fg: #fff; --hbg: #000; }
.btn--light { --bg: #fff; --fg: var(--charcoal); --hbg: var(--cream); }
.btn--sun { --bg: var(--sun); --fg: var(--navy); --hbg: #fff; }
.btn--outline { --bg: transparent; --fg: var(--charcoal); --bd: var(--charcoal); --hbg: var(--charcoal); --hfg: #fff; }
.btn--outline-light { --bg: transparent; --fg: #fff; --bd: rgba(255,255,255,.6); --hbg: #fff; --hfg: var(--charcoal); }
.btn--small { min-height: 42px; padding: 0 18px; font-size: 13px; }
.btn--block { width: 100%; }
.link { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; color: var(--muted); font-size: 15px; }

/* ---------- Booking form ---------- */
.booking { position: relative; color: var(--charcoal); }
.booking__tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 8px 14px; border-radius: var(--radius); border: 1.5px solid var(--chip-bd, var(--line)); font-size: 14px; font-weight: 700; letter-spacing: .04em; background: var(--chip-bg, transparent); transition: background .2s, color .2s, border-color .2s; }
.chip:hover span { border-color: var(--charcoal); }
.chip input:checked + span { background: var(--chip-on, var(--charcoal)); color: #fff; border-color: var(--chip-on, var(--charcoal)); }
.chip input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.booking__row { display: grid; grid-template-columns: 1fr 1fr 1fr auto; background: #fff; border: 1.5px solid var(--charcoal); border-radius: var(--radius); }
.field { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 1px; text-align: left; background: none; border: 0; border-right: 1px solid var(--line); padding: 10px 18px; min-height: 66px; transition: background .2s; }
.field:hover, .field[aria-expanded="true"] { background: rgba(225, 214, 255, .5); }
.field__label { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.field__value { font-size: 18px; font-weight: 700; color: var(--charcoal); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.field.is-empty .field__value { color: #9a978f; font-weight: 400; }
.field.is-error { animation: shake .45s; }
.field.is-error .field__label { color: #b3261e; }
@keyframes shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
.booking__submit { margin: 6px; min-height: 54px; }
.booking__hint { margin-top: 10px; font-size: 15px; color: var(--muted); min-height: 1.4em; }
.booking__hint strong { color: var(--charcoal); }

/* Popovers (open downward by default) */
.pop { position: absolute; z-index: 40; top: calc(100% + 10px); left: 0; background: var(--pop-bg); color: var(--pop-ink); border-radius: 6px; padding: 20px; box-shadow: 0 24px 60px -20px rgba(0,0,0,.35), 0 0 0 1px var(--line); animation: popIn .3s var(--ease-out); }
.booking--up .pop { top: auto; bottom: calc(100% + 10px); }
@keyframes popIn { from { opacity: 0; transform: translateY(-6px); } }
.pop--guests { left: auto !important; right: 160px; width: 330px; }
.pop__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.pop__note { font-size: 14px; color: var(--muted); margin-top: 12px; }
.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.cal__status { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cal__nav { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: none; display: grid; place-items: center; }
.cal__nav:hover:not(:disabled) { background: var(--charcoal); color: #fff; }
.cal__nav:disabled { opacity: .3; cursor: default; }
.cal__months { display: grid; grid-template-columns: repeat(2, 280px); gap: 28px; }
.cal__title { margin: 2px 0 10px; text-align: center; font-weight: 700; font-size: 17px; text-transform: capitalize; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal__dow { font-size: 12px; text-align: center; color: var(--muted); padding-bottom: 6px; font-weight: 700; }
.cal__day { position: relative; aspect-ratio: 1; border: 0; background: none; font-size: 15px; font-variant-numeric: tabular-nums; display: grid; place-items: center; z-index: 0; }
.cal__day::before { content: ""; position: absolute; inset: 3px; border-radius: 50%; z-index: -1; transition: background .15s; }
.cal__day:hover:not(:disabled)::before { background: var(--pop-soft); }
.cal__day:disabled { color: rgba(0,0,0,.22); cursor: default; text-decoration: line-through; }
.cal__day.is-today { font-weight: 700; }
.cal__day.in-range { background: rgba(225, 214, 255, .7); }
.cal__day.is-start, .cal__day.is-end { color: #fff; font-weight: 700; }
.cal__day.is-start::before, .cal__day.is-end::before { background: var(--pop-accent); }
.cal__day.is-start.has-end { background: linear-gradient(90deg, transparent 50%, rgba(225,214,255,.7) 50%); }
.cal__day.is-end { background: linear-gradient(90deg, rgba(225,214,255,.7) 50%, transparent 50%); }
.stepper { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.stepper__title { font-weight: 700; font-size: 18px; }
.stepper__sub { font-size: 14px; color: var(--muted); }
.stepper__ctrl { display: flex; align-items: center; gap: 12px; }
.stepper__ctrl button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: none; font-size: 20px; line-height: 1; }
.stepper__ctrl button:hover:not(:disabled) { background: var(--charcoal); color: #fff; }
.stepper__ctrl button:disabled { opacity: .3; cursor: default; }
.stepper__ctrl output { min-width: 24px; text-align: center; font-weight: 700; font-size: 22px; }

/* ---------- Drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 150; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(15, 20, 40, .5); opacity: 0; transition: opacity .4s; }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(500px, 100%); background: var(--cream); overflow-y: auto; overscroll-behavior: contain; padding: 48px clamp(22px, 3vw, 40px) 32px; transform: translateX(100%); transition: transform .5s var(--ease-out); }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__close { position: absolute; top: 14px; right: 14px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; font-size: 20px; }
.drawer__kicker { font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); }
.drawer__title { font-size: 30px; font-weight: 900; line-height: 1.05; color: var(--charcoal); margin-top: 6px; }
.summary { margin: 22px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border-radius: var(--radius); }
.summary div { padding: 12px 14px; }
.summary div + div { border-left: 1px solid var(--line); }
.summary dt { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.summary dd { margin: 2px 0 0; font-weight: 700; font-size: 17px; color: var(--charcoal); line-height: 1.25; }
.drawer__note { margin-top: 16px; padding: 14px 16px; background: var(--lavender); border-radius: var(--radius); font-size: 16px; }
.drawer__note:empty { display: none; }
.drawer__label { margin: 24px 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.suggest { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.suggest li { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 8px; background: #fff; border-radius: var(--radius); }
.suggest img { width: 64px; height: 64px; object-fit: cover; border-radius: 2px; }
.suggest__name { font-weight: 900; font-size: 18px; color: var(--charcoal); }
.suggest p { font-size: 14px; color: var(--muted); line-height: 1.3; }
.suggest .price { text-align: right; padding-right: 6px; }
.suggest .price strong { display: block; font-size: 19px; color: var(--charcoal); }
.drawer__actions { display: grid; gap: 8px; margin-top: 24px; }
.drawer__tel { text-align: center; font-size: 16px; margin-top: 6px; }
.drawer__tel a { font-weight: 700; color: var(--blue); }
.drawer__legal { margin-top: 18px; font-size: 13px; color: var(--muted); text-align: center; }
.drawer-open { overflow: hidden; }

/* ---------- Reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0s); }
.js .is-in[data-reveal] { opacity: 1; transform: none; }

/* ---------- Responsive core ---------- */
@media (max-width: 1100px) {
  .booking__row { grid-template-columns: 1fr 1fr 1fr; }
  .booking__submit { grid-column: 1 / -1; margin: 0; border-radius: 0 0 1px 1px; }
  .field:nth-child(3) { border-right: 0; }
  .pop--guests { right: 0; }
}
@media (max-width: 720px) {
  body { font-size: 17px; }
  .booking__tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .booking__tabs::-webkit-scrollbar { display: none; }
  .chip { flex-shrink: 0; }
  .booking__row { grid-template-columns: 1fr 1fr; }
  .field { padding: 10px 14px; min-height: 62px; }
  .field:nth-child(2) { border-right: 0; }
  .field:nth-child(3) { grid-column: 1 / -1; border-top: 1px solid var(--line); border-right: 0; }
  .pop, .booking--up .pop { position: fixed; left: 0 !important; right: 0; bottom: 0; top: auto; width: auto; border-radius: 14px 14px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); max-height: 86svh; overflow-y: auto; animation: sheetIn .4s var(--ease-out); z-index: 160; }
  @keyframes sheetIn { from { transform: translateY(100%); } }
  .cal__months { grid-template-columns: 1fr; }
  .cal__months .cal__month:nth-child(2) { display: none; }
  .summary { grid-template-columns: 1fr 1fr; }
  .summary div:nth-child(3) { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
[hidden] { display: none !important; }
