/* Thème unique et assumé : bordeaux profond + or, façon temple la nuit.
   Pas de variante claire — ce choix esthétique reste fixe quel que soit le thème du visiteur. */
:root {
  --bg: #2a1210;
  --bg-alt: #33150f;
  --surface: #3d1a17;
  --surface-border: rgba(224, 184, 98, 0.28);
  --ink: #f6e9da;
  --ink-soft: #cdab8f;
  --gold: #e0b862;
  --gold-dark: #f3cf85;
  --terracotta: #e07c54;
  --terracotta-dark: #f2926a;
  --red: #8a2e2e;
  --radius: 14px;
  --shadow: 0 12px 34px rgba(0, 0, 0, 0.45);
  --font-display: 'Noto Serif Thai', Georgia, serif;
  --font-body: 'Noto Sans Thai', 'Segoe UI', sans-serif;
  font-size: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0 0 .5em;
  color: var(--ink);
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(42, 18, 16, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--surface-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gold-dark);
  text-decoration: none;
}
.logo-icon { width: 36px; height: 36px; flex-shrink: 0; }
.footer-icon { width: 20px; height: 20px; vertical-align: -5px; margin-right: 6px; }
.logo span { font-weight: 500; color: var(--ink-soft); }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: .95rem;
  letter-spacing: .01em;
}
.nav a:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.nav-cta {
  background: var(--terracotta);
  color: #2a1210 !important;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 600;
  transition: background .2s;
}
.nav-cta:hover { background: var(--terracotta-dark); }
.lang-toggle {
  background: transparent;
  border: 1px solid var(--surface-border);
  color: var(--gold);
  font-family: inherit;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
.lang-toggle:hover { border-color: var(--gold); color: var(--gold-dark); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(120% 100% at 50% 0%, var(--bg-alt), var(--bg) 65%);
  padding: 110px 0 90px;
  text-align: center;
}
.hero-watermark {
  position: absolute;
  top: 50%; left: 50%;
  width: 640px; height: 640px;
  transform: translate(-50%, -46%);
  opacity: .1;
  color: var(--gold);
  pointer-events: none;
}
.hero-inner { position: relative; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  letter-spacing: .12em;
  color: var(--gold);
  margin: 0 0 18px;
}
.hero-eyebrow::before, .hero-eyebrow::after { content: ""; width: 26px; height: 1px; background: var(--gold); }
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.3;
  max-width: 800px;
  margin: 0 auto .4em;
}
.hero p {
  color: var(--ink-soft);
  font-size: 1.15rem;
  max-width: 560px;
  margin: 0 auto 2em;
}

.btn {
  display: inline-block;
  padding: 15px 34px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .2s;
}
.btn-primary {
  background: var(--terracotta);
  color: #2a1210;
  box-shadow: 0 8px 22px rgba(224,124,84,.35);
}
.btn-primary:hover { background: var(--terracotta-dark); transform: translateY(-1px); }
.btn-primary:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn-block { width: 100%; }

/* Sections */
section { padding: 90px 0; }
section h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  text-align: center;
}
.section-sub {
  text-align: center;
  color: var(--ink-soft);
  max-width: 520px;
  margin: 0 auto 2.5em;
}

/* Services */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  position: relative;
  border: 1px solid var(--surface-border);
}
.service-card.featured { border: 2px solid var(--gold); }
.badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--red);
  color: var(--gold-dark);
  font-size: .75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
}
.service-card h3 { font-size: 1.4rem; }
.duration {
  color: var(--gold);
  font-size: .85rem;
  letter-spacing: .04em;
  margin-bottom: .8em;
}
.desc { color: var(--ink-soft); font-size: .95rem; min-height: 66px; }
.price {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold-dark);
  margin-top: 12px;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.gallery-grid img, .gallery-grid video {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--surface-border);
  display: block;
  background: var(--surface);
}
.gallery-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--ink-soft);
}

/* About */
.apropos { background: var(--bg-alt); }
.apropos-inner { max-width: 700px; }
.apropos p { color: var(--ink-soft); }
.infos { list-style: none; padding: 0; margin-top: 1.5em; }
.infos li { margin-bottom: .6em; }
.infos em { color: var(--ink-soft); font-style: normal; opacity: .7; font-size: .85em; }

