:root {
  --cream: #f4ecde;
  --off-white: #faf6f0;
  --nude: #d9b3a3;
  --nude-light: #ecdcd3;
  --soft-black: #2b2420;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Georgia, serif;
  color: var(--soft-black);
  background: var(--off-white);
}

/* ── BOUTON RETOUR (page rendez-vous) ── */
.back-link {
  position: absolute;
  top: 24px;
  left: 24px;
  color: var(--soft-black);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

.back-link:hover {
  opacity: 0.7;
}

/* ── NAVBAR ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px 12px;
}

.navbar .logo {
  width: 120px;
  height: auto;
  margin-bottom: 12px;
}

.nav-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-links a {
  color: var(--off-white);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  transition: opacity 0.2s;
}

.nav-links a:hover {
  opacity: 0.7;
}

/* ── HERO ── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  text-align: center;
  background-color: var(--soft-black);
}

/* Wrapper dédié au clip du zoom — overflow: hidden ici, pas sur .hero
   (overflow: hidden sur .hero casserait position: sticky du navbar) */
.hero-bg-wrapper {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(43, 36, 32, 0.55) 0%, rgba(43, 36, 32, 0.15) 45%, rgba(43, 36, 32, 0.55) 100%),
    url("assets/hero_optimized.webp");
  background-size: cover;
  background-position: center 60%;
  transform-origin: center center;
  will-change: transform;
}

.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-content h1 {
  font-size: 3.2rem;
  letter-spacing: 2px;
  color: var(--off-white);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  margin-bottom: 16px;
}

.hero-content p {
  font-size: 1.1rem;
  color: var(--off-white);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: bold;
  letter-spacing: 0.5px;
  transition: background 0.3s, color 0.3s;
}

.btn-primary {
  background: var(--off-white);
  color: var(--soft-black);
  border: 2px solid var(--off-white);
}

.btn-primary:hover {
  background: transparent;
  color: var(--off-white);
}

.btn-secondary {
  background: transparent;
  color: var(--off-white);
  border: 2px solid var(--off-white);
}

.btn-secondary:hover {
  background: var(--off-white);
  color: var(--soft-black);
}

/* ── PRESTATIONS ── */
.prestations {
  padding: 100px 60px;
  background: var(--off-white);
}

.prestations-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: center;
}

.prestations-text h2 {
  font-size: 2rem;
  letter-spacing: 0.5px;
  color: var(--soft-black);
  margin-bottom: 24px;
}

.prestations-accroche {
  font-size: 1.05rem;
  color: var(--soft-black);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 20px;
}

.prestations-body {
  font-size: 0.97rem;
  color: #5c534c;
  line-height: 1.85;
  margin-bottom: 20px;
}

.prestations-note {
  font-size: 0.88rem;
  color: var(--nude);
  letter-spacing: 0.3px;
  line-height: 1.6;
}

.prestations-image {
  overflow: hidden;
  border-radius: 14px;
}

.prestations-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  object-fit: cover;
  transform-origin: center center;
  will-change: transform;
}

/* ── GALERIE ── */
.galerie {
  padding: 80px 40px;
  background: var(--cream);
  text-align: center;
}

.galerie h2 {
  font-size: 1.9rem;
  margin-bottom: 12px;
}

.galerie-note {
  color: #6b6058;
  font-style: italic;
  margin-bottom: 40px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: none;
  padding: 0;
  border-radius: 10px;
  background-color: var(--nude-light);
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(43, 36, 32, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover,
.gallery-item:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(43, 36, 32, 0.2);
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.08);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--off-white);
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: linear-gradient(180deg, rgba(43, 36, 32, 0) 45%, rgba(43, 36, 32, 0.45) 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.gallery-item:hover .gallery-item-overlay,
.gallery-item:focus-visible .gallery-item-overlay {
  opacity: 1;
}

/* ── LIGHTBOX GALERIE ── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
}

.lightbox[open] {
  display: flex;
  animation: lightbox-in 0.25s ease;
}

.lightbox::backdrop {
  background: rgba(43, 36, 32, 0.85);
}

@keyframes lightbox-in {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.lightbox-img {
  display: block;
  max-width: 88vw;
  max-height: 88vh;
  border-radius: 10px;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(250, 246, 240, 0.9);
  color: var(--soft-black);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s, transform 0.25s;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--off-white);
}

.lightbox-close {
  top: 20px;
  right: 20px;
  font-size: 1.6rem;
}

.lightbox-prev {
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev:hover,
.lightbox-next:hover {
  transform: translateY(-50%) scale(1.08);
}

/* ── INFOS PRATIQUES ── */
.infos {
  padding: 100px 60px;
  background: var(--nude-light);
}

.infos-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: center;
}

.infos-image {
  overflow: hidden;
  border-radius: 14px;
}

.infos-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  object-fit: cover;
  transform-origin: center center;
  will-change: transform;
}

.infos-content h2 {
  font-size: 2rem;
  letter-spacing: 0.5px;
  color: var(--soft-black);
  margin-bottom: 32px;
}

.infos-items {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.infos-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid rgba(43, 36, 32, 0.14);
  font-size: 1.02rem;
  color: var(--soft-black);
  line-height: 1.5;
}

.infos-item:last-child {
  border-bottom: 1px solid rgba(43, 36, 32, 0.14);
}

.infos-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--nude);
  flex-shrink: 0;
}

/* ── CONTACT ── */
.contact {
  padding: 80px 40px;
  background: var(--soft-black);
  text-align: center;
}

.contact h2 {
  color: var(--off-white);
  font-size: 1.9rem;
  margin-bottom: 16px;
}

.contact p {
  color: var(--cream);
  margin-bottom: 32px;
}

.contact-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── FOOTER ── */
footer {
  background: var(--soft-black);
  color: var(--cream);
  text-align: center;
  padding: 20px;
  font-size: 0.85rem;
  border-top: 1px solid rgba(244, 236, 222, 0.15);
}

/* ── PRISE DE RENDEZ-VOUS ── */
.booking {
  min-height: 100vh;
  background: var(--off-white);
  padding-top: 90px;
}

.booking-section {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 20px 80px;
  text-align: center;
}

.booking-section h1 {
  font-size: 2rem;
  color: var(--soft-black);
  margin-bottom: 12px;
}

.booking-intro {
  color: #5c534c;
  margin-bottom: 36px;
}

#cal-booking {
  width: 100%;
  min-height: 600px;
}

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

@media (max-width: 600px) {
  .navbar {
    padding: 16px 12px 8px;
  }

  .navbar .logo {
    width: 80px;
  }

  .nav-links {
    gap: 16px;
  }

  .nav-links a {
    font-size: 0.75rem;
  }

  .hero-bg {
    background-position: center 65%;
  }

  .hero-content h1 {
    font-size: 2.3rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  .prestations,
  .infos {
    padding: 60px 20px;
  }

  .prestations-inner,
  .infos-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .galerie,
  .contact {
    padding: 56px 20px;
  }

  .contact-buttons {
    flex-direction: column;
    align-items: center;
  }

  .booking {
    padding-top: 70px;
  }

  .back-link {
    top: 16px;
    left: 16px;
  }

  .lightbox-close,
  .lightbox-prev,
  .lightbox-next {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  .lightbox-close {
    top: 12px;
    right: 12px;
    font-size: 1.4rem;
  }

  .lightbox-prev {
    left: 8px;
  }

  .lightbox-next {
    right: 8px;
  }
}
