/* ============================================================
   Chalet de la Peute Goutte — Bussang, Hautes-Vosges
   Direction : carnet de montagne éditorial.
   Papier crème, vert sapin, cuivre. Fraunces + Karla.
   ============================================================ */

:root {
  --paper: #f5efe2;
  --paper-deep: #ece2cd;
  --paper-line: #ddd0b4;
  --pine: #1e3323;
  --pine-mid: #2f4a35;
  --moss: #5d7a52;
  --copper: #b45f2e;
  --copper-soft: #c98a5a;
  --gold: #c9a24b;
  --ink: #26221a;
  --ink-soft: #57503f;
  --white-warm: #fdfbf5;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Karla", "Helvetica Neue", sans-serif;

  --measure: 62ch;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-pad: clamp(3.5rem, 9vw, 7rem);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--paper);
  /* trame topographique très discrète */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420' viewBox='0 0 420 420'%3E%3Cg fill='none' stroke='%231e3323' stroke-opacity='0.045' stroke-width='1.2'%3E%3Cpath d='M-30 90 Q 90 30 200 95 T 450 80'/%3E%3Cpath d='M-30 150 Q 100 85 210 150 T 450 140'/%3E%3Cpath d='M-30 215 Q 110 145 220 210 T 450 205'/%3E%3Cpath d='M-30 285 Q 120 210 230 275 T 450 270'/%3E%3Cpath d='M-30 355 Q 130 280 240 345 T 450 340'/%3E%3C/g%3E%3C/svg%3E");
}

::selection { background: var(--copper); color: var(--white-warm); }

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

a { color: var(--copper); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--pine); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 560; line-height: 1.12; color: var(--pine); }

.wrap { max-width: 72rem; margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--paper-line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: .8rem;
}
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1.1; }
.brand .brand-name {
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 620;
  color: var(--pine); letter-spacing: .01em;
}
.brand .brand-sub {
  font-size: .68rem; text-transform: uppercase; letter-spacing: .22em;
  color: var(--copper); margin-top: .15rem;
}
.main-nav { display: flex; align-items: center; gap: clamp(.6rem, 2vw, 1.6rem); }
.main-nav a {
  font-size: .85rem; text-transform: uppercase; letter-spacing: .12em;
  text-decoration: none; color: var(--ink-soft); padding-block: .3rem;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: var(--pine); border-bottom-color: var(--copper-soft); }
.main-nav a[aria-current="page"] { color: var(--pine); border-bottom-color: var(--copper); }
.main-nav .nav-cta {
  border: 1.5px solid var(--copper); color: var(--copper);
  padding: .45rem 1rem; border-radius: 2px; border-bottom-width: 1.5px;
}
.main-nav .nav-cta:hover { background: var(--copper); color: var(--white-warm); border-color: var(--copper); }

