/* ==========================================================================
   La Maison de Giraud — feuille de style
   Palette inspirée de la Camargue : blanc de sel, sable, rose des salins,
   vert des marais.
   ========================================================================== */

:root {
  /* Couleurs */
  --c-bg: #FBF8F3;          /* blanc de sel */
  --c-bg-alt: #F3EDE3;      /* sable clair */
  --c-surface: #FFFFFF;
  --c-ink: #1F2A2E;         /* texte principal */
  --c-ink-soft: #55615F;    /* texte secondaire */
  --c-line: #E4DCCF;        /* bordures */
  --c-accent: #A24F3A;      /* terre cuite / rose des salins (contraste AA) */
  --c-accent-hover: #86402F;
  --c-accent-soft: #F6E4DD;
  --c-error: #B3261E;
  --c-error-soft: #FCEBEA;
  --c-success: #2F5F4F;
  --c-success-soft: #E6F0EB;
  --c-green: #3E6B63;       /* vert des marais */
  --c-booked: #E9E3DA;

  /* Typographie */
  --f-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --f-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Mise en page */
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(64px, 10vw, 120px);
  --radius: 14px;
  --radius-sm: 10px;
  --header-h: 68px;
  --shadow: 0 1px 2px rgba(31, 42, 46, .04), 0 8px 24px rgba(31, 42, 46, .06);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--f-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a, button, summary, input, select, textarea, label { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { margin: 0; font-family: var(--f-serif); font-weight: 500; line-height: 1.15; letter-spacing: -.01em; }
h2 { font-size: clamp(1.875rem, 1.3rem + 2.2vw, 2.75rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.icon {
  width: 1.25em; height: 1.25em; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}

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

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 10px 16px; background: var(--c-ink); color: #fff; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%; max-width: var(--container); margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}
.container-narrow { max-width: 820px; }

.section { padding-block: var(--section-y); }
.section-alt { background: var(--c-bg-alt); }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  flex-wrap: wrap; margin-bottom: clamp(32px, 5vw, 48px);
}
.section-head-center { justify-content: center; text-align: center; }

.eyebrow {
  margin-bottom: 12px;
  font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--c-accent);
}
.eyebrow-light { color: #fff; opacity: .9; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px;
  border: 1px solid transparent; border-radius: 999px;
  font-size: .9375rem; font-weight: 600; line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .1s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.98); }
.btn-lg { min-height: 52px; padding: 14px 28px; font-size: 1rem; }
.btn-block { width: 100%; white-space: normal; text-align: center; }

.btn-primary { background: var(--c-accent); color: #fff; }
.btn-primary:hover { background: var(--c-accent-hover); }

.btn-ghost { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .6); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .26); }

.btn-outline { background: transparent; border-color: var(--c-ink); color: var(--c-ink); }
.btn-outline:hover { background: var(--c-ink); color: #fff; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(251, 248, 243, .88);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--c-line); }

.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px;
  font-family: var(--f-serif); font-size: 1.1875rem; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.brand-mark { width: 32px; height: 32px; }
.brand-mark rect { fill: var(--c-accent); }
.brand-mark path { fill: none; stroke: #FBF8F3; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav ul { display: flex; gap: 24px; }
.nav ul a {
  position: relative; display: inline-block; padding-block: 10px; white-space: nowrap;
  font-size: .9375rem; font-weight: 500; color: var(--c-ink-soft); text-decoration: none;
  transition: color .2s var(--ease);
}
.nav ul a:hover, .nav ul a.is-active { color: var(--c-ink); }
.nav ul a.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; border-radius: 2px; background: var(--c-accent);
}

.header-cta { display: none; }

.nav-toggle {
  display: none; width: 44px; height: 44px; margin-right: -10px;
  align-items: center; justify-content: center;
  background: none; border: 0; border-radius: var(--radius-sm);
}
.nav-toggle .icon { width: 26px; height: 26px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: min(88svh, 820px);
  display: flex; align-items: flex-end;
  color: #fff;
}
.hero-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(20, 28, 30, .05) 20%, rgba(20, 28, 30, .7) 100%);
}
.hero-content { padding-block: clamp(48px, 9vw, 96px) clamp(56px, 8vw, 88px); }
.hero h1 { max-width: 16ch; font-size: clamp(2.25rem, 1.2rem + 4.4vw, 4.25rem); text-wrap: balance; }
.hero-lead { max-width: 52ch; margin: 20px 0 32px; font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); opacity: .95; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Chiffres clés ---------- */
.facts {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: -40px;
  background: var(--c-surface); border-radius: var(--radius); box-shadow: var(--shadow);
}
.facts li {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 24px 16px; color: var(--c-ink-soft); font-size: .9375rem;
}
.facts li + li { border-left: 1px solid var(--c-line); }
.facts .icon { width: 24px; height: 24px; color: var(--c-accent); }
.facts strong { color: var(--c-ink); font-weight: 600; }

