/* ============================
   LE PETIT FOUR - Style global
   ============================ */

:root {
  --cream: #f9f5ee;
  --brown: #5a3e28;
  --brown-light: #8b6347;
  --brown-dark: #3d2a18;
  --gold: #c49a3c;
  --text: #2c2218;
  --text-light: #6b5a48;
  --white: #ffffff;
  --shadow: 0 2px 16px rgba(90,62,40,0.10);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  color: var(--text);
  background: var(--cream);
  line-height: 1.75;
  padding-top: 100px;
}

/* ---- HEADER ---- */
header {
  background: var(--white);
}

.header-inner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.logo-block {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold);
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.site-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--brown-dark);
  text-decoration: none;
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.site-title:hover {
  color: var(--gold);
}

.site-subtitle {
  font-size: 0.78rem;
  color: var(--brown-light);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-tagline {
  font-size: 0.72rem;
  color: var(--text-light);
  font-style: italic;
}

/* NAV */
nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

nav a {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brown);
  text-decoration: none;
  padding: 8px 14px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

nav a:hover,
nav a.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--brown);
}

/* ---- LANGUAGE SWITCHER ---- */
.lang-switcher {
  display: flex;
  gap: 4px;
  align-items: center;
  margin-left: 8px;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border: 1.5px solid var(--brown-light);
  border-radius: 2px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--brown-light);
  background: transparent;
  transition: all 0.2s;
  cursor: pointer;
  font-family: 'Lato', sans-serif;
}

.lang-btn:hover {
  background: var(--brown-light);
  color: var(--white);
  border-color: var(--brown-light);
}

.lang-btn.active {
  background: var(--brown-dark);
  color: var(--cream);
  border-color: var(--brown-dark);
}

.lang-btn .flag {
  font-size: 1rem;
  line-height: 1;
}

/* BANNER */
.header-banner {
  width: 100%;
  overflow: hidden;
}

.header-banner img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ---- MAIN ---- */
main {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}

.intro {
  text-align: center;
  padding: 40px 0 24px;
  border-bottom: 1px solid rgba(90,62,40,0.15);
  margin-bottom: 36px;
}

.intro h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--brown-dark);
  letter-spacing: 0.04em;
}

.intro h2 {
  font-family: 'Lato', sans-serif;
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--brown-light);
  margin-top: 8px;
  letter-spacing: 0.06em;
}

/* ---- DESCRIPTION ---- */
.description {
  margin-bottom: 40px;
}

.description p {
  margin-bottom: 16px;
  color: var(--text);
  font-size: 0.98rem;
}

.description h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--brown);
  margin: 24px 0 10px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--gold);
  display: inline-block;
}

.description h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--brown-dark);
  margin: 40px 0 16px;
  letter-spacing: 0.02em;
}

.description ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.description ul li {
  padding: 6px 0 6px 22px;
  position: relative;
  font-size: 0.95rem;
  color: var(--text);
  border-bottom: 1px dashed rgba(90,62,40,0.1);
}

.description ul li::before {
  content: "–";
  position: absolute;
  left: 4px;
  color: var(--gold);
  font-weight: 700;
}

.floor {
  margin-bottom: 28px;
}

/* ---- HIGHLIGHT BOX ---- */
.highlight-box {
  background: var(--brown-dark);
  color: var(--cream);
  border-left: 4px solid var(--gold);
  padding: 24px 28px;
  margin: 32px 0;
  border-radius: 2px;
}

.highlight-box p {
  color: var(--cream) !important;
  margin-bottom: 10px;
  font-size: 0.97rem;
}

.highlight-box p:last-child {
  margin-bottom: 0;
}

/* ---- PHOTOS ---- */
.photos {
  margin: 40px 0;
}

.photo-notice {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 700;
}

.photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.photo-grid img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  cursor: zoom-in;
  border-radius: 2px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.photo-grid img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 32px rgba(90,62,40,0.2);
}

/* ---- LIGHTBOX ---- */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

#lightbox.open {
  display: flex;
}

#lightbox-img {
  max-width: 88vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 4px 40px rgba(0,0,0,0.5);
  cursor: default;
}

.lb-close {
  position: fixed;
  top: 18px;
  right: 22px;
  background: none;
  border: none;
  color: var(--cream);
  font-size: 1.6rem;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s;
  z-index: 1001;
}
.lb-close:hover { opacity: 1; }