/* Booking form */
.booking-form {
  max-width: 620px;
  margin: 0 auto;
  background: var(--surface);
  padding: 36px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--surface-border);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: .85rem;
  margin-bottom: 6px;
  color: var(--ink-soft);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: .95rem;
  background: var(--bg);
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--terracotta);
}
.form-feedback {
  text-align: center;
  margin-top: 16px;
  font-size: .9rem;
  min-height: 1.2em;
}
.form-feedback.success { color: var(--gold-dark); }
.form-feedback.error { color: #ff8a70; }

/* Calendrier / horaire (flatpickr) — thème sombre assorti au site */
.flatpickr-calendar {
  background: var(--surface) !important;
  border: 1px solid var(--surface-border) !important;
  box-shadow: var(--shadow) !important;
  font-family: var(--font-body) !important;
}
.flatpickr-calendar.arrowTop::before,
.flatpickr-calendar.arrowTop::after { border-bottom-color: var(--surface) !important; }
.flatpickr-months { padding: 6px 0; }
.flatpickr-current-month {
  color: var(--gold-dark) !important;
  font-family: var(--font-display) !important;
}
.flatpickr-current-month input.cur-year,
.flatpickr-current-month .flatpickr-monthDropdown-months {
  color: var(--gold-dark) !important;
}
.flatpickr-monthDropdown-months option { background: var(--surface); color: var(--ink); }
.flatpickr-prev-month, .flatpickr-next-month { color: var(--gold) !important; fill: var(--gold) !important; }
.flatpickr-prev-month:hover svg, .flatpickr-next-month:hover svg { fill: var(--gold-dark) !important; }
span.flatpickr-weekday {
  background: var(--surface) !important;
  color: var(--ink-soft) !important;
}
.flatpickr-day {
  color: var(--ink) !important;
  border-radius: 8px !important;
}
.flatpickr-day.today { border-color: var(--gold) !important; }
.flatpickr-day:hover, .flatpickr-day:focus {
  background: var(--bg-alt) !important;
  border-color: var(--bg-alt) !important;
}
.flatpickr-day.selected, .flatpickr-day.selected:hover {
  background: var(--terracotta) !important;
  border-color: var(--terracotta) !important;
  color: #2a1210 !important;
  font-weight: 700;
}
.flatpickr-day.flatpickr-disabled, .flatpickr-day.flatpickr-disabled:hover {
  color: var(--ink-soft) !important;
  opacity: .35;
}
.flatpickr-day.prevMonthDay, .flatpickr-day.nextMonthDay { color: var(--ink-soft) !important; opacity: .4; }
.flatpickr-time { border-top: 1px solid var(--surface-border) !important; }
.flatpickr-time input, .flatpickr-time .flatpickr-time-separator, .flatpickr-time .flatpickr-am-pm {
  color: var(--ink) !important;
  background: transparent !important;
}
.flatpickr-time input:hover, .flatpickr-time input:focus { background: var(--bg-alt) !important; }
.numInputWrapper span.arrowUp:after { border-bottom-color: var(--gold) !important; }
.numInputWrapper span.arrowDown:after { border-top-color: var(--gold) !important; }
.numInputWrapper:hover { background: var(--bg-alt) !important; }
#date, #time { cursor: pointer; }

/* Deposit box */
.deposit-box {
  background: var(--bg);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 22px;
}
.deposit-box h3 {
  font-size: 1.1rem;
  color: var(--gold-dark);
  margin-bottom: .4em;
}
.deposit-box > p { color: var(--ink-soft); font-size: .9rem; margin-bottom: 16px; }
.deposit-body {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.deposit-qr {
  width: 140px;
  height: 140px;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
  padding: 6px;
  border: 1px solid var(--surface-border);
}
.deposit-amount { font-size: 1.1rem; color: var(--ink); }
.deposit-amount strong { color: var(--gold-dark); font-variant-numeric: tabular-nums; }
.deposit-checkbox-wrap {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .9rem;
  color: var(--ink-soft);
  cursor: pointer;
}
.deposit-checkbox-wrap input { margin-top: 3px; }

/* Bouton flottant musique de fond (on/off) */
.music-toggle {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 60;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  color: var(--gold);
  font-size: 1.15rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform .15s, border-color .2s;
}
.music-toggle:hover { transform: translateY(-2px); border-color: var(--gold); }
.music-toggle.is-muted { color: var(--ink-soft); }

/* Bouton flottant LINE */
.line-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #06c755;
  color: #fff;
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 600;
  box-shadow: 0 8px 22px rgba(6,199,85,.4);
  transition: transform .15s;
}
.line-fab:hover { transform: translateY(-2px); }
@media (max-width: 640px) {
  .line-fab span { display: none; }
  .line-fab { padding: 14px; }
}

/* Modale LINE */
.line-modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.line-modal[hidden] { display: none; }
.line-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.6); }
.line-modal-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 340px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow);
}
.line-modal-card h3 { color: var(--gold-dark); margin-bottom: 16px; font-size: 1.2rem; }
.line-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  color: var(--ink-soft);
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
  padding: 6px;
}
.line-modal-qr {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 1;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
  padding: 8px;
  margin: 0 auto 16px;
  display: block;
}
.line-modal-card p { color: var(--ink-soft); font-size: .9rem; margin-bottom: 12px; }
.line-modal-phone-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.line-modal-phone-row span { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.line-modal-copy-btn {
  background: var(--terracotta);
  color: #2a1210;
  border: none;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 30px 0;
  color: var(--ink-soft);
  font-size: .85rem;
  border-top: 1px solid var(--surface-border);
}

@media (max-width: 640px) {
  .nav { gap: 14px; }
  .nav a:not(.nav-cta) { display: none; }
  .form-row { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
  .hero-watermark { width: 420px; height: 420px; }
}
