:root {
  --forest: #14301f;
  --green-dark: #1f4a2e;
  --green: #2f6b3f;
  --leaf: #6a9c4b;
  --lime: #b5d36b;
  --moss-soft: #e8f0dc;
  --sand: #f7f4ea;
  --earth: #b9773d;
  --text: #1d2a21;
  --muted: #5b6a5f;
  --radius: 20px;
  --shadow: 0 14px 34px rgba(20, 48, 31, 0.16);
  --font-title: "Fredoka", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--sand);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-title); line-height: 1.15; margin: 0 0 .6em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); color: var(--green-dark); }
h3 { font-size: 1.25rem; }

.container { width: min(1150px, 100% - 2.5rem); margin-inline: auto; }

/* Buttons */
.btn {
  display: inline-block;
  padding: .85em 1.6em;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-sm { padding: .5em 1.2em; }
.btn-lime { background: var(--lime); color: var(--forest); }
.btn-green { background: var(--green); color: #fff; }
.btn-outline { border-color: currentColor; color: #fff; background: transparent; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(20, 48, 31, .9);
  backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--leaf);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.logo { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: #fff; font-family: var(--font-title); font-size: 1.4rem; font-weight: 500; }
.logo strong { color: var(--lime); font-weight: 700; }
.logo img { display: block; height: 60px; width: auto; border-radius: 10px; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.nav-links { list-style: none; display: flex; align-items: center; gap: 1.6rem; margin: 0; padding: 0; }
.nav-links a { color: #fff; text-decoration: none; font-weight: 600; font-size: 1.08rem; }
.nav-links a:not(.btn):hover { color: var(--lime); }
.nav-links .btn { color: var(--forest); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .5rem; }
.nav-toggle span { display: block; width: 26px; height: 3px; margin: 5px 0; background: #fff; border-radius: 2px; transition: .2s; }

/* Hero */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(20, 48, 31, .9) 0%, rgba(31, 74, 46, .6) 50%, rgba(31, 74, 46, .15) 100%),
              url("/images/nature/foret-pitons-du-carbet.jpg") center / cover no-repeat;
  animation: hero-zoom 20s ease-out forwards;
}
@keyframes hero-zoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero-content { position: relative; padding: 120px 0 110px; }
.hero-kicker { display: inline-flex; align-items: center; gap: .4em; background: rgba(181, 211, 107, .18); border: 1px solid var(--lime); color: var(--lime); font-weight: 700; padding: .3em 1em; border-radius: 999px; margin: 0 0 1.2rem; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 4.8rem); max-width: 14ch; }
.hero h1 span { color: var(--lime); }
.hero-lead { font-size: 1.2rem; max-width: 42ch; opacity: .95; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin: 2rem 0; }
.hero-badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .7rem; }
.hero-badges li { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .3); padding: .35em 1em; border-radius: 999px; font-weight: 600; font-size: .95rem; }

/* Organic wave dividers */
.wave { position: absolute; left: 0; right: 0; bottom: -1px; line-height: 0; }
.wave svg { width: 100%; height: clamp(40px, 6vw, 90px); }
.wave-top { top: -1px; bottom: auto; transform: rotate(180deg); }

/* Sections */
.section { position: relative; padding: clamp(4rem, 9vw, 7rem) 0; }
.section-forest { background: var(--green-dark); color: #fff; }
.section-forest h2 { color: #fff; }
.section-moss { background: var(--moss-soft); }
.eyebrow { display: flex; align-items: center; gap: .5em; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; font-size: .85rem; color: var(--green); margin: 0 0 .5rem; }
.eyebrow::before { content: ""; width: 1.1em; height: 1.1em; background: currentColor; -webkit-mask: url("/leaf.svg") center / contain no-repeat; mask: url("/leaf.svg") center / contain no-repeat; }
.eyebrow-light { color: var(--lime); }

.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split-media { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 3/4; object-fit: cover; }
.split-media img:nth-child(2) { margin-top: 3rem; border: 5px solid var(--lime); }

.checklist { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .55rem; }
.checklist li { padding-left: 2rem; position: relative; font-weight: 600; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: .1em;
  width: 1.4rem; height: 1.4rem; border-radius: 50%;
  display: grid; place-items: center; font-size: .8rem;
  background: var(--leaf); color: #fff;
}

/* Nature immersive section */
.nature {
  position: relative; color: #fff; padding: clamp(6rem, 12vw, 10rem) 0;
  background: linear-gradient(rgba(20, 48, 31, .72), rgba(20, 48, 31, .72)),
              url("/images/nature/foret-heliconia.jpg") center / cover fixed;
}
.nature h2 { color: #fff; max-width: 18ch; }
.nature-intro { max-width: 60ch; font-size: 1.1rem; }
.nature-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem; margin-top: 2.5rem; }
.fact { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(6px); border-radius: var(--radius); padding: 1.5rem; }
.fact strong { display: block; font-family: var(--font-title); font-size: 1.8rem; color: var(--lime); line-height: 1.1; margin-bottom: .3rem; }
.fact p { margin: 0; opacity: .92; }

/* Features */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.4rem; margin-top: 2.5rem; }
.feature { background: #fff; color: var(--text); border-radius: var(--radius); padding: 1.8rem; border-bottom: 5px solid var(--leaf); transition: transform .2s; }
.feature:hover { transform: translateY(-4px); }
.feature-icon { font-size: 2rem; width: 3.6rem; height: 3.6rem; display: grid; place-items: center; background: var(--moss-soft); border-radius: 50%; margin-bottom: 1rem; }
.feature h3 { color: var(--green); }
.feature p { margin: 0; color: var(--muted); }

.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.4rem; margin-top: 2.5rem; max-width: 820px; }
.price { background: #fff; border-radius: var(--radius); padding: 1.8rem; border-bottom: 5px solid var(--leaf); box-shadow: var(--shadow); }
.price h3 { color: var(--green); }
.price-list { list-style: none; margin: 0; padding: 0; }
.price-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .7rem 0; border-top: 1px dashed var(--moss-soft); }
.price-list li:first-child { border-top: 0; }
.price-list span { color: var(--muted); }
.price-list strong { font-family: var(--font-title); font-size: 1.5rem; color: var(--forest); white-space: nowrap; }
.price-list strong::after { content: " / nuit"; font-family: var(--font-body); font-size: .85rem; font-weight: 400; color: var(--muted); }
.price-info { list-style: none; margin: 1.8rem 0 0; padding: 0; display: grid; gap: .5rem; }
.price-info li { font-weight: 600; }
.price-note { margin: 1.5rem 0 0; color: var(--muted); }
.price-note a { color: var(--green); font-weight: 700; }

/* Gallery */
.gallery-tabs { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; }
.gallery-tab { font: inherit; font-family: var(--font-title); font-weight: 600; font-size: 1rem; padding: .55em 1.3em; border-radius: 999px; border: 2px solid var(--green); background: transparent; color: var(--green-dark); cursor: pointer; transition: background .2s, color .2s; }
.gallery-tab:hover { background: var(--moss-soft); }
.gallery-tab[aria-selected="true"] { background: var(--green); color: #fff; }
.gallery-tab:focus-visible { outline: 3px solid var(--leaf); outline-offset: 2px; }
.gallery-item[hidden] { display: none; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.gallery-item { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 14px; overflow: hidden; aspect-ratio: 3/4; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.06); }
.gallery-item:focus-visible { outline: 4px solid var(--leaf); }

/* Places */
.places { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.4rem; margin-top: 2.5rem; }
.place { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.place-img { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.place-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.place:hover .place-img img { transform: scale(1.06); }
.place-distance { position: absolute; left: 1rem; bottom: 1rem; background: var(--lime); color: var(--forest); font-weight: 700; font-size: .85rem; padding: .25em .9em; border-radius: 999px; }
.place-body { padding: 1.4rem 1.5rem 1.6rem; }
.place h3 { color: var(--green-dark); }
.place p { margin: 0; color: var(--muted); }

/* Banner */
.banner {
  position: relative; color: #fff; text-align: center; padding: clamp(5rem, 11vw, 8rem) 0;
  background: linear-gradient(rgba(20, 48, 31, .55), rgba(20, 48, 31, .7)),
              url("/images/nature/pitons-du-carbet.jpg") center / cover;
}
.banner blockquote { margin: 0 auto; max-width: 30ch; font-family: var(--font-title); font-size: clamp(1.6rem, 4vw, 2.6rem); line-height: 1.25; }
.banner blockquote span { color: var(--lime); }

/* Access */
address { font-style: normal; font-size: 1.1rem; margin-bottom: 1rem; padding-left: 1rem; border-left: 5px solid var(--leaf); }
.map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 5px solid var(--green); aspect-ratio: 4/3; }
.map iframe { width: 100%; height: 100%; border: 0; }

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .8rem; }
.contact-list a { display: inline-block; text-decoration: none; font-weight: 700; font-size: 1.1rem; padding: .5em 1.1em; background: rgba(255, 255, 255, .1); border-radius: 12px; }
.contact-list a:hover { background: var(--lime); color: var(--forest); }
.contact-form { background: #fff; color: var(--text); border-radius: var(--radius); padding: clamp(1.4rem, 4vw, 2.2rem); box-shadow: var(--shadow); display: grid; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form label { display: grid; gap: .3rem; font-weight: 700; font-size: .92rem; color: var(--green-dark); }
.contact-form input, .contact-form textarea {
  font: inherit; font-weight: 400; padding: .7em .9em;
  border: 2px solid #dbe4d3; border-radius: 10px; background: var(--sand);
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--leaf); }
.form-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.contact-form .btn-outline { color: var(--green); }
.form-note { margin: 0; font-size: .85rem; color: var(--muted); }

/* Footer */
.site-footer { background: var(--forest); color: rgba(255, 255, 255, .82); padding: 2rem 0; font-size: .95rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; }
.footer-inner p { margin: 0; }
.site-footer a { color: var(--lime); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(12, 28, 18, .95); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 88vh; max-width: 88vw; border-radius: 12px; }
.lightbox button { position: absolute; background: var(--lime); color: var(--forest); border: 0; width: 3rem; height: 3rem; border-radius: 50%; font-size: 2rem; line-height: 1; cursor: pointer; }
.lb-close { top: 1.2rem; right: 1.2rem; }
.lb-prev { left: 1.2rem; }
.lb-next { right: 1.2rem; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* Legal page */
.legal { padding: 120px 0 4rem; max-width: 780px; }
.legal h2 { font-size: 1.5rem; margin-top: 2rem; }
.legal li { margin-bottom: .4rem; }

/* Responsive */
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 83px; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 1rem 0 1.5rem;
    background: var(--forest); border-bottom: 3px solid var(--leaf);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { padding: .6rem 0; }
  .split { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .nature { background-attachment: scroll; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, .hero-bg { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
