/* Camping Havre de la Belle-Montagne
   Palette tirée de l'emblème : épinette, lac, lune ; le rouge canot sert uniquement aux actions. */

@font-face { font-family: "Bricolage Grotesque"; font-weight: 600; font-display: swap; src: url(/fonts/bricolage-grotesque-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 700; font-display: swap; src: url(/fonts/bricolage-grotesque-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 800; font-display: swap; src: url(/fonts/bricolage-grotesque-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: Figtree; font-weight: 400; font-display: swap; src: url(/fonts/figtree-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: Figtree; font-weight: 400; font-style: italic; font-display: swap; src: url(/fonts/figtree-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: Figtree; font-weight: 500; font-display: swap; src: url(/fonts/figtree-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: Figtree; font-weight: 600; font-display: swap; src: url(/fonts/figtree-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: Figtree; font-weight: 700; font-display: swap; src: url(/fonts/figtree-latin-700-normal.woff2) format("woff2"); }
/* polices de secours ajustées pour que la page ne saute pas au chargement */
@font-face { font-family: "Figtree Fallback"; src: local("Arial"); size-adjust: 98%; ascent-override: 96%; descent-override: 25%; line-gap-override: 0%; }
@font-face { font-family: "Bricolage Fallback"; src: local("Arial"); size-adjust: 101%; ascent-override: 92%; descent-override: 26%; line-gap-override: 0%; }

:root {
  --epinette: #173a2b;
  --epinette-2: #24503c;
  --mousse: #5e8c61;
  --mousse-pale: #dce8da;
  --lac: #2f78b4;
  --lac-pale: #dcebf6;
  --canot: #b8321f;
  --canot-fonce: #942614;
  --lune: #f4d35e;
  --brume: #e4ece3;
  --sauge: #f1f5ef;

  /* fond général : vert très pâle plutôt que blanc ; sections alternées un ton plus soutenu ; cartes et champs en blanc */
  --bg: var(--sauge);
  --bg-alt: var(--brume);
  --card: #ffffff;
  --text: #1e2a24;
  --muted: #4d6b5a;
  --heading: var(--epinette);
  --line: #c9d6cf;
  --link: #24619a;
  --focus: #2f78b4;
  --shadow: 0 1px 2px rgba(23, 58, 43, .05), 0 8px 24px -12px rgba(23, 58, 43, .07);

  --font: Figtree, "Figtree Fallback", system-ui, sans-serif;
  --display: "Bricolage Grotesque", "Bricolage Fallback", system-ui, sans-serif;
  --wrap: 1180px;
  --radius: 14px;
  --header-h: 72px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0f1d17;
  --bg-alt: #142820;
  --card: #18302a;
  --text: #e3ece7;
  --muted: #a9c0b3;
  --heading: #e8f2ec;
  --line: #2d4a3d;
  --link: #8fc3ee;
  --lac-pale: #18344a;
  --mousse-pale: #1f3a2d;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 26px -14px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; font: 400 1.0625rem/1.6 var(--font); color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
/* titres qui reçoivent le focus par programmation (changement d'étape) : pas de cadre */
[tabindex="-1"]:focus { outline: none; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--heading); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-weight: 800; font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-weight: 700; font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-weight: 700; font-size: 1.3rem; letter-spacing: -.005em; }
p { margin: 0 0 1em; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 60ch; }
.small { font-size: .9rem; color: var(--muted); }
.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.narrow { max-width: 70ch; }
/* l'attribut hidden l'emporte toujours, même sur un élément en flex ou en grille */
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: .75rem; top: -100px; z-index: 200; background: var(--epinette); color: #fff; padding: .6rem 1rem; border-radius: 8px; }
.skip-link:focus { top: .75rem; }

/* ---------------------------------------------------------------- Boutons */
.btn {
  --b: var(--canot); --c: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: 600 1rem/1.2 var(--font); padding: .85rem 1.35rem; min-height: 48px; border-radius: 999px;
  background: var(--b); color: var(--c); border: 2px solid var(--b); text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, transform .15s;
}
.btn:hover { --b: var(--canot-fonce); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn-ghost { --b: transparent; --c: var(--heading); border-color: var(--line); }
.btn-ghost:hover { --b: var(--bg-alt); border-color: var(--heading); }
.btn-light { --b: #fff; --c: var(--epinette); }
.btn-light:hover { --b: var(--brume); }
.btn-lac { --b: var(--lac); }
.btn-lac:hover { --b: #245f90; }
.btn-sm { padding: .5rem .95rem; min-height: 44px; font-size: .92rem; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--link); text-decoration: underline; cursor: pointer; }

/* ---------------------------------------------------------------- En-tête */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .bar { display: flex; align-items: center; gap: 1.25rem; height: var(--header-h); width: min(1320px, 100% - 2.5rem); }
.header-tools { flex-shrink: 0; }
.btn-reserve { white-space: nowrap; }
/* la météo ne s'affiche que s'il reste de la place */
@media (max-width: 1320px) { .header-tools .meteo { display: none; } }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--heading); flex-shrink: 0; }
.brand img { width: 50px; height: 50px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text small { font: 600 .78rem var(--font); color: var(--mousse); letter-spacing: .02em; }
.brand-text strong { font: 800 1.12rem var(--display); letter-spacing: -.01em; }
.nav { display: flex; gap: .1rem; margin-inline: auto; flex-wrap: nowrap; }
.nav a { color: var(--text); text-decoration: none; font-weight: 500; padding: .5rem .7rem; border-radius: 999px; white-space: nowrap; line-height: 1.2; }
.nav a:hover { background: var(--bg-alt); }
.nav a[aria-current="page"] { color: var(--heading); font-weight: 700; background: var(--mousse-pale); }
.header-tools { display: flex; align-items: center; gap: .6rem; }
.meteo { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; color: var(--muted); font-size: .95rem; white-space: nowrap; }
.meteo svg { width: 22px; height: 22px; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--heading); cursor: pointer; }
.icon-btn svg { width: 20px; height: 20px; }
.menu-btn { display: none; }
.mobile-nav { display: none; }

@media (max-width: 1180px) {
  .nav, .header-tools .meteo, .header-tools .btn-reserve { display: none; }
  .menu-btn { display: inline-grid; }
  .header-tools { margin-left: auto; }
  .mobile-nav {
    display: block; position: fixed; inset: var(--header-h) 0 0 0; background: var(--bg); z-index: 49; padding: 1.25rem;
    overflow-y: auto; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s ease-out, transform .2s ease-out, visibility .2s;
  }
  .menu-open .mobile-nav { opacity: 1; transform: none; visibility: visible; }
  .mobile-nav a.m-link { display: block; font: 700 1.5rem var(--display); color: var(--heading); text-decoration: none; padding: .7rem 0; border-bottom: 1px solid var(--line); }
  .mobile-nav a.m-link[aria-current="page"] { color: var(--canot); }
  .mobile-nav .m-actions { display: grid; gap: .7rem; margin-top: 1.5rem; }
  .menu-open { overflow: hidden; }
}
@media (max-width: 420px) { .brand-text strong { font-size: 1rem; } .brand img { width: 44px; height: 44px; } }

/* Barre d'action fixe sur mobile */
.mobile-cta { display: none; }
@media (max-width: 760px) {
  .mobile-cta {
    display: grid; grid-template-columns: auto 1fr; gap: .6rem; position: fixed; inset: auto 0 0 0; z-index: 40;
    padding: .65rem .9rem calc(.65rem + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line);
  }
  .mobile-cta .btn { min-height: 46px; }
  /* l'espace sous la barre fixe fait partie du pied de page (vert), jamais une bande blanche */
  body:not(.no-cta) .site-footer { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .no-cta .mobile-cta { display: none; }
}

/* ---------------------------------------------------------------- Héros */
.hero { position: relative; isolation: isolate; color: #fff; background: var(--epinette); }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 30, 22, .15) 0%, rgba(10, 30, 22, .1) 40%, rgba(10, 30, 22, .7) 100%); }
.hero-inner { min-height: min(86vh, 760px); display: flex; flex-direction: column; justify-content: flex-end; padding-block: 7rem 9.5rem; }
.hero h1 { color: #fff; font-size: clamp(3.6rem, 13vw, 9.5rem); line-height: 1; letter-spacing: -.04em; margin: 0 0 .25em; text-shadow: 0 2px 30px rgba(0, 0, 0, .25); }
.hero p { font-size: clamp(1.1rem, 2vw, 1.35rem); max-width: 34ch; margin: 0; text-shadow: 0 1px 12px rgba(0, 0, 0, .35); }
.hero .where { display: inline-flex; gap: .5rem; align-items: center; font-weight: 600; margin-bottom: 1rem; font-size: 1rem; }
.hero .where svg { width: 18px; height: 18px; }
/* La crête : la ligne de montagne de l'emblème découpe le bas du héros */
.ridge { position: absolute; left: 0; right: 0; bottom: -1px; height: clamp(46px, 7vw, 96px); width: 100%; color: var(--bg); pointer-events: none; }
.ridge path { fill: currentColor; }
.hero-sub .hero-inner { min-height: clamp(300px, 44vh, 440px); padding-block: 5rem 5.5rem; }
.hero-sub h1 { font-size: clamp(2.5rem, 7vw, 4.8rem); line-height: .98; }
.hero-sub p { max-width: 52ch; }

/* Barre de recherche de séjour */
.finder-wrap { position: relative; z-index: 3; margin-top: -6.5rem; }
.finder {
  background: var(--card); color: var(--text); border-radius: 20px; box-shadow: var(--shadow), 0 24px 48px -24px rgba(10, 30, 22, .07);
  padding: 1.1rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: .75rem; align-items: end; border: 1px solid var(--line);
}
.finder .field { margin: 0; }
.finder .btn { min-height: 52px; padding-inline: 1.6rem; }
.finder-note { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; padding: .8rem .4rem 0; color: var(--muted); font-size: .92rem; }
.finder-note span { display: inline-flex; align-items: center; gap: .4rem; }
.finder-note svg { width: 16px; height: 16px; color: var(--mousse); }
@media (max-width: 900px) {
  .finder { grid-template-columns: 1fr 1fr; }
  .finder .btn { grid-column: 1 / -1; }
  .finder-wrap { margin-top: -4.5rem; }
}

/* ---------------------------------------------------------------- Formulaires */
.field { display: grid; gap: .35rem; margin-bottom: 1rem; align-content: start; }
.field > label, .field > .label { font-weight: 600; font-size: .93rem; color: var(--heading); }
.field .hint { font-size: .85rem; color: var(--muted); }
/* tous les champs, y compris ceux sans attribut type */
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="range"]), select, textarea {
  font: 400 1rem/1.3 var(--font); color: var(--text); background: var(--card); border: 1.5px solid var(--line); border-radius: 10px;
  padding: .75rem .85rem; min-height: 48px; width: 100%; font-size: 16px;
}
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="range"]), select { height: 48px;
}
textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--lac); box-shadow: 0 0 0 3px color-mix(in srgb, var(--lac) 25%, transparent); }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--canot); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%234d6b5a' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; padding-right: 2.4rem; }
.check { display: flex; gap: .65rem; align-items: flex-start; margin: .5rem 0; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: .1rem 0 0; accent-color: var(--epinette); flex-shrink: 0; }
.stepper { display: grid; grid-template-columns: 44px 1fr 44px; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--card); min-height: 48px; }
.stepper button { border: 0; background: var(--bg-alt); color: var(--heading); font: 700 1.25rem var(--font); cursor: pointer; }
.stepper button:hover { background: var(--mousse-pale); }
.stepper input { border: 0; text-align: center; border-radius: 0; min-height: 44px; height: 45px !important; padding: 0; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 1rem; align-items: start; }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: .9rem 1.1rem; border-radius: 12px; margin: 1rem 0; border: 1px solid; }
.alert-error { background: #fbe9e6; color: #7a1d10; border-color: #efb9ae; }
.alert-ok { background: #e3f1e3; color: #1f4d26; border-color: #b6d8b8; }
.alert-info { background: var(--lac-pale); color: var(--text); border-color: color-mix(in srgb, var(--lac) 35%, transparent); }
:root[data-theme="dark"] .alert-error { background: #3b1712; color: #ffc9bf; border-color: #6a2a20; }
:root[data-theme="dark"] .alert-ok { background: #173320; color: #c4ecc9; border-color: #2c5c38; }

/* ---------------------------------------------------------------- Sections */
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 64ch; margin-bottom: 2.5rem; }
.section-head p { color: var(--muted); font-size: 1.12rem; }

.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split.reverse > :first-child { order: 2; }
.split figure { margin: 0; }
.split figure img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split figcaption { font-size: .9rem; color: var(--muted); margin-top: .6rem; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 0; } }

.intro-quote { font: 700 clamp(1.7rem, 3.6vw, 2.6rem)/1.12 var(--display); color: var(--mousse); letter-spacing: -.02em; margin: 0 0 1.2rem; }
:root[data-theme="dark"] .intro-quote { color: #9fc9a2; }

/* Quatre façons de séjourner : mosaïque inégale, pas une grille de cartes identiques */
.ways { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1rem; }
.way { position: relative; border-radius: var(--radius); overflow: hidden; color: #fff; min-height: 300px; display: flex; flex-direction: column; justify-content: flex-end; text-decoration: none; isolation: isolate; }
.way img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.way::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, rgba(10, 28, 20, .82)); }
.way:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .15em; }
.way .way-body { padding: 1.4rem; }
.way h3 { color: #fff; font-size: 1.55rem; margin: 0 0 .3rem; }
.way p { margin: 0; max-width: 40ch; opacity: .95; }
.way .price { display: inline-block; margin-top: .8rem; font-weight: 700; font-size: 1rem; color: var(--lune); }
.way:nth-child(1) { grid-column: span 7; min-height: 420px; }
.way:nth-child(2) { grid-column: span 5; min-height: 420px; }
.way:nth-child(3) { grid-column: span 5; }
.way:nth-child(4) { grid-column: span 7; }
@media (max-width: 860px) { .way:nth-child(n) { grid-column: 1 / -1; min-height: 280px; } }

/* Commodités */
.amenities { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem 2.5rem; list-style: none; padding: 0; margin: 0; }
.amenities li { display: grid; grid-template-columns: 46px 1fr; gap: .9rem; align-items: start; }
.amenities .ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--card); color: var(--epinette); border: 1px solid var(--line); }
:root[data-theme="dark"] .amenities .ico { color: #bfe0c3; }
.amenities .ico svg { width: 24px; height: 24px; }
.amenities b { color: var(--heading); font-size: 1.05rem; margin-right: .3rem; }
.amenities div > span:not(.tag) { display: block; color: var(--muted); font-size: .95rem; margin-top: .15rem; }
.amenities .tag { vertical-align: 2px; }
.tag.tag-fee { background: #fdf1c9; color: #6a5200; }
.tag.tag-season { background: var(--lac-pale); color: #1d4f7a; }
:root[data-theme="dark"] .tag.tag-fee { background: #4a3d0c; color: #fde9a6; }
:root[data-theme="dark"] .tag.tag-season { color: #cfe5f7; }
.amen-notes { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: .5rem; }
.amen-notes li { display: flex; gap: .6rem; align-items: baseline; flex-wrap: wrap; }
@media (max-width: 860px) { .amenities { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .amenities { grid-template-columns: 1fr; } }

/* Bande de nuit (promotions) : le ciel de l'emblème */
.night { position: relative; background: var(--epinette); color: #e6efe9; overflow: hidden; isolation: isolate; }
.night h2, .night h3 { color: #fff; }
.night .sky { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.night .moon { color: var(--lune); }
.offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; margin-top: 2rem; }
.offer { border: 1px solid rgba(255, 255, 255, .22); border-radius: var(--radius); padding: 1.5rem; background: rgba(255, 255, 255, .05); }
.offer .big { font: 800 2.6rem/1 var(--display); color: var(--lune); letter-spacing: -.03em; margin-bottom: .3rem; }
.offer p { margin: .4rem 0 0; color: #cfe0d6; }

/* Témoignages */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.quotes blockquote { margin: 0; border-top: 3px solid var(--mousse); padding-top: 1.1rem; }
.quotes p { font-size: 1.08rem; }
.quotes cite { font-style: normal; font-weight: 600; color: var(--muted); }
@media (max-width: 860px) { .quotes { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- Tableaux de tarifs */
.rates-block { margin-bottom: 3rem; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
table.rates { border-collapse: collapse; width: 100%; min-width: 520px; }
table.rates th, table.rates td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.rates thead th { background: var(--bg-alt); color: var(--heading); font-weight: 700; font-size: .95rem; }
table.rates thead th small { display: block; font-weight: 500; color: var(--muted); }
table.rates tbody tr:last-child td, table.rates tbody tr:last-child th { border-bottom: 0; }
table.rates td b { font-size: 1.1rem; color: var(--heading); }
table.rates td .wk { display: block; color: var(--muted); font-size: .9rem; }
.tag { display: inline-block; font-size: .8rem; font-weight: 700; padding: .15rem .55rem; border-radius: 999px; background: var(--mousse-pale); color: var(--epinette); }
:root[data-theme="dark"] .tag { color: #cfe8d2; }
.policy { display: grid; gap: .6rem; padding: 0; list-style: none; }
.policy li { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.policy li b { color: var(--heading); }
@media (max-width: 560px) { .policy li { grid-template-columns: 1fr; gap: .2rem; } }

/* ---------------------------------------------------------------- Carte interactive */
.map-shell { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: #dfe9d8; touch-action: none; user-select: none; -webkit-user-select: none; }
:root[data-theme="dark"] .map-shell { background: #1b3226; }
.map-shell svg.plan { display: block; width: 100%; height: auto; aspect-ratio: 1210 / 800; cursor: grab; }
.map-shell svg.plan.dragging { cursor: grabbing; }
.map-tools { position: absolute; right: .7rem; top: .7rem; display: grid; gap: .4rem; z-index: 2; }
.map-tools button { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--heading); font: 700 1.3rem var(--font); cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow); }
.map-tools button svg { width: 20px; height: 20px; }
.map-hint { position: absolute; left: .7rem; top: .7rem; z-index: 2; background: color-mix(in srgb, var(--card) 92%, transparent); padding: .35rem .7rem; border-radius: 8px; font-size: .85rem; color: var(--muted); }
.plan .lot { cursor: pointer; }
.plan .lot path { stroke: #6f8a7b; stroke-width: 1.4; transition: fill .15s, stroke .15s; }
.plan .lot text { font: 700 15px var(--display); fill: #1e2a24; pointer-events: none; text-anchor: middle; dominant-baseline: central; }
.plan .lot.small text { font-size: 12.5px; }
.plan .lot[data-cat="saisonnier"] path { fill: #fbfcf8; }
.plan .lot[data-cat="saisonnier"] text { fill: #6d7f74; font-weight: 600; }
.plan .lot[data-cat="saisonnier"], .plan .lot[data-cat="proprio"] { cursor: default; }
.plan .lot[data-cat="proprio"] path { fill: #e6dfd2; }
.plan .lot[data-cat="proprio"] text { fill: #7a6f5c; font-weight: 600; }
.plan .lot[data-cat="trois"] path { fill: #8cc6ec; }
.plan .lot[data-cat="deux"] path { fill: #b5dfd2; }
.plan .lot[data-cat="sans"] path { fill: #f1e2a4; }
.plan .lot[data-cat="pull"] path { fill: #9fd36a; }
.plan .lot[data-cat="pac"] path { fill: #f0a08f; }
.plan .lot[data-state="unavailable"] path { fill: #dfe4e1 !important; stroke-dasharray: 3 3; }
.plan .lot[data-state="unavailable"] text { fill: #8a988f; }
.plan .lot[data-state="available"] path { stroke: #173a2b; stroke-width: 2.2; }
.plan .lot[data-state="busy"] path { fill: #dfe4e1 !important; }
.plan .lot:not([data-cat="saisonnier"]):hover path, .plan .lot:focus-visible path { stroke: #173a2b; stroke-width: 3; }
.plan .lot[aria-pressed="true"] path { stroke: var(--canot); stroke-width: 4.5; }
.plan .lot:focus-visible { outline: none; }
.plan .road { fill: none; stroke: #c5c9c3; stroke-linecap: round; stroke-linejoin: round; }
.plan .road-edge { fill: none; stroke: #f7f6f0; stroke-linecap: round; stroke-linejoin: round; }
.plan .water { fill: #7cc0e8; }
.plan .stream { fill: none; stroke: #7cc0e8; stroke-width: 9; stroke-linecap: round; }
.plan .woods { fill: #c9dcbc; }
.plan .tree { fill: #a8c799; }
.plan .label { font: 700 19px var(--display); fill: #24503c; letter-spacing: -.01em; }
.plan .label-sm { font: 600 13px var(--font); fill: #5c7a68; }
.plan .poi circle { fill: #fff; stroke: #24503c; stroke-width: 1.6; }
.plan .poi path, .plan .poi rect { fill: none; stroke: #24503c; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.plan .pin path { fill: var(--canot); }
:root[data-theme="dark"] .plan .woods { fill: #2a4636; }
:root[data-theme="dark"] .plan .tree { fill: #355a43; }
:root[data-theme="dark"] .plan .road { stroke: #5b6a62; }
:root[data-theme="dark"] .plan .road-edge { stroke: #2b4033; }
:root[data-theme="dark"] .plan .label { fill: #cfe6d5; }
:root[data-theme="dark"] .plan .label-sm { fill: #9fbaa9; }
:root[data-theme="dark"] .plan .lot[data-cat="saisonnier"] path { fill: #33493d; }
:root[data-theme="dark"] .plan .lot[data-cat="saisonnier"] text { fill: #a9c0b3; }

.legend { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; list-style: none; padding: 0; margin: 1rem 0 0; font-size: .93rem; }
.legend li { display: inline-flex; align-items: center; gap: .45rem; }
.legend i { width: 18px; height: 14px; border-radius: 4px; border: 1.5px solid #6f8a7b; display: inline-block; }
.legend .c-trois { background: #8cc6ec; } .legend .c-deux { background: #b5dfd2; } .legend .c-sans { background: #f1e2a4; } .legend .c-pull { background: #9fd36a; } .legend .c-pac { background: #f0a08f; } .legend .c-sais { background: #fbfcf8; }
.legend .c-prop { background: #e6dfd2; }
.legend .c-pris { background: #dfe4e1; border-style: dashed; }
.lot-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; background: var(--card); }
.lot-card h3 { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }

/* ---------------------------------------------------------------- Réservation */
.steps { display: flex; gap: .4rem; list-style: none; padding: 0; margin: 0 0 2rem; counter-reset: s; flex-wrap: wrap; }
.steps li { counter-increment: s; display: inline-flex; align-items: center; gap: .5rem; color: var(--muted); font-weight: 600; font-size: .95rem; padding: .4rem .8rem .4rem .45rem; border-radius: 999px; border: 1px solid var(--line); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--bg-alt); color: var(--heading); font-size: .85rem; }
.steps li[aria-current="step"] { color: var(--heading); border-color: var(--heading); }
.steps li[aria-current="step"]::before { background: var(--epinette); color: #fff; }
.steps li.done::before { content: "✓"; background: var(--mousse); color: #fff; }
.book { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 2rem; align-items: start; }
.book-aside { position: sticky; top: calc(var(--header-h) + 1rem); }
@media (max-width: 980px) { .book { grid-template-columns: 1fr; } .book-aside { position: static; } }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: clamp(1.1rem, 3vw, 1.8rem); }
.panel + .panel { margin-top: 1.25rem; }
.book [id^="step-"] { margin-top: 0; }
.panel h2 { font-size: 1.6rem; }
.seg { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; padding: 3px; gap: 3px; margin-bottom: 1.2rem; flex-wrap: wrap; }
.seg button { border: 0; background: none; padding: .55rem 1rem; border-radius: 999px; font: 600 .95rem var(--font); color: var(--muted); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--epinette); color: #fff; }
.lot-list { display: grid; gap: .6rem; list-style: none; margin: 1.2rem 0 0; padding: 0; }
.lot-list button { width: 100%; display: grid; grid-template-columns: 52px 1fr auto; gap: .9rem; align-items: center; text-align: left; padding: .8rem .9rem; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); color: var(--text); font: inherit; cursor: pointer; }
.lot-list button:hover { border-color: var(--heading); }
.lot-list button[aria-pressed="true"] { border-color: var(--canot); box-shadow: 0 0 0 2px var(--canot) inset; }
.lot-list .num { width: 52px; height: 52px; border-radius: 10px; display: grid; place-items: center; font: 800 1.2rem var(--display); color: #1e2a24; border: 1.5px solid #6f8a7b; }
.lot-list .num.trois { background: #8cc6ec; } .lot-list .num.deux { background: #b5dfd2; } .lot-list .num.sans { background: #f1e2a4; } .lot-list .num.pull { background: #9fd36a; } .lot-list .num.pac { background: #f0a08f; }
.lot-list .meta { font-size: .9rem; color: var(--muted); }
.lot-list .amt { font: 700 1.1rem var(--display); color: var(--heading); text-align: right; }
.lot-list .amt small { display: block; font: 500 .8rem var(--font); color: var(--muted); }
.summary dl { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .45rem 0; margin: 0; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; text-align: right; font-weight: 600; padding-left: 1rem; white-space: nowrap; }
.summary dt { min-width: 0; }
.summary .tot { border-top: 2px solid var(--heading); padding-top: .6rem; margin-top: .3rem; font: 800 1.35rem var(--display); color: var(--heading); }
.summary .line-desc { grid-column: 1 / -1; font-size: .9rem; color: var(--muted); margin-top: -.25rem; }
.pay-choice { display: grid; gap: .6rem; margin: 1rem 0; }
.pay-choice label { display: grid; grid-template-columns: 22px 1fr auto; gap: .8rem; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; padding: .85rem 1rem; cursor: pointer; }
.pay-choice label:has(input:checked) { border-color: var(--epinette); box-shadow: 0 0 0 1px var(--epinette) inset; }
.pay-choice input { width: 20px; height: 20px; accent-color: var(--epinette); margin: 0; }
.pay-choice b { font: 700 1.1rem var(--display); color: var(--heading); }
.empty { text-align: center; padding: 2rem 1rem; color: var(--muted); }
.spinner { width: 22px; height: 22px; border: 3px solid var(--line); border-top-color: var(--epinette); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Feuille du bas (détails d'un terrain sur mobile) */
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--card); border-radius: 20px 20px 0 0; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(0, 0, 0, .07); padding: 1rem 1.2rem calc(1.2rem + env(safe-area-inset-bottom)); transform: translateY(105%); transition: transform .2s ease-out; max-height: 80vh; overflow-y: auto; }
.sheet.open { transform: none; }
.sheet .grab { width: 44px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto .8rem; }

/* ---------------------------------------------------------------- Informations pratiques */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.info-grid img { border-radius: 12px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; margin-bottom: 1rem; }
@media (max-width: 860px) { .info-grid { grid-template-columns: 1fr; } }
.quiet { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 2rem 0; }
.quiet div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.quiet b { display: block; font: 800 1.9rem var(--display); color: var(--heading); letter-spacing: -.02em; }
@media (max-width: 760px) { .quiet { grid-template-columns: 1fr; } }
.callout { border-left: 4px solid var(--mousse); background: var(--mousse-pale); padding: 1.1rem 1.3rem; border-radius: 0 12px 12px 0; }
.activities { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 2rem; }
.activities h3 { font-size: 1.15rem; border-bottom: 2px solid var(--heading); padding-bottom: .5rem; }
.activities ul { list-style: none; margin: 0; padding: 0; }
.activities li { padding: .55rem 0; border-bottom: 1px solid var(--line); }
.contact-list { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: 1rem; }
.contact-list li { display: grid; grid-template-columns: 44px 1fr; gap: .9rem; align-items: center; }
.contact-list .ico { width: 44px; height: 44px; border-radius: 50%; background: var(--mousse-pale); display: grid; place-items: center; color: var(--epinette); }
.contact-list .ico svg { width: 20px; height: 20px; }

/* ---------------------------------------------------------------- Pied de page */
.site-footer { position: relative; background: var(--epinette); color: #d3e2d9; margin-top: 0; }
/* la crête du pied de page déborde sur le bas de la dernière section, qui garde assez d'espace */
main > section:last-child { padding-bottom: clamp(6rem, 10vw, 8.5rem); }
.site-footer .ridge { top: auto; bottom: calc(100% - 1px); height: clamp(40px, 5vw, 72px); color: var(--epinette); transform: none; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2rem; padding-block: 2.5rem 2.5rem; }
.site-footer h2 { font-size: 1.15rem; color: #fff; margin-bottom: .8rem; }
.site-footer p { margin: 0 0 .5rem; }
.pay-list { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0; }
.pay-list { display: block; }
.pay-list li { display: inline; }
.pay-list li:not(:last-child)::after { content: " · "; }
.socials { display: flex; gap: .6rem; margin-top: .8rem; }
.socials a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .3); }
.socials svg { width: 20px; height: 20px; fill: currentColor; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .15); padding-block: 1.3rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; font-size: .9rem; }
.footer-brand { display: flex; gap: .8rem; align-items: center; margin-bottom: 1rem; }
.footer-brand img { width: 58px; height: 58px; }
.footer-brand strong { font: 800 1.2rem/1.1 var(--display); color: #fff; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- Paiement de test */
.test-banner { background: repeating-linear-gradient(-45deg, #f4d35e, #f4d35e 14px, #f7df86 14px, #f7df86 28px); color: #3a2f00; font-weight: 700; text-align: center; padding: .7rem 1rem; }
.card-mock { display: grid; gap: .8rem; }
.card-mock .fake { background: var(--bg-alt); border: 1.5px dashed var(--line); border-radius: 10px; padding: .8rem; color: var(--muted); font-family: ui-monospace, Menlo, monospace; letter-spacing: .05em; }

/* ---------------------------------------------------------------- Divers */
.badge { display: inline-block; padding: .2rem .6rem; border-radius: 999px; font-size: .8rem; font-weight: 700; }
.badge-ok { background: #dff0df; color: #1f4d26; } .badge-wait { background: #fdf1c9; color: #6a5200; } .badge-off { background: #eceeed; color: #4b5650; } .badge-bad { background: #fbe0db; color: #7a1d10; }
.prose h2 { margin-top: 2rem; font-size: 1.6rem; }
.prose ul { padding-left: 1.2rem; }
.page-404 { text-align: center; padding-block: 6rem; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .mobile-cta, .noprint { display: none !important; }
  body { padding: 0; }
}

/* Plan en plein écran (mobile) */
.map-shell.map-full { position: fixed; inset: 0; z-index: 80; border-radius: 0; border: 0; }
.map-shell.map-full svg.plan { width: 100%; height: 100%; aspect-ratio: auto; }
.map-is-full { overflow: hidden; }
.map-is-full .mobile-cta { display: none; }
dialog { border: 0; padding: 0; background: transparent; max-width: min(560px, calc(100% - 2rem)); }
dialog::backdrop { background: rgba(10, 28, 20, .55); }

/* Petits écrans : l'en-tête et les grilles ne doivent jamais dépasser la largeur */
.split > *, .grid-2 > *, .grid-3 > *, .book > *, .cols > * { min-width: 0; }
.brand { min-width: 0; }
.brand-text { min-width: 0; }
.brand-text strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 480px) {
  .site-header .bar { gap: .6rem; }
  .brand { gap: .5rem; }
  .brand img { width: 44px; height: 44px; }
  .brand-text strong { font-size: .95rem; }
  .header-tools { gap: .4rem; }
  .icon-btn { width: 44px; height: 44px; }
}
.lot-list .meta { display: block; }
:root[data-theme="dark"] .contact-list .ico { color: #bfe0c3; }
:root[data-theme="dark"] .callout { color: var(--text); }

/* Pages courtes (404, recherche de réservation) : le pied de page reste collé au bas de la fenêtre */
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
body > .site-footer { flex-shrink: 0; }

/* Bandeau (fin de saison, mode maintenance vu par un admin) */
.site-banner { background: var(--lune); color: #2e2600; font-size: .95rem; padding: .7rem 0; }
.site-banner a { color: #2e2600; font-weight: 700; }
.site-banner.banner-admin { background: #3a2f6b; color: #fff; }
/* Bouton de retour à la gestion, visible seulement par un admin connecté */
.admin-badge { position: fixed; left: 1rem; bottom: 1rem; z-index: 45; display: inline-flex; align-items: center; gap: .35rem; background: #3a2f6b; color: #fff; text-decoration: none; font: 600 .9rem var(--font); padding: .55rem .9rem .55rem .7rem; border-radius: 999px; box-shadow: var(--shadow); }
.admin-badge span { opacity: .8; font-weight: 500; }
.admin-badge:hover { background: #2b2252; text-decoration: none; }
@media (max-width: 760px) { body:not(.no-cta) .admin-badge { bottom: calc(80px + env(safe-area-inset-bottom)); } }
.site-banner.banner-demo { background: #dcebf6; color: #11314a; }

/* Section des hôtes : fond de courbes de niveau, photo façon polaroïd, petits dessins tirés de l'emblème */
.hosts { position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: .45rem; font: 700 .85rem var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--mousse); margin-bottom: .8rem; }
.eyebrow svg { width: 18px; height: 18px; fill: var(--lune); stroke: #c9a227; stroke-width: 1; }
.joys { list-style: none; padding: 0; margin: 1.6rem 0; display: grid; gap: 1rem; }
.joys li { display: grid; grid-template-columns: 52px 1fr; column-gap: .9rem; align-items: center; }
.joys li > b, .joys li > span:not(.joy-ico) { grid-column: 2; }
.joys li > b { color: var(--heading); font-size: 1.05rem; align-self: end; }
.joys li > span:not(.joy-ico) { color: var(--muted); font-size: .95rem; align-self: start; }
.joy-ico { grid-row: span 2; width: 52px; height: 52px; border-radius: 50%; background: var(--card); border: 1.5px dashed color-mix(in srgb, var(--mousse) 55%, transparent); display: grid; place-items: center; }
.joy-ico svg { width: 28px; height: 28px; fill: none; stroke: var(--epinette); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:root[data-theme="dark"] .joy-ico svg { stroke: #bfe0c3; }
.polaroid { position: relative; margin: 1rem auto; max-width: 480px; background: #fff; padding: 14px 14px 18px; border-radius: 6px; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(23,58,43,.05), 0 18px 36px -18px rgba(23,58,43,.07); transform: rotate(1.8deg); }
.split .polaroid img { border-radius: 3px; aspect-ratio: 4 / 3.2; }
.polaroid figcaption { font: italic 400 1rem/1.4 var(--font); color: #4d6b5a; text-align: center; margin-top: .8rem; }
.polaroid .tape { position: absolute; top: -12px; left: 50%; width: 110px; height: 26px; transform: translateX(-50%) rotate(-4deg); background: color-mix(in srgb, var(--lune) 55%, transparent); border-radius: 2px; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.doodle { position: absolute; pointer-events: none; }
.doodle-sky { width: 120px; top: -58px; right: -34px; transform: rotate(-6deg); }
.doodle-sky .moon, .doodle-sky .star { fill: var(--lune); stroke: #c9a227; stroke-width: 1; }
.doodle-pine { width: 54px; bottom: -14px; left: -30px; transform: rotate(-5deg); }
.doodle-pine path { fill: #2f7a2f; }
.doodle-pine .trunk { fill: #6b4a2e; }
@media (max-width: 860px) {
  .polaroid { transform: rotate(1deg); margin-top: 2.5rem; }
  .doodle-sky { right: -6px; top: -52px; width: 96px; }
  .doodle-pine { left: auto; right: -10px; bottom: -22px; width: 44px; transform: rotate(5deg); }
}
@media (prefers-reduced-motion: no-preference) {
  .polaroid { transition: transform .3s ease-out; }
  .polaroid:hover { transform: rotate(0deg); }
}



.field-error { color: #9a2a17; font-size: .875rem; }
:root[data-theme="dark"] .field-error { color: #ffb4a6; }
@media (max-width: 480px) { .site-header .brand { flex-shrink: 1; } .header-tools { gap: .35rem; } }
.seg button { min-height: 44px; }
/* Très petits écrans : le nom complet passe sur deux lignes plutôt que d'être tronqué */
@media (max-width: 420px) {
  .brand-text small { display: none; }
  .brand-text strong { white-space: normal; overflow: visible; text-overflow: clip; font-size: .95rem; line-height: 1.1; }
}
.nw { white-space: nowrap; }

/* Bandeau de fin de saison : intégré à l'en-tête collant, donc visible sur toutes les pages en tout temps */
.site-header .site-banner { border-top: 1px solid rgba(0, 0, 0, .06); }
.banner-season { background: var(--epinette); color: #eef5f0; padding: .75rem 0; }
.banner-season .wrap { display: flex; align-items: center; gap: .9rem; }
.banner-season svg { width: 28px; height: 28px; flex-shrink: 0; fill: var(--lune); }
.banner-season p { margin: 0; flex: 1; line-height: 1.4; }
.banner-season b { color: #fff; }
.banner-season .back { color: var(--lune); white-space: nowrap; }
.banner-season .banner-btn { flex-shrink: 0; display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.1rem; border-radius: 999px; background: var(--lune); color: #2e2600; font-weight: 700; text-decoration: none; white-space: nowrap; }
.banner-season .banner-btn:hover { background: #f7df86; }
@media (max-width: 640px) {
  .banner-season { padding: .5rem 0; }
  .banner-season .wrap { gap: .6rem; }
  .banner-season svg { width: 22px; height: 22px; }
  .banner-season p { font-size: .875rem; line-height: 1.3; }
  .banner-season p span { display: none; }
  .banner-season .back { display: block; }
  .banner-season .banner-btn { min-height: 40px; padding: 0 .8rem; font-size: .875rem; }
}
.menu-open .site-header .site-banner { display: none; }

/* Le bandeau fait office de bas d'en-tête : pas de liseré clair en dessous */
.site-header:has(.site-banner) { border-bottom: 0; }
.site-header .site-banner:last-child { box-shadow: 0 6px 14px -10px rgba(10, 30, 20, .35); }

/* Téléphone : l'accueil laisse voir le début de la section suivante */
@media (max-width: 700px) {
  .hero-inner { min-height: min(64svh, 560px); padding-block: 5rem 6rem; }
  .hero h1 { font-size: clamp(3.2rem, 17vw, 5rem); }
}
.finder .field { min-width: 0; }
.finder input, .finder select { min-width: 0; width: 100%; max-width: 100%; }
