/* ─────────────────────────────────────────────
   Le Nichoir des Lacs — Stylesheet
   Aesthetic: Refined French Luxury
   Fonts: Cormorant Garamond + Jost
───────────────────────────────────────────── */

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ivory:   #F7F3EE;
  --cream:   #EDE7DC;
  --stone:   #C8B89A;
  --gold:    #A8895A;
  --dark:    #1A1714;
  --charcoal:#2E2B27;
  --text:    #3D3A35;
  --muted:   #8A8278;
  --white:   #FFFFFF;
  --serif:   'Cormorant Garamond', Georgia, serif;
  --sans:    'Jost', sans-serif;
  --transition: 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--text);
  background: var(--ivory);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* ── REVEAL ANIMATION ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.g-item.reveal { transition-delay: calc(var(--i, 0) * 0.08s); }

/* ── TYPOGRAPHY ── */
.section-label {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--dark);
  margin-bottom: 1.5rem;
}

.section-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--gold);
}

.body-text {
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--muted);
  margin-bottom: 1.2rem;
  max-width: 480px;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--gold);
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform 0.2s;
}
.btn-primary:hover { background: var(--dark); transform: translateY(-2px); }

.btn-ghost {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: transparent;
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.9);
}

.btn-outline {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  background: transparent;
  color: var(--gold);
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid var(--gold);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.btn-outline:hover { background: var(--gold); color: var(--white); }

.btn-full { width: 100%; text-align: center; }

/* ── NAVBAR ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.8rem 0;
  transition: background 0.4s, padding 0.4s, backdrop-filter 0.4s;
}

.navbar.scrolled {
  background: rgba(26,23,20,0.95);
  backdrop-filter: blur(12px);
  padding: 1rem 0;
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--white);
  letter-spacing: 0.05em;
}
.nav-logo span {
  font-style: italic;
  font-weight: 300;
  color: var(--stone);
  font-size: 0.9rem;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.nav-links a {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--white); }

.nav-cta {
  padding: 0.6rem 1.6rem !important;
  border: 1px solid rgba(168,137,90,0.6) !important;
  color: var(--stone) !important;
  transition: background 0.3s, color 0.3s !important;
}
.nav-cta:hover { background: var(--gold) !important; color: var(--white) !important; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.burger span {
  display: block;
  width: 24px; height: 1px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
}
.burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 1.5rem 3rem 2rem;
  gap: 1.2rem;
  background: rgba(26,23,20,0.97);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.mobile-menu.open { max-height: 300px; display: flex; }
.mobile-menu a {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
}

/* ── HERO ── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('entree.jpeg');
  background-size: cover;
  background-position: center;
  animation: heroZoom 20s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.06); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    170deg,
    rgba(26,23,20,0.5) 0%,
    rgba(26,23,20,0.7) 60%,
    rgba(26,23,20,0.85) 100%
  );
}

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 2rem;
  max-width: 800px;
  animation: heroFadeIn 1.4s ease 0.3s both;
}
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(3.5rem, 9vw, 7.5rem);
  font-weight: 300;
  line-height: 0.95;
  color: var(--white);
  margin-bottom: 1.8rem;
}
.hero-title em {
  font-style: italic;
  font-weight: 300;
  display: block;
  color: var(--stone);
}

.hero-sub {
  font-family: var(--serif);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 300;
  font-style: italic;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin-bottom: 3rem;
}

.hero-actions {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── ABOUT ── */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 85vh;
  max-width: 1400px;
  margin: 0 auto;
  padding: 7rem 3rem;
  gap: 6rem;
  align-items: center;
}

.about-image-wrap { position: relative; }

.about-image {
  width: 100%;
  aspect-ratio: 4/5;
  background-size: cover;
  background-position: center;
  position: relative;
}
.about-image::after {
  content: '';
  position: absolute;
  inset: -16px -16px 16px 16px;
  border: 1px solid var(--stone);
  z-index: -1;
}

.about-badge {
  position: absolute;
  bottom: -2rem;
  right: -2rem;
  width: 7rem; height: 7rem;
  background: var(--gold);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
}
.badge-num {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 300;
  line-height: 1;
}
.badge-txt {
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.5;
}

