/* =========================================================
   Tipi Mariane — styles publics
   Palette nature/bois/cosy, mobile-first
   ========================================================= */

:root {
  --color-bg: #f7f4ed;
  --color-surface: #ffffff;
  --color-text: #2a2520;
  --color-muted: #6b635a;
  --color-accent: #6b8e4e;
  --color-accent-dark: #4a6b35;
  --color-warm: #c8956d;
  --color-warm-dark: #a87651;
  --color-border: #e8e2d5;
  --color-shadow: rgba(42, 37, 32, 0.06);
  --color-shadow-hover: rgba(42, 37, 32, 0.12);

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 2px 8px var(--color-shadow);
  --shadow-md: 0 4px 24px var(--color-shadow);
  --shadow-lg: 0 12px 40px var(--color-shadow-hover);

  --container: 1180px;
  --header-h: 72px;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;
  --space-7: 6rem;
}

/* ---------- reset léger ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--color-accent-dark); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--color-accent); }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  line-height: 1.15;
  margin: 0 0 var(--space-2);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.25rem, 5vw + 1rem, 4rem); }
h2 { font-size: clamp(1.75rem, 3vw + 1rem, 2.75rem); }
h3 { font-size: 1.375rem; }
p  { margin: 0 0 var(--space-2); color: var(--color-text); }
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  margin-bottom: var(--space-2);
}

/* accessibilité focus */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- utilitaires ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-3);
}
.section { padding: var(--space-6) 0; }
@media (min-width: 768px) { .section { padding: var(--space-7) 0; } }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ---------- boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  text-align: center;
  line-height: 1.2;
}
.btn-primary {
  background: var(--color-accent);
  color: #fff;
}
.btn-primary:hover { background: var(--color-accent-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn-secondary:hover { border-color: var(--color-accent); color: var(--color-accent-dark); transform: translateY(-1px); }
.btn-warm {
  background: var(--color-warm);
  color: #fff;
}
.btn-warm:hover { background: var(--color-warm-dark); color: #fff; transform: translateY(-1px); }
.btn-block { width: 100%; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 244, 237, 0.92);
  backdrop-filter: saturate(1.1) blur(10px);
  -webkit-backdrop-filter: saturate(1.1) blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: var(--space-2);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  font-style: italic;
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--color-text); }
.brand__mark { width: 72px; height: 72px; flex-shrink: 0; }

.nav-toggle {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 42px; height: 42px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
}
.nav-toggle:hover { border-color: var(--color-accent); }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  content: "";
  display: block;
  width: 18px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before { position: absolute; top: -6px; left: 0; }
.nav-toggle__bars::after  { position: absolute; top:  6px; left: 0; }

.site-nav {
  display: none;
}
.site-nav[data-open="true"] {
  display: block;
  position: absolute;
  left: 0; right: 0; top: var(--header-h);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  padding: var(--space-2) var(--space-3);
}
.site-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.site-nav a {
  display: block;
  padding: 0.75rem 0.5rem;
  font-weight: 500;
  color: var(--color-text);
  border-radius: var(--radius-sm);
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--color-accent-dark);
  background: rgba(107, 142, 78, 0.08);
}

