/* ============================================
   Chalet Alpierlaur — feuille de style principale
   ============================================ */

:root {
  --color-primary: #6b4a2a;      /* brun du logo */
  --color-primary-dark: #4a3219;
  --color-accent: #b3874a;       /* or/beige accent */
  --color-accent-light: #e4d3b8;
  --color-cream: #faf6ef;
  --color-cream-dark: #f1e9db;
  --color-green: #63775a;        /* vert montagne, touche nature */
  --color-dark: #2f2418;
  --color-text: #3d3128;
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-script: 'Dancing Script', cursive;
  --font-body: 'Mulish', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --shadow-soft: 0 10px 30px rgba(47, 36, 24, 0.12);
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-cream);
  line-height: 1.6;
}

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

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

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-primary-dark);
  margin: 0 0 16px;
  font-weight: 600;
}

h2.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  text-align: center;
  margin-bottom: 8px;
}

.section-kicker {
  display: block;
  text-align: center;
  font-family: var(--font-script);
  font-size: 1.4rem;
  color: var(--color-accent);
  margin-bottom: 4px;
}

.section-lead {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
  color: #5c5044;
}

section { padding: 80px 0; }
section.alt { background: var(--color-cream-dark); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250, 246, 239, 0.95);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img { height: 56px; width: auto; }

.brand-text {
  font-family: var(--font-script);
  font-size: 1.5rem;
  color: var(--color-primary);
  line-height: 1;
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

nav.main-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--color-dark);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

nav.main-nav a:hover { border-color: var(--color-accent); color: var(--color-primary); }

.header-actions { display: flex; align-items: center; gap: 14px; }

.lang-switch {
  border: 1px solid var(--color-accent);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  background: transparent;
  transition: background 0.2s, color 0.2s;
}
.lang-switch:hover { background: var(--color-accent); color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 26px; height: 2px; background: var(--color-dark);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 90px;
  background: linear-gradient(160deg, #efe3cd 0%, #dcc9a3 45%, #b79a6b 100%);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(0deg, rgba(250,246,239,0.55), rgba(250,246,239,0.15)),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.08) 0 2px, transparent 2px 40px);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 0 24px;
}

.hero img.hero-logo {
  width: 170px;
  margin: 0 auto 24px;
  filter: drop-shadow(0 8px 18px rgba(47,36,24,0.25));
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  color: var(--color-primary-dark);
  margin-bottom: 12px;
}

.hero p.tagline {
  font-size: 1.2rem;
  color: var(--color-dark);
  margin-bottom: 32px;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover { background: var(--color-primary-dark); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary-dark);
}
.btn-outline:hover { background: var(--color-primary); color: #fff; }

.btn-small { padding: 10px 22px; font-size: 0.85rem; }

/* ---------- Intro ---------- */
.intro {
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}
.intro p { font-size: 1.08rem; color: #4a3d30; }

/* ---------- Logements / cards ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}

.card-photo {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--color-accent-light), var(--color-cream-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  text-align: center;
  padding: 20px;
}

.card-photo svg { width: 48px; height: 48px; margin-bottom: 10px; stroke: var(--color-primary); }
.card-photo span { font-size: 0.8rem; color: #8a7a63; font-style: italic; }

.card-photo.has-photo { padding: 0; }

/* ---------- Photo carousel ---------- */
.photo-carousel {
  position: relative;
  width: 100%;
  height: 100%;
}
.photo-carousel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.photo-carousel img.active { opacity: 1; }

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(47, 36, 24, 0.45);
  color: #fff;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  line-height: 1;
  transition: background 0.2s;
}
.carousel-arrow:hover { background: rgba(47, 36, 24, 0.75); }
.carousel-arrow.prev { left: 10px; }
.carousel-arrow.next { right: 10px; }

.carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 2;
}
.carousel-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  border: none;
  padding: 0;
  cursor: pointer;
}
.carousel-dots button.active { background: #fff; }

/* ---------- Hero with real photo ---------- */
.hero.has-photo {
  background-image:
    linear-gradient(180deg, rgba(47,36,24,0.55), rgba(47,36,24,0.35) 40%, rgba(47,36,24,0.65)),
    var(--hero-image);
  background-size: cover;
  background-position: center;
}
.hero.has-photo::before { display: none; }
.hero.has-photo h1,
.hero.has-photo .tagline { color: #fff; }
.hero.has-photo .tagline { color: #f1e6d2; }

.card-body { padding: 26px; display: flex; flex-direction: column; flex: 1; }

.card-body h3 { font-size: 1.4rem; margin-bottom: 4px; }

.card-meta {
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--color-green);
  font-weight: 700;
  margin-bottom: 14px;
}

.card-body ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  font-size: 0.92rem;
  color: #55483a;
  flex: 1;
}
.card-body ul li {
  padding-left: 20px;
  position: relative;
  margin-bottom: 7px;
}
.card-body ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-green);
  font-weight: 700;
}

.card-combo {
  font-size: 0.82rem;
  color: var(--color-accent);
  font-style: italic;
  margin-top: -8px;
  margin-bottom: 16px;
}

/* ---------- Station / access two-col ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.two-col.reverse .col-media { order: 2; }

.col-media .card-photo {
  aspect-ratio: 16/11;
  border-radius: var(--radius);
}

.access-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}
.access-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--color-cream-dark);
  display: flex;
  gap: 14px;
}
.access-list li strong { color: var(--color-primary-dark); min-width: 150px; display: inline-block; }

.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  margin-top: 32px;
}
.map-frame iframe { width: 100%; height: 340px; border: 0; display: block; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  margin-top: 32px;
}
.contact-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}
.contact-card svg { width: 34px; height: 34px; stroke: var(--color-primary); margin-bottom: 12px; }
.contact-card h4 { margin-bottom: 6px; }
.contact-card a, .contact-card p { color: #55483a; font-size: 0.95rem; }

.booking-callout {
  margin-top: 56px;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius);
  padding: 42px;
  text-align: center;
}
.booking-callout h3 { color: #fff; font-size: 1.6rem; }
.booking-callout p { color: var(--color-accent-light); max-width: 560px; margin: 0 auto 24px; }
.booking-callout .btn-primary { background: #fff; color: var(--color-primary-dark); }
.booking-callout .btn-primary:hover { background: var(--color-cream); }

/* ---------- Footer ---------- */
footer {
  background: var(--color-dark);
  color: #cbb99a;
  padding: 40px 0 24px;
  font-size: 0.85rem;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
footer a:hover { color: #fff; }
footer .footer-note { width: 100%; text-align: center; margin-top: 20px; opacity: 0.6; font-size: 0.78rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .two-col, .two-col.reverse { grid-template-columns: 1fr; }
  .two-col.reverse .col-media { order: 0; }
}

@media (max-width: 780px) {
  nav.main-nav {
    position: fixed;
    top: 76px; left: 0; right: 0;
    background: var(--color-cream);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    gap: 16px;
    box-shadow: var(--shadow-soft);
    transform: translateY(-150%);
    transition: transform 0.25s ease;
  }
  nav.main-nav.open { transform: translateY(0); }
  .nav-toggle { display: flex; }
  section { padding: 60px 0; }
}
