/* Light theme modelled on frenchsaveurs.com. Mobile first; breakpoints: 640px (tablet), 1024px (desktop). */
:root {
  --bg: #ffffff;
  --surface: #f6f3ee;
  --sand: #d0b48e; /* frenchsaveurs.com flat colour; only --text on it */
  --text: #1a1a1a;
  --muted: #5e5e5e;
  --accent: #8a6a35; /* dark gold: kickers, links, focus, logotype */
  --gold-light: #c9a97a; /* decor only (rules), never text */
  --line: rgba(26, 26, 26, 0.15);
  --field-border: #8a8a8a;
  --error: #b3261e;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  --header-h: 4.5rem;
  --gutter: clamp(1rem, 5vw, 4rem);
  --wide: 80rem;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
.js { scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.75 var(--sans);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2 { font-family: var(--serif); font-weight: 400; line-height: 1.1; margin: 0; text-transform: uppercase; overflow-wrap: anywhere; }
h2 { font-size: clamp(2rem, 5vw, 3.2rem); }
p { margin: 0 0 1.1em; }
figure { margin: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: 1rem; top: -3rem; z-index: 100; background: var(--text); color: #fff; padding: .5rem 1rem; }
.skip:focus { top: 1rem; }

.kicker {
  font: 600 .72rem/1.4 var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.rule { width: 3.5rem; height: 1px; background: var(--gold-light); margin: 1.5rem 0; }

.btn {
  display: inline-flex; align-items: center; min-height: 2.75rem;
  font: 400 .95rem/1 var(--sans);
  text-decoration: none;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--text);
  border-radius: 2px;
  padding: .8rem 1.6rem;
  cursor: pointer;
  transition: background-color .25s, color .25s;
}
.btn:hover { background: var(--text); color: #fff; }
.btn:disabled { opacity: .5; cursor: wait; }

.link-out {
  display: inline-block; margin-top: .5rem; padding: .6rem 0;
  font: 600 .78rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); text-underline-offset: .35em;
}
.link-out::after { content: " →"; }
.link-out:hover { color: var(--text); }

/* Header */
.site-header {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  padding: .75rem var(--gutter);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.js .site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h); flex-wrap: nowrap; padding-block: 0;
}
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1; color: var(--accent); white-space: nowrap; }
.brand-kicker { font: 600 .62rem/1 var(--sans); letter-spacing: .38em; text-transform: uppercase; margin-bottom: .35rem; }
.brand-name { font: 400 1.5rem/1 var(--serif); letter-spacing: .08em; text-transform: uppercase; }

.nav ul { list-style: none; margin: 0; padding: 0; }
.nav a {
  display: flex; align-items: center; min-height: 2.75rem;
  font: 400 .72rem/1.2 var(--sans);
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  color: var(--text);
}
.nav a:hover { color: var(--accent); }

.menu-toggle { display: none; }

/* Without JS the nav stays in normal flow below the brand */
html:not(.js) .nav { flex-basis: 100%; }
html:not(.js) .nav ul { display: flex; flex-wrap: wrap; column-gap: 1.5rem; }

@media (max-width: 1023px) {
  .js .menu-toggle {
    display: block; width: 2.75rem; height: 2.75rem; margin-right: -.5rem;
    background: none; border: 0; cursor: pointer; padding: 0; position: relative;
  }
  .menu-bars, .menu-bars::before, .menu-bars::after {
    position: absolute; left: .55rem; width: 1.65rem; height: 1px; background: var(--text);
    transition: transform .3s, background-color .3s;
  }
  .menu-bars { top: 50%; }
  .menu-bars::before, .menu-bars::after { content: ""; left: 0; }
  .menu-bars::before { top: -.5rem; }
  .menu-bars::after { top: .5rem; }
  .menu-toggle[aria-expanded="true"] .menu-bars { background: transparent; }
  .menu-toggle[aria-expanded="true"] .menu-bars::before { transform: translateY(.5rem) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-bars::after { transform: translateY(-.5rem) rotate(-45deg); }

  .js .nav { display: none; }
  .js .nav.is-open {
    display: block;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: .5rem var(--gutter) 1.5rem;
  }
  .js .nav a { font-size: .8rem; border-bottom: 1px solid var(--line); }
}

@media (min-width: 1024px) {
  .nav ul { display: flex; gap: clamp(1.25rem, 2.2vw, 2.25rem); }
}

/* Hero: photo banner, text below on white */
.banner { position: relative; }
.banner img { width: 100%; height: clamp(16rem, 45vh, 32rem); object-fit: cover; }
.banner figcaption, .feature-media figcaption {
  position: absolute; right: 0; bottom: 0;
  background: var(--bg); color: var(--muted);
  font: 400 .68rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
  padding: .5rem .75rem;
}
.hero-inner { padding: clamp(2.5rem, 7vw, 5rem) var(--gutter) clamp(3rem, 8vw, 6rem); max-width: var(--wide); margin: 0 auto; }
.hero h1 { font-size: clamp(2.4rem, 7vw, 5.5rem); margin-bottom: 1.25rem; }
.hero-lead { font: italic 400 clamp(1.2rem, 2.4vw, 1.6rem)/1.4 var(--serif); margin-bottom: 2rem; max-width: 40ch; }

/* Sections */
.section { padding: clamp(4rem, 10vw, 8rem) var(--gutter); }
.intro { max-width: 62rem; margin: 0 auto; text-align: center; border-top: 1px solid var(--line); }
.intro .rule { margin-left: auto; margin-right: auto; }
.lead { font: 300 clamp(1.1rem, 1.8vw, 1.3rem)/1.75 var(--sans); max-width: 62ch; margin-left: auto; margin-right: auto; }

.poles { list-style: none; margin: 3rem 0 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
.poles li + li { border-top: 1px solid var(--line); }
.poles a {
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  padding: 1.75rem 1rem; text-decoration: none; transition: background-color .25s;
}
.poles a:hover { background: var(--surface); }
.pole-num { font: italic 400 1.1rem/1 var(--serif); color: var(--accent); }
.pole-name { font: 400 1.35rem/1.2 var(--serif); }
.pole-tag { font: 600 .68rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

@media (min-width: 640px) {
  .poles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .poles li + li { border-top: 0; border-left: 1px solid var(--line); }
}

/* Feature cards: image then text; overlapping card from 1024px */
.feature { max-width: var(--wide); margin: 0 auto; padding: clamp(3rem, 8vw, 6rem) var(--gutter); }
.feature-media { position: relative; }
.feature-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.feature-text { background: var(--bg); padding: 2rem 0 0; min-width: 0; }
.feature-text p { max-width: 65ch; }
.feature-place { font: italic 400 1.15rem/1.3 var(--serif); color: var(--muted); margin: .75rem 0 0; }
.note { color: var(--muted); font-size: .95rem; border-left: 1px solid var(--accent); padding-left: 1.25rem; }

@media (min-width: 1024px) {
  /* Card covers the image edge by two columns and drops below it, as on frenchsaveurs.com */
  .feature { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; padding-bottom: clamp(6rem, 10vw, 9rem); }
  .feature-media { grid-row: 1; grid-column: 1 / 9; }
  .feature-media img { aspect-ratio: 5 / 4; }
  .feature-media figcaption { right: auto; left: 0; }
  .feature-text {
    grid-row: 1; grid-column: 7 / 13; z-index: 1; margin-bottom: -4rem;
    padding: clamp(2.5rem, 4vw, 4rem); border: 1px solid var(--line);
  }
  .feature--reverse .feature-media { grid-column: 5 / 13; }
  .feature--reverse .feature-text { grid-column: 1 / 7; }
  .feature--reverse .feature-media figcaption { left: auto; right: 0; }
}

/* Œnotourisme: sand block (only --text on sand: accent is 2.5:1 there) */
.sejour { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter) clamp(3rem, 8vw, 6rem); }
.sejour .banner img { height: clamp(14rem, 35vh, 24rem); }
.sejour-block {
  display: grid; gap: 1.5rem 3rem;
  grid-template-areas: "head" "text" "services";
  background: var(--sand); color: var(--text);
  padding: clamp(2rem, 5vw, 4rem) clamp(1.25rem, 5vw, 4rem);
}
.sejour-head { grid-area: head; }
.sejour-text { grid-area: text; min-width: 0; }
.sejour-text p { max-width: 65ch; }
.sejour .kicker, .sejour .feature-place, .sejour .link-out, .sejour .note { color: var(--text); }
.sejour .note { border-color: var(--text); }
.sejour :focus-visible { outline-color: var(--text); }

.services { grid-area: services; list-style: none; margin: 0; padding: 0; }
.services li { padding: .9rem 0; border-top: 1px solid rgba(26, 26, 26, .25); }
.services span { display: block; font: italic 400 clamp(1.4rem, 2.6vw, 1.9rem)/1.25 var(--serif); }

@media (min-width: 1024px) {
  .sejour-block {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-areas: "services head" "services text";
    align-items: start;
  }
  .services { align-self: center; text-align: center; }
  .services li { border-top: 0; }
}

/* Contact */
.contact {
  display: grid; gap: 2rem;
  background: var(--surface);
  padding-inline: max(var(--gutter), (100% - 76rem) / 2);
}
.contact-head p:last-child { color: var(--muted); max-width: 45ch; }
.form { display: grid; gap: .25rem 2rem; min-width: 0; }
.field { min-width: 0; }
.field label {
  display: block; margin-bottom: .4rem;
  font: 600 .7rem/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.optional { text-transform: none; letter-spacing: 0; font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 2.75rem;
  font: 400 1rem/1.5 var(--sans);
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--field-border);
  border-radius: 2px;
  padding: .7rem .9rem;
}
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text) 50%), linear-gradient(135deg, var(--text) 50%, transparent 50%);
  background-position: calc(100% - 1.3rem) 55%, calc(100% - 1rem) 55%;
  background-size: .3rem .3rem; background-repeat: no-repeat;
}
.field textarea { resize: vertical; min-height: 10rem; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--text); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline-offset: 0; border-color: var(--accent); }
.field [aria-invalid="true"] { border-color: var(--error); border-width: 2px; }
.field-error { min-height: 1.5rem; margin: .3rem 0 .5rem; font-size: .875rem; color: var(--error); }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-legal { font-size: .875rem; color: var(--muted); }
.form-legal a { color: var(--accent); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; margin-top: .5rem; }
.form-status { margin: 0; flex: 1 1 16rem; }
.form-status.is-success { color: var(--text); font-weight: 600; }
.form-status.is-error { color: var(--error); }