.about-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--cream);
}
.stat { display: flex; flex-direction: column; gap: 0.3rem; }
.stat-num {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--gold);
}
.stat-label {
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* AVIS */
/* ── SECTION AVIS ── */

#avis {
  background: var(--ivory);
}

.avisfond {
  max-width: 1280px;
  margin: 0 auto;
  padding: 7rem 3rem;
}

.avis-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ── CARTE ── */
.avis-card {
  background: var(--white);
  border: 1px solid var(--cream);
  border-radius: 4px;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  position: relative;
  transition: box-shadow 0.3s, transform 0.3s;
}

.avis-card:hover {
  box-shadow: 0 20px 60px rgba(26, 23, 20, 0.08);
  transform: translateY(-4px);
}

/* Barre dorée en haut de chaque carte */
.avis-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 2rem;
  width: 32px;
  height: 3px;
  background: var(--gold);
  border-radius: 0 0 2px 2px;
}

/* ── ÉTOILES ── */
.avis-stars {
  display: flex;
  gap: 4px;
}

.star {
  display: inline-block;
  width: 13px;
  height: 13px;
  background: var(--gold);
  clip-path: polygon(
    50% 0%, 61% 35%, 98% 35%,
    68% 57%, 79% 91%, 50% 70%,
    21% 91%, 32% 57%, 2% 35%, 39% 35%
  );
}

/* ── CITATION ── */
.avis-quote {
  font-family: var(--serif);
  font-size: 1rem;
  font-style: italic;
  font-weight: 300;
  line-height: 1.85;
  color: var(--text);
  flex: 1;
}

/* ── PIED DE CARTE ── */
.avis-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--cream);
  padding-top: 1.2rem;
}

.avis-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

/* Couleurs des avatars */
.avis-avatar.av1 { background: var(--cream);  color: var(--gold); }
.avis-avatar.av2 { background: #e1f5ee;        color: #0f6e56; }
.avis-avatar.av3 { background: #e6f1fb;        color: #185fa5; }

.avis-name {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--dark);
  letter-spacing: 0.03em;
}

.avis-meta {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-top: 2px;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .avis-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .avisfond {
    padding: 4rem 1.5rem;
  }
  .avis-grid {
    grid-template-columns: 1fr;
  }
}
/* ── GALLERY ── */
.gallery {
  background: var(--dark);
  padding: 5rem 2rem;
}

.gallery-hero {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 480px;
  gap: 6px;
  border-radius: 4px;
  overflow: hidden;
}

.g-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--dark);
}

.g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25,0.46,0.45,0.94);
}

.g-item:hover img { transform: scale(1.06); }

.g-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,23,20,0.75) 0%, transparent 55%);
  display: flex;
  align-items: flex-end;
  padding: 1.4rem 1.6rem;
  opacity: 0;
  transition: opacity 0.35s;
}
.g-item:hover .g-overlay { opacity: 1; }

.g-overlay span {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--white);
  letter-spacing: 0.05em;
}

/* ── LIGHTBOX ── */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(26,23,20,0.97);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  animation: lbFadeIn 0.3s ease;
}
#lightbox.active { display: flex; }

@keyframes lbFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

#lb-close {
  position: absolute;
  top: 1.5rem; right: 1.8rem;
  background: none; border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.6);
  font-size: 2rem;
  line-height: 1;
  transition: color 0.2s, transform 0.2s;
  z-index: 10;
}
#lb-close:hover { color: var(--white); transform: rotate(90deg); }

#lb-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 4rem 6rem;
  box-sizing: border-box;
}

#lb-img-wrap {
  position: relative;
  max-width: 90vw;
  max-height: 80vh;
  overflow: hidden;
  border-radius: 3px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6);
}

#lb-img {
  display: block;
  max-width: 90vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

#lb-img.fade { opacity: 0; transform: scale(0.97); }

#lb-caption {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.08em;
  white-space: nowrap;
}

#lb-counter {
  position: absolute;
  top: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}

.lb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(168,137,90,0.3);
  color: rgba(255,255,255,0.7);
  width: 3rem; height: 3rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
  z-index: 10;
  font-size: 1.1rem;
}
.lb-arrow:hover {
  background: rgba(168,137,90,0.25);
  border-color: var(--stone);
  color: var(--white);
}
#lb-prev { left: 1.5rem; }
#lb-next { right: 1.5rem; }

