:root {
  --bg: #f5f3ee;
  --bg-alt: #ffffff;
  --accent: #6b8c52;
  --accent-dark: #4d6a3a;
  --text: #2f3437;
  --muted: #7b8489;
  --border: #e0ddd6;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.08);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-pill: 999px;
  --transition-fast: 0.2s ease;
  --max-width: 1100px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #fdfaf5 0, #f1eee7 55%, #ece6dc 100%);
  color: var(--text);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(245, 243, 238, 0.88);
  border-bottom: 1px solid rgba(213, 208, 196, 0.7);
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.7rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: "Playfair Display", serif;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 40% 60% 55% 45%;
  background: radial-gradient(circle at 30% 30%, #fdfbf7, #6b8c52);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fdfbf7;
  font-size: 0.9rem;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

.nav-links {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  font-size: 0.9rem;
}

.nav-links a {
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-pill);
  color: var(--muted);
  transition: background var(--transition-fast),
    color var(--transition-fast),
    transform var(--transition-fast);
}

.nav-links a:hover {
  background: rgba(107, 140, 82, 0.08);
  color: var(--accent-dark);
  transform: translateY(-1px);
}

.nav-cta {
  border-radius: var(--radius-pill);
  padding: 0.45rem 1rem;
  background: var(--accent);
  color: #fff !important;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(107, 140, 82, 0.35);
}

.nav-cta:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

main {
  flex: 1;
}

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3.5rem 1.25rem;
}

.section-header {
  margin-bottom: 2.2rem;
  max-width: 700px;
}

.section-kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-dark);
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.section-title {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  margin-bottom: 0.4rem;
}

.section-subtitle {
  font-size: 0.98rem;
  color: var(--muted);
}

.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem; /* top un peu réduit pour limiter le "trou" */
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2.8rem;
  align-items: flex-start;

}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  border-radius: var(--radius-pill);
  padding: 0.28rem 0.8rem;
  background: rgba(107, 140, 82, 0.09);
  color: var(--accent-dark);
  margin-bottom: 0.9rem;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.4rem, 3vw, 3rem);
  line-height: 1.1;
  margin-bottom: 0.8rem;
}

.hero-title span {
  color: var(--accent-dark);
}

.hero-lead {
  color: var(--muted);
  font-size: 0.98rem;
  margin-bottom: 1.4rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 1.6rem;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(107, 140, 82, 0.35);
  background: rgba(252, 251, 247, 0.9);
}

.meta-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 1.4rem;
}

.btn {
  border-radius: var(--radius-pill);
  padding: 0.7rem 1.4rem;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform var(--transition-fast),
    box-shadow var(--transition-fast),
    background var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 16px 35px rgba(107, 140, 82, 0.4);
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(77, 106, 58, 0.5);
}

.btn-ghost {
  background: transparent;
  color: var(--accent-dark);
  border: 1px solid rgba(107, 140, 82, 0.45);
}

.btn-ghost:hover {
  background: rgba(107, 140, 82, 0.08);
  transform: translateY(-1px);
}

.hero-note {
  font-size: 0.8rem;
  color: var(--muted);
}

.hero-visual {
  position: relative;
}

.hero-card {
  background: var(--bg-alt);
  border-radius: var(--radius-xl);
  padding: 0.85rem;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.hero-image-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4 / 3;
}

.hero-image-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 2.8s ease-out;
}

.hero-card:hover .hero-image-main img {
  transform: scale(1.06);
}

.hero-tag {
  position: absolute;
  left: 1.1rem;
  top: 1.1rem;
  padding: 0.28rem 0.7rem;
  font-size: 0.75rem;
  border-radius: var(--radius-pill);
  background: rgba(9, 18, 9, 0.32);
  color: #f5f3ee;
  backdrop-filter: blur(8px);
}

.hero-floating {
  position: absolute;
  bottom: -0.9rem;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  border-radius: 18px;
  padding: 0.7rem 0.9rem;
  min-width: 230px;
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.78rem;
}

.hero-floating strong {
  display: block;
}

.hero-floating-badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fdfbf7, #6b8c52);
}

.chalets-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.8rem;
}

.chalet-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-xl);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(224, 221, 214, 0.7);
}

.chalet-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.chalet-infos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.chalet-title {
  font-family: "Playfair Display", serif;
  font-size: 1.3rem;
  margin-bottom: 0.15rem;
}

.chalet-tagline {
  font-size: 0.9rem;
  color: var(--muted);
  font-style: italic;
}

.chalet-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  margin-top: 0.3rem;
}

.chalet-link {
  font-weight: 600;
  color: var(--accent-dark);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 4 / 3;
  cursor: pointer;
}

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

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

.gallery-label {
  position: absolute;
  left: 0.6rem;
  bottom: 0.6rem;
  padding: 0.25rem 0.6rem;
  font-size: 0.72rem;
  color: #fdfbf7;
  background: rgba(0, 0, 0, 0.35);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(6px);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 2rem;
}

.contact-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(224, 221, 214, 0.8);
}

.contact-card h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
}

.contact-card p {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 1.1rem;
}

