/* ===========================================================
   DÉMO — Maison d'hôtes "Le Clos des Tilleuls"
   Archétype VOLONTAIREMENT différent des autres démos :
   immersif "séjour" — hero plein écran + BARRE DE RÉSERVATION
   PAR DATES, chambres présentées en grand, et une réservation
   directe avec COMPARATIF DE PRIX (en direct vs plateforme).
   Univers champêtre-chic : taupe / sauge / ivoire, Spectral +
   Mulish. But : prouver qu'on ne plaque pas un template unique.
   =========================================================== */

:root {
  --g-bg:     #f4efe4;
  --g-paper:  #fffdf8;
  --g-ink:    #2e2a22;
  --g-soft:   #6f675a;
  --g-sage:   #79836a;
  --g-sage-dk:#5e684c;
  --g-taupe:  #a89880;
  --g-line:   #e4dccb;
  --g-disp:   "Spectral", Georgia, serif;
  --g-sans:   "Mulish", -apple-system, sans-serif;
}

body.gite {
  margin: 0;
  background: var(--g-bg);
  color: var(--g-ink);
  font-family: var(--g-sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.gite h1, body.gite h2, body.gite h3 {
  font-family: var(--g-disp);
  font-weight: 500;
  line-height: 1.12;
  margin: 0;
}
body.gite p { margin: 0 0 1rem; }
/* Liens en couleur héritée SAUF les boutons-liens (qui gardent leur variante). */
body.gite a:not(.g-btn) { color: inherit; }

.g-kicker { text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.74rem; font-weight: 700; color: var(--g-sage-dk); margin: 0 0 0.7rem; }

/* ── Boutons ──────────────────────────────────────────────── */
.g-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  cursor: pointer;
  font-family: var(--g-sans);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  padding: 0.85rem 1.7rem;
  border-radius: 8px;
  transition: background 0.2s ease, transform 0.15s ease, color 0.2s ease;
  white-space: nowrap;
}
.g-btn--full { width: 100%; }
.g-btn--accent { background: var(--g-sage); color: #fff; }
.g-btn--accent:hover { background: var(--g-sage-dk); transform: translateY(-2px); }
.g-btn--solid { background: #fff; color: var(--g-ink); }
.g-btn--solid:hover { transform: translateY(-2px); }
.g-btn--ghost { background: transparent; color: var(--g-ink); border: 1.5px solid var(--g-line); }
.g-btn--ghost:hover { border-color: var(--g-sage); color: var(--g-sage-dk); }

/* ── Hero ─────────────────────────────────────────────────── */
.g-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-image: linear-gradient(180deg, rgba(40,36,28,0.5) 0%, rgba(40,36,28,0.25) 45%, rgba(40,36,28,0.6) 100%), var(--hero);
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: clamp(5rem, 12vh, 8rem) clamp(1.2rem, 5vw, 4rem) clamp(2rem, 5vw, 3rem);
}
.g-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.3rem clamp(1.2rem, 5vw, 4rem);
}
.g-logo { font-family: var(--g-disp); font-size: 1.5rem; color: #fff; text-decoration: none; }
.g-logo span { font-style: italic; color: #eadfca; }
.g-nav { display: flex; gap: 1.8rem; margin: 0 auto 0 2rem; font-size: 0.88rem; font-weight: 600; }
.g-nav a { color: rgba(255,255,255,0.88); text-decoration: none; transition: color 0.2s; }
.g-nav a:hover { color: #fff; }

.g-hero__inner { max-width: 760px; }
.g-hero__eyebrow { text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.78rem; font-weight: 700; color: #eadfca; margin: 0 0 1rem; }
.g-hero h1 { font-size: clamp(2.8rem, 8vw, 5rem); color: #fff; margin-bottom: 1rem; }
.g-hero__lead { font-size: 1.18rem; color: rgba(255,255,255,0.92); max-width: 560px; margin: 0; }

/* ── Barre de réservation ─────────────────────────────────── */
.g-search {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem;
  margin-top: 2.2rem;
  background: rgba(255,253,248,0.96);
  border-radius: 14px;
  padding: 1.1rem 1.2rem;
  max-width: 820px;
  box-shadow: 0 24px 50px -24px rgba(40,36,28,0.7);
}
.g-search__field { display: flex; flex-direction: column; gap: 0.3rem; flex: 1 1 150px; }
.g-search__field label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; color: var(--g-soft); }
.g-search__field input, .g-search__field select {
  border: 1px solid var(--g-line);
  background: #fff;
  border-radius: 8px;
  padding: 0.7rem 0.8rem;
  font-family: var(--g-sans);
  font-size: 0.95rem;
  color: var(--g-ink);
}
.g-search__field input:focus, .g-search__field select:focus { outline: none; border-color: var(--g-sage); }
.g-search .g-btn { flex: 1 1 auto; }

/* ── Arguments ────────────────────────────────────────────── */
.g-value {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--g-line);
  border-bottom: 1px solid var(--g-line);
}
.g-value__item { background: var(--g-bg); text-align: center; padding: 2.2rem 1.4rem; }
.g-value__big { display: block; font-family: var(--g-disp); font-size: 2.2rem; color: var(--g-sage-dk); line-height: 1.1; }
.g-value__title { display: block; font-weight: 700; margin-bottom: 0.5rem; }
.g-value__desc { color: var(--g-soft); font-size: 0.92rem; margin: 0; }

/* ── Le lieu ──────────────────────────────────────────────── */
.g-lieu { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; max-width: 1200px; margin: 0 auto; }
.g-lieu__media { min-height: 360px; background-size: cover; background-position: center; background-color: var(--g-line); }
.g-lieu__text { padding: clamp(2rem, 5vw, 3.5rem); display: flex; flex-direction: column; justify-content: center; }
.g-lieu__text h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 1rem; }
.g-lieu__text > p { color: var(--g-soft); }
.g-services { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }
.g-service { display: inline-flex; align-items: center; gap: 0.4rem; background: var(--g-paper); border: 1px solid var(--g-line); border-radius: 999px; padding: 0.4rem 0.9rem; font-size: 0.85rem; font-weight: 600; }
.g-service__icon { font-size: 1rem; }

/* ── Sections ─────────────────────────────────────────────── */
.g-sec-head { text-align: center; max-width: 620px; margin: 0 auto 2.4rem; }
.g-sec-head h2 { font-size: clamp(2rem, 5vw, 3rem); }
.g-sec-sub { color: var(--g-soft); margin: 0.5rem 0 0; }
.g-rooms { max-width: 1200px; margin: 0 auto; padding: clamp(3rem, 8vw, 5rem) clamp(1.2rem, 5vw, 2rem); }

/* ── Chambres ─────────────────────────────────────────────── */
.g-rooms__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.g-room { background: var(--g-paper); border: 1px solid var(--g-line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.g-room:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -26px rgba(46,42,34,0.5); }
.g-room__media { position: relative; height: 190px; background-size: cover; background-position: center; background-color: var(--g-line); }
.g-room__tag { position: absolute; top: 0.8rem; left: 0.8rem; background: var(--g-sage); color: #fff; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; padding: 0.28rem 0.7rem; border-radius: 999px; }
.g-room__body { padding: 1.3rem; display: flex; flex-direction: column; flex: 1; }
.g-room__body h3 { font-size: 1.4rem; margin-bottom: 0.2rem; }
.g-room__meta { font-size: 0.88rem; color: var(--g-soft); margin-bottom: 0.8rem; }
.g-room__amenities { list-style: none; margin: 0 0 1.2rem; padding: 0; font-size: 0.88rem; color: var(--g-soft); }
.g-room__amenities li { padding: 0.18rem 0 0.18rem 1.1rem; position: relative; }
.g-room__amenities li::before { content: "✓"; position: absolute; left: 0; color: var(--g-sage); font-weight: 700; }
.g-room__foot { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; margin-top: auto; }
.g-room__price { font-size: 0.9rem; color: var(--g-soft); }
.g-room__price strong { font-family: var(--g-disp); font-size: 1.4rem; color: var(--g-ink); }

/* ── Avis ─────────────────────────────────────────────────── */
.g-reviews { background: var(--g-sage); color: #f3f0e6; padding: clamp(3rem, 8vw, 5rem) clamp(1.2rem, 5vw, 2rem); }
.g-reviews .g-kicker { color: #e7eadd; }
.g-reviews .g-sec-head h2 { color: #fff; }
.g-reviews__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; max-width: 1050px; margin: 0 auto; }
.g-review { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16); border-radius: 14px; padding: 1.8rem; margin: 0; }
.g-review__stars { color: #f0e6c8; letter-spacing: 0.12em; margin: 0 0 0.7rem; }
.g-review blockquote { font-family: var(--g-disp); font-style: italic; font-size: 1.18rem; line-height: 1.5; margin: 0 0 0.9rem; color: #fff; }
.g-review figcaption { font-size: 0.85rem; color: #e2e5d7; }

/* ── Infos ────────────────────────────────────────────────── */
.g-infos { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2.5rem; max-width: 980px; margin: 0 auto; padding: clamp(3rem, 8vw, 5rem) clamp(1.2rem, 5vw, 2rem); }
.g-infos h3 { font-size: 1.5rem; margin-bottom: 0.9rem; }
.g-infos__addr { font-weight: 700; margin-bottom: 0.2rem; }
.g-infos__access { color: var(--g-soft); }
.g-infos__list { list-style: none; margin: 0 0 1.4rem; padding: 0; }
.g-infos__list li { padding: 0.5rem 0; border-bottom: 1px solid var(--g-line); color: var(--g-soft); }

/* ── Footer ───────────────────────────────────────────────── */
.g-foot { background: var(--g-ink); color: #c5bca9; text-align: center; padding: 2.4rem 1.2rem; }
.g-foot__name { font-family: var(--g-disp); font-size: 1.6rem; color: #fff; margin-bottom: 0.3rem; }

/* ── Pastille validation ──────────────────────────────────── */
.g-check { width: 60px; height: 60px; margin: 0 auto 1rem; border-radius: 50%; background: var(--g-sage); color: #fff; font-size: 1.8rem; display: flex; align-items: center; justify-content: center; animation: g-pop 0.3s ease; }

/* ===========================================================
   Réservation (modale simulée + comparatif de prix)
   =========================================================== */
@keyframes g-pop { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }
.bk[hidden] { display: none; }
.bk { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.bk__overlay { position: absolute; inset: 0; background: rgba(40,36,28,0.6); backdrop-filter: blur(3px); }
.bk__panel { position: relative; background: var(--g-bg); border-radius: 16px; padding: clamp(1.6rem, 5vw, 2.4rem); width: 100%; max-width: 460px; box-shadow: 0 30px 70px -20px rgba(40,36,28,0.6); animation: g-pop 0.25s ease; max-height: 92vh; overflow-y: auto; }
.bk__x { position: absolute; top: 0.7rem; right: 1rem; border: none; background: none; font-size: 1.9rem; line-height: 1; color: var(--g-soft); cursor: pointer; }
.bk__title { font-size: 1.6rem; margin-bottom: 1rem; }
.bk__row { display: flex; gap: 0.8rem; }
.bk__field { display: flex; flex-direction: column; gap: 0.3rem; flex: 1; margin-bottom: 0.8rem; }
.bk__field label { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; color: var(--g-soft); }
.bk__field input, .bk__field select, .bk__input {
  border: 1px solid var(--g-line); background: var(--g-paper); border-radius: 8px;
  padding: 0.7rem 0.9rem; font-family: var(--g-sans); font-size: 0.95rem; color: var(--g-ink); width: 100%; box-sizing: border-box;
}
.bk__field input:focus, .bk__field select:focus, .bk__input:focus { outline: none; border-color: var(--g-sage); }
.bk__err { color: #b3261e; font-size: 0.85rem; margin: 0 0 0.8rem; }
.bk__err[hidden] { display: none; }

.bk__rooms { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1rem; }
.bk__roomopt {
  display: flex; align-items: center; justify-content: space-between; gap: 0.8rem;
  border: 1.5px solid var(--g-line); background: var(--g-paper); border-radius: 10px;
  padding: 0.85rem 1.1rem; cursor: pointer; font-family: var(--g-sans); text-align: left;
  transition: all 0.15s;
}
.bk__roomopt:hover { border-color: var(--g-sage); transform: translateY(-1px); }
.bk__roomopt-name { font-weight: 700; }
.bk__roomopt-sub { font-size: 0.82rem; color: var(--g-soft); }
.bk__roomopt-total { font-family: var(--g-disp); font-size: 1.2rem; color: var(--g-sage-dk); }

.bk__recap { color: var(--g-soft); margin-bottom: 1rem; }
.bk__compare { background: var(--g-paper); border: 1px solid var(--g-line); border-radius: 12px; padding: 1rem 1.1rem; margin-bottom: 1.2rem; }
.bk__compare-row { display: flex; justify-content: space-between; align-items: baseline; padding: 0.3rem 0; }
.bk__compare-row--direct strong { font-family: var(--g-disp); font-size: 1.6rem; color: var(--g-sage-dk); }
.bk__compare-row--platform { color: var(--g-soft); font-size: 0.92rem; }
.bk__compare-row--platform s { color: var(--g-soft); }
.bk__save { margin: 0.5rem 0 0; font-weight: 700; color: var(--g-sage-dk); text-align: center; background: #eef0e6; border-radius: 8px; padding: 0.5rem; }

.bk__fields { display: flex; flex-direction: column; gap: 0.7rem; margin-bottom: 1rem; }
.bk__step[hidden] { display: none; }
.bk [data-bk-step="done"] { text-align: center; }
.bk__confirm { margin: 0.6rem 0 1rem; line-height: 1.5; }
.bk__note { font-size: 0.82rem; color: var(--g-soft); margin-bottom: 1.4rem; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 820px) {
  .g-lieu { grid-template-columns: 1fr; }
  .g-lieu__media { min-height: 240px; }
  .g-nav { display: none; }
}