@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav[data-open="true"] {
    display: block;
    position: static;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
  }
  .site-nav ul { flex-direction: row; gap: 0.5rem; align-items: center; }
  .site-nav a { padding: 0.5rem 1rem; }
  .site-nav a[aria-current="page"] { background: transparent; color: var(--color-accent-dark); }
  .site-nav a[aria-current="page"]::after {
    content: "";
    display: block;
    width: 20px; height: 2px;
    margin: 4px auto 0;
    background: var(--color-warm);
    border-radius: 2px;
  }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: min(86vh, 780px);
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(135deg, #3a3228 0%, #6b4a2e 55%, #c8956d 100%);
}
.hero__bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(42, 37, 32, 0.15) 0%, rgba(42, 37, 32, 0.55) 70%, rgba(42, 37, 32, 0.75) 100%);
  z-index: -1;
}
.hero__inner {
  padding: var(--space-7) 0;
  max-width: 760px;
}
.hero .eyebrow { color: #e8e2d5; }
.hero h1 { color: #fff; margin-bottom: var(--space-3); }
.hero__subtitle {
  font-size: clamp(1.0625rem, 1vw + 0.875rem, 1.25rem);
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: var(--space-4);
  max-width: 56ch;
}
.hero__badge {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.9375rem;
  margin-bottom: var(--space-3);
}
.hero__badge strong {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
}
.hero__badges {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: var(--space-3);
}
.hero__badge--rating { gap: 0.55rem; }
.hero__badge--rating .rating-stars {
  color: #ffd45a;
  font-size: 1.1rem;
  line-height: 1;
}
.hero__badge--rating strong {
  font-size: 1.25rem;
  font-style: normal;
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.hero__badge--rating .rating-meta {
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
}
.hero__badge--rating .rating-source {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.02em;
}

.hero__cta {
  display: flex; flex-wrap: wrap; gap: var(--space-1);
  margin-top: var(--space-3);
}

/* ---------- map ---------- */
.map-section { background: var(--color-bg); }
.map-section__head {
  text-align: center;
  max-width: 540px;
  margin: 0 auto var(--space-3);
}
.map-section__head p { color: var(--color-muted); }
.map {
  width: 100%;
  height: 420px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(42, 37, 32, 0.08);
  border: 1px solid var(--color-border);
}
.map .leaflet-container { font: inherit; }
@media (max-width: 600px) {
  .map { height: 320px; }
}

/* ---------- features ---------- */
.features {
  background: var(--color-bg);
}
.features__head { text-align: center; max-width: 640px; margin: 0 auto var(--space-5); }
.features__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}
@media (min-width: 640px) { .features__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features__grid { grid-template-columns: repeat(4, 1fr); } }
.feature {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.feature__icon {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(107, 142, 78, 0.12);
  color: var(--color-accent-dark);
  margin-bottom: var(--space-2);
  font-size: 1.375rem;
}
.feature h3 { font-size: 1.125rem; margin-bottom: 0.4rem; font-style: italic; }
.feature p { color: var(--color-muted); margin: 0; font-size: 0.9375rem; }

/* ---------- split about ---------- */
.about { background: var(--color-surface); }
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1.05fr 1fr; gap: var(--space-6); }
  .split--reverse > *:first-child { order: 2; }
}
.split__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: linear-gradient(160deg, var(--color-warm) 0%, var(--color-accent-dark) 100%);
  box-shadow: var(--shadow-md);
}
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__body p { color: var(--color-muted); font-size: 1.0625rem; }