/* ---------- Sections texte + image ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 96px); align-items: center; }
.split-reverse .split-text { order: 2; }
.split-text h2 { margin-bottom: 24px; }
.split-text > p { color: var(--c-ink-soft); }
.split-media { margin: 0; }
.split-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }

.checklist { display: grid; gap: 12px; margin-top: 28px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist .icon { margin-top: 3px; color: var(--c-green); }

/* ---------- Galerie ---------- */
.gallery {
  display: grid; gap: 12px;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(140px, 16vw, 210px);
}
.gallery li:first-child { grid-column: span 2; grid-row: span 2; }
.gallery li:nth-child(8) { grid-column: 3 / span 2; grid-row: span 2; }
.gallery li:nth-child(11), .gallery li:nth-child(12) { grid-column: span 2; }
.gallery button {
  display: block; width: 100%; height: 100%; padding: 0;
  border: 0; border-radius: var(--radius-sm); overflow: hidden; background: var(--c-line);
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease), opacity .2s; }
@media (hover: hover) {
  .gallery button:hover img { transform: scale(1.03); }
}

/* ---------- Équipements ---------- */
.rooms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 40px; }
.room {
  padding: 24px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius);
}
.room h3 { margin-bottom: 4px; font-size: 1.125rem; }
.room p { color: var(--c-ink-soft); font-size: .9375rem; }

.amenities { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 4px 32px; }
.amenities li {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid var(--c-line);
}
.amenities .icon { width: 22px; height: 22px; color: var(--c-accent); }

/* ---------- Tarifs ---------- */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.price-card {
  display: flex; flex-direction: column;
  padding: 28px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius);
}
.price-card-featured { border-color: var(--c-accent); box-shadow: 0 0 0 1px var(--c-accent); }
.price-card h3 { font-size: 1.125rem; }
.price-period { margin: 4px 0 20px; font-size: .9375rem; color: var(--c-ink-soft); }
.price { margin: auto 0 4px; font-size: .9375rem; color: var(--c-ink-soft); }
.price strong { font-family: var(--f-serif); font-size: 2rem; font-weight: 500; color: var(--c-ink); }
.price-note { font-size: .875rem; color: var(--c-ink-soft); }

.conditions {
  display: flex; flex-wrap: wrap; gap: 10px 28px;
  margin: 28px 0 48px; font-size: .9375rem; color: var(--c-ink-soft);
}
.conditions strong { color: var(--c-ink); font-weight: 600; }

/* ---------- Calendrier ---------- */
.availability {
  padding: clamp(20px, 4vw, 36px);
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius);
}
.availability-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 20px; }
.availability-head h3 { font-size: 1.5rem; }
.availability-hint { font-size: .9375rem; color: var(--c-ink-soft); }

.calendar { position: relative; }
.cal-toolbar {
  position: absolute; top: -4px; left: 0; right: 0;
  display: flex; justify-content: space-between; pointer-events: none;
}
.cal-nav {
  pointer-events: auto;
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 50%;
  transition: background-color .2s, border-color .2s;
}
.cal-nav:hover:not(:disabled) { border-color: var(--c-ink); }
.cal-nav:disabled { opacity: .35; cursor: default; }

.cal-months { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 56px); }
.cal-month-title {
  height: 32px; margin-bottom: 12px;
  font-family: var(--f-serif); font-size: 1.125rem; font-weight: 500; text-align: center; text-transform: capitalize;
}
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px 0; }
.cal-dow { padding-bottom: 8px; font-size: .75rem; font-weight: 600; text-align: center; text-transform: uppercase; color: var(--c-ink-soft); }

