:root {
  --forest: #071C17;
  --forest-2: #0C2720;
  --gold: #E0B06F;
  --bronze: #A88453;
  --ink: #F4EFE6;
  --muted: #B9C9C6;
  --line: rgba(224, 176, 111, 0.22);
  --gutter: clamp(16px, 4vw, 48px);
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--forest);
  color: var(--ink);
  font: 300 17px/1.7 "Jost", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

h1, h2 { font-weight: 400; color: var(--gold); letter-spacing: -0.01em; line-height: 1.05; }
h2 { font-size: clamp(44px, 7vw, 84px); margin-bottom: 0.45em; }
p + p { margin-top: 1em; }
em { font-style: italic; color: var(--gold); }

.btn {
  display: inline-block; border: 0; cursor: pointer;
  background: var(--bronze); color: var(--forest);
  font: 500 15px/1 "Jost", sans-serif; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 16px 28px; border-radius: 2px; text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.btn:hover { background: var(--gold); }
.btn:active { transform: scale(0.98); }
.btn-small { padding: 11px 18px; font-size: 13px; }

/* Top bar */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  display: flex; align-items: center; gap: 32px;
  padding: 14px var(--gutter);
  transition: background 0.35s, padding 0.35s;
}
.bar.solid { background: rgba(7, 28, 23, 0.92); backdrop-filter: blur(10px); padding-block: 10px; }
.bar-logo img { width: 54px; height: 54px; opacity: 0; transition: opacity 0.35s; }
.bar.solid .bar-logo img { opacity: 1; }
.bar-nav { display: flex; gap: 28px; margin-left: auto; margin-right: 8px; }
.bar-nav a { text-decoration: none; font-size: 15px; letter-spacing: 0.04em; opacity: 0.85; }
.bar-nav a:hover { color: var(--gold); opacity: 1; }

/* Hero */
.hero { position: relative; height: 100svh; min-height: 520px; overflow: hidden; display: grid; place-items: center; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 55% 50% at 50% 50%, rgba(4,16,13,0.62) 0%, rgba(4,16,13,0.25) 70%, transparent 100%),
    linear-gradient(180deg, rgba(7,28,23,0.55) 0%, rgba(7,28,23,0.35) 45%, rgba(7,28,23,0.9) 100%);
}
.hero-content { position: relative; text-align: center; padding: 0 var(--gutter); }
.hero-logo { width: clamp(170px, 27vh, 300px); margin: 0 auto 3vh; animation: float-in 1.6s ease-out both; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.55)) drop-shadow(0 6px 30px rgba(0,0,0,0.45)); }
.hero h1 { font-size: clamp(26px, 3.6vw, 46px); font-weight: 300; animation: fade-in 2s 0.6s ease-out both; font-weight: 400; text-shadow: 0 1px 3px rgba(0,0,0,0.6), 0 2px 24px rgba(0,0,0,0.55); }
.hero-down { position: absolute; bottom: 3vh; left: 50%; translate: -50% 0; width: 44px; height: 44px; color: var(--gold); animation: bob 2.4s ease-in-out infinite; }