/* ---------- CTA bande ---------- */
.cta-band {
  background: linear-gradient(135deg, #4a6b35 0%, #6b8e4e 100%);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: var(--space-5) var(--space-4);
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.88); max-width: 54ch; margin: 0 auto var(--space-3); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: var(--space-1); justify-content: center; }
.cta-band .btn-secondary { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.35); color: #fff; }
.cta-band .btn-secondary:hover { background: rgba(255,255,255,0.2); color: #fff; }

/* ---------- footer ---------- */
.site-footer {
  background: #2a2520;
  color: #d9d2c4;
  padding: var(--space-5) 0 var(--space-3);
  margin-top: var(--space-6);
}
.site-footer a { color: #e8e2d5; }
.site-footer a:hover { color: #fff; }
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
@media (min-width: 768px) { .footer__grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer__brand { font-family: var(--font-display); font-style: italic; font-size: 1.25rem; color: #fff; }
.footer__col h4 {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 0.75rem;
}
.footer__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.35rem; }
.footer__bottom {
  padding-top: var(--space-2);
  font-size: 0.8125rem;
  color: #9a9289;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem;
}

/* ---------- page title (galerie / reserver) ---------- */
.page-title {
  padding: var(--space-5) 0 var(--space-3);
  text-align: center;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
}
.page-title p { color: var(--color-muted); max-width: 56ch; margin: 0 auto; }

/* ---------- galerie ---------- */
.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
}
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: var(--space-3); } }
@media (min-width: 1024px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery__item {
  position: relative;
  border: 0;
  padding: 0;
  margin: 0;
  background: var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: zoom-in;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.gallery__item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.gallery__item:hover img { transform: scale(1.03); }
.gallery-empty {
  text-align: center;
  padding: var(--space-6) var(--space-3);
  background: var(--color-surface);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-lg);
  color: var(--color-muted);
}
.gallery-empty h3 { color: var(--color-text); }

/* lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 16, 12, 0.92);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-3);
}
.lightbox[aria-hidden="false"] { display: flex; }
.lightbox__img {
  max-width: min(1100px, 96vw);
  max-height: 86vh;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  background: #1b1612;
}
.lightbox__btn {
  position: absolute;
  width: 48px; height: 48px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  transition: background .2s ease, transform .15s ease;
}
.lightbox__btn:hover { background: rgba(255,255,255,0.22); }
.lightbox__btn:active { transform: scale(0.96); }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__prev  { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox__next  { right: 18px; top: 50%; transform: translateY(-50%); }
.lightbox__prev:hover, .lightbox__next:hover { transform: translateY(-50%); }
.lightbox__caption {
  position: absolute;
  bottom: 18px; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.875rem;
}

/* ---------- reserver : calendrier + formulaire ---------- */
.booking-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
@media (min-width: 1024px) {
  .booking-grid { grid-template-columns: 1.15fr 1fr; gap: var(--space-5); align-items: start; }
}
.panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  box-shadow: var(--shadow-sm);
}
@media (min-width: 768px) { .panel { padding: var(--space-4); } }
.panel__head { margin-bottom: var(--space-3); }
.panel__head h2 { font-size: 1.75rem; margin-bottom: 0.2rem; }
.panel__head p  { color: var(--color-muted); margin: 0; }

#public-calendar {
  --fc-border-color: var(--color-border);
  --fc-page-bg-color: var(--color-surface);
  --fc-today-bg-color: rgba(107,142,78,0.08);
  --fc-neutral-bg-color: var(--color-bg);
  --fc-small-font-size: 0.8125rem;
  font-family: var(--font-body);
  color: var(--color-text);
}
#public-calendar .fc .fc-toolbar-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.375rem;
}
#public-calendar .fc .fc-button {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  text-transform: capitalize;
  border-radius: var(--radius-sm);
  box-shadow: none;
  padding: 0.4rem 0.75rem;
}
#public-calendar .fc .fc-button:hover { background: var(--color-bg); border-color: var(--color-accent); color: var(--color-accent-dark); }
#public-calendar .fc .fc-button-primary:not(:disabled).fc-button-active,
#public-calendar .fc .fc-button-primary:not(:disabled):active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}
#public-calendar .fc .fc-col-header-cell-cushion { padding: 0.75rem 0.25rem; color: var(--color-muted); font-weight: 600; }
#public-calendar .fc .fc-daygrid-day-number { padding: 0.4rem 0.6rem; color: var(--color-text); }
#public-calendar .fc .fc-day-past .fc-daygrid-day-number { color: #c0b8ac; }
#public-calendar .fc .fc-day-today { outline: 2px solid var(--color-accent); outline-offset: -2px; border-radius: var(--radius-sm); }
#public-calendar .fc .fc-highlight {
  background: rgba(107,142,78,0.18);
}
/* jour occupé : on le colore via un fond custom (classes injectées par calendar-public.js) */
#public-calendar .day-booked {
  background: repeating-linear-gradient(135deg,
    rgba(200,149,109,0.22) 0, rgba(200,149,109,0.22) 6px,
    rgba(200,149,109,0.32) 6px, rgba(200,149,109,0.32) 12px);
}
#public-calendar .day-booked .fc-daygrid-day-number { color: var(--color-warm-dark); font-weight: 600; }