.cal-day {
  position: relative; aspect-ratio: 1; max-height: 48px;
  display: flex; align-items: center; justify-content: center;
  padding: 0; background: none; border: 0;
  font-size: .9375rem; font-variant-numeric: tabular-nums;
  -webkit-tap-highlight-color: transparent;
}
.cal-day span {
  display: flex; align-items: center; justify-content: center;
  width: 100%; max-width: 44px; height: 100%; max-height: 44px; border-radius: 50%;
  transition: background-color .15s;
}
@media (hover: hover) {
  .cal-day:not(:disabled):hover span { background: var(--c-accent-soft); }
}
.cal-day:disabled { cursor: default; }
.cal-day.is-past { color: #B9B2A7; }
.cal-day.is-booked { color: #A69E92; text-decoration: line-through; }
.cal-day.is-booked span { background: var(--c-booked); border-radius: 0; }
.cal-day.is-today span { box-shadow: inset 0 0 0 1px var(--c-ink); }

.cal-day.in-range { background: var(--c-accent-soft); }
.cal-day.is-start, .cal-day.is-end { color: #fff; }
.cal-day.is-start span, .cal-day.is-end span { background: var(--c-accent) !important; box-shadow: none; }
.cal-day.is-start.has-end { background: linear-gradient(90deg, transparent 50%, var(--c-accent-soft) 50%); }
.cal-day.is-end { background: linear-gradient(90deg, var(--c-accent-soft) 50%, transparent 50%); }

.cal-footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px;
  margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--c-line);
}
.cal-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .875rem; color: var(--c-ink-soft); }
.cal-legend li { display: flex; align-items: center; gap: 8px; }
.dot { width: 14px; height: 14px; border-radius: 4px; }
.dot-free { border: 1px solid var(--c-line); }
.dot-booked { background: var(--c-booked); }
.dot-selected { background: var(--c-accent); }

.cal-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.cal-summary-text { font-size: .9375rem; }
.cal-summary-text strong { font-weight: 600; }

/* ---------- Infos pratiques ---------- */
.infos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.infos li {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 24px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius);
}
.infos .icon { width: 24px; height: 24px; margin-top: 2px; color: var(--c-accent); }
.infos h3 { margin-bottom: 4px; font-size: 1.0625rem; }
.infos p { font-size: .9375rem; color: var(--c-ink-soft); }

/* ---------- Région ---------- */
.section-lead { max-width: 46ch; color: var(--c-ink-soft); }

.places { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: clamp(48px, 7vw, 80px); }
.places:focus-visible { outline-offset: 6px; border-radius: var(--radius); }
.place { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--c-line); isolation: isolate; }
.place img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.place-body {
  position: absolute; inset: auto 0 0 0; z-index: 1;
  padding: 48px 20px 20px; color: #fff;
  background: linear-gradient(180deg, rgba(20, 28, 30, 0), rgba(20, 28, 30, .72));
}
.place-body h3 { margin-bottom: 2px; font-size: 1.25rem; }
.place-body p { font-size: .875rem; opacity: .9; }

.split-top { align-items: start; }
.subhead { margin-bottom: 16px; font-size: 1.375rem; }
.split-top .distances { margin-top: 0; }
.subhead-note { margin: -8px 0 16px; font-size: .875rem; color: var(--c-ink-soft); }
.split-top .map iframe { aspect-ratio: 4 / 3; }
.distances { margin-top: 28px; border-top: 1px solid var(--c-line); }
.distances li {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 12px 0; border-bottom: 1px solid var(--c-line); font-size: .9375rem;
}
.distances li span:last-child { color: var(--c-ink-soft); white-space: nowrap; font-variant-numeric: tabular-nums; }

