/* ==========================================================
   Le Fournil de Lalo
   Palette : granite, ardoise, châtaignier, prés de Xaintrie
   ========================================================== */

:root {
  --paper: #f5f0e6;
  --paper-2: #ece4d4;
  --stone: #e3dccd;
  --ink: #1f241f;
  --ink-soft: #4d5249;
  --muted: #7a7d72;
  --line: #d6cdb9;
  --forest: #2f4434;
  --forest-deep: #223127;
  --moss: #7d8a56;
  --chestnut: #9a4f2c;
  --chestnut-soft: #e9d3c3;
  --slate: #48525a;
  --white: #fffdf8;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 4px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 136px);

  /* Grain discret pour un rendu « papier » */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.2 0 0 0 0 0.18 0 0 0 0 0.12 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.08; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-variation-settings: "opsz" 144; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--chestnut); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; position: relative; }
.paper { background: var(--paper) var(--grain); }
.stone { background: var(--stone) var(--grain); }
.forest { background: var(--forest) var(--grain); color: var(--paper); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.85em 1.6em; border-radius: 999px;
  font: 600 0.95rem/1 var(--sans); letter-spacing: 0.02em;
  text-decoration: none; border: 1.5px solid transparent;
  transition: background .25s, color .25s, border-color .25s, transform .25s;
}
.btn:hover { transform: translateY(-1px); }
.btn-light { background: var(--paper); color: var(--forest-deep); }
.btn-light:hover { background: var(--white); }
.btn-ghost { color: var(--white); border-color: rgba(255,253,248,.6); }
.btn-ghost:hover { background: rgba(255,253,248,.12); border-color: var(--white); }
.btn-dark { background: var(--forest); color: var(--paper); }
.btn-dark:hover { background: var(--forest-deep); }
.btn-outline { border-color: var(--forest); color: var(--forest); }
.btn-outline:hover { background: var(--forest); color: var(--paper); }

