/* =========================================================
   Aux Domaines d'Automne — Styles
   移动优先 / Mobile-first
   ========================================================= */

:root {
  --c-bg: #fbf8f3;
  --c-bg-alt: #f3ede3;
  --c-ink: #2b241d;
  --c-ink-soft: #6b5f52;
  --c-line: #e3d9c9;
  --c-accent: #a4552e;      /* terracotta / autumn */
  --c-accent-dark: #7d3f21;
  --c-gold: #c9a25c;
  --c-white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(43,36,29,.06);
  --shadow-md: 0 8px 28px rgba(43,36,29,.10);
  --radius: 14px;
  --radius-sm: 8px;
  --header-h: 64px;
  --maxw: 1180px;
  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  color: var(--c-ink);
  background: var(--c-bg);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* ============ TYPOGRAPHY ============ */
h1, h2, h3 { font-family: var(--font-serif); font-weight: 600; line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 7vw, 4rem); }
h2 { font-size: clamp(1.7rem, 5vw, 2.6rem); margin-bottom: .6rem; }
h3 { font-size: clamp(1.15rem, 3.5vw, 1.4rem); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .72rem;
  font-weight: 600;
  color: var(--c-accent);
  margin-bottom: .5rem;
}

.lead { font-size: 1.08rem; color: var(--c-ink-soft); max-width: 60ch; }

/* ============ HEADER ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(251,248,243,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  z-index: 1000;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled { border-bottom-color: var(--c-line); box-shadow: var(--shadow-sm); }

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: var(--c-accent);
  color: #fff;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  border-radius: 50%;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-serif); font-size: 1.02rem; }
.brand-text small { font-size: .66rem; color: var(--c-ink-soft); letter-spacing: .04em; }

/* --- nav --- */
.main-nav {
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  height: calc(100vh - var(--header-h));
  background: var(--c-bg);
  padding: 24px 20px 60px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .32s ease;
}
.main-nav.open { transform: translateX(0); }
.main-nav > ul > li { border-bottom: 1px solid var(--c-line); }
.main-nav a {
  display: block;
  padding: 15px 4px;
  font-size: 1.02rem;
  font-weight: 500;
}
.main-nav a:active { color: var(--c-accent); }
.main-nav .sub { padding-left: 16px; display: none; }
.main-nav .has-sub.open .sub { display: block; }
.main-nav .sub a { font-size: .9rem; font-weight: 400; color: var(--c-ink-soft); padding: 11px 0; }

/* --- header actions --- */
.header-actions { display: flex; align-items: center; gap: 10px; }

.lang-switch {
  display: flex;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}
.lang-switch button {
  border: 0; background: transparent;
  padding: 6px 11px;
  font-size: .76rem; font-weight: 600;
  cursor: pointer; color: var(--c-ink-soft);
  font-family: var(--font-sans);
}
.lang-switch button.active { background: var(--c-accent); color: #fff; }

.nav-toggle {
  width: 40px; height: 40px;
  border: 0; background: transparent;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center; gap: 5px;
  cursor: pointer;
}
.nav-toggle span {
  width: 22px; height: 2px; background: var(--c-ink);
  transition: transform .3s, opacity .3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 40px) 0 60px;
  background: var(--c-ink);
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.hero-content { position: relative; z-index: 2; }
.hero .eyebrow { color: var(--c-gold); }
.hero h1 { color: #fff; margin: .3rem 0 1rem; }
.hero .lead { color: rgba(255,255,255,.92); margin: 0 auto 2rem; }

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

/* ============ BUTTONS ============ */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .2s, background .2s, color .2s, border-color .2s;
  font-family: var(--font-sans);
  text-align: center;
}
.btn-primary { background: var(--c-accent); color: #fff; }
.btn-primary:hover { background: var(--c-accent-dark); transform: translateY(-2px); }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.14); }
.btn.full { width: 100%; }

.link-arrow {
  display: inline-block;
  margin-top: .8rem;
  color: var(--c-accent);
  font-weight: 600;
  font-size: .92rem;
}
.link-arrow:hover { color: var(--c-accent-dark); }

