/* ==========================================================================
   Public homepage (site vitrine) — front-page.php + templates/site/*
   Faithful to the "Page d'accueil" + "Fenêtre de réservation" designs.
   Loaded only on the front page (inc/setup/assets.php).
   ========================================================================== */

:root {
  --s-navy: #35414D;
  --s-merlot: #6B4242;
  --s-rose: #D19D90;
  --s-powder: #BEC7D0;
  --s-cream: #F7F5EB;
  --s-card: #FDFCF6;
  --s-line: #D9DED9;
  --s-input: #A3AEB9;
  --s-serif: "Lora", Georgia, serif;
  --s-display: "Cormorant Garamond", "Times New Roman", serif;
  --s-script: "Pinyon Script", cursive;
  --s-gutter: 40px;
}

/* ── Base ──────────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }
body.home { margin: 0; background: var(--s-navy); }
.site {
  background: var(--s-cream);
  color: var(--s-navy);
  font-family: var(--s-serif);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
/* :where() = zero specificity, so component classes (.btn-pill--navy…) always win. */
:where(.site) a { color: inherit; text-decoration: none; }
:where(.site) a:hover { opacity: .78; }
:where(.site) ul, :where(.site) ol { list-style: none; margin: 0; padding: 0; }
:where(.site) h1, :where(.site) h2, :where(.site) h3 { color: inherit; }
:where(.site) svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.site :focus-visible { outline: 2px solid var(--s-rose); outline-offset: 3px; }
.site [id] { scroll-margin-top: 16px; }

.container { max-width: 1240px; margin: 0 auto; box-sizing: border-box; padding-left: var(--s-gutter); padding-right: var(--s-gutter); }
.script { font-family: var(--s-script); font-weight: 400; letter-spacing: 0; color: var(--s-merlot); }
.block { display: block; }
/* The hidden attribute must win over component display rules (e.g. .booking__thanks { display: flex }). */
.site [hidden], .booking [hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.eyebrow { font-size: 13px; text-transform: uppercase; letter-spacing: .24em; color: var(--s-merlot); }
.eyebrow--rose { color: var(--s-rose); }
.eyebrow--navy { color: var(--s-navy); }
.eyebrow--sm { font-size: 12px; }

.section-head { display: flex; flex-direction: column; align-items: center; text-align: center; }
.section-title { margin: 18px 0 0; font-family: var(--s-display); font-weight: 300; font-size: clamp(40px, 4.4vw, 62px); line-height: 1.08; letter-spacing: -.02em; }
.section-title .script { font-size: 1.14em; }
.section-lead { margin: 18px 0 0; max-width: 620px; }

/* ── Buttons ───────────────────────────────────────────────────────── */
.btn-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; box-sizing: border-box; padding: 0 26px;
  border: 1px solid transparent; border-radius: 999px; cursor: pointer;
  font-family: var(--s-serif); font-size: 13px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .18em; line-height: 1.2; text-align: center;
  transition: opacity .15s ease, transform .15s ease;
}
.btn-pill:hover { opacity: .85; }
.btn-pill:active { transform: translateY(1px); }
.btn-pill:disabled { opacity: .6; cursor: wait; }
.btn-pill svg { stroke: var(--s-rose); flex: none; }
.btn-pill--lg { min-height: 54px; padding: 0 34px; }
.btn-pill--block { width: 100%; }
.btn-pill--navy { background: var(--s-navy); color: var(--s-cream); border-color: var(--s-navy); }
.btn-pill--merlot { background: var(--s-merlot); color: var(--s-cream); font-weight: 600; }
.btn-pill--cream { background: var(--s-cream); color: var(--s-navy); font-weight: 600; }
.btn-pill--outline-cream { border-color: var(--s-cream); color: var(--s-cream); background: transparent; }
.btn-pill--outline-navy { border-color: var(--s-navy); color: var(--s-navy); background: transparent; min-height: 50px; padding: 0 30px; }
.link-underline {
  display: inline-flex; align-items: center; min-height: 54px; padding: 0 8px;
  font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: .18em;
  border-bottom: 1px solid var(--s-navy);
}