@media (min-width: 640px) {
  .form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field--full { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .contact { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 5rem; }
}

/* Legal */
.legal {
  display: grid; gap: 2rem;
  padding: clamp(3rem, 6vw, 4rem) var(--gutter);
  border-top: 1px solid var(--line);
  font-size: .9rem; color: var(--muted);
}
.legal p { max-width: 75ch; overflow-wrap: break-word; }
.legal h2 { font-size: 1.4rem; color: var(--text); margin-bottom: 1rem; }
.legal strong { font-weight: 600; color: var(--text); }
.todo { color: var(--error); }
@media (min-width: 1024px) { .legal { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem; } }

/* Footer */
.site-footer {
  padding: 3rem var(--gutter) 2.5rem;
  background: var(--surface);
  border-top: 2px solid var(--sand);
  text-align: center;
  color: var(--muted);
  font-size: .875rem;
}
.footer-brand { font: 400 1.4rem/1.2 var(--serif); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.25rem; }
.footer-links { list-style: none; margin: 0 0 1.5rem; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; column-gap: 2rem; }
.footer-links a { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: none; letter-spacing: .14em; text-transform: uppercase; font-size: .72rem; color: var(--text); }
.footer-links a:hover, .footer-legal a:hover { color: var(--accent); }
.footer-legal { margin: 0 0 .5rem; }

/* Reveal: content stays visible if JS or IntersectionObserver is unavailable */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(1.5rem); transition: opacity .9s ease, transform .9s ease; }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}