/* ============ SECTIONS ============ */
.section { padding: 64px 0; }
.section-alt { background: var(--c-bg-alt); }
.section-head { margin-bottom: 36px; }
.section-head.center { text-align: center; max-width: 720px; margin-left: auto; margin-right: auto; }
.section-sub { color: var(--c-ink-soft); }

.two-col { display: grid; gap: 32px; }
.col-text, .col-media { min-width: 0; }

/* ============ CARDS GRID ============ */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-body { padding: 20px; }
.card-body h3 { margin-bottom: .4rem; }
.card-body p { color: var(--c-ink-soft); font-size: .94rem; }

.card-icon { text-align: center; padding-top: 26px; }
.card-icon .card-body { padding-top: 8px; }
.icon-circle {
  width: 60px; height: 60px;
  margin: 0 auto;
  display: grid; place-items: center;
  font-size: 1.7rem;
  background: var(--c-bg-alt);
  border-radius: 50%;
}

/* ============ TAGS GRID (environs) ============ */
.tags-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.tag-card {
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 20px 12px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .2s;
}
.tag-card:hover { transform: translateY(-3px); }
.tag-card span { font-size: 1.6rem; display: block; margin-bottom: .4rem; }
.tag-card p { font-size: .88rem; font-weight: 500; }

/* ============ IMAGE PLACEHOLDERS ============ */
.img-placeholder {
  position: relative;
  width: 100%;
  background:
    repeating-linear-gradient(45deg, #ece4d6, #ece4d6 12px, #e5dccc 12px, #e5dccc 24px);
  display: grid;
  place-items: center;
  color: var(--c-ink-soft);
  font-size: .82rem;
  border-radius: var(--radius-sm);
}
.img-placeholder::after {
  content: attr(data-label);
  background: rgba(255,255,255,.85);
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 500;
}
.ratio-4-3 { aspect-ratio: 4 / 3; }
.ratio-3-2 { aspect-ratio: 3 / 2; }

/* ============ REAL PHOTOS ============ */
.photo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: #ece4d6;
}
.ratio-4-3.photo, .ratio-3-2.photo { height: 100%; }
img.ratio-4-3 { aspect-ratio: 4 / 3; }
img.ratio-3-2 { aspect-ratio: 3 / 2; }

.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(rgba(43,36,29,.42), rgba(43,36,29,.62));
}
.hero .container { position: relative; z-index: 2; }

/* ============ GALLERY ============ */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.gallery .photo {
  aspect-ratio: 4 / 3;
  transition: transform .3s, box-shadow .3s;
}
.gallery .photo:hover { transform: scale(1.02); box-shadow: var(--shadow-md); }

/* ============ REVIEWS ============ */
.reviews {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.review {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  margin: 0;
  box-shadow: var(--shadow-sm);
}
.review p { color: var(--c-ink-soft); font-size: .95rem; line-height: 1.65; }
.review cite { display: block; margin-top: .8rem; font-style: normal; font-weight: 600; color: var(--c-ink); font-size: .88rem; }
.stars { color: var(--c-gold); letter-spacing: 2px; margin-bottom: .6rem; }
.review .stars { margin-bottom: .5rem; }

/* ============ SPACES (photo-led rooms) ============ */
.spaces { display: grid; gap: 34px; }
.space { display: grid; gap: 18px; align-items: center; }
.space-media { display: grid; grid-template-columns: 1fr; gap: 8px; }
.space-media:has(img:nth-child(2)) { grid-template-columns: 1fr 1fr; }
.space-body { min-width: 0; }
.space-tag {
  display: inline-block;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-accent);
  background: rgba(164,85,46,.10);
  padding: 3px 12px;
  border-radius: 999px;
  margin-bottom: .6rem;
  font-weight: 600;
}
.space-body h3 { margin: 0 0 .5rem; }
.space-body p { color: var(--c-ink-soft); font-size: .96rem; line-height: 1.7; }