/* Jour de transition : matin libre (= jour de DÉPART possible pour une nouvelle résa),
   après-midi/nuit occupé. Visuel : moitié haut-gauche claire, moitié bas-droite hachurée
   (mêmes hachures que .day-booked) — un mask diagonal limite les hachures au bas-droite. */
#public-calendar .day-turnover {
  background: repeating-linear-gradient(135deg,
    rgba(200,149,109,0.22) 0, rgba(200,149,109,0.22) 6px,
    rgba(200,149,109,0.32) 6px, rgba(200,149,109,0.32) 12px);
  -webkit-mask-image: linear-gradient(135deg, transparent 49%, #000 51%);
          mask-image: linear-gradient(135deg, transparent 49%, #000 51%);
}
#public-calendar .day-turnover .fc-daygrid-day-number { color: var(--color-warm-dark); font-weight: 600; }

.legend {
  display: flex; flex-wrap: wrap; gap: var(--space-2);
  margin-top: var(--space-3);
  font-size: 0.875rem;
  color: var(--color-muted);
}
.legend__item { display: inline-flex; align-items: center; gap: 0.5rem; }
.legend__swatch {
  width: 18px; height: 18px;
  border-radius: 4px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}
.legend__swatch--booked {
  background: repeating-linear-gradient(135deg,
    rgba(200,149,109,0.22) 0, rgba(200,149,109,0.22) 4px,
    rgba(200,149,109,0.32) 4px, rgba(200,149,109,0.32) 8px);
}
.legend__swatch--turnover {
  background: repeating-linear-gradient(135deg,
    rgba(200,149,109,0.22) 0, rgba(200,149,109,0.22) 4px,
    rgba(200,149,109,0.32) 4px, rgba(200,149,109,0.32) 8px);
  -webkit-mask-image: linear-gradient(135deg, transparent 49%, #000 51%);
          mask-image: linear-gradient(135deg, transparent 49%, #000 51%);
}

/* formulaire */
.form {
  display: grid;
  gap: var(--space-2);
}
.form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
}
@media (min-width: 640px) {
  .form__row--2 { grid-template-columns: 1fr 1fr; }
  .form__row--3 { grid-template-columns: 1fr 1fr 1fr; }
}
.field { display: grid; gap: 0.35rem; }
.field label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
}
.field .req { color: var(--color-warm-dark); }
.field input, .field textarea, .field select {
  font: inherit;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.85rem;
  transition: border-color .15s ease, box-shadow .15s ease;
  width: 100%;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(107,142,78,0.18);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] {
  border-color: var(--color-warm-dark);
  box-shadow: 0 0 0 3px rgba(168,118,81,0.18);
}
.field__error {
  min-height: 1em;
  font-size: 0.8125rem;
  color: var(--color-warm-dark);
}

.form__submit { margin-top: var(--space-1); }
.form__hint {
  font-size: 0.8125rem;
  color: var(--color-muted);
  margin-top: var(--space-1);
}

/* toast */
.toast {
  margin-top: var(--space-2);
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text);
  display: none;
}
.toast[data-visible="true"] { display: block; }
.toast--success { background: rgba(107,142,78,0.12); border-color: var(--color-accent); color: var(--color-accent-dark); }
.toast--error   { background: rgba(200,149,109,0.12); border-color: var(--color-warm);   color: var(--color-warm-dark); }

/* ---------- motion réduite ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- portfolio (home Hervé) ---------- */
.hero--portfolio {
  min-height: min(72vh, 640px);
}
.hero--portfolio .hero__bg {
  filter: brightness(0.62) saturate(1.05);
}