.map { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--c-line); }
.map iframe { display: block; width: 100%; aspect-ratio: 4 / 5; border: 0; filter: saturate(.8); }
.map-consent {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  aspect-ratio: 4 / 3; padding: clamp(20px, 4vw, 40px);
  text-align: center; background: var(--c-bg-alt); border: 1px solid var(--c-line); border-radius: var(--radius);
}
.map-consent .icon { width: 32px; height: 32px; color: var(--c-accent); }
.map-consent p { max-width: 42ch; margin: 0; font-size: .9375rem; color: var(--c-ink-soft); }
.map-consent .map-consent-title { font-family: var(--f-serif); font-size: 1.25rem; color: var(--c-ink); }
.map-consent a { color: var(--c-accent); font-weight: 500; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--c-line); }
.faq details { border-bottom: 1px solid var(--c-line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 0; cursor: pointer; list-style: none;
  font-weight: 500; font-size: 1.0625rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex-shrink: 0; width: 12px; height: 12px;
  border-right: 2px solid var(--c-ink-soft); border-bottom: 2px solid var(--c-ink-soft);
  transform: translateY(-3px) rotate(45deg); transition: transform .2s var(--ease);
}
.faq details[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.faq details p { max-width: 64ch; padding-bottom: 22px; color: var(--c-ink-soft); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 96px); align-items: start; }
.contact-intro h2 { margin-bottom: 16px; }
.contact-intro > p { color: var(--c-ink-soft); }
.contact-direct { display: grid; gap: 4px; margin-top: 28px; }
.contact-direct li { display: flex; align-items: center; gap: 12px; }
.contact-direct .icon { color: var(--c-accent); }
.contact-direct a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; text-decoration: underline; text-decoration-color: var(--c-line); text-underline-offset: 6px; overflow-wrap: anywhere; }
.contact-direct a:hover { text-decoration-color: var(--c-ink); }