.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-toggle {
    display: block; background: none; border: 1.5px solid var(--pine);
    border-radius: 2px; padding: .35rem .6rem; font-family: var(--font-body);
    font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
    color: var(--pine); cursor: pointer;
  }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--paper-line);
    padding: .5rem var(--gutter) 1rem;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: .7rem 0; border-bottom: 1px solid var(--paper-line); }
  .main-nav .nav-cta { margin-top: .8rem; text-align: center; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative; min-height: min(88svh, 46rem);
  display: flex; align-items: flex-end;
  color: var(--white-warm); overflow: hidden;
}
.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 40%;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20, 33, 22, .88) 0%, rgba(20, 33, 22, .28) 45%, rgba(20, 33, 22, .12) 100%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.hero-eyebrow {
  font-size: .8rem; text-transform: uppercase; letter-spacing: .3em;
  color: var(--gold); margin-bottom: 1rem;
}
.hero h1 {
  color: var(--white-warm);
  font-size: clamp(2.3rem, 6vw, 4.3rem);
  font-weight: 480; max-width: 16ch;
}
.hero h1 em { font-style: italic; color: #e8d9ae; }
.hero-tagline { margin-top: 1.1rem; max-width: 44ch; font-size: 1.1rem; color: #e3ded1; }
.hero-actions { margin-top: 1.8rem; display: flex; flex-wrap: wrap; gap: .9rem; }

/* facts strip */
.facts {
  background: var(--pine); color: var(--paper);
}
.facts ul {
  list-style: none; display: flex; flex-wrap: wrap;
  justify-content: space-between; gap: .5rem 2rem;
  padding-block: 1.1rem;
}
.facts li { display: flex; align-items: baseline; gap: .5rem; font-size: .95rem; }
.facts .n { font-family: var(--font-display); font-size: 1.5rem; color: var(--gold); font-weight: 560; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block; font-family: var(--font-body);
  font-size: .85rem; text-transform: uppercase; letter-spacing: .14em;
  text-decoration: none; padding: .85rem 1.7rem; border-radius: 2px;
  border: 1.5px solid transparent; cursor: pointer; transition: all .18s ease;
}
.btn-solid { background: var(--copper); color: var(--white-warm); }
.btn-solid:hover { background: #9c4f24; color: var(--white-warm); transform: translateY(-1px); }
.btn-ghost { border-color: var(--white-warm); color: var(--white-warm); }
.btn-ghost:hover { background: var(--white-warm); color: var(--pine); }
.btn-pine { border-color: var(--pine); color: var(--pine); }
.btn-pine:hover { background: var(--pine); color: var(--paper); }

/* ---------- Sections ---------- */

.section { padding-block: var(--section-pad); }
.section-alt { background: var(--paper-deep); }
.section-dark { background: var(--pine); color: var(--paper); }
.section-dark h2, .section-dark h3 { color: var(--paper); }

.kicker {
  font-size: .78rem; text-transform: uppercase; letter-spacing: .3em;
  color: var(--copper); display: block; margin-bottom: .9rem;
}
.section h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); max-width: 22ch; }
.lede { font-size: 1.15rem; max-width: var(--measure); margin-top: 1.1rem; color: var(--ink-soft); }
.section-dark .lede { color: #cfd8c6; }

.prose { max-width: var(--measure); }
.prose p + p { margin-top: 1rem; }

/* two-column editorial */
.duo {
  display: grid; gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center; margin-top: clamp(1.8rem, 4vw, 3rem);
}
@media (min-width: 820px) {
  .duo { grid-template-columns: 1.1fr 1fr; }
  .duo.rev > .duo-media { order: 2; }
}
.duo-media { position: relative; }
.duo-media img { border-radius: 3px; box-shadow: 10px 12px 0 0 color-mix(in srgb, var(--pine) 14%, transparent); }
.duo-media figcaption {
  margin-top: .6rem; font-size: .8rem; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-soft);
}

/* card grid */
.grid-3 { display: grid; gap: 1.6rem; margin-top: 2.4rem; }
@media (min-width: 720px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--white-warm); border: 1px solid var(--paper-line);
  border-radius: 3px; overflow: hidden;
  display: flex; flex-direction: column;
}
.card img { aspect-ratio: 4 / 3; object-fit: cover; }
.card-body { padding: 1.3rem 1.4rem 1.5rem; flex: 1; }
.card h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.card p { font-size: .95rem; color: var(--ink-soft); }
.card ul { font-size: .95rem; color: var(--ink-soft); padding-left: 1.1rem; }
.card ul li + li { margin-top: .3rem; }

/* ---------- Tarifs ---------- */

.tarifs-grid { display: grid; gap: 1.4rem; margin-top: 2.4rem; }
@media (min-width: 720px) { .tarifs-grid { grid-template-columns: repeat(4, 1fr); } }
.tarif {
  background: var(--white-warm); border: 1px solid var(--paper-line);
  border-top: 4px solid var(--moss); border-radius: 3px;
  padding: 1.5rem 1.4rem; text-align: center;
}
.tarif.tarif-haute { border-top-color: var(--copper); }
.tarif .saison { font-size: .8rem; text-transform: uppercase; letter-spacing: .18em; color: var(--ink-soft); }
.tarif .prix { font-family: var(--font-display); font-size: 2.6rem; color: var(--pine); margin-top: .5rem; font-weight: 560; }
.tarif .prix small { font-size: 1rem; font-family: var(--font-body); color: var(--ink-soft); }
.tarif .periode { margin-top: .6rem; font-size: .88rem; color: var(--ink-soft); }

.options-table { width: 100%; border-collapse: collapse; margin-top: 1.4rem; max-width: 44rem; }
.options-table td {
  padding: .7rem .4rem; border-bottom: 1px solid var(--paper-line); font-size: .97rem;
}
.options-table td:last-child { text-align: right; font-family: var(--font-display); color: var(--pine); white-space: nowrap; }

/* ---------- Calendrier dispo ---------- */

.cal-legend { display: flex; gap: 1.6rem; flex-wrap: wrap; margin-top: 1.6rem; font-size: .88rem; color: var(--ink-soft); }
.cal-legend span { display: inline-flex; align-items: center; gap: .5rem; }
.cal-legend i { width: 14px; height: 14px; border-radius: 2px; display: inline-block; }
.cal-legend .li-libre { background: var(--white-warm); border: 1px solid var(--paper-line); }
.cal-legend .li-occupe { background: var(--pine); opacity: .85; }
.cal-legend .li-passe { background: var(--paper-deep); }

