/* L'Éveil de la Lune */
:root {
  --color-charcoal: #121413;
  --color-forest: #0f1a15;
  --color-forest-soft: #1c2b24;
  --color-sand: #cdb893;
  --color-cream: #f4efe6;
  --color-warm-gray: #8a847a;
  --color-warm-gray-dark: #6a645a;
  --color-ink: #1d1f1c;

  --font-serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-sans: "Helvetica Neue", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;

  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 3rem;
  --space-5: clamp(4rem, 9vw, 8rem);
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --max: 1280px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --t: .6s var(--ease);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--color-cream); color: var(--color-ink);
  font: 400 1rem/1.7 var(--font-sans); overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-serif); font-weight: 400; line-height: 1.08; margin: 0; }
h2 { font-size: clamp(2.1rem, 5.5vw, 3.8rem); letter-spacing: -.01em; }
p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--color-ink); outline-offset: 3px; }
.nav :focus-visible, .hero :focus-visible, .gallery :focus-visible, .book :focus-visible,
.contact :focus-visible, .footer :focus-visible, .lb :focus-visible { outline-color: var(--color-sand); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--color-cream); padding: .75rem 1rem; z-index: 200; }
.skip:focus { left: 0; }

.eyebrow { font-size: .75rem; letter-spacing: .28em; text-transform: uppercase; color: var(--color-sand); margin-bottom: var(--space-3); }
.eyebrow--dark { color: var(--color-warm-gray-dark); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: #3d3f3a; max-width: 38rem; margin: var(--space-3) auto 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: .85rem 2rem; background: var(--color-sand); color: var(--color-charcoal);
  border: 1px solid var(--color-sand); text-decoration: none; text-transform: uppercase;
  letter-spacing: .18em; font-size: .75rem; font-weight: 600; transition: background var(--t), color var(--t);
}
.btn:hover { background: transparent; color: var(--color-cream); }
.btn--ghost { background: transparent; color: var(--color-cream); border-color: rgba(244, 239, 230, .6); }
.btn--ghost:hover { background: var(--color-cream); color: var(--color-charcoal); }
.btn--small { min-height: 40px; padding: .55rem 1.3rem; }

/* Nav */
/* Le fond est sur ::before : un backdrop-filter sur .nav enfermerait le menu mobile (position: fixed) dans la barre. */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; transition: padding .4s; padding: 1.4rem 0; color: var(--color-cream); }
.nav::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(15, 26, 21, .92); backdrop-filter: blur(10px); opacity: 0; transition: opacity .4s; }
.nav.is-solid { padding: .8rem 0; }
.nav.is-solid::before { opacity: 1; }
.nav__inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: .6rem; white-space: nowrap; font-family: var(--font-serif); font-size: clamp(.88rem, 4.4vw, 1.35rem); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; }
.brand__moon { width: 1.3rem; height: 1.3rem; color: var(--color-sand); flex: none; }
.menu { display: flex; align-items: center; gap: 2rem; }
.menu a:not(.btn) { text-decoration: none; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; opacity: .85; position: relative; }
.menu a:not(.btn):hover { opacity: 1; }
.menu a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transition: transform .4s var(--ease); }
.menu a:not(.btn):hover::after { transform: scaleX(1); }
.burger { display: none; width: 48px; height: 48px; background: none; border: 0; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: currentColor; transition: transform .3s, top .3s; }
.burger span:first-child { top: 19px; }
.burger span:last-child { top: 28px; }
.burger[aria-expanded="true"] span:first-child { top: 23px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 23px; transform: rotate(-45deg); }

/* Hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; color: var(--color-cream); background: var(--color-forest); overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 57% 50%; animation: slow-zoom 24s ease-out both; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 14, 12, .5) 0%, rgba(10, 14, 12, .1) 35%, rgba(10, 14, 12, .75) 100%); }
.hero__content { position: relative; width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) clamp(4rem, 12vh, 7rem); }
.hero h1 { font-size: clamp(3.2rem, 11vw, 8.5rem); letter-spacing: -.02em; font-weight: 300; }
.hero__tag { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.2rem, 2.8vw, 1.9rem); margin: var(--space-3) 0 var(--space-4); opacity: .92; }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.hero__scroll { position: absolute; right: var(--gutter); bottom: 2rem; width: 1px; height: 64px; background: rgba(244, 239, 230, .3); overflow: hidden; }
.hero__scroll span { display: block; width: 1px; height: 24px; background: var(--color-cream); animation: drip 2.4s ease-in-out infinite; }
@keyframes drip { 0% { transform: translateY(-24px); } 100% { transform: translateY(64px); } }
@keyframes slow-zoom { from { transform: scale(1.06); } to { transform: scale(1); } }

/* Intro */
.intro, .place { padding: var(--space-5) var(--gutter); text-align: center; }
.intro h2 { max-width: 14ch; margin: 0 auto; }
.facts { display: flex; justify-content: center; flex-wrap: wrap; gap: var(--space-3) clamp(2rem, 6vw, 5rem); margin: var(--space-4) 0 0; }
.facts div { text-align: center; }
.facts dt { font-family: var(--font-serif); font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1; }
.facts dd { margin: .4rem 0 0; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--color-warm-gray-dark); }

