/* =========================================================
   Résonances — styles.css
   Titles: Zen Kurenaido (Google Fonts)
   Body:   Beautifully Delicious Sans (self-hosted, licensed files
           in /assets/fonts/beautifully-delicious-sans/, weights
           100/400/700/900).
   Script: Beautifully Delicious Script (self-hosted, licensed files
           in /assets/fonts/beautifully-delicious-script/) -- reserved
           for the "Résidences gastronomiques" wordmark. Everything
           else on the page is set in uppercase (body.uppercase-all
           below); the script wordmark is the one exception and keeps
           its natural case.
   Brand mark: /assets/img/logo.png replaces the "RÉSONANCES" text
           wherever it appeared as the standalone brand mark (header,
           hero eyebrow) -- kept as real text via .brand-logo's
           accessible label, just rendered as the emblem image.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Zen+Kurenaido&display=swap');

@font-face {
  font-family: 'Beautifully Delicious Sans';
  src: url('/assets/fonts/beautifully-delicious-sans/thin.woff2') format('woff2'),
       url('/assets/fonts/beautifully-delicious-sans/thin.woff') format('woff');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Beautifully Delicious Sans';
  src: url('/assets/fonts/beautifully-delicious-sans/regular.woff2') format('woff2'),
       url('/assets/fonts/beautifully-delicious-sans/regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Beautifully Delicious Sans';
  src: url('/assets/fonts/beautifully-delicious-sans/bold.woff2') format('woff2'),
       url('/assets/fonts/beautifully-delicious-sans/bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Beautifully Delicious Sans';
  src: url('/assets/fonts/beautifully-delicious-sans/black.woff2') format('woff2'),
       url('/assets/fonts/beautifully-delicious-sans/black.woff') format('woff');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Beautifully Delicious Script';
  src: url('/assets/fonts/beautifully-delicious-script/regular.woff2') format('woff2'),
       url('/assets/fonts/beautifully-delicious-script/regular.woff') format('woff');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Beautifully Delicious Script';
  src: url('/assets/fonts/beautifully-delicious-script/bold.woff2') format('woff2'),
       url('/assets/fonts/beautifully-delicious-script/bold.woff') format('woff');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --color-bg: #f6f1e9;
  --color-bg-alt: #efe7d8;
  --color-ink: #241f1a;
  --color-ink-soft: #4a4136;
  --color-accent: #8a6b3f;
  --color-accent-soft: #cbb794;
  --color-line: rgba(36, 31, 26, 0.14);
  --color-card: #fffdf8;
  --color-error: #a3403a;

  --font-title: 'Zen Kurenaido', 'Times New Roman', serif;
  --font-body: 'Beautifully Delicious Sans', 'Avenir Next', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-script: 'Beautifully Delicious Script', 'Segoe Script', 'Brush Script MT', cursive;

  --tracking: -0.05em;
  --tracking-caps: 0.02em;
  --container: 780px;
  --radius: 2px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

/* Whole page reads in capitals -- the one exception is anything set in
   the script font (.script-font), which keeps its natural case since an
   all-caps script would be illegible. text-transform is inherited, so
   this cascades everywhere by default; .script-font opts back out. */
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-body);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .title-font {
  font-family: var(--font-title);
  letter-spacing: var(--tracking-caps);
  font-weight: 400;
  line-height: 1.15;
  color: var(--color-ink);
  margin: 0 0 0.5em;
}

.script-font {
  font-family: var(--font-script);
  font-style: italic;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
}

a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 560px) {
  .container { padding: 0 26px; }
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  row-gap: 10px;
  padding: 18px 24px;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-line);
}

/* Wordmark: top-left. Works whether it's the only child (doc pages) or
   paired with nav (space-between puts it first/left either way). On
   mobile the hamburger sits before it, both grouped in .header-left --
   see .nav-toggle below. */
.header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
}