.properties-section { background: var(--color-bg); }
.properties-section__head {
  text-align: center;
  max-width: 540px;
  margin: 0 auto var(--space-4);
}
.properties-section__head p { color: var(--color-muted); }

.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.property-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(42, 37, 32, 0.06);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid var(--color-border);
}
.property-card:hover,
.property-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(42, 37, 32, 0.12);
  outline: none;
}
.property-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #6b4a2e, #c8956d);
  background-size: cover;
  background-position: center;
}
.property-card__rating {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-text);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(4px);
}
.property-card__rating .rating-stars { color: #ffb84d; }
.property-card__rating .rating-meta { color: var(--color-muted); font-weight: 400; font-size: 0.8rem; }

.property-card__body { padding: 22px 22px 26px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.property-card__body h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 1.6rem;
  margin: 0;
  color: var(--color-text);
}
.property-card__sub { color: var(--color-muted); font-size: 0.95rem; margin: 0; }
.property-card__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.property-card__chip {
  background: rgba(107, 142, 78, 0.1);
  color: var(--color-accent-dark);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
}
.property-card__chip strong { font-weight: 700; }
.property-card__cta {
  margin-top: auto;
  padding-top: 12px;
  color: var(--color-accent-dark);
  font-weight: 600;
  font-size: 0.95rem;
}

.property-card--placeholder {
  pointer-events: none;
  opacity: 0.5;
}
.property-card--placeholder .property-card__media {
  background: linear-gradient(90deg, #e8e2d5, #f7f4ed, #e8e2d5);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer {
  0%   { background-position: 0% 0; }
  100% { background-position: -200% 0; }
}

.nav-other {
  background: var(--color-warm);
  color: #fff !important;
  padding: 4px 10px !important;
  border-radius: 999px;
  font-size: 0.85em;
}
.nav-other:hover { background: #b07f5a; }


/* ---------- options & devis (page Réserver) ---------- */
.extras {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 16px 0 0;
  background: var(--color-bg);
}
.extras legend {
  padding: 0 8px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-muted);
}
.extras__check {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  font-size: 0.95rem;
}
.extras__check input[type=checkbox] { width: 18px; height: 18px; cursor: pointer; flex-shrink: 0; }
.extras__check input[type=number] { width: 64px; flex-shrink: 0; }
.extras__check span { flex: 1; }
.extras__check strong { font-weight: 600; color: var(--color-muted); margin-left: 4px; }

.quote-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 16px 20px;
  margin: 16px 0;
  box-shadow: 0 4px 16px rgba(42, 37, 32, 0.04);
}
.quote-box h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--color-text);
}
.quote-lines {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
}
.quote-lines li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 0;
  border-bottom: 1px dashed var(--color-border);
}
.quote-lines li:last-child { border-bottom: none; }
.quote-lines li.quote-total {
  border-top: 1px solid var(--color-border);
  padding-top: 10px;
  margin-top: 6px;
  font-size: 1.05rem;
  font-weight: 600;
}
.quote-lines li.quote-deposit {
  color: var(--color-accent-dark);
  font-weight: 600;
}
.quote-lines li.quote-deposit strong { color: var(--color-accent-dark); }
.quote-help {
  margin: 10px 0 0;
  font-size: 0.85rem;
  color: var(--color-muted);
  line-height: 1.4;
}


/* ---------- Nav active state pour chalet courant ---------- */
.site-nav a.nav-current {
  background: rgba(107, 142, 78, 0.15);
  color: var(--color-accent-dark) !important;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  position: relative;
}
.site-nav a.nav-current::before {
  content: '📍 ';
  font-size: 0.85em;
  margin-right: 2px;
}
@media (min-width: 768px) {
  .site-nav a.nav-current::after { display: none; }
}


/* Met en exergue le nom du chalet courant dans les H1 des pages */
.property-name {
  color: var(--color-accent-dark);
  font-style: italic;
}