/* ============ CONTACT ============ */
.contact-list { margin: 1.2rem 0; display: grid; gap: .6rem; }
.contact-list strong { color: var(--c-ink); }
.contact-list a { color: var(--c-accent); }

.map-placeholder {
  height: 180px;
  border-radius: var(--radius-sm);
  background: repeating-linear-gradient(90deg, #e5dccc, #e5dccc 20px, #ded3c0 20px, #ded3c0 40px);
  display: grid; place-items: center;
  color: var(--c-ink-soft);
  font-size: .82rem;
  border: 1px solid var(--c-line);
}

/* ============ MAP EMBED ============ */
.map-embed {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--c-line);
  box-shadow: var(--shadow-sm);
  background: #e5dccc;
}
.map-embed iframe {
  display: block;
  width: 100%;
  height: 260px;
  border: 0;
}
.map-credit {
  position: absolute;
  right: 8px; bottom: 8px;
  background: rgba(255,255,255,.92);
  color: var(--c-accent);
  font-size: .76rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.contact-form {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 14px;
}
.contact-form h3 { margin-bottom: .2rem; }
.contact-form label { display: grid; gap: 6px; font-size: .84rem; font-weight: 500; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: .94rem;
  color: var(--c-ink);
  background: var(--c-bg);
  transition: border-color .2s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--c-accent);
}
.contact-form textarea { resize: vertical; }
.form-note { font-size: .76rem; color: var(--c-ink-soft); }

/* ============ FOOTER ============ */
.site-footer {
  background: var(--c-ink);
  color: rgba(255,255,255,.82);
  padding: 44px 0 30px;
  margin-top: 0;
}
.footer-inner { display: grid; gap: 20px; }
.footer-brand strong { font-family: var(--font-serif); font-size: 1.2rem; color: #fff; }
.footer-brand p { font-size: .84rem; opacity: .8; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-links a { font-size: .86rem; opacity: .85; }
.footer-links a:hover { color: var(--c-gold); opacity: 1; }
.copyright { font-size: .78rem; opacity: .6; border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; }

/* =========================================================
   TABLET / DESKTOP
   ========================================================= */
@media (min-width: 720px) {
  .container { padding: 0 32px; }
  .section { padding: 84px 0; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .tags-grid { grid-template-columns: repeat(3, 1fr); }
  .two-col { grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
  .two-col.reverse .col-media { order: 0; }
  .two-col.reverse .col-text { order: 1; }
  .space { grid-template-columns: 1.1fr 1fr; gap: 48px; }
  .space.reverse .space-media { order: 2; }
  .space.reverse .space-body { order: 1; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .reviews { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1.4fr 1fr; align-items: start; }
  .copyright { grid-column: 1 / -1; }
}

@media (min-width: 992px) {
  :root { --header-h: 76px; }
  .nav-toggle { display: none; }

  .main-nav {
    position: static;
    height: auto;
    background: transparent;
    padding: 0;
    transform: none;
    overflow: visible;
  }
  .main-nav > ul { display: flex; align-items: center; gap: 4px; }
  .main-nav > ul > li { border: 0; position: relative; }
  .main-nav a { padding: 8px 13px; font-size: .9rem; border-radius: var(--radius-sm); }
  .main-nav > ul > li > a:hover { color: var(--c-accent); }

  .main-nav .sub {
    position: absolute;
    top: 100%; left: 0;
    min-width: 230px;
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    padding: 8px;
    opacity: 0; visibility: hidden;
    transform: translateY(8px);
    transition: opacity .22s, transform .22s, visibility .22s;
  }
  .main-nav .has-sub:hover .sub { opacity: 1; visibility: visible; transform: translateY(0); }
  .main-nav .sub a { font-size: .86rem; padding: 9px 12px; border-radius: 6px; }
  .main-nav .sub a:hover { background: var(--c-bg-alt); color: var(--c-accent); }

  .cards-grid { grid-template-columns: repeat(4, 1fr); }
  .hero { min-height: 88vh; }
  .contact-form { padding: 32px; }
}