/* ── Contact strip ─────────────────────────────────────────────────── */
.topbar { background: var(--s-navy); color: var(--s-cream); }
.topbar__inner { padding-top: 2px; padding-bottom: 2px; min-height: 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; column-gap: 32px; font-size: 13px; letter-spacing: .08em; }
.topbar__contacts { display: flex; flex-wrap: wrap; align-items: center; column-gap: 32px; }
.topbar__link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.topbar__link svg { stroke: var(--s-rose); flex: none; }
.topbar__area { display: inline-flex; align-items: center; min-height: 44px; text-transform: uppercase; letter-spacing: .18em; font-size: 12px; }

/* ── Header ────────────────────────────────────────────────────────── */
.site-header { padding-top: 24px; padding-bottom: 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.site-header__logo { display: inline-flex; align-items: center; min-height: 46px; }
.site-header__logo img { height: 46px; width: auto; max-width: 100%; display: block; }
.site-header__toggle { display: none; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 36px; font-size: 13px; text-transform: uppercase; letter-spacing: .18em; }
.site-nav > a:not(.btn-pill) { display: inline-flex; align-items: center; min-height: 44px; }

/* ── Arch photos (hero, process, about) ────────────────────────────── */
.arch { min-width: 0; box-sizing: border-box; }
.arch__frame { position: relative; }
.arch__frame::before { content: ""; position: absolute; top: -18px; bottom: 18px; border: 1px solid var(--s-rose); border-radius: 9999px 9999px 0 0; pointer-events: none; }
.arch--left { padding: 18px 0 0 18px; }
.arch--left .arch__frame::before { left: -18px; right: 18px; }
.arch--right { padding: 18px 18px 0 0; }
.arch--right .arch__frame::before { left: 18px; right: -18px; border-color: var(--s-navy); }
.arch--merlot .arch__frame::before { border-color: var(--s-merlot); }
.arch__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 9999px 9999px 0 0; display: block; }

