/* ─── Custom properties ───────────────────────────────────────────────────── */
:root {
  --bg:        #F7F5F2;
  --white:     #FFFFFF;
  --stone-50:  #F0EBE3;
  --stone-100: #E5DDD3;
  --stone-200: #CCBFB0;
  --stone-500: #9A856E;
  --stone-800: #4A3C30;
  --stone-900: #2D2218;
  --text:      #2D2218;
  --text-mid:  #6B5748;

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Inter', system-ui, sans-serif;

  --nav-h:     4rem;
  --container: 1200px;
}

/* ─── Reset ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  { font-family: var(--sans); background: var(--bg); color: var(--text); line-height: 1.6; }
img   { display: block; max-width: 100%; }
a     { color: inherit; text-decoration: none; }
ul    { list-style: none; }
button { cursor: pointer; }

/* ─── Typography ──────────────────────────────────────────────────────────── */
h1, h2, h3       { font-family: var(--serif); font-weight: 300; line-height: 1.15; }
h1               { font-size: clamp(2.8rem, 6vw, 5rem); }
h2               { font-size: clamp(1.8rem, 3vw, 2.8rem); margin-bottom: 2rem; }
h3               { font-size: 1.15rem; font-weight: 400; margin-bottom: .4rem; }
p                { color: var(--text-mid); line-height: 1.75; }
p + p            { margin-top: .75rem; }
.lead            { font-size: 1.1rem; color: var(--text); margin-bottom: .75rem; }

/* ─── Layout ──────────────────────────────────────────────────────────────── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 2rem; }
section    { padding: 6rem 0; }

/* ─── Nav ─────────────────────────────────────────────────────────────────── */
#nav {
  position: fixed; inset: 0 0 auto;
  z-index: 100;
  display: flex; align-items: center; gap: 1.5rem;
  padding: 0 2rem; height: var(--nav-h);
  transition: background .3s, box-shadow .3s;
}
#nav.scrolled {
  background: rgba(247, 245, 242, .96);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--stone-200);
}

.nav-logo {
  font-family: var(--serif);
  font-size: 1.05rem; letter-spacing: .03em;
  color: var(--white);
  transition: color .3s;
  margin-right: auto;
}
#nav.scrolled .nav-logo { color: var(--text); }

.nav-links {
  display: flex; gap: 1.75rem; align-items: center;
}
.nav-links a {
  font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,.8);
  transition: color .2s;
}
#nav.scrolled .nav-links a { color: var(--text-mid); }
.nav-links a:hover,
#nav.scrolled .nav-links a:hover { color: var(--text); opacity: 1; }

.nav-contact {
  border: 1px solid rgba(255,255,255,.45);
  padding: .3rem .85rem;
  border-radius: 2px;
  transition: border-color .3s;
}
#nav.scrolled .nav-contact { border-color: var(--stone-200); }

/* Language switcher */
.lang-switcher {
  display: flex; align-items: center; gap: .35rem;
}
.lang-btn {
  background: none; border: none; padding: 0;
  font-family: var(--sans); font-size: .72rem; letter-spacing: .1em;
  color: rgba(255,255,255,.55);
  transition: color .2s;
}
#nav.scrolled .lang-btn { color: var(--text-mid); }
.lang-btn.active,
.lang-btn:hover { color: var(--white); }
#nav.scrolled .lang-btn.active,
#nav.scrolled .lang-btn:hover { color: var(--text); }
.lang-sep {
  font-size: .65rem;
  color: rgba(255,255,255,.3);
}
#nav.scrolled .lang-sep { color: var(--stone-200); }

/* Mobile toggle */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: .5rem;
}
.nav-toggle span {
  display: block; width: 22px; height: 1.5px;
  background: var(--white); transition: background .3s;
}
#nav.scrolled .nav-toggle span { background: var(--text); }

/* ─── Hero ────────────────────────────────────────────────────────────────── */
#hero {
  position: relative; height: 100vh; min-height: 580px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
#hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    rgba(0,0,0,.35) 0%,
    rgba(0,0,0,.62) 100%);
}
.hero-content {
  position: relative; z-index: 1;
  text-align: center; color: var(--white);
  padding: 0 2rem;
}
.hero-label {
  font-size: 1rem; letter-spacing: .2em; text-transform: uppercase;
  font-weight: 700;
  color: rgba(255,255,255,.95);
  margin-bottom: 1.25rem;
  text-shadow: 0 1px 8px rgba(0,0,0,.6);
}
.hero-content h1 {
  color: var(--white); font-weight: 400;
  text-shadow: 0 2px 12px rgba(0,0,0,.45);
}
.hero-sub {
  margin-top: 1.25rem;
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 1.6rem; color: rgba(255,255,255,.95);
  text-shadow: 0 1px 12px rgba(0,0,0,.65);
}
.hero-scroll {
  position: absolute; bottom: 2.5rem; left: 50%;
  transform: translateX(-50%);
  z-index: 1; color: rgba(255,255,255,.55);
  animation: bounce 2.5s ease-in-out infinite;
}
.hero-scroll svg { width: 26px; height: 26px; }
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(7px); }
}

/* ─── Le Lieu ─────────────────────────────────────────────────────────────── */
#lieu { background: var(--white); }
.lieu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: center;
}
.stats {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: var(--stone-100);
  border: 1px solid var(--stone-100);
}
.stat {
  display: flex; flex-direction: column; align-items: center;
  padding: 2.25rem 1rem;
  background: var(--white);
}
.stat-num {
  font-family: var(--serif);
  font-size: 3.75rem; font-weight: 300; line-height: 1;
  color: var(--text);
}
.stat-label {
  margin-top: .6rem;
  font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--stone-500);
}