form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.1rem;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(197, 192, 182, 0.9);
  background: #faf7f1;
  font-family: inherit;
  font-size: 0.9rem;
  transition: border var(--transition-fast),
    box-shadow var(--transition-fast),
    background var(--transition-fast);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(107, 140, 82, 0.3);
  background: #fefcf8;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.form-row > div {
  flex: 1;
  min-width: 140px;
}

.form-hint {
  font-size: 0.76rem;
  color: var(--muted);
  margin-top: 0.1rem;
}

.form-rgpd {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.3rem;
}

.form-rgpd input[type="checkbox"] {
  width: 15px;
  height: 15px;
  margin-top: 0.15rem;
}

.contact-side {
  font-size: 0.9rem;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.contact-highlight {
  padding: 1rem 1.1rem;
  border-radius: 18px;
  border: 1px dashed rgba(107, 140, 82, 0.4);
  background: rgba(248, 246, 240, 0.95);
}

.contact-highlight strong {
  color: var(--accent-dark);
}

.contact-list {
  list-style: none;
  display: grid;
  gap: 0.6rem;
}

.contact-list li span {
  font-weight: 600;
  color: var(--text);
}

.reservation-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(224, 221, 214, 0.9);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 1.8rem;
  align-items: center;
}

.reservation-note {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.reservation-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  background: rgba(107, 140, 82, 0.08);
  color: var(--accent-dark);
  margin-bottom: 0.6rem;
}

.calendar-placeholder {
  border-radius: 18px;
  border: 1px dashed rgba(169, 162, 147, 0.8);
  background: linear-gradient(135deg, #f9f6f0, #f2ece2);
  padding: 1.1rem 1.2rem;
  font-size: 0.82rem;
  color: var(--muted);
  display: grid;
  gap: 0.4rem;
}

.calendar-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
}

footer {
  border-top: 1px solid rgba(213, 208, 196, 0.8);
  margin-top: 2rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.25rem 1.8rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-inner a {
  color: var(--accent-dark);
}

/* RESPONSIVE */

@media (max-width: 880px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-visual {
    order: -1;
  }

  .chalets-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .reservation-card {
    grid-template-columns: minmax(0, 1fr);
  }

  header {
    position: static;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 540px) {
  .hero {
    padding-top: 1.7rem;
  }

  .section {
    padding: 3rem 1.1rem;
  }

  .hero-floating {
    display: none;
  }

  .gallery-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ========= GALERIE / LIGHTBOX ========= */

/* Miniatures harmonisées */
.gallery-grid img {
  width: 100%;
  height: 220px;          /* hauteur des miniatures */
  object-fit: cover;      /* crop élégant */
  border-radius: 14px;
  display: block;
}

/* --- Lightbox galerie full screen --- */
.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  font-family: inherit;
}

.lightbox.open {
  display: flex;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.70);
  backdrop-filter: blur(6px);
}

.lightbox-inner {
  position: relative;
  max-width: 1000px;
  width: calc(100% - 2.5rem);
  max-height: 90vh;
  background: transparent;
  border-radius: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  transform: translateY(10px) scale(0.97);
  opacity: 0;
  transition:
    opacity 180ms ease-out,
    transform 200ms ease-out;
}

.lightbox.open .lightbox-inner {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.lightbox-image-wrap {
  border-radius: 18px;
  overflow: hidden;
  max-height: 80vh;
}

.lightbox-image-wrap img,
#lightbox-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  background: transparent !important;
  border-radius: 16px;
  opacity: 0;
  transform: scale(0.97);
  transition:
    opacity 170ms ease-out,
    transform 180ms ease-out;
}

/* état visible, après chargement / changement */
.lightbox-inner img.fade-in {
  opacity: 1;
  transform: scale(1);
}

#lightbox-caption {
  font-size: 0.95rem;
  color: #ffffff;
  text-align: center;
  font-weight: 400;
  padding-top: 6px;
  padding-bottom: 4px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.55);
}

/* Bouton fermeture */
.lightbox-close {
  position: absolute;
  top: 4px;
  right: 10px;
  border: none;
  background: transparent;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  color: #f4f1eb;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.8);
  z-index: 2;
}

/* Flèches navigation */
.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(10, 12, 12, 0.65);
  color: #fdfaf5;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-prev {
  left: 10px;
}

.lightbox-next {
  right: 10px;
}

.lightbox-arrow:hover {
  background: rgba(10, 12, 12, 0.9);
}

@media (max-width: 600px) {
  .lightbox-inner {
    width: calc(100% - 1.5rem);
    padding: 0.6rem 0.6rem 0.8rem;
  }

  .lightbox-arrow {
    width: 32px;
    height: 32px;
    font-size: 1.2rem;
  }
}

/* ========= FORMULAIRE ========= */

.form-success {
  margin: 0 0 1rem 0;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  background: rgba(32, 107, 68, 0.14);
  color: #205335;
  border: 1px solid rgba(32, 107, 68, 0.4);
}
header {
  margin-bottom: 0;
}

.hero {
  margin-top: 0;
}