.form {
  display: grid; gap: 18px;
  padding: clamp(20px, 4vw, 36px);
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: .875rem; font-weight: 600; }
.optional { font-weight: 400; color: var(--c-ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font-size: 1rem; /* 16px : évite le zoom automatique sur iOS */
  background: var(--c-bg); border: 1px solid var(--c-line); border-radius: var(--radius-sm);
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.field select {
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2355615F' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--c-accent); box-shadow: 0 0 0 3px var(--c-accent-soft);
}
.field [aria-invalid="true"] { border-color: var(--c-error); background: var(--c-error-soft); }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 3px var(--c-error-soft); }
.field-error { display: flex; gap: 6px; align-items: flex-start; font-size: .875rem; font-weight: 500; color: var(--c-error); }
.field-error::before { content: "!"; flex-shrink: 0; display: inline-grid; place-items: center; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; background: var(--c-error); color: #fff; font-size: .75rem; font-weight: 700; }
.field input[type="date"] { display: block; min-width: 0; line-height: 1.4; }
.field input[type="date"]::-webkit-date-and-time-value { text-align: left; }
.field input[type="date"]::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .6; }

.form-success {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 18px; border-radius: var(--radius-sm);
  background: var(--c-success-soft); color: var(--c-success);
}
.form-success .icon { width: 22px; height: 22px; margin-top: 2px; }
.form-success p { font-size: .9375rem; }
.form-success-title { margin-bottom: 2px !important; font-weight: 600; }
.form-success a { color: inherit; font-weight: 600; overflow-wrap: anywhere; }
.form-note { font-size: .875rem; color: var(--c-ink-soft); text-align: center; }
.form-required { font-size: .875rem; color: var(--c-ink-soft); }
.field-check { grid-template-columns: auto 1fr; align-items: start; gap: 4px 12px; }
.field-check input[type="checkbox"] {
  width: 24px; height: 24px; min-height: 0; margin: 1px 0 0; padding: 0;
  border: 1.5px solid var(--c-ink-soft); border-radius: 6px; background: var(--c-surface);
  display: grid; place-items: center; cursor: pointer;
}
.field-check input[type="checkbox"]:checked {
  background: var(--c-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 16px no-repeat;
  border-color: var(--c-accent);
}
.field-check input[type="checkbox"]:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; box-shadow: none; }
.field-check label { font-size: .9375rem; font-weight: 400; line-height: 1.5; cursor: pointer; }
.field-check label a { color: var(--c-accent); font-weight: 500; }
.field-check .field-error { grid-column: 2; }

/* ---------- Pied de page ---------- */
.site-footer { padding-block: 48px; background: var(--c-ink); color: rgba(255, 255, 255, .72); font-size: .9375rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; }
.footer-inner p { margin: 0; }
.brand-footer { color: #fff; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 20px; }
.site-footer a[aria-current="page"] { color: #fff; text-decoration: underline; }

/* ---------- Barre mobile ---------- */
.mobile-bar { display: none; }

/* ---------- Visionneuse ---------- */
.lightbox {
  width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0;
  border: 0; background: rgba(15, 20, 22, .96); color: #fff;
}
.lightbox[open] { display: grid; grid-template-rows: auto 1fr; }
.lightbox::backdrop { background: rgba(15, 20, 22, .96); }
.lightbox-top { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; }
.lightbox-count { margin: 0; font-size: .9375rem; opacity: .8; font-variant-numeric: tabular-nums; }
.lightbox-figure { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 0; margin: 0; padding: 0 72px 32px; }
.lightbox-figure img { max-width: 100%; max-height: calc(100% - 40px); object-fit: contain; border-radius: 6px; }
.lightbox-figure figcaption { font-size: .9375rem; opacity: .8; text-align: center; }
.lightbox-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; background: rgba(255, 255, 255, .1); border: 0; border-radius: 50%; color: #fff;
  transition: background-color .2s;
}
.lightbox-btn:hover { background: rgba(255, 255, 255, .2); }
.lightbox-btn .icon { width: 24px; height: 24px; }
.lightbox-prev, .lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

/* ---------- Page légale ---------- */
.legal { padding-block: clamp(48px, 8vw, 96px); }
.legal h1 { margin-bottom: 32px; font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); }
.legal h2 { margin: 40px 0 12px; font-size: 1.375rem; }
.legal p { color: var(--c-ink-soft); }
.legal-updated { margin-top: -20px; margin-bottom: 32px; font-size: .875rem; color: var(--c-ink-soft); }
.legal-intro { padding: 20px 24px; background: var(--c-bg-alt); border-radius: var(--radius); color: var(--c-ink) !important; }
.legal h3 { margin: 24px 0 8px; font-size: 1.125rem; }
.legal ul { display: grid; gap: 8px; margin: 0 0 1em; padding-left: 1.25em; list-style: disc; color: var(--c-ink-soft); }
.legal li::marker { color: var(--c-accent); }
.legal a { color: var(--c-accent); text-underline-offset: 3px; }
.legal strong { color: var(--c-ink); }
.legal section { scroll-margin-top: calc(var(--header-h) + 16px); }
.legal-toc { margin-bottom: 40px; padding: 20px 24px; border: 1px solid var(--c-line); border-radius: var(--radius); background: var(--c-surface); }
.legal-toc-title { margin-bottom: 8px; font-weight: 600; color: var(--c-ink) !important; }
.legal-toc ol { display: grid; gap: 2px; margin: 0; padding-left: 1.25em; }
.legal-toc a { display: inline-block; padding: 6px 0; text-decoration: none; }
.legal-toc a:hover { text-decoration: underline; }
.table-wrap { overflow-x: auto; margin: 0 0 1em; border: 1px solid var(--c-line); border-radius: var(--radius-sm); }
.legal table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.legal th, .legal td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--c-line); }
.legal th { background: var(--c-bg-alt); font-weight: 600; }
.legal tr:last-child td { border-bottom: 0; }
.legal td { color: var(--c-ink-soft); }
.legal code { font-size: .875em; padding: 1px 5px; border-radius: 4px; background: var(--c-bg-alt); }
.legal-cta { margin-left: auto; }
.legal-page .site-header .header-inner { gap: 16px; }