/* ─── Confort ─────────────────────────────────────────────────────────────── */
#confort { background: var(--stone-50); }
.confort-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--stone-200);
  border: 1px solid var(--stone-200);
}
.confort-item {
  background: var(--white); padding: 2rem 1.5rem;
}
.confort-icon {
  width: 2rem; height: 2rem; margin-bottom: 1.25rem;
  color: var(--stone-500);
}
.confort-icon svg { width: 100%; height: 100%; }
.confort-item h3 { color: var(--text); margin-bottom: .5rem; }
.confort-item p  { font-size: .9rem; }

/* ─── Galerie ─────────────────────────────────────────────────────────────── */
#galerie { background: var(--bg); }
.tabs {
  display: flex; gap: 0; margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--stone-200);
}
.tab {
  padding: .7rem 1.4rem;
  background: none; border: none;
  font-family: var(--sans); font-size: .78rem;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-mid);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color .2s, border-color .2s;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--text); border-bottom-color: var(--stone-900); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: .6rem;
}
.gallery-grid a {
  display: block; overflow: hidden; aspect-ratio: 4/3;
}
.gallery-grid img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .45s ease;
}
.gallery-grid a:hover img { transform: scale(1.04); }

/* ─── Cabane ──────────────────────────────────────────────────────────────── */
#cabane { padding: 0; background: var(--white); }

.cabane-hero {
  position: relative; height: 55vh; min-height: 380px;
  overflow: hidden;
}
.cabane-hero img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 40%;
}
.cabane-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.38);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; color: var(--white);
}
.cabane-overlay h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: var(--white); margin-bottom: .5rem;
}
.cabane-overlay p {
  font-family: var(--serif); font-style: italic;
  font-size: 1.6rem; color: rgba(255,255,255,.95);
  text-shadow: 0 1px 12px rgba(0,0,0,.65);
}

.cabane-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: start;
  padding: 5rem 0;
}
.cabane-photos {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: .6rem;
}
.cabane-thumb {
  display: block; overflow: hidden; aspect-ratio: 4/3;
}
.cabane-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .45s ease;
}
.cabane-thumb:hover img { transform: scale(1.04); }

/* ─── Contact ─────────────────────────────────────────────────────────────── */
#contact { background: var(--stone-50); text-align: center; }
.contact-sub {
  color: var(--text-mid); margin: -1rem 0 2.5rem;
}
.contact-buttons {
  display: flex; flex-wrap: wrap;
  gap: .85rem; justify-content: center;
  margin-bottom: 2rem;
}
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .8rem 1.65rem;
  font-family: var(--sans);
  font-size: .78rem; letter-spacing: .07em; text-transform: uppercase;
  border: 1.5px solid; border-radius: 2px;
  transition: background .2s, color .2s;
}
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.btn-mail      { border-color: var(--stone-900); color: var(--text); }
.btn-mail:hover { background: var(--stone-900); color: var(--white); }
.btn-sms       { border-color: var(--stone-500); color: var(--text); }
.btn-sms:hover  { background: var(--stone-500); color: var(--white); }
.btn-whatsapp       { border-color: #3CB371; color: var(--text); }
.btn-whatsapp:hover  { background: #3CB371; color: var(--white); }
.btn-airbnb         { border-color: #FF5A5F; color: var(--text); }
.btn-airbnb:hover    { background: #FF5A5F; color: var(--white); }
.btn-abritel        { border-color: var(--stone-500); color: var(--text); }
.btn-abritel:hover   { background: var(--stone-500); color: var(--white); }

.contact-dispo {
  margin-bottom: 2rem; font-size: .85rem;
}
.contact-dispo a {
  color: var(--text-mid);
  text-decoration: underline; text-underline-offset: 3px;
  transition: color .2s;
}
.contact-dispo a:hover { color: var(--text); }

.contact-phones {
  display: flex; gap: 2rem; justify-content: center;
  font-size: .85rem; color: var(--text-mid);
}
.contact-phones a {
  transition: color .2s;
}
.contact-phones a:hover { color: var(--text); }

.contact-address {
  display: inline-flex; align-items: flex-start; gap: .6rem;
  margin-top: 2rem;
  font-style: normal; font-size: .85rem;
  color: var(--text-mid); line-height: 1.6;
}
.contact-address svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: .15em; }

/* ─── Footer ──────────────────────────────────────────────────────────────── */
footer {
  background: var(--stone-900); color: rgba(255,255,255,.45);
  text-align: center; padding: 1.75rem 2rem;
  font-size: .75rem; letter-spacing: .08em;
}

/* ─── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .confort-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .lieu-grid   { grid-template-columns: 1fr; gap: 3rem; }
  .cabane-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .cabane-grid .cabane-text { order: 2; }
  .cabane-grid .cabane-photos { order: 1; }
}

@media (max-width: 640px) {
  section { padding: 4rem 0; }

  .nav-links {
    display: none; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    height: calc(100dvh - var(--nav-h));
    background: var(--white); padding: 2rem;
    align-items: flex-start; gap: 1.5rem;
    overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links a    { color: var(--text-mid) !important; font-size: .95rem; }

  .lang-switcher { order: 3; }

  .nav-toggle { display: flex; }

  .stats { grid-template-columns: 1fr 1fr; }
  .confort-grid { grid-template-columns: 1fr; }

  .contact-phones { flex-direction: column; gap: .6rem; align-items: center; }
  .tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .tab  { white-space: nowrap; }
}