.cal-months { display: grid; gap: 1.6rem; margin-top: 1.4rem; }
@media (min-width: 680px) { .cal-months { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cal-months { grid-template-columns: repeat(3, 1fr); } }
.cal-month { background: var(--white-warm); border: 1px solid var(--paper-line); border-radius: 3px; padding: 1rem 1.1rem 1.2rem; }
.cal-month h3 { font-size: 1.05rem; text-align: center; margin-bottom: .7rem; text-transform: capitalize; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-grid .dow { font-size: .62rem; text-transform: uppercase; letter-spacing: .05em; text-align: center; color: var(--ink-soft); padding-block: .2rem; }
.cal-day {
  aspect-ratio: 1; display: grid; place-items: center;
  font-size: .78rem; border-radius: 2px;
  background: var(--paper); border: 1px solid var(--paper-line); color: var(--ink);
}
.cal-day.empty { background: transparent; border: none; }
.cal-day.past { background: var(--paper-deep); color: #b0a68e; border-color: transparent; }
.cal-day.booked { background: var(--pine); color: #9db292; border-color: var(--pine); text-decoration: line-through; }

/* ---------- Formulaire réservation ---------- */

.form-wrap {
  background: var(--white-warm); border: 1px solid var(--paper-line);
  border-radius: 3px; padding: clamp(1.5rem, 4vw, 2.5rem);
  max-width: 46rem;
}
.form-grid { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field label { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-soft); margin-bottom: .35rem; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem;
  padding: .7rem .8rem; border: 1px solid var(--paper-line); border-radius: 2px;
  background: var(--paper); color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--copper-soft); outline-offset: 1px; background: var(--white-warm);
}
.field textarea { min-height: 7rem; resize: vertical; }
.form-note { font-size: .85rem; color: var(--ink-soft); }
.form-msg { margin-top: 1rem; padding: .9rem 1.1rem; border-radius: 2px; font-size: .95rem; display: none; }
.form-msg.ok { display: block; background: #e6efdd; border: 1px solid var(--moss); color: var(--pine); }
.form-msg.err { display: block; background: #f6e3d3; border: 1px solid var(--copper); color: #7c3c17; }

/* ---------- Galerie ---------- */

.gallery { columns: 2 14rem; column-gap: .8rem; margin-top: 2.2rem; }
@media (min-width: 900px) { .gallery { columns: 3 16rem; } }
.gallery a { display: block; margin-bottom: .8rem; break-inside: avoid; }
.gallery img { border-radius: 3px; width: 100%; transition: transform .2s ease, box-shadow .2s ease; }
.gallery a:hover img { transform: scale(1.015); box-shadow: 0 6px 18px rgba(30, 51, 35, .25); }

/* ---------- Listes équipement / infos ---------- */

.check-list { list-style: none; max-width: var(--measure); }
.check-list li { padding-left: 1.6rem; position: relative; margin-top: .55rem; }
.check-list li::before {
  content: "✦"; position: absolute; left: 0; color: var(--copper); font-size: .8rem; top: .25rem;
}

.info-cols { display: grid; gap: 2rem; margin-top: 2.2rem; }
@media (min-width: 760px) { .info-cols { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Bandeau réservation directe ---------- */

.direct-band { text-align: center; }
.direct-band .stars { color: var(--gold); letter-spacing: .5em; font-size: 1.2rem; margin-bottom: 1rem; }
.direct-band h2 { margin-inline: auto; }
.direct-band .lede { margin-inline: auto; }
.direct-band .btn { margin-top: 1.8rem; }

/* ---------- Carte / accès ---------- */

.map-frame {
  width: 100%; aspect-ratio: 16 / 10; border: 1px solid var(--paper-line);
  border-radius: 3px; margin-top: 2rem;
}
@media (min-width: 900px) { .map-frame { aspect-ratio: 21 / 9; } }

/* ---------- Footer ---------- */

.site-footer { background: #16261a; color: #a8b8a0; font-size: .92rem; }
.site-footer .wrap {
  padding-block: 2.8rem; display: grid; gap: 2rem;
}
@media (min-width: 760px) { .site-footer .wrap { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h3 { color: var(--paper); font-size: 1.15rem; margin-bottom: .7rem; }
.site-footer a { color: #d3c9a8; }
.site-footer a:hover { color: var(--white-warm); }
.site-footer ul { list-style: none; }
.site-footer li + li { margin-top: .4rem; }
.footer-bottom {
  border-top: 1px solid #24382a; padding-block: 1.1rem;
  font-size: .8rem; text-align: center; color: #728468;
}

/* ---------- Reveal animation ---------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.in { opacity: 1; transform: none; }
}

/* ---------- Page hero (pages intérieures) ---------- */

.page-hero { background: var(--pine); color: var(--paper); padding-block: clamp(2.5rem, 6vw, 4rem); position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420' viewBox='0 0 420 420'%3E%3Cg fill='none' stroke='%23f5efe2' stroke-opacity='0.06' stroke-width='1.2'%3E%3Cpath d='M-30 90 Q 90 30 200 95 T 450 80'/%3E%3Cpath d='M-30 150 Q 100 85 210 150 T 450 140'/%3E%3Cpath d='M-30 215 Q 110 145 220 210 T 450 205'/%3E%3Cpath d='M-30 285 Q 120 210 230 275 T 450 270'/%3E%3Cpath d='M-30 355 Q 130 280 240 345 T 450 340'/%3E%3C/g%3E%3C/svg%3E");
}
.page-hero .wrap { position: relative; }
.page-hero h1 { color: var(--paper); font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 500; }
.page-hero .lede { color: #cfd8c6; }