.brand-logo img {
  display: block;
  height: 30px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.site-nav a { color: var(--color-ink-soft); }

.lang-switch {
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 4px 10px;
  color: var(--color-ink);
}

/* Réservation stands alone as a small CTA pill, distinct from the
   collapsible Intention / Les actes / Les voix group. */
.nav-cta {
  border: 1px solid var(--color-ink);
  border-radius: var(--radius);
  padding: 6px 16px;
  color: var(--color-ink) !important;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 22px;
}

/* Hamburger toggle -- hidden on desktop, shown only under the mobile
   breakpoint below, where it reveals Intention/Les actes/Les voix as a
   dropdown. Réservation and the language switch stay visible either way. */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 26px;
  height: 22px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--color-ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.is-active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 640px) {
  /* Tightened so [hamburger][logo] ... [Réservation][EN] reliably fits
     on a single line down to a 320px-wide phone -- it was wrapping to
     two rows before. */
  .site-header { padding: 14px 16px; }
  .header-left { gap: 8px; }
  .brand-logo img { height: 22px; }
  .site-nav { gap: 10px; font-size: 0.68rem; }
  .nav-cta { padding: 5px 10px; }
  .lang-switch { padding: 4px 8px; }

  .nav-toggle { display: flex; width: 22px; height: 18px; }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 6px 24px 18px;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-line);
  }

  .nav-menu.open { display: flex; }

  .nav-menu a { padding: 12px 0; width: 100%; }
}

/* ---------- Hero ---------- */
/* Maison Careï at dusk, with a #1c1814-at-46% overlay for contrast --
   evokes the branded OG photo without being a literal copy of it. */
.hero {
  min-height: 86vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  background:
    linear-gradient(rgba(28, 24, 20, 0.46), rgba(28, 24, 20, 0.46)),
    url('/assets/img/hero-bg-mobile.jpg') center / cover no-repeat;
}

@media (min-width: 800px) {
  .hero {
    background-image:
      linear-gradient(rgba(28, 24, 20, 0.46), rgba(28, 24, 20, 0.46)),
      url('/assets/img/hero-bg.jpg');
  }
}

.hero .eyebrow-logo {
  margin-bottom: 22px;
}

.hero .eyebrow-logo img {
  display: block;
  height: clamp(210px, 22vw, 320px);
  width: auto;
  margin: 0 auto;
  max-width: 90vw;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  max-width: 92vw;
  white-space: nowrap;
  color: var(--color-bg);
}

@media (max-width: 560px) {
  .hero h1 { white-space: normal; }
}

.hero .tagline {
  max-width: 40ch;
  font-size: 1.15rem;
  color: rgba(246, 241, 233, 0.85);
  margin: 22px 0 40px;
}

.btn {
  display: inline-block;
  border: 1px solid var(--color-ink);
  color: var(--color-ink);
  background: transparent;
  padding: 14px 34px;
  font-family: var(--font-body);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.85rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  background: var(--color-ink);
  color: var(--color-bg);
  text-decoration: none;
}

.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
  background: var(--color-ink);
  color: var(--color-bg);
}
.btn-primary:hover { background: var(--color-accent); }

/* On the dark hero photo, a near-black button would disappear into the
   background -- use the warm accent tone instead so the CTA still reads. */
.hero .btn-primary {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-bg);
}
.hero .btn-primary:hover {
  background: var(--color-bg);
  border-color: var(--color-bg);
  color: var(--color-ink);
}

/* ---------- Sections ---------- */
section {
  padding: 96px 0;
  border-top: 1px solid var(--color-line);
}

section > .container > h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  margin-bottom: 0.9em;
}

.intention p {
  font-size: 1.05rem;
  color: var(--color-ink-soft);
  max-width: 62ch;
}

.residence-meta {
  display: grid;
  gap: 10px;
  font-size: 1.05rem;
  margin-top: 20px;
}

.residence-meta .price {
  font-family: var(--font-title);
  font-size: 1.6rem;
  margin-top: 12px;
}

/* ---------- Acts ---------- */
.acts-grid {
  display: grid;
  gap: 48px;
  margin-top: 20px;
}

.act h3 {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: var(--tracking-caps);
  font-size: 1.15rem;
  color: var(--color-accent);
  margin-bottom: 0.4em;
}

.act p {
  color: var(--color-ink-soft);
  max-width: 64ch;
}

.acts-note {
  margin-top: 32px;
  font-size: 0.92rem;
  color: var(--color-ink-soft);
  font-style: italic;
}

/* ---------- Voices ---------- */
.voices-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 22px;
}

.voices-list li {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--color-line);
}

.voices-list .name {
  font-family: var(--font-title);
  font-size: 1.1rem;
  display: block;
  margin-bottom: 4px;
}

