: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;
}

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;
  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-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;
}

/* FOOTER */

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);
}

/* ========= 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);
}

/* message d’erreur de date, caché par défaut (pas encore de logique JS) */
.form-error {
  display: none;
}

/* ajustements header / hero */

header {
  margin-bottom: 0;
}

.hero {
  margin-top: 0;
}

/* 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);
  }
}
.lang-switch {
  display: flex;
  gap: 0.35rem;
  margin-left: 0.7rem;
  font-size: 0.78rem;
}

.lang-switch a {
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(0,0,0,0.04);
  color: var(--muted);
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.lang-switch a:hover {
  background: rgba(107,140,82,0.14);
  color: var(--accent-dark);
  transform: translateY(-1px);
}
.lang-select {
  padding: 0.35rem 0.6rem;
  font-size: 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(107, 140, 82, 0.35);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(6px);
  cursor: pointer;
  transition: 0.2s ease;
}

.lang-select:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--accent-dark);
}

.lang-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(107, 140, 82, 0.25);
}
.lang-select {
  padding: 0.40rem 0.7rem;
  font-size: 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(107, 140, 82, 0.35);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(6px);
  cursor: pointer;
  transition: 0.2s ease;
}

.lang-select:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--accent-dark);
}

.lang-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(107, 140, 82, 0.25);
}
/* Container */
.lang-dropdown {
  position: relative;
  display: inline-block;
}

/* Button */
.lang-btn {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(107,140,82,0.35);
  border-radius: 12px;
  padding: 0.45rem 0.7rem;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  transition: 0.2s ease;
}

.lang-btn:hover {
  background: rgba(255,255,255,0.25);
  border-color: var(--accent-dark);
}

/* Drop-down menu */
.lang-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 0.35rem);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  border-radius: 14px;
  box-shadow: 0 12px 35px rgba(0,0,0,0.22);
  overflow: hidden;
  z-index: 300;
}

.lang-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.55rem 0.8rem;
  font-size: 0.9rem;
  color: var(--text);
  text-decoration: none;
  transition: background 0.2s ease;
}

.lang-menu a:hover {
  background: rgba(107,140,82,0.12);
}

/* Flag container */
.flag-icon svg {
  width: 20px;
  height: 14px;
  display: block;
  border-radius: 3px;
}
header,
.nav {
  overflow: visible;
}
header {
  z-index: 100;
  position: relative;
}

.lang-dropdown {
  position: relative;
  z-index: 200;
}

.lang-menu {
  z-index: 300;
}
.lang-menu {
  display: none;
}

.lang-menu.open {
  display: block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  justify-content: center;
}
.calendar-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 1.8rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(224, 221, 214, 0.8);
}

/* Légende couleurs */
.calendar-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: #6b6f73;
  margin-bottom: 0.8rem;
  flex-wrap: wrap;
}

.calendar-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.calendar-dot.esprit {
  background: #6b8c52; /* vert naturel */
}

.calendar-dot.abri {
  background: #6b7c8c; /* bleu/gris doux */
}

/* Conteneur iframe */
.calendar-frame {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(200, 195, 185, 0.8);
  background: #f7f5ef;
}

/* Iframe Google */
.calendar-frame iframe {
  width: 100%;
  height: 560px;
  border: 0;
}

/* Texte sous le calendrier */
.calendar-note {
  margin-top: 0.9rem;
  font-size: 0.88rem;
  color: #7b8489;
  text-align: center;
  line-height: 1.5;
}

/* Mobile */
@media (max-width: 640px) {
  .calendar-frame iframe {
    height: 480px;
  }
}
.calendar-wrapper {
  margin-top: 2rem;
  padding: 1rem;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  padding: 14px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background-color: #1ebc59;
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: white;
}