/* ---------- Kicker / titres de section ---------- */
.kicker {
  display: flex; align-items: center; gap: 14px;
  font: 600 0.78rem/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--chestnut); margin-bottom: 24px;
}
.kicker span { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.05rem; letter-spacing: 0; }
.kicker::after { content: ""; height: 1px; width: 56px; background: currentColor; opacity: .5; }
.kicker.light { color: #d9b79d; }

.section-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px 64px; align-items: end; margin-bottom: 56px; }
.section-head p { color: var(--ink-soft); margin: 0; max-width: 46ch; }
.sub {
  font-size: 1.6rem; font-style: italic; color: var(--forest);
  margin: 72px 0 28px; display: flex; align-items: center; gap: 20px;
}
.sub::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.section-head + .sub { margin-top: 0; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  color: var(--white);
  transition: background .35s, color .35s, padding .35s, box-shadow .35s;
}
.site-header.is-solid {
  color: var(--ink);
  padding-top: 12px; padding-bottom: 12px;
  box-shadow: 0 1px 0 var(--line);
}
/* Fond flouté sur un pseudo-élément : un backdrop-filter sur l'en-tête lui-même
   enfermerait le menu mobile (position: fixed) dans la hauteur de l'en-tête. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(245,240,230,.94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; transition: opacity .35s;
}
.site-header.is-solid::before { opacity: 1; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 500 1.2rem/1 var(--serif); }
.brand-mark { width: 30px; height: 30px; }
.brand-mark .flame { fill: #d9894f; }
.brand-mark .smoke { opacity: .6; }
.nav { display: flex; align-items: center; gap: 30px; font-size: 0.95rem; font-weight: 500; }
.nav a { text-decoration: none; position: relative; }
.nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.nav a:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav-cta { padding: .55em 1.2em; border: 1.5px solid currentColor; border-radius: 999px; }
.nav-cta:hover { background: currentColor; }
.nav-cta:hover { color: var(--forest); }
.site-header:not(.is-solid) .nav-cta:hover { background: var(--paper); border-color: var(--paper); }
.site-header.is-solid .nav-cta:hover { background: var(--forest); border-color: var(--forest); color: var(--paper); }
.nav-toggle { display: none; }
.langs { display: flex; gap: 2px; margin-left: -8px; font-size: .78rem; letter-spacing: .08em; }
.langs a { padding: 4px 6px; border-radius: 3px; opacity: .6; text-decoration: none; }
.langs a:hover { opacity: 1; }
.langs a[aria-current] { opacity: 1; font-weight: 600; }
.langs a::after { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: min(100svh, 1000px); display: flex; align-items: flex-end;
  color: var(--white); overflow: hidden;
}
.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%;
  animation: heroZoom 18s ease-out forwards;
}
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(20,28,22,.55) 0%, rgba(20,28,22,0) 22%),
    linear-gradient(90deg, rgba(20,28,22,.62) 0%, rgba(20,28,22,.3) 45%, rgba(20,28,22,0) 70%),
    linear-gradient(0deg, rgba(20,28,22,.82) 0%, rgba(20,28,22,.35) 42%, rgba(20,28,22,0) 70%);
}
.hero-content {
  position: relative; z-index: 2; width: 100%; max-width: var(--wrap); margin: 0 auto;
  padding: 0 var(--gutter) clamp(72px, 12vh, 128px);
}
.eyebrow {
  font: italic 400 1.15rem/1 var(--serif); color: #ecd2bd; margin-bottom: 18px;
  display: flex; align-items: center; gap: 14px;
}
.eyebrow::before { content: ""; width: 40px; height: 1px; background: currentColor; }
.hero h1 {
  font-size: clamp(3.4rem, 10vw, 8.5rem); line-height: .92; font-weight: 300;
  font-variation-settings: "opsz" 144; letter-spacing: -0.025em;
}
.hero h1 em { font-style: italic; font-weight: 300; color: #f1dccb; }
.hero-lede { max-width: 34ch; font-size: clamp(1.05rem, 1.6vw, 1.25rem); margin: 28px 0 36px; color: rgba(255,253,248,.9); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-place {
  position: absolute; z-index: 2; right: var(--gutter); bottom: 40px; margin: 0;
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-size: .75rem; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,253,248,.75);
}

/* ---------- Intro ---------- */
.intro { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.intro h2 { margin-bottom: 32px; }
.lead { font-family: var(--serif); font-size: 1.35rem; line-height: 1.5; color: var(--forest); }
.intro-text > p:not(.lead):not(.kicker) { color: var(--ink-soft); }
.features {
  list-style: none; padding: 0; margin: 40px 0 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px;
  border-top: 1px solid var(--line);
}
.features li {
  display: flex; align-items: center; gap: 12px; padding: 14px 0;
  border-bottom: 1px solid var(--line); font-size: 0.98rem;
}
.features svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--chestnut); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.intro-photos { position: relative; margin: 0; padding-bottom: 18%; }
.ph-main { width: 88%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius); }
.ph-over {
  position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 3/4; object-fit: cover;
  border: 8px solid var(--paper); border-radius: var(--radius);
  box-shadow: 0 20px 40px -20px rgba(31,36,31,.35);
}

/* ---------- Galerie ---------- */
.gallery {
  margin-top: clamp(72px, 9vw, 120px);
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 12px;
}
.g { position: relative; overflow: hidden; border-radius: var(--radius); cursor: zoom-in; }
.g img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.g:hover img { transform: scale(1.04); }
.g-wide { grid-column: span 2; grid-row: span 2; }
.g-tall { grid-row: span 2; }
.g-span2 { grid-column: span 2; }