.lb-prev, .lb-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: none;
  color: var(--cream);
  font-size: 3rem;
  line-height: 1;
  padding: 12px 18px;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 1001;
  border-radius: 2px;
}
.lb-prev { left: 12px; }
.lb-next { right: 12px; }
.lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,0.22); }

/* ---- SECTION GALERIE (page Chalet) ---- */
.photos-section {
  margin: 48px 0;
  border-top: 1px solid rgba(90,62,40,0.12);
  padding-top: 36px;
}

.gallery-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--brown-dark);
  margin-bottom: 20px;
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.filter-btn {
  padding: 7px 18px;
  border: 1.5px solid var(--brown-light);
  border-radius: 2px;
  background: transparent;
  color: var(--brown-light);
  font-family: 'Lato', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--brown-dark);
  border-color: var(--brown-dark);
  color: var(--cream);
}

.gallery-item.hidden {
  display: none;
}

/* ---- GALERIE PHOTOS ---- */
.gallery-section {
  margin-bottom: 48px;
}

.gallery-cat {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--brown-dark);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 8px;
  margin-bottom: 20px;
  display: inline-block;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.gallery-item {
  margin: 0;
  overflow: hidden;
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  background: var(--brown-dark);
}

.gallery-item img.gallery-photo {
  width: 100%;
  height: 130px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease, opacity 0.2s;
}

.gallery-item:hover img.gallery-photo {
  transform: scale(1.05);
  opacity: 0.88;
}

.gallery-item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(30,15,5,0.72));
  color: var(--cream);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  padding: 18px 10px 8px;
  opacity: 0;
  transition: opacity 0.25s;
}

.gallery-item:hover figcaption {
  opacity: 1;
}

/* ---- PRACTICAL ---- */
.practical {
  margin: 40px 0;
}

.practical-cols {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
}

.practical-cols h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--brown);
  margin-bottom: 12px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--gold);
}

.practical-cols ul {
  list-style: none;
  padding: 0;
}

.practical-cols ul li {
  padding: 5px 0 5px 18px;
  position: relative;
  font-size: 0.91rem;
  color: var(--text);
}

.practical-cols ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.8rem;
  top: 7px;
}

.plus {
  color: var(--gold);
  font-weight: 700;
}

/* ---- CTA BUTTON ---- */
.cta-center {
  text-align: center;
  margin: 48px 0 20px;
}

.btn {
  display: inline-block;
  background: var(--brown-dark);
  color: var(--cream);
  padding: 14px 32px;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 2px;
  border: 2px solid var(--brown-dark);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
}

/* ---- TARIFS ---- */
.included-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.included-list li {
  padding: 8px 8px 8px 24px;
  position: relative;
  font-size: 0.95rem;
  border-bottom: 1px dashed rgba(90,62,40,0.12);
}

.included-list li::before {
  content: "✓";
  position: absolute;
  left: 4px;
  color: var(--gold);
  font-weight: 700;
}

.contact-tarif {
  text-align: center;
  margin: 32px 0;
  font-size: 1.05rem;
}

.contact-link {
  color: var(--brown);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.contact-link:hover {
  color: var(--gold);
}

/* ---- CONTACT PAGE ---- */
.contact-section {
  margin-bottom: 40px;
}

.contact-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 48px;
}

.contact-info p {
  margin-bottom: 16px;
  font-size: 0.97rem;
}

.sign {
  font-style: italic;
  color: var(--brown-light);
}

.contact-link.phone,
.contact-link.email {
  display: block;
  margin: 6px 0;
  font-size: 1rem;
  text-decoration: none;
}

.contact-photo img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: var(--shadow);
}

/* Contact form */
.contact-form-wrap {
  border-top: 1px solid rgba(90,62,40,0.15);
  padding-top: 36px;
}

.contact-form-wrap h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--brown-dark);
  margin-bottom: 24px;
}

.contact-form {
  max-width: 640px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brown);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  border: 1px solid rgba(90,62,40,0.25);
  border-radius: 2px;
  padding: 10px 14px;
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
}

.form-group textarea {
  resize: vertical;
}

.form-success {
  margin-top: 16px;
  color: #2d6a2d;
  font-weight: 700;
  font-size: 0.95rem;
}

.form-error {
  margin-top: 16px;
  color: #8b1a1a;
  font-weight: 700;
  font-size: 0.95rem;
}