/* Experience */
.experience { padding-bottom: var(--space-5); }
.split { display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; gap: clamp(2rem, 7vw, 6rem); max-width: 1500px; margin: 0 auto clamp(4rem, 9vw, 8rem); padding-right: var(--gutter); }
.split--rev { grid-template-columns: 1fr 1.25fr; padding: 0 0 0 var(--gutter); }
.split--rev .split__img { order: 2; }
.split__img { margin: 0; overflow: hidden; aspect-ratio: 4 / 3; background: var(--color-forest-soft); }
.split__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.split:hover .split__img img { transform: scale(1.03); }
.split__txt { max-width: 26rem; }
.split__txt .num { font-family: var(--font-serif); font-style: italic; color: var(--color-warm-gray-dark); font-size: 1.1rem; margin-bottom: var(--space-2); }
.split__txt h3 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-bottom: var(--space-3); }
.split__txt p:last-child { color: #4a4c47; }

/* Gallery */
.gallery { background: var(--color-forest); color: var(--color-cream); padding: var(--space-5) var(--gutter); }
.gallery__head { max-width: var(--max); margin: 0 auto var(--space-4); }
.chips { max-width: var(--max); margin: 0 auto var(--space-4); display: flex; gap: 0 1.75rem; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 44px; padding: .5rem 0; background: none; border: 0; border-bottom: 1px solid transparent; font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; opacity: .6; white-space: nowrap; transition: opacity .3s, border-color .3s; }
.chip:hover { opacity: 1; }
.chip.is-active { opacity: 1; border-bottom-color: var(--color-sand); font-weight: 700; }
.grid { max-width: var(--max); margin: 0 auto; columns: 2; column-gap: .75rem; }
.grid[data-count="1"] { columns: 1; max-width: 46rem; }
.grid[data-count="2"] { columns: 2; max-width: 64rem; }
.g-item { margin: 0 0 .75rem; break-inside: avoid; }
.g-item[hidden] { display: none; }
.g-item.is-in { animation: pop .5s var(--ease) both; }
@keyframes pop { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.g-item button { display: block; width: 100%; padding: 0; border: 0; background: var(--color-forest-soft); overflow: hidden; }
.g-item img { width: 100%; height: auto; transition: transform 1s var(--ease), filter .5s; }
.g-item button:hover img { transform: scale(1.04); filter: brightness(1.08); }

/* Booking */
.book { position: relative; padding: clamp(6rem, 16vw, 12rem) var(--gutter); text-align: center; color: var(--color-cream); background: linear-gradient(rgba(10, 14, 12, .6), rgba(10, 14, 12, .65)), url("Pictures/exterieur/exterieur_12.avif") center / cover no-repeat; }
.book h2 { font-size: clamp(2.6rem, 8vw, 6rem); margin-bottom: var(--space-3); }
.book p:not(.eyebrow) { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.2rem, 2.5vw, 1.6rem); margin-bottom: var(--space-4); }

/* Place */
.place h2 { margin-bottom: 0; }
.note { max-width: 36rem; margin: var(--space-3) auto 0; font-size: .9rem; color: var(--color-warm-gray-dark); }

/* Contact */
.contact { background: var(--color-charcoal); color: var(--color-cream); text-align: center; padding: var(--space-5) var(--gutter); }
.contact h2 { max-width: 16ch; margin: 0 auto var(--space-4); }
.mail { display: inline-block; font-family: var(--font-serif); font-size: clamp(1.4rem, 3vw, 2rem); text-decoration: none; border-bottom: 1px solid var(--color-sand); padding-bottom: .2rem; }
.mail:hover { color: var(--color-sand); }
.mail-addr { margin-top: var(--space-2); font-size: .9rem; color: var(--color-warm-gray); word-break: break-all; }

/* Footer */
.footer { background: var(--color-charcoal); color: var(--color-warm-gray); border-top: 1px solid rgba(244, 239, 230, .1); padding: var(--space-4) var(--gutter); display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-4); justify-content: space-between; align-items: flex-start; font-size: .85rem; }
.footer__brand { font-family: var(--font-serif); font-size: 1.2rem; color: var(--color-cream); letter-spacing: .1em; text-transform: uppercase; }
.footer nav { display: flex; gap: var(--space-3); }
.footer a { text-decoration: none; min-height: 32px; }
.footer a:hover { color: var(--color-cream); }
.copy { width: 100%; font-size: .75rem; }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 300; background: rgba(8, 10, 9, .96); display: flex; align-items: center; justify-content: center; animation: fade .3s; }
.lb[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.lb__img { max-width: 92vw; max-height: 86vh; width: auto; height: auto; object-fit: contain; }
.lb__btn { position: absolute; background: none; border: 0; color: var(--color-cream); font-size: 2.6rem; line-height: 1; width: 56px; height: 56px; opacity: .8; }
.lb__btn:hover { opacity: 1; }
.lb__close { top: .75rem; right: .75rem; font-size: 2.4rem; }
.lb__prev { left: .5rem; top: 50%; transform: translateY(-50%); }
.lb__next { right: .5rem; top: 50%; transform: translateY(-50%); }
.lb__count { position: absolute; bottom: 1rem; left: 0; right: 0; text-align: center; font-size: .75rem; letter-spacing: .2em; color: var(--color-warm-gray); }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Responsive */
@media (min-width: 700px) { .grid { columns: 3; column-gap: 1rem; } .g-item { margin-bottom: 1rem; } }
@media (min-width: 1100px) { .grid { columns: 4; } .grid[data-count="3"] { columns: 3; } }
@media (min-width: 881px) { .chips { flex-wrap: wrap; overflow: visible; -webkit-mask-image: none; mask-image: none; } }
@media (max-width: 880px) {
  .burger { display: block; }
  .menu { position: fixed; inset: 0; background: var(--color-forest); flex-direction: column; justify-content: center; gap: 1.8rem; transform: translateX(100%); visibility: hidden; transition: transform .5s var(--ease), visibility .5s; }
  .menu.is-open { transform: none; visibility: visible; }
  .menu a:not(.btn) { font-size: 1.1rem; }
  .burger { position: relative; z-index: 2; }
  .split, .split--rev { grid-template-columns: 1fr; padding: 0 var(--gutter); gap: var(--space-3); }
  .split--rev .split__img { order: 0; }
  .split__txt { max-width: none; }
}
@media (max-width: 700px) { .hero__shade { background: linear-gradient(180deg, rgba(10, 14, 12, .5) 0%, rgba(10, 14, 12, .15) 25%, rgba(10, 14, 12, .55) 50%, rgba(10, 14, 12, .88) 100%); } }
@media (max-width: 400px) { .btn { padding-inline: 1.3rem; } .hero__cta .btn { width: 100%; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Écran de mot de passe (protection temporaire) */
.gate { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: var(--gutter); background: var(--color-forest); color: var(--color-cream); }
html.auth .gate { display: none; }
html:not(.auth) body > :not(.gate) { display: none; }
html:not(.auth) body { overflow: hidden; }
.gate__box { width: 100%; max-width: 22rem; text-align: center; }
.gate__moon { width: 2rem; height: 2rem; color: var(--color-sand); }
.gate__title { font-family: var(--font-serif); font-size: clamp(1.6rem, 6vw, 2.2rem); letter-spacing: .12em; text-transform: uppercase; margin: var(--space-2) 0; line-height: 1.1; }
.gate__txt { color: var(--color-warm-gray); font-size: .95rem; margin: 0 0 var(--space-3); }
.gate__input { display: block; width: 100%; padding: .85rem 1rem; font: inherit; color: var(--color-cream); background: transparent; border: 1px solid rgba(244, 239, 230, .35); text-align: center; }
.gate__input:focus-visible { outline: 2px solid var(--color-sand); outline-offset: 2px; }
.gate__err { margin: var(--space-2) 0 0; font-size: .9rem; color: #e8b4a0; }
.gate__btn { margin-top: var(--space-3); width: 100%; cursor: pointer; }