#lb-thumbs {
  position: absolute;
  bottom: 2.4rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  align-items: center;
}
.lb-thumb {
  width: 52px; height: 36px;
  object-fit: cover;
  border-radius: 2px;
  opacity: 0.4;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s, outline-color 0.2s;
  outline: 1px solid transparent;
}
.lb-thumb:hover { opacity: 0.75; transform: scale(1.05); }
.lb-thumb.active { opacity: 1; outline-color: var(--stone); transform: scale(1.08); }

/* ── AMENITIES ── */
.amenities {
  padding: 7rem 3rem;
  background: var(--cream);
}
.amenities-inner { max-width: 1280px; margin: 0 auto; }

.amenities-header { margin-bottom: 4rem; }

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.amenity-card {
  background: var(--ivory);
  padding: 3rem 2.5rem;
  transition: background var(--transition), transform 0.3s;
}
.amenity-card:hover { background: var(--white); transform: translateY(-4px); }

.amenity-icon {
  font-size: 1.6rem;
  color: var(--gold);
  margin-bottom: 1.2rem;
  line-height: 1;
}
.amenity-card h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 0.8rem;
}
.amenity-card p {
  font-size: 0.85rem;
  line-height: 1.8;
  color: var(--muted);
}

/* ── CONTACT ── */
.contact {
  padding: 7rem 3rem;
  background: var(--ivory);
}

.contact-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 5rem;
  align-items: center;
}

.contact-text .section-title { margin: 0.5rem 0 1.5rem; }

.contact-desc {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--muted);
  max-width: 360px;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--cream);
  padding: 2.5rem 2rem;
  transition: box-shadow 0.3s, transform 0.3s;
}
.contact-card:hover {
  box-shadow: 0 20px 60px rgba(26,23,20,0.08);
  transform: translateY(-4px);
}

.contact-icon {
  font-size: 1.4rem;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

.contact-card-label {
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.contact-card-value {
  display: block;
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--charcoal);
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}
.contact-card-value:hover { color: var(--gold); }

.contact-card-hint {
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

/* ── FOOTER ── */
.footer {
  background: var(--dark);
  padding: 3rem;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-logo {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
  color: var(--white);
  line-height: 1.3;
}
.footer-logo span {
  font-style: italic;
  color: var(--stone);
  font-size: 0.85rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .about {
    grid-template-columns: 1fr;
    gap: 4rem;
    padding: 5rem 2rem;
  }
  .about-image { aspect-ratio: 3/2; }
  .amenities-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-inner { grid-template-columns: 1fr; gap: 3rem; }
  .contact-cards { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .burger { display: flex; }

  .mobile-menu { display: none; flex-direction: column; max-height: 0; overflow: hidden; }
  .mobile-menu.open { display: flex; max-height: 400px; }

  .about { grid-template-columns: 1fr; gap: 3rem; padding: 4rem 1.5rem; }
  .about-image { aspect-ratio: 4/3; }
  .about-badge { right: 0; bottom: -1rem; }
  .about-stats { flex-direction: column; gap: 1.5rem; }
  .body-text { max-width: 100%; }

  .gallery { padding: 4rem 1rem; }
  .gallery-hero {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 200px 200px;
  }
  .g-item:first-child { grid-column: 1 / -1; }

  #lb-stage { padding: 3.5rem 1rem 5rem; }
  #lb-prev { left: 0.5rem; }
  #lb-next { right: 0.5rem; }
  .lb-thumb { width: 40px; height: 28px; }

  .amenities { padding: 4rem 1.5rem; }
  .amenities-grid { grid-template-columns: 1fr; }

  .contact { padding: 4rem 1.5rem; }
  .contact-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-cards { grid-template-columns: 1fr; gap: 1rem; }
  .contact-desc { max-width: 100%; }

  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .nav-inner { padding: 0 1.2rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .about { padding: 3rem 1.2rem; }
  .gallery { padding: 3rem 0.8rem; }
  .amenities { padding: 3rem 1.2rem; }
  .contact { padding: 3rem 1.2rem; }
  .contact-cards { grid-template-columns: 1fr; }
  .section-title { font-size: clamp(1.8rem, 8vw, 2.8rem); }
}