.voices-list .role {
  color: var(--color-ink-soft);
  font-size: 0.98rem;
}

/* ---------- Nuitée gallery (full-width, breaks out of .container) ---------- */
.gallery {
  margin-top: 36px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.gallery-track {
  display: flex;
  gap: 0;
  width: max-content;
  margin: 0 auto;
}

.gallery-track img {
  display: block;
  height: 260px;
  width: auto;
  flex: 0 0 auto;
  object-fit: cover;
  scroll-snap-align: start;
}

@media (max-width: 640px) {
  .gallery-track img { height: 200px; }
}

/* ---------- Reservation ---------- */
/* Heading/intro/notice/form all share the .container width (no separate
   cap here) so the section lines up with the rest of the page instead of
   sitting as a narrower, left-shifted block. The party-size/rooms/guests
   <select> elements get their own small max-width below instead -- that's
   what was actually making things look "stretched" before, not the
   section's overall width. */
.reservation-intro {
  color: var(--color-ink-soft);
  margin-bottom: 14px;
}

.hold-notice {
  font-size: 0.88rem;
  color: var(--color-ink-soft);
  border-left: 2px solid var(--color-accent-soft);
  padding-left: 14px;
  margin: 20px 0 36px;
}

form#reservation-form {
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--color-ink-soft);
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="number"],
.field textarea,
.field select {
  font-family: var(--font-body);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  padding: 12px 14px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-card);
  color: var(--color-ink);
  font-size: 1rem;
}

.field textarea { min-height: 90px; resize: vertical; }

/* Party size / rooms / overnight-guests only ever hold a single digit --
   left at 100% they'd stretch to fill their whole grid column (~330px on
   a wide form), which looked absurd for a "1/2/3/4" picker. Capping the
   width alone left it stranded at the left edge of its column though,
   with dead space where the column's right edge should be -- so it read
   as unaligned next to its full-width neighbours. Right-aligning it
   brings its right edge back in line with theirs while keeping it narrow. */
.field select { max-width: 180px; justify-self: end; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}

.checkbox-field input { width: 18px; height: 18px; }

.overnight-details {
  display: none;
  gap: 18px;
  grid-template-columns: 1fr 1fr;
  padding: 14px;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
}

.overnight-details.visible { display: grid; }

#card-element {
  padding: 14px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-card);
}

#card-errors {
  color: var(--color-error);
  font-size: 0.88rem;
  min-height: 1.2em;
}

.form-status {
  font-size: 0.95rem;
  min-height: 1.4em;
}

.form-status.error { color: var(--color-error); }
.form-status.success { color: var(--color-accent); }

/* ---------- Footer ---------- */
footer.site-footer {
  border-top: 1px solid var(--color-line);
  padding: 40px 24px;
  font-size: 0.85rem;
  color: var(--color-ink-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  justify-content: space-between;
  align-items: center;
}

footer.site-footer .links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 0.8rem;
}

/* data-size="flexible" makes the widget fill its container, but this is a
   backstop in case its internal iframe ever asserts a fixed width wider
   than the page -- without it that overflowed the whole page horizontally.
   width:100%/display:block keep it flush with the rest of the form fields
   above and below it, instead of shrink-wrapping and drifting right. */
.cf-turnstile {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

/* ---------- Cookie consent banner ---------- */
#consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  background: var(--color-ink);
  color: var(--color-bg);
  padding: 18px 24px;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.88rem;
}

#consent-banner.visible { display: flex; }

#consent-banner p { margin: 0; max-width: 60ch; color: var(--color-bg); }

#consent-banner .consent-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

#consent-banner .btn {
  padding: 8px 18px;
  font-size: 0.85rem;
  border-color: var(--color-bg);
  color: var(--color-bg);
}

#consent-banner .btn:hover { background: var(--color-bg); color: var(--color-ink); }

/* ---------- Legal / press pages ---------- */
.doc-page .container { max-width: 720px; padding-top: 60px; padding-bottom: 100px; }
.doc-page h2 { margin-top: 1.6em; font-size: 1.25rem; }
.doc-page p, .doc-page li { color: var(--color-ink-soft); }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .field-row, .overnight-details { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .hero { padding-top: 100px; }
}