/* ---------- Le gîte en détail ---------- */
.details { margin-top: 72px; }
.floors { display: grid; grid-template-columns: 1fr 1.25fr; gap: 24px; }
.floor { display: flex; flex-direction: column; padding: 26px; border-radius: 14px; background: #fbf8f1; border: 1px solid var(--line); }
.floor h4 { margin: 0 0 18px; font: italic 400 1.2rem/1 var(--serif); color: var(--chestnut); }
.room { position: relative; padding: 16px; border-radius: 10px; background: var(--paper); border: 1px solid var(--line); }
.room b { display: block; margin-bottom: 4px; font: 500 1.1rem/1.2 var(--serif); }
.room small { display: block; margin-bottom: 10px; color: var(--muted); }
.room ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; color: var(--ink-soft); font-size: .95rem; }
/* rez-de-chaussée : cases à peu près proportionnelles aux surfaces (séjour 35 m², salle d'eau 5 m²) */
.rdc { flex: 1; display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: 1fr auto; gap: 10px; }
.rdc .big { grid-row: 1 / 3; background: #efe6d6; }
.rdc .tiny { padding: 10px 14px; }
.rdc .tiny b { margin: 0; font-size: .95rem; }
.rdc .tiny small { margin: 0; font-size: .8rem; }
/* étage : deux chambres accolées, une porte entre les deux */
.suite { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.suite .room { border: 0; border-radius: 0; }
.suite .beige { background: #f3e8d6; }
.suite .red { background: #f3dcd3; border-left: 2px solid var(--line); }
.door {
  position: absolute; left: -1px; top: 50%; transform: translate(-50%, -50%); z-index: 1;
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: #fbf8f1; border: 2px solid var(--line); color: var(--chestnut);
}
.door svg, .pass svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.floor .beds { margin: 14px 0 0; color: var(--ink); font-size: .95rem; }
.pass { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0 0; color: var(--ink-soft); font-size: .95rem; }
.pass svg { flex: none; margin-top: 3px; color: var(--chestnut); }
.floor-note { margin: auto 0 0; padding-top: 12px; color: var(--muted); font-size: .9rem; }
.equip { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.equip li { min-width: 0; overflow-wrap: anywhere; hyphens: auto; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 10px; background: #fbf8f1; border: 1px solid var(--line); color: var(--ink-soft); font-size: .95rem; line-height: 1.3; }
.equip svg { flex: none; width: 26px; height: 26px; fill: none; stroke: var(--forest); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tickets { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 24px; border-radius: 14px; overflow: hidden; background: var(--forest); color: var(--paper); }
.tickets > div { padding: 22px 24px; border-right: 1px dashed rgba(245,240,230,.25); }
.tickets > div:last-child { border-right: 0; }
.tickets small { display: block; margin-bottom: 6px; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
.tickets b { font: 400 1.6rem/1.1 var(--serif); }
.tickets span { display: block; margin-top: 4px; font-size: .85rem; opacity: .75; }
.extras { display: grid; grid-template-columns: 1fr 1.25fr; gap: 24px; margin-top: 24px; }
/* couleurs évoquant le réseau Gîtes de France (vert et jaune), sans reprendre son logo */
.seal { display: flex; align-items: center; gap: 22px; padding: 24px 26px; border-radius: 14px; background: #f3f1d6; border: 1px solid #e2dca6; }
.seal-badge {
  flex: none; display: grid; place-content: center; text-align: center; width: 96px; height: 96px; border-radius: 50%;
  background: #2f7d3a; color: #fff; box-shadow: 0 0 0 4px #f3f1d6, 0 0 0 7px #f2c230;
}
.seal-badge small { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: #f7d65c; }
.seal-badge b { font: 400 1.9rem/1 var(--serif); }
.seal > div:last-child b { display: block; margin-bottom: 6px; font: 500 1.3rem/1.2 var(--serif); color: #24602d; }
.seal > div:last-child span { color: #4d5a3f; }
.options { padding: 24px 26px; border-radius: 14px; background: #fbf8f1; border: 1px solid var(--line); }
.options > b { display: block; margin-bottom: 12px; font: 500 1.15rem/1.2 var(--serif); }
.options ul { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.options li { padding: 7px 13px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); color: var(--ink-soft); font-size: .9rem; }
.options .go { white-space: normal; }
.options ul { margin-bottom: 12px; }
.options .tax { margin: 0 0 16px; color: var(--ink-soft); font-size: .92rem; }

/* ---------- Saisons ---------- */
.seasons-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px 64px; align-items: end; margin-bottom: 56px; }
.seasons-head p { color: rgba(245,240,230,.78); margin: 0; max-width: 44ch; }
.seasons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.seasons figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 3/4; }
.seasons img { width: 100%; height: 100%; object-fit: cover; }
.seasons figure:nth-child(even) { transform: translateY(40px); }
.seasons .autumn img { object-position: 30% 50%; }
.seasons figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 20px 18px;
  background: linear-gradient(0deg, rgba(20,28,22,.75), transparent);
  font: italic 400 1.5rem/1 var(--serif);
}

/* ---------- Cartes « À ne pas manquer » ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 28px; }
.card-img { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4/3; margin-bottom: 18px; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.card:hover .card-img img { transform: scale(1.05); }
.dist {
  position: absolute; top: 14px; left: 14px;
  background: var(--paper); color: var(--forest-deep);
  font: 600 .78rem/1 var(--sans); letter-spacing: .06em;
  padding: 7px 11px; border-radius: 999px;
}
.card h4 { font-size: 1.45rem; margin-bottom: 6px; }
.card p { color: var(--ink-soft); font-size: .98rem; margin: 0; }

/* ---------- Villages ---------- */
.villages { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 240px; grid-auto-flow: dense; gap: 12px; }
.v { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); }
.v img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.v:hover img { transform: scale(1.05); }
.v-tall { grid-row: span 2; }
.v-wide { grid-column: span 2; }
.v figcaption {
  position: absolute; inset: auto 0 0 0; padding: 40px 18px 16px; color: var(--white);
  background: linear-gradient(0deg, rgba(20,28,22,.72), transparent);
  display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
}
.v strong { font: 400 1.3rem/1.1 var(--serif); }
.v .dist { z-index: 1; }
.v figcaption span { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; opacity: .85; }

/* ---------- Activités ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip {
  font: 500 .9rem/1 var(--sans); color: var(--ink-soft); background: transparent;
  border: 1px solid var(--line); border-radius: 999px; padding: .65em 1.15em; cursor: pointer;
  transition: all .2s;
}
.chip:hover { border-color: var(--forest); color: var(--forest); }
.chip.is-active { background: var(--forest); border-color: var(--forest); color: var(--paper); }
.activities { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.activities li {
  display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 18px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.activities li[hidden] { display: none; }
.activities img { width: 64px; height: 64px; object-fit: cover; border-radius: 50%; }
.activities strong { display: block; font: 400 1.2rem/1.2 var(--serif); }
.activities span { font-size: .88rem; color: var(--muted); }
.activities em { font-style: normal; font-weight: 600; font-size: .88rem; color: var(--forest); white-space: nowrap; }
.activities em.here { color: var(--chestnut); }
/* colonne du bouton réservée sur toutes les lignes pour aligner les distances */
.activities li { grid-template-columns: 64px 1fr auto 10.5rem; }
.activities .go { justify-self: end; }
/* Lien « Site officiel » : contour terre cuite, se remplit au survol */
.go {
  display: inline-flex; align-items: center; gap: .45em; white-space: nowrap;
  font: 600 .82rem/1 var(--sans); letter-spacing: .02em; text-decoration: none;
  color: var(--chestnut); border: 1.5px solid var(--chestnut); border-radius: 999px; padding: .6em 1em;
  transition: background .25s, color .25s;
}
.go:hover { background: var(--chestnut); color: var(--white); }
.activities .go span { font-size: inherit; color: inherit; }
.go svg { width: 13px; height: 13px; flex: none; transition: transform .25s; }
.go:hover svg { transform: translate(2px, -2px); }
.card:has(.go) { display: flex; flex-direction: column; }
.card .go { margin-top: auto; align-self: flex-start; }
.card:has(.go) p { margin-bottom: 16px; }

/* ---------- Avis ---------- */
.scores { display: flex; flex-wrap: wrap; gap: 14px; justify-self: end; }
.score {
  display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 4px;
  padding: 16px 22px; border: 1px solid rgba(245,240,230,.25); border-radius: 10px;
  color: var(--paper); text-decoration: none; transition: border-color .25s, background .25s;
}
.score:hover { border-color: rgba(245,240,230,.6); background: rgba(245,240,230,.05); }
.score b { font: 400 2.4rem/1 var(--serif); }
.score span { opacity: .6; }
.score small { grid-column: 1 / -1; margin-top: 6px; font-size: .82rem; opacity: .75; }
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.review {
  margin: 0; padding: 30px 28px 26px; border-radius: 10px;
  background: rgba(245,240,230,.06); border: 1px solid rgba(245,240,230,.12);
  display: flex; flex-direction: column;
}
.stars { display: flex; gap: 3px; margin-bottom: 16px; }
.stars svg { width: 15px; height: 15px; fill: #d9a066; }
.review blockquote { margin: 0 0 20px; font: italic 300 1.12rem/1.55 var(--serif); color: var(--paper); flex: 1; }
.review figcaption { font-size: .85rem; color: rgba(245,240,230,.65); }
.review figcaption strong { color: var(--paper); font-weight: 600; }
.reviews-note { margin: 28px 0 0; font-size: .85rem; color: rgba(245,240,230,.55); }

/* ---------- Calendrier ---------- */
.calendar {
  background: var(--white); border-radius: 8px; padding: clamp(20px, 3vw, 40px);
  box-shadow: 0 30px 60px -40px rgba(31,36,31,.35);
}
.cal-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.cal-nav {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: transparent;
  display: grid; place-items: center; cursor: pointer; color: var(--forest); transition: all .2s;
}
.cal-nav:hover:not(:disabled) { background: var(--forest); color: var(--paper); border-color: var(--forest); }
.cal-nav:disabled { opacity: .3; cursor: default; }
.cal-nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cal-legend { display: flex; gap: 24px; font-size: .9rem; color: var(--ink-soft); }
.cal-legend span { display: flex; align-items: center; gap: 8px; }
.lg { width: 16px; height: 16px; border-radius: 3px; display: inline-block; }
.lg-free { background: #eef0e3; border: 1px solid #cdd3b4; }
.lg-booked { background: repeating-linear-gradient(135deg, var(--chestnut-soft) 0 3px, #f3e5da 3px 6px); border: 1px solid #d9b79d; }

.cal-months { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.cal-month h3 { font-size: 1.35rem; margin-bottom: 14px; text-align: center; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; }
.cal-dow { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-bottom: 6px; }
.cal-day {
  aspect-ratio: 1; display: grid; place-items: center; font-size: .92rem; border-radius: 3px;
  background: #eef0e3; color: var(--forest-deep); position: relative;
}
.cal-day.is-empty { background: transparent; }
.cal-day.is-past { background: transparent; color: #c2c0b6; }
.cal-day.is-booked {
  background: repeating-linear-gradient(135deg, var(--chestnut-soft) 0 3px, #f3e5da 3px 6px);
  color: #8a6a58; text-decoration: line-through; text-decoration-color: rgba(154,79,44,.5);
}
.cal-day.is-today { outline: 2px solid var(--forest); outline-offset: -2px; font-weight: 600; }
.cal-meta { margin: 24px 0 0; font-size: .85rem; color: var(--muted); text-align: center; }
.cal-meta .demo { color: var(--chestnut); font-weight: 600; }

.book { text-align: center; margin-top: 48px; }
.book > p:first-child { font: italic 400 1.35rem/1.3 var(--serif); color: var(--forest); }
.book-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.speak { margin: 20px 0 0; font: italic 400 1.05rem/1.4 var(--serif); color: var(--ink-soft); }
.speak:empty { display: none; }
.platforms { margin-top: 24px; font-size: .92rem; color: var(--ink-soft); }
.platforms a { margin-left: 12px; color: var(--forest); font-weight: 600; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.contact h2 { margin-bottom: 32px; }
address { font-style: normal; font-size: 1.1rem; margin-bottom: 28px; }
address strong { font: 400 1.4rem/1.6 var(--serif); }
.contact-actions { justify-content: flex-start; }
/* Carte encadrée façon carte postale : passe-partout clair, ombre douce, liseré décalé.
   Le passe-partout est la bordure de la carte, pour que le liseré (::before) passe dessous. */
.map { position: relative; isolation: isolate; aspect-ratio: 4/3; }
.map::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border: 1px solid var(--chestnut); border-radius: 10px; opacity: .45;
  transform: translate(14px, 14px);
}
.map-canvas {
  position: absolute; inset: 0; z-index: 0;
  border: 10px solid #fbf8f1; border-radius: 10px; background: #fbf8f1;
  box-shadow: 0 30px 60px -28px rgba(31,36,31,.45), 0 2px 8px rgba(31,36,31,.08);
  font: inherit;
}
.map-canvas .leaflet-control-attribution { font-size: .7rem; background: rgba(251,248,241,.85); }
.map-canvas .leaflet-bar { border: 0; border-radius: 8px; box-shadow: 0 2px 8px rgba(31,36,31,.18); }
.map-canvas .leaflet-bar a { color: var(--forest); background: #fbf8f1; }
.map-canvas .leaflet-bar a:hover { background: var(--chestnut-soft); }
.map-dot {
  display: inline-grid; place-items: center; place-content: center; box-sizing: border-box; width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid #fbf8f1; box-shadow: 0 1px 5px rgba(31,36,31,.45); color: #fff; cursor: pointer;
}
.map-dot svg { display: block; width: 16px; height: 16px; }
.map-dot.see { background: #b5652f; }
.map-dot.water { background: #3d7ea6; }
.map-dot.walk { background: #5f7a3a; }
.map-dot.village { background: #7b4d8f; }
.map-home {
  width: 40px; height: 40px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg);
  background: var(--forest); border: 3px solid #fbf8f1; box-shadow: 0 4px 12px rgba(31,36,31,.5);
  display: grid; place-items: center; color: #fbf8f1;
}
.map-home svg { width: 24px; height: 24px; transform: rotate(45deg); }
.map-home-label.leaflet-tooltip {
  background: var(--forest); color: #fbf8f1; border: 0; border-radius: 999px; padding: 5px 12px;
  font: 600 .8rem/1.2 var(--sans); box-shadow: 0 2px 8px rgba(31,36,31,.35);
}
.map-home-label.leaflet-tooltip::before { display: none; }
.map-tip.leaflet-tooltip { background: #fbf8f1; border: 0; border-radius: 6px; font: 600 .78rem/1.2 var(--sans); color: var(--ink); box-shadow: 0 2px 8px rgba(31,36,31,.25); }
.map-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 6px 10px; border-radius: 8px; background: rgba(251,248,241,.92); box-shadow: 0 2px 8px rgba(31,36,31,.15); font-size: .78rem; color: var(--ink); }
.map-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.map-legend .map-dot { width: 22px; height: 22px; border-width: 1.5px; box-shadow: none; cursor: default; }
.map-legend .map-dot svg { width: 13px; height: 13px; }
.map-popup .leaflet-popup-content-wrapper { border-radius: 10px; background: #fbf8f1; box-shadow: 0 8px 24px rgba(31,36,31,.25); }
.map-popup .leaflet-popup-tip { background: #fbf8f1; }
.map-popup .leaflet-popup-content { margin: 12px 16px; font: .88rem/1.4 var(--sans); color: var(--ink); }
.map-popup strong { display: block; font: 500 1.05rem/1.25 var(--serif); }
.map-popup span { display: block; color: var(--muted); }
.map-popup .leaflet-popup-content a { display: inline-block; margin-top: 6px; color: var(--chestnut); font-weight: 600; text-decoration: none; }
.map-pin { width: 18px; height: 18px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: var(--chestnut); border: 3px solid #fbf8f1; box-shadow: 0 3px 8px rgba(31,36,31,.4); }

/* ---------- Page mentions légales ---------- */
.legal-header { padding: 22px 0; border-bottom: 1px solid var(--line); background: var(--paper); }
.legal-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.legal-header .brand { color: var(--forest-deep); }
.legal-header .btn { padding: .65em 1.2em; font-size: .88rem; }
.legal-body { max-width: 760px; }
.legal h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); margin: 0 0 12px; }
.legal h2 { font-size: 1.45rem; margin: 44px 0 10px; }
.legal p { color: var(--ink-soft); }
.legal a { color: var(--chestnut); }
.legal-note { font-size: .9rem; color: var(--muted) !important; }
.legal-footer { background: var(--forest-deep); color: rgba(245,240,230,.7); padding: 28px 0; text-align: center; font-size: .85rem; }
.legal-footer a, .footer-small a { color: inherit; }

/* ---------- Page 404 ---------- */
.notfound { min-height: 60vh; text-align: center; }
.notfound-code { margin: 0; font: italic 300 clamp(5rem, 18vw, 9rem)/1 var(--serif); color: var(--chestnut); opacity: .8; }
.notfound h1 { margin: 10px 0 14px; font-size: clamp(2rem, 5vw, 3rem); }
.notfound p { color: var(--ink-soft); }
.notfound-langs { font-size: .9rem; color: var(--muted) !important; }
.notfound .book-actions { justify-content: center; margin-top: 28px; }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--forest-deep); color: rgba(245,240,230,.8); padding: 72px 0 48px; text-align: center; }
.ridge { position: absolute; left: 0; right: 0; top: -59px; width: 100%; height: 60px; fill: var(--forest-deep); }
.footer-brand { font: italic 400 2rem/1 var(--serif); color: var(--paper); margin-bottom: 14px; }
.footer-small { font-size: .82rem; opacity: .6; margin: 24px 0 0; }
.credits { margin-top: 14px; font-size: .78rem; opacity: .6; }
.credits summary { cursor: pointer; }
.credits ul { list-style: none; padding: 0; margin: 10px 0 0; line-height: 1.8; }
.credits a { color: inherit; }

/* ---------- Lightbox ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(18,24,20,.94); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox figure { margin: 0; text-align: center; color: var(--paper); }
.lightbox img { max-width: min(92vw, 1400px); max-height: 82vh; border-radius: var(--radius); margin: 0 auto; }
.lightbox figcaption { margin-top: 14px; font: italic 400 1.15rem/1 var(--serif); }
.lightbox button {
  position: fixed; background: none; border: 0; color: var(--paper); cursor: pointer;
  font-size: 3rem; line-height: 1; padding: 12px 18px; opacity: .75;
}
.lightbox button:hover { opacity: 1; }
.lb-close { top: 10px; right: 10px; }
.lb-prev { left: 6px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 6px; top: 50%; transform: translateY(-50%); }

/* ---------- Apparition au défilement ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-img { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1024px) {
  .cal-months { grid-template-columns: repeat(2, 1fr); }
  .cal-month:nth-child(3) { display: none; }
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  body { font-size: 17px; }
  .nav-toggle {
    display: grid; gap: 6px; width: 44px; height: 44px; place-content: center;
    background: none; border: 0; color: inherit; cursor: pointer; z-index: 2;
  }
  .nav-toggle span { display: block; width: 24px; height: 1.5px; background: currentColor; transition: transform .3s; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .nav {
    position: fixed; inset: 0; background: var(--forest-deep); color: var(--paper);
    flex-direction: column; justify-content: center; gap: 28px; font: 400 1.8rem/1 var(--serif);
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  .nav.is-open { opacity: 1; visibility: visible; }
  .site-header:has(.nav.is-open) { color: var(--paper); box-shadow: none; }
  .site-header:has(.nav.is-open)::before { opacity: 0; }
  .brand { position: relative; z-index: 2; }
  .nav-cta { font: 600 1rem/1 var(--sans); padding: .9em 1.6em; }
  .langs { margin: 12px 0 0; font: 500 1rem/1 var(--sans); gap: 8px; }
  .langs a { padding: 8px 10px; }
  .site-header .nav-cta:hover { background: var(--paper) !important; color: var(--forest) !important; border-color: var(--paper) !important; }

  .section-head, .seasons-head, .intro, .contact { grid-template-columns: 1fr; }
  .intro-photos { max-width: 520px; }
  .hero-place { display: none; }
  .hero-img { object-position: 24% 50%; } /* la maison est sur la gauche de la photo */

  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .g-wide { grid-column: span 2; grid-row: span 1; }

  .seasons { grid-template-columns: 1fr 1fr; }
  .seasons figure:nth-child(even) { transform: none; }

  .villages { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }

  .activities { grid-template-columns: 1fr; }
  .floors { grid-template-columns: 1fr; }
  .equip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tickets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .extras { grid-template-columns: 1fr; }
  .tickets > div:nth-child(2) { border-right: 0; }
  .tickets > div:nth-child(-n+2) { border-bottom: 1px dashed rgba(245,240,230,.25); }
  .reviews { grid-template-columns: 1fr 1fr; }
  .scores { justify-self: start; }
}

@media (max-width: 600px) {
  .features { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .cal-months { grid-template-columns: 1fr; }
  .cal-month:nth-child(2) { display: none; }
  .cal-legend { gap: 14px; font-size: .85rem; }
  .map::before { transform: translate(8px, 8px); }
  .floor { padding: 18px; }
  .room { padding: 12px; }
  .tickets > div { padding: 18px; }
  .tickets b { font-size: 1.35rem; }
  .seal { gap: 16px; padding: 18px; }
  .seal-badge { width: 76px; height: 76px; }
  .seal-badge b { font-size: 1.5rem; }
  .map-legend { gap: 2px 8px; padding: 4px 8px; font-size: .7rem; }
  .map-legend .map-dot { width: 17px; height: 17px; }
  .map-legend .map-dot svg { width: 10px; height: 10px; }
  .villages { grid-auto-rows: 160px; }
  .v strong { font-size: 1.05rem; }
  .v figcaption span { display: none; }
  .reviews { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 8px; scrollbar-width: none; }
  .review { flex: 0 0 84%; scroll-snap-align: center; padding: 24px 22px 20px; }
  .activities li { grid-template-columns: 52px 1fr auto; gap: 14px; }
  .activities img { width: 52px; height: 52px; }
  .activities li { grid-template-columns: 52px 1fr auto 36px; }
  .activities .go { width: 36px; height: 36px; padding: 0; justify-content: center; }
  .activities .go span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .seasons figcaption { font-size: 1.2rem; padding: 32px 14px 12px; }
}