/* Flatpickr calendar theme */
.flatpickr-calendar {
  font-family: 'Lato', sans-serif;
  border-radius: 2px;
  box-shadow: 0 4px 20px rgba(90,62,40,0.18);
  border: 1px solid rgba(90,62,40,0.15);
}
.flatpickr-months .flatpickr-month,
.flatpickr-current-month .flatpickr-monthDropdown-months {
  background: var(--brown-dark);
  color: var(--cream);
}
.flatpickr-current-month .numInputWrapper input,
.flatpickr-current-month .numInputWrapper span {
  color: var(--cream);
}
.flatpickr-weekday {
  background: var(--brown-dark);
  color: var(--gold) !important;
  font-weight: 700;
}
.flatpickr-weekdays {
  background: var(--brown-dark);
}
.flatpickr-day.selected,
.flatpickr-day.selected:hover {
  background: var(--brown-dark);
  border-color: var(--brown-dark);
  color: var(--cream);
}
.flatpickr-day:hover {
  background: var(--cream);
  border-color: var(--gold);
}
.flatpickr-day.today {
  border-color: var(--gold);
  color: var(--brown-dark);
  font-weight: 700;
}
.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover {
  color: rgba(90,62,40,0.25);
}
.flatpickr-prev-month svg,
.flatpickr-next-month svg {
  fill: var(--cream);
}
.flatpickr-prev-month:hover svg,
.flatpickr-next-month:hover svg {
  fill: var(--gold);
}

/* ---- PREPAREZ-VOUS ---- */
.address-block {
  background: var(--white);
  border: 1px solid rgba(90,62,40,0.15);
  padding: 24px 28px;
  margin-bottom: 40px;
  border-radius: 2px;
  display: inline-block;
}

.address-block p {
  margin-bottom: 12px;
  font-size: 0.97rem;
}

.transport-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 40px;
}

.transport-item {
  background: var(--white);
  padding: 20px 22px;
  border-radius: 2px;
  border: 1px solid rgba(90,62,40,0.12);
  box-shadow: var(--shadow);
}

.transport-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--cream);
  border: 1.5px solid rgba(196,154,60,0.3);
  border-radius: 50%;
  margin-bottom: 8px;
}

.transport-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--gold);
  stroke-width: 1.5;
  fill: none;
}

.transport-item h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--brown-dark);
  margin-bottom: 8px;
}

.transport-item p,
.transport-item ul {
  font-size: 0.9rem;
  color: var(--text);
}

.transport-item ul {
  list-style: none;
  padding-left: 0;
}

.transport-item ul li {
  padding: 3px 0;
}

.activity-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 32px;
}

.activity-list li {
  padding: 8px 8px 8px 4px;
  font-size: 0.93rem;
  border-bottom: 1px dashed rgba(90,62,40,0.1);
}

.activity-list a {
  color: var(--brown);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.activity-list a:hover {
  color: var(--gold);
}

/* ---- FOOTER ---- */
footer {
  background: var(--brown-dark);
  color: var(--cream);
  text-align: center;
  padding: 32px 24px;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  line-height: 1.8;
}

footer a {
  color: var(--gold);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  body {
    padding-top: 84px;
  }

  .menu-toggle {
    display: block;
  }

  nav {
    display: none;
    flex-direction: column;
    width: 100%;
    background: var(--white);
    padding: 12px 0;
    gap: 0;
    border-top: 1px solid rgba(90,62,40,0.1);
  }

  nav.open {
    display: flex;
  }

  nav a {
    padding: 12px 24px;
    border-bottom: 1px solid rgba(90,62,40,0.08);
    width: 100%;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .logo-text .site-tagline {
    display: none;
  }

  .photo-grid {
    grid-template-columns: 1fr;
  }

  .practical-cols {
    grid-template-columns: 1fr;
  }

  .included-list {
    grid-template-columns: 1fr;
  }

  .contact-cols {
    grid-template-columns: 1fr;
  }

  .transport-grid {
    grid-template-columns: 1fr;
  }

  .activity-list {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

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

  .lb-prev { left: 4px; }
  .lb-next { right: 4px; }

  .header-banner img {
    height: 160px;
  }

  .intro h1 {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  main {
    padding: 24px 16px 48px;
  }

  .logo {
    width: 52px;
    height: 52px;
  }

  .site-title {
    font-size: 1.2rem;
  }
}