@keyframes float-in { from { opacity: 0; transform: translateY(-24px); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes bob { 50% { transform: translateY(6px); } }

.hero-sub { margin-top: 18px; font-size: clamp(14px, 1.3vw, 17px); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink); opacity: 0.92; text-shadow: 0 1px 3px rgba(0,0,0,0.6); animation: fade-in 2s 1s ease-out both; }
.bar-lang { text-decoration: none; font-size: 13px; letter-spacing: 0.12em; color: var(--gold); border: 1px solid var(--line); border-radius: 2px; padding: 9px 11px; }
.bar-lang:hover { border-color: var(--gold); }
.bar-lang + .bar-lang { margin-left: -24px; }

/* Sections */
.section { padding: clamp(80px, 12vw, 160px) 0; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split + .split { margin-top: clamp(64px, 9vw, 120px); }
.split-rev > :first-child { order: 2; }
.text p { color: var(--muted); max-width: 34em; }
.lead { font-size: clamp(19px, 1.8vw, 23px); color: var(--ink) !important; }

.reveal { opacity: 0; transform: translateX(28px); transition: opacity 1s ease, transform 1s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Histoire */
.history { display: grid; grid-template-columns: 1.2fr 1fr; gap: 14px; align-items: end; }
.history img { width: 100%; aspect-ratio: 4/3; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.history img:last-child { aspect-ratio: 3/4; }

/* Le chalet */
.section-chalet { background: var(--forest-2); }
.facts { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: clamp(32px, 5vw, 56px) 0; }
.facts li { background: var(--forest-2); padding: 22px 20px; display: grid; gap: 4px; }
.facts strong { color: var(--gold); font-weight: 400; font-size: 22px; }
.facts span { color: var(--muted); font-size: 14px; line-height: 1.4; }

.gallery {
  display: grid; gap: 10px; padding: 0 var(--gutter); max-width: 1500px; margin: 0 auto;
  grid-template-columns: repeat(4, 1fr); grid-auto-rows: 260px; grid-auto-flow: dense;
}
.gallery figure { overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.gallery figure:hover img { transform: scale(1.04); }
.g-wide { grid-column: span 2; grid-row: span 2; }
.g-tall { grid-row: span 2; }

.amenities { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; margin: -24px 0 clamp(32px, 5vw, 56px); }
.amenities li { font-size: 14px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px; }

/* Réserver */
.book-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 32px; margin-bottom: clamp(24px, 4vw, 48px); }
.book-head h2 { margin: 0; }
.price { font-size: 18px; color: var(--muted); }
.price strong { font-size: 40px; font-weight: 400; color: var(--gold); }
.booking { display: grid; grid-template-columns: 1.45fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }

.cal { position: relative; }
.cal-nav { position: absolute; inset: -6px 0 auto 0; display: flex; justify-content: space-between; pointer-events: none; }
.cal-nav button { pointer-events: auto; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--gold); cursor: pointer; padding: 9px; }
.cal-nav button:disabled { opacity: 0.25; cursor: default; }
.cal-months { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.cal-month h3 { text-align: center; font-weight: 400; font-size: 18px; color: var(--ink); text-transform: capitalize; height: 28px; margin-bottom: 14px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px 0; }
.cal-wd { text-align: center; font-size: 12px; color: var(--muted); opacity: 0.7; padding-bottom: 6px; }
.cal-day {
  aspect-ratio: 1; border: 0; background: transparent; color: var(--ink); cursor: pointer;
  font: 400 15px "Jost", sans-serif; border-radius: 50%; transition: background 0.15s;
}
.cal-day:hover:not(:disabled) { background: rgba(224, 176, 111, 0.18); }
.cal-day.is-past, .cal-day.is-too-short { color: rgba(185, 201, 198, 0.3); cursor: default; }
.cal-day.is-taken { color: rgba(185, 201, 198, 0.35); text-decoration: line-through; cursor: default; }
.cal-day.is-in { background: rgba(224, 176, 111, 0.16); border-radius: 0; }
.cal-day.is-start, .cal-day.is-end { background: var(--gold); color: var(--forest); font-weight: 500; }
.cal-day.is-can-end { box-shadow: inset 0 0 0 1px var(--line); }
.cal-legend { margin-top: 18px; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.dot-taken { width: 14px; height: 1px; background: var(--muted); display: inline-block; }

.book { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; background: var(--forest-2); border: 1px solid var(--line); padding: clamp(20px, 3vw, 32px); }
.book-summary { grid-column: 1 / -1; color: var(--ink); font-size: 17px; min-height: 2.8em; }
.book-summary strong { color: var(--gold); font-weight: 500; }
.book label { display: grid; gap: 6px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.book .full { grid-column: 1 / -1; }
.book input, .book textarea {
  font: 400 16px "Jost", sans-serif; color: var(--ink); background: transparent; width: 100%;
  border: 0; border-bottom: 1px solid var(--line); padding: 8px 0; resize: vertical;
}
.book input:focus, .book textarea:focus { outline: none; border-color: var(--gold); }
.book button { margin-top: 6px; }
.book button:disabled { opacity: 0.4; cursor: default; background: var(--bronze); }
.book-error { color: #F0A58C; font-size: 14px; min-height: 0; }
.book-error:empty { display: none; }
.book-policy { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* Région */
.photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0 var(--gutter); max-width: 1500px; margin: clamp(64px, 9vw, 120px) auto 0; }
.strip img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }

/* Accès */
.access { margin-top: clamp(64px, 9vw, 120px); }
.access h3 { font-weight: 400; font-size: clamp(28px, 3.4vw, 40px); color: var(--gold); margin-bottom: 24px; }
.access ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.access li { background: var(--forest); padding: 22px 20px; display: grid; gap: 10px; align-content: start; }
.access svg { width: 26px; height: 26px; color: var(--gold); }
.access li span { color: var(--muted); font-size: 15px; line-height: 1.45; }
.access li strong { display: block; color: var(--ink); font-weight: 400; font-size: 24px; }
.access-note { margin-top: 18px; color: var(--muted); font-size: 15px; }

/* FAQ */
.section-faq { background: var(--forest-2); }
.faq { max-width: 860px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-of-type { border-top: 1px solid var(--line); }
.faq-item summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; position: relative; font-size: 19px; color: var(--ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold); transform: translateY(-70%) rotate(45deg); transition: transform 0.25s; }
.faq-item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-item p { color: var(--muted); padding: 0 0 24px; max-width: 46em; }

/* Contact */
.contact { border-top: 1px solid var(--line); padding-bottom: 40px; }
.coords { list-style: none; padding: 0; display: grid; gap: 18px; }
.coords li { display: flex; gap: 14px; align-items: flex-start; color: var(--muted); }
.coords svg { width: 22px; height: 22px; flex: none; color: var(--gold); margin-top: 3px; }
.coords a { text-decoration: none; }
.coords a:hover { color: var(--gold); }
.contact-logo { width: min(300px, 70%); justify-self: center; opacity: 0.9; }
.legal { text-align: center; color: var(--muted); font-size: 13px; opacity: 0.6; margin-top: 80px; }

@media (max-width: 860px) {
  .bar-nav { display: none; }
  .bar .btn-small { margin-left: 0; }
  .split { grid-template-columns: 1fr; }
  .split-rev > :first-child { order: 0; }
  .facts { grid-template-columns: 1fr 1fr; }
  .access ul { grid-template-columns: 1fr 1fr; }
  .bar { gap: 10px; }
  .bar-lang { margin-left: auto; }
  .bar-lang + .bar-lang { margin-left: 0; }
  .booking { grid-template-columns: 1fr; }
  .cal-months { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
  .strip { gap: 6px; }
  .reveal { transform: translateY(20px); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-logo, .hero h1, .hero-down { animation: none; }
}

/* Merci */
.thanks { min-height: 100svh; display: grid; place-items: center; padding: 48px var(--gutter); }
.thanks-box { width: 100%; max-width: 560px; text-align: center; display: grid; justify-items: center; }
.thanks-logo { width: 190px; margin-bottom: 28px; }
.thanks-title { font-size: clamp(44px, 8vw, 72px); margin-bottom: 10px; }
.thanks-lead { font-size: 21px; color: var(--ink); margin-bottom: 36px; }
.stay { width: 100%; text-align: left; border-top: 1px solid var(--line); margin-bottom: 28px; }
.stay > div { display: grid; grid-template-columns: 9.5em 1fr; gap: 16px; padding: 16px 4px; border-bottom: 1px solid var(--line); }
.stay dt { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.stay dd { margin: 0; color: var(--ink); line-height: 1.55; }
.stay dd::first-letter { text-transform: uppercase; }
.stay a { color: var(--gold); text-decoration: none; border-bottom: 1px solid var(--line); }
.thanks-note { color: var(--muted); font-size: 15px; margin-bottom: 32px; }
@media (max-width: 480px) { .stay > div { grid-template-columns: 1fr; gap: 4px; } }