/* Informations à compléter par le propriétaire : surlignées pour être repérées facilement */
.todo { padding: 0 4px; border-radius: 4px; background: #FFF1B8; color: #5C4600; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

.back-link { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 32px; font-weight: 500; text-decoration: none; color: var(--c-ink-soft); }
.back-link:hover { color: var(--c-ink); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; }
  .header-cta { display: inline-flex; margin-left: auto; }
  .header-inner { gap: 12px; }

  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 16px;
    padding: 8px var(--gutter) 24px;
    background: var(--c-bg); border-bottom: 1px solid var(--c-line);
    box-shadow: 0 16px 32px rgba(31, 42, 46, .08);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav { max-height: calc(100dvh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { display: block; padding: 14px 0; font-size: 1.0625rem; color: var(--c-ink); border-bottom: 1px solid var(--c-line); }
  .nav ul a.is-active { color: var(--c-accent); }
  .nav ul a.is-active::after { display: none; }
  .nav-cta { display: none; }
}

@media (max-width: 960px) {

  .split, .contact { grid-template-columns: minmax(0, 1fr); }
  .split-reverse .split-text { order: 0; }
  .split-media img { aspect-ratio: 4 / 3; }
  .map iframe { aspect-ratio: 4 / 3; }

  .prices { grid-template-columns: 1fr; }
  .price-card { flex-direction: row; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
  .price-card h3 { flex-basis: 100%; }
  .price-period { margin: 0; flex: 1; }
  .price { margin: 0; }
  .price-note { flex-basis: 100%; margin: 0; }

  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 26vw; }
  .gallery li:nth-child(8) { grid-column: span 2; }

  .infos { grid-template-columns: 1fr 1fr; }
  .places { grid-template-columns: 1fr 1fr; }
  .place img { aspect-ratio: 4 / 3; }
}

@media (max-width: 720px) {
  html { scroll-padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
  body { font-size: 1rem; padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .header-cta { display: none; }
  .nav-cta { display: inline-flex; min-height: 52px; }
  .legal-page { padding-bottom: 0; }
  .legal-cta { padding-inline: 16px; font-size: .875rem; }

  .hero { min-height: 78svh; }
  .hero-actions .btn { flex: 1 1 100%; }

  .facts { grid-template-columns: 1fr 1fr; margin-top: -28px; }
  .facts li { justify-content: flex-start; padding: 18px 16px; }
  .facts li + li { border-left: 0; }
  .facts li:nth-child(even) { border-left: 1px solid var(--c-line); }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--c-line); }

  .section-head .btn { width: 100%; }

  /* Galerie : défilement horizontal au doigt */
  .gallery {
    display: flex; gap: 10px;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    overscroll-behavior-x: contain; scrollbar-width: none;
  }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery li { flex: 0 0 84%; aspect-ratio: 4 / 3; scroll-snap-align: start; }
  .gallery li:first-child, .gallery li:nth-child(8),
  .gallery li:nth-child(11), .gallery li:nth-child(12) { grid-column: auto; grid-row: auto; }

  .infos { grid-template-columns: 1fr; gap: 10px; }
  .infos li { padding: 18px 20px; }

  /* Encarts région : défilement horizontal comme la galerie */
  .places {
    display: flex; gap: 10px;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    overscroll-behavior-x: contain; scrollbar-width: none;
  }
  .places::-webkit-scrollbar { display: none; }
  .place { flex: 0 0 72%; scroll-snap-align: start; }
  .place img { aspect-ratio: 4 / 5; }

  .rooms { grid-template-columns: 1fr; gap: 10px; }
  .room { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 20px; }
  .room h3 { margin: 0; font-size: 1rem; }

  .cal-months { grid-template-columns: 1fr; }
  .cal-months > :nth-child(2) { display: none; }
  .cal-summary { width: 100%; }
  .cal-summary .btn { width: 100%; }

  .form-row { grid-template-columns: 1fr 1fr; gap: 12px; }

  .footer-inner { flex-direction: column; align-items: flex-start; }

  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px);
    border-top: 1px solid var(--c-line);
    transition: transform .25s var(--ease);
  }
  .mobile-bar.is-hidden, .menu-open .mobile-bar { transform: translateY(110%); }
  .mobile-bar p { min-width: 0; margin: 0; font-size: .9375rem; color: var(--c-ink-soft); }
  .mobile-bar strong, .mobile-bar-label { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .mobile-bar-label { display: block; font-size: .8125rem; }
  .mobile-bar strong { display: block; font-family: var(--f-serif); font-size: 1.0625rem; font-weight: 500; line-height: 1.3; color: var(--c-ink); }
  .mobile-bar .btn { flex-shrink: 0; padding-inline: 22px; }

  .lightbox-figure { padding: 0 0 88px; }
  .lightbox-prev, .lightbox-next { top: auto; bottom: calc(20px + env(safe-area-inset-bottom)); transform: none; }
  .lightbox-prev { left: calc(50% - 60px); }
  .lightbox-next { right: calc(50% - 60px); }
}

@media (max-width: 380px) {
  .legal-page .brand span { display: none; }
  .mobile-bar p { display: none; }
  .mobile-bar .btn { flex: 1; }
  .form-row { grid-template-columns: 1fr; }
  .brand span { font-size: 1.0625rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