/* ── Hero ──────────────────────────────────────────────────────────── */
.hero { padding-top: 64px; padding-bottom: 104px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 56px 64px; }
.hero__text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.hero__title { margin: 28px 0 0; font-family: var(--s-display); font-weight: 300; font-size: clamp(52px, 6.2vw, 92px); line-height: .98; letter-spacing: -.025em; color: var(--s-navy); }
.hero__title span { display: block; }
.hero__title .script { font-size: 1.16em; line-height: 1.15; padding-left: .06em; }
.hero__lead { margin: 28px 0 0; max-width: 500px; font-size: 19px; line-height: 1.65; }
.hero__actions { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
.hero__note { margin-top: 48px; display: flex; align-items: center; gap: 16px; font-size: 14px; font-style: italic; }
.rule { display: block; width: 56px; height: 1px; background: var(--s-rose); flex: none; }
.hero__photo { flex: 0 1 480px; }
.hero__photo .arch__frame { aspect-ratio: 480 / 640; }

/* ── Mission ───────────────────────────────────────────────────────── */
.mission { background: var(--s-navy); color: var(--s-cream); }
.mission__inner { padding-top: 104px; padding-bottom: 104px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.mission__emblem { width: 84px; height: auto; display: block; }
.mission .eyebrow { margin-top: 28px; }
.mission__title { margin: 0; font-size: 68px; line-height: 1.15; color: var(--s-rose); }
.mission__text { margin: 20px 0 0; max-width: 900px; font-family: var(--s-display); font-weight: 300; font-size: clamp(26px, 2.5vw, 36px); line-height: 1.36; letter-spacing: -.01em; }
.mission__values { margin-top: 56px; padding-top: 32px; align-self: stretch; border-top: 1px solid rgba(247, 245, 235, .28); display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 56px; font-family: var(--s-display); font-size: 25px; line-height: 1.3; }

/* ── Services ──────────────────────────────────────────────────────── */
.services { padding-top: 112px; padding-bottom: 112px; }
.offers { margin-top: 64px; display: flex; flex-wrap: wrap; align-items: stretch; gap: 32px; }
.offer { flex: 1 1 300px; min-width: 0; box-sizing: border-box; padding: 44px 40px; background: var(--s-card); border: 1px solid var(--s-powder); display: flex; flex-direction: column; }
.offer__icon { stroke: var(--s-merlot); stroke-width: 1; }
.offer__eyebrow { margin-top: 28px; font-size: 12px; text-transform: uppercase; letter-spacing: .22em; color: var(--s-merlot); }
.offer__title { margin: 10px 0 0; font-family: var(--s-display); font-weight: 400; font-size: 36px; line-height: 1.12; letter-spacing: -.01em; }
.offer__text { margin: 16px 0 0; font-size: 16px; line-height: 1.65; }
.offer__list { margin-top: 24px; font-size: 15px; line-height: 1.5; }
.offer__list li { padding: 13px 0; border-top: 1px solid var(--s-line); }
.offer__list li:last-child { border-bottom: 1px solid var(--s-line); }
.offer__cta {
  margin-top: auto; padding: 32px 0 0; align-self: flex-start;
  display: inline-flex; align-items: center; min-height: 44px;
  background: none; border: 0; cursor: pointer; text-align: left;
  font-family: var(--s-serif); font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: .18em; color: var(--s-merlot);
}
.offer__cta:hover { opacity: .78; }
.offer--featured { background: var(--s-merlot); color: var(--s-cream); border-color: var(--s-merlot); }
.offer--featured .offer__icon { stroke: var(--s-rose); }
.offer--featured .offer__eyebrow, .offer--featured .offer__cta { color: var(--s-cream); }
.offer--featured .offer__list li { border-color: rgba(247, 245, 235, .3); }
.services__note { margin: 44px auto 0; max-width: 640px; text-align: center; font-size: 15px; font-style: italic; }

/* ── Process ───────────────────────────────────────────────────────── */
.process { background: var(--s-powder); }
.process__inner { padding-top: 104px; padding-bottom: 104px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 56px 88px; }
.process__photo { flex: 0 1 400px; }
.process__photo .arch__frame { aspect-ratio: 400 / 540; }
.process__text { flex: 1 1 460px; min-width: 0; }
.steps { margin-top: 36px; display: flex; flex-direction: column; }
.step { display: flex; gap: 28px; padding: 26px 0; border-top: 1px solid rgba(53, 65, 77, .4); }
.step:last-child { border-bottom: 1px solid rgba(53, 65, 77, .4); }
.step__num { flex: 0 0 56px; font-family: var(--s-script); font-size: 52px; line-height: 1; color: var(--s-merlot); }
.step__title { margin: 0; font-family: var(--s-display); font-weight: 500; font-size: 28px; line-height: 1.2; }
.step__text { margin: 8px 0 0; font-size: 16px; line-height: 1.65; }

/* ── About ─────────────────────────────────────────────────────────── */
.about { padding-top: 112px; padding-bottom: 112px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 56px 88px; }
.about__text { flex: 1 1 460px; min-width: 0; }
.about__text .script { font-size: 1.14em; line-height: 1.2; }
.about__text p { max-width: 560px; margin: 18px 0 0; }
.about__text h2 + p { margin-top: 28px; }
.about__photo { flex: 0 1 440px; }
.about__photo .arch__frame { aspect-ratio: 440 / 590; }

/* ── Footer ────────────────────────────────────────────────────────── */
.site-footer { background: var(--s-navy); color: var(--s-cream); }
.site-footer__inner { padding-top: 80px; padding-bottom: 36px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.site-footer__logo { width: 320px; max-width: 80%; height: auto; display: block; }
.site-footer__tagline { margin-top: 28px; font-size: 38px; line-height: 1.2; color: var(--s-rose); }
.site-footer__actions { margin-top: 36px; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 20px; }
.site-footer__legal { margin-top: 56px; padding-top: 26px; align-self: stretch; border-top: 1px solid rgba(247, 245, 235, .28); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; font-size: 12px; text-transform: uppercase; letter-spacing: .16em; color: #E6E3D8; }

/* ── Booking pop-up ────────────────────────────────────────────────── */
.booking {
  width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
  margin: auto; padding: 0; border: 0; border-radius: 4px; overflow: auto;
  background: var(--s-cream); color: var(--s-navy); font-family: var(--s-serif);
  box-shadow: 0 30px 80px rgba(20, 26, 32, .45);
}
.booking::backdrop { background: rgba(35, 43, 51, .78); }
.booking[open] { animation: booking-in .22s ease; }
@keyframes booking-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.booking__bar { height: 6px; background: var(--s-rose); position: sticky; top: 0; }
.booking__body { position: relative; padding: 40px 52px 44px; }
.booking__close { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 999px; background: none; color: var(--s-navy); cursor: pointer; }
.booking__close:hover { background: rgba(53, 65, 77, .08); }
.booking svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.booking :focus-visible { outline: 2px solid var(--s-rose); outline-offset: 2px; }
.booking__head { text-align: center; }
.booking__title { margin: 10px 0 0; font-family: var(--s-display); font-weight: 300; font-size: 40px; line-height: 1.1; letter-spacing: -.02em; }
.booking__title .script { font-size: 1.15em; }
.booking__lead { margin: 10px 0 0; font-size: 15px; line-height: 1.6; }

.booking__form { margin-top: 30px; display: flex; flex-direction: column; gap: 22px; }
.booking__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.bk-field { display: flex; flex-direction: column; gap: 7px; }
.bk-field > label:first-child, .bk-group legend { font-size: 12px; text-transform: uppercase; letter-spacing: .16em; }
.bk-group legend em { text-transform: none; letter-spacing: 0; }
.bk-field input[type="text"], .bk-field input[type="email"], .bk-field input[type="tel"], .bk-field input[type="date"] {
  height: 48px; box-sizing: border-box; padding: 0 14px; width: 100%;
  border: 1px solid var(--s-input); border-radius: 3px; background: #fff;
  font-family: var(--s-serif); font-size: 15px; color: var(--s-navy);
}
.bk-field input::placeholder { color: #7A848D; }
.bk-field input:focus { outline: 0; border-color: var(--s-navy); box-shadow: 0 0 0 3px rgba(209, 157, 144, .45); }
.bk-field:has([data-error-for="date"]:not(:empty)) input:not([type="checkbox"]),
.booking__grid .bk-field:has(.bk-error:not(:empty)) input { border-color: #B5473A; }
.bk-date-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: center; }
.bk-month { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 8px; }
.bk-field select {
  height: 48px; box-sizing: border-box; padding: 0 10px; width: 100%;
  border: 1px solid var(--s-input); border-radius: 3px; background: #fff;
  font-family: var(--s-serif); font-size: 15px; color: var(--s-navy);
}
.bk-field select:focus { outline: 0; border-color: var(--s-navy); box-shadow: 0 0 0 3px rgba(209, 157, 144, .45); }
.bk-field:has([data-error-for="month"]:not(:empty)) select { border-color: #B5473A; }
.bk-field [hidden] { display: none !important; }
.bk-note { margin: 2px 0 0; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 6px; background: rgba(209, 157, 144, .18); font-size: 14px; font-style: italic; color: var(--s-navy); }
.bk-note svg { flex: none; color: var(--s-merlot); }
.bk-note[hidden] { display: none; }
.bk-check { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-style: italic; cursor: pointer; }
.bk-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--s-merlot); }
.bk-error { font-size: 13px; color: #B5473A; font-weight: 600; }
.bk-error:empty { display: none; }
.bk-group { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.bk-group legend { padding: 0; margin-bottom: 10px; }

.pills { display: grid; gap: 12px; }
.pills--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pills--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.pill { position: relative; display: block; cursor: pointer; }
.pill input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pill span {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 48px; box-sizing: border-box; padding: 0 10px;
  border: 1px solid var(--s-input); border-radius: 999px; background: #fff; color: var(--s-navy);
  font-size: 15px; line-height: 1.2; transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.pill--sm span { font-size: 14px; }
.pill input:checked + span { background: var(--s-navy); border-color: var(--s-navy); color: var(--s-cream); }
.pill input:focus-visible + span { outline: 2px solid var(--s-rose); outline-offset: 2px; }
.pill:hover span { border-color: var(--s-navy); }

.booking__small { margin: -6px 0 0; text-align: center; font-size: 13px; font-style: italic; color: #4A5560; }
.booking__legal { margin: -10px 0 0; text-align: center; font-size: 12px; color: #4A5560; line-height: 1.5; }
.booking__legal a { text-decoration: underline; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.grecaptcha-badge { visibility: hidden; } /* allowed: the reCAPTCHA notice is shown in the form */

.booking__thanks { padding: 60px 0 40px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.booking__thanks img { width: 80px; height: auto; }
.booking__thanks-title { margin: 28px 0 0; font-size: 54px; line-height: 1.15; }
.booking__thanks p { margin: 14px 0 0; max-width: 420px; font-size: 17px; line-height: 1.65; }
.booking__thanks .booking__signature { margin-top: 22px; font-size: 14px; font-style: italic; }
.booking__thanks .btn-pill { margin-top: 32px; }

/* Toasts (App.toast) on the public site */
.toastify.antd-toast { font-family: var(--s-serif); border-radius: 6px; }

/* ── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  :root { --s-gutter: 24px; }
  .hero { padding-top: 32px; padding-bottom: 72px; }
  .hero__photo, .process__photo, .about__photo { flex-basis: 100%; max-width: 440px; margin: 0 auto; }
  .process__photo { order: 2; }
  .mission__inner, .process__inner { padding-top: 80px; padding-bottom: 80px; }
  .services, .about { padding-top: 80px; padding-bottom: 80px; }
}

@media (max-width: 760px) {
  .site { font-size: 16px; }
  .topbar__inner { justify-content: center; text-align: center; }
  .topbar__contacts { justify-content: center; column-gap: 20px; }
  .topbar__area { display: none; }

  .site-header { padding-top: 16px; padding-bottom: 16px; flex-wrap: wrap; gap: 12px; }
  .site-header__logo { min-width: 0; flex: 1 1 0; }
  .site-header__logo img { height: auto; width: 100%; max-width: 240px; }
  .site-header__toggle {
    display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px;
    border: 1px solid var(--s-navy); border-radius: 999px; background: none; color: var(--s-navy); cursor: pointer;
  }
  .site-nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0; border-top: 1px solid var(--s-line); }
  .site-nav.is-open { display: flex; }
  .site-nav > a:not(.btn-pill) { justify-content: center; border-bottom: 1px solid var(--s-line); }
  .site-nav .btn-pill { margin-top: 12px; }

  .offer { padding: 36px 28px; }
  .mission__values { gap: 8px 28px; font-size: 21px; }
  .step { gap: 18px; }
  .site-footer__legal { justify-content: center; }

  .booking__body { padding: 36px 22px 30px; }
  .booking__head { padding: 0 34px; } /* keep clear of the ✕ button */
  .booking__close { top: 10px; right: 8px; }
  .booking__title { font-size: 32px; }
  .booking__grid, .pills--2, .bk-date-row { grid-template-columns: 1fr; }
  .bk-date-row { gap: 8px; }
  .pills--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .booking[open] { animation: none; }
}
