/* ---------- Design tokens ---------- */
:root {
  --bg: #f8f4ee;
  --bg-alt: #efe8dd;
  --panel: #fdfbf8;
  --fg: #2b2420;
  --muted: #6e6259;
  --line: #ded4c4;
  --dark: #24201b;
  --accent: #a8632e;
  --accent-dark: #7c481f;
}

* { box-sizing: border-box; }

/* Ancres douces, en tenant compte de la barre de navigation collante. */
html { scroll-behavior: smooth; scroll-padding-top: 84px; }

/* L'attribut HTML `hidden` doit toujours l'emporter. Sans cette règle,
   n'importe quel `display: flex/grid/block` défini plus bas annule
   silencieusement le masquage (la feuille de style de l'auteur bat celle
   du navigateur) — c'est ce qui faisait apparaître la visionneuse photo
   par-dessus tout le site au chargement. */
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

h1, h2, h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}

p { margin: 0 0 12px; }
a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.75; }
.accent { color: var(--accent); }
.muted { color: var(--muted); }
.small { font-size: 13px; }

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.eyebrow.light { color: #c9beae; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: 3px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  font-family: inherit;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); opacity: 1; }
.btn-primary:disabled { background: var(--line); color: var(--muted); cursor: not-allowed; }
.btn-ghost { background: transparent; border: 1px solid var(--fg); color: var(--fg); }
.btn-sm { padding: 11px 20px; font-size: 13px; }
.btn-block { width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(248, 244, 238, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { font-family: 'Fraunces', serif; font-size: 20px; }
.brand.light { color: #fff; font-size: 19px; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 600; }

/* ---------- Lien d'évitement (accessibilité clavier) ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 60;
  background: var(--dark); color: #fff; padding: 12px 18px; font-size: 14px; font-weight: 600;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 620px; display: flex; align-items: flex-end; }
.hero-media {
  position: absolute; inset: 0;
  background: linear-gradient(165deg, #2c4a63 0%, #4a7a91 35%, #c9a15f 68%, #e4cfa3 100%);
  background-size: cover;
  background-position: center;
}
/* Voile sombre : garantit la lisibilité du texte blanc quelle que soit
   la photo déposée dans public/photos/hero.jpg. */
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,16,12,0.34) 0%, rgba(20,16,12,0.08) 38%, rgba(20,16,12,0.74) 100%);
}
.photo-tag {
  position: absolute; top: 24px; left: 24px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 8px 12px; background: rgba(20,15,10,0.5); color: #fff; border-radius: 2px;
}
.hero-copy {
  position: relative;
  max-width: 640px;
  padding: 48px 24px 64px;
  margin: 0 auto;
  width: 100%;
  color: #fff;
}
.hero-copy h1 { font-size: clamp(32px, 5vw, 54px); line-height: 1.04; color: #fff; text-shadow: 0 2px 24px rgba(0,0,0,0.3); }
.hero-copy .lead { font-size: 17px; color: rgba(255,255,255,0.94); max-width: 540px; text-shadow: 0 1px 12px rgba(0,0,0,0.35); }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; }
.hero .btn-ghost { border-color: #fff; color: #fff; }

/* ---------- Trust bar ---------- */
.trust-bar {
  background: var(--dark); color: #f4efe6;
  display: flex; align-items: center; justify-content: center; gap: 20px;
  padding: 18px 24px; font-size: 14px; font-weight: 600; flex-wrap: wrap;
}
.trust-bar .dot { color: #7a7266; }

/* ---------- Bandeau chiffres ---------- */
.stats { background: var(--panel); border-bottom: 1px solid var(--line); }
.stats-inner {
  max-width: 1200px; margin: 0 auto; padding: 34px 24px;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px;
}
.stat { display: flex; flex-direction: column; gap: 4px; align-items: center; text-align: center; }
.stat strong {
  font-family: 'Fraunces', Georgia, serif; font-weight: 500;
  font-size: 34px; line-height: 1; color: var(--accent);
}
.stat strong sup { font-size: 0.5em; }
.stat span { font-size: 12.5px; color: var(--muted); line-height: 1.4; }

/* ---------- Split section ---------- */
.split {
  max-width: 1200px; margin: 0 auto; padding: 88px 24px;
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px;
}
.split-sticky h2 { font-size: 30px; }
.split-text p { color: var(--muted); font-size: 16px; line-height: 1.7; }

/* ---------- Amenities ---------- */
.amenities { background: var(--bg-alt); padding: 88px 24px; }
.amenities-inner { max-width: 1200px; margin: 0 auto; }
.amenities h2 { font-size: 28px; max-width: 560px; margin-bottom: 40px; }
.amenity-group { margin-bottom: 34px; }
.amenity-title {
  font-family: 'Manrope', sans-serif; font-size: 12px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent);
  margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.amenity-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 28px;
}
.amenity-list li {
  font-size: 14.5px; color: var(--fg); padding-left: 20px; position: relative; line-height: 1.5;
}
.amenity-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--accent); font-size: 12px; font-weight: 700;
}
.amenity-note { font-size: 14px; margin-top: 8px; }
.amenity-title-off { color: var(--muted); }
.amenity-list-off li { color: var(--muted); }
.amenity-list-off li::before { content: "✕"; color: var(--muted); }

/* ---------- Booking ---------- */
.booking { padding: 88px 24px; }
.booking-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start;
}
/* Par défaut, une piste de grille ne rétrécit jamais sous la taille
   minimale de son contenu : ces `min-width: 0` l'y autorisent. */
.booking-inner > *, .split > *, .footer-inner > *, .field-trio > * { min-width: 0; }
.cf-turnstile { max-width: 100%; overflow: hidden; }
.booking-copy h2 { font-size: 30px; }
.fine-print { list-style: none; margin: 20px 0 0; padding: 0; font-size: 13.5px; color: var(--muted); display: flex; flex-direction: column; gap: 8px; }
.fine-print li::before { content: "— "; color: var(--accent); }

.booking-card {
  background: var(--panel); border: 1px solid var(--line); padding: 32px;
  display: flex; flex-direction: column; gap: 18px; border-radius: 4px;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field, label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--fg); }
input {
  font-family: inherit; font-size: 15px; padding: 11px 12px;
  border: 1px solid var(--line); border-radius: 3px; background: #fff; color: var(--fg);
  /* Sans ces deux lignes, la largeur « naturelle » d'un <input> (environ
     20 caractères) impose une largeur minimale à la grille parente et
     fait déborder le formulaire hors de l'écran sur mobile. */
  min-width: 0; width: 100%;
}
input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

.field-group {
  border: 1px solid var(--line); border-radius: 4px;
  padding: 16px 18px 14px; margin: 0;
  display: flex; flex-direction: column; gap: 12px;
}
.field-group legend {
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); padding: 0 6px;
}
.field-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.field-help { font-size: 12px; color: var(--muted); line-height: 1.5; margin: 0; }
.bed-summary {
  font-size: 13.5px; font-weight: 600; color: var(--fg);
  background: var(--bg-alt); border-radius: 3px; padding: 10px 12px; margin: 0;
}

.booking-feedback { font-size: 13.5px; min-height: 18px; }
.booking-feedback.error { color: #a3402c; }
.booking-feedback.ok { color: #3d6b3d; }

.price-breakdown { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); padding-top: 16px; font-size: 14px; }
.price-row { display: flex; justify-content: space-between; color: var(--muted); }
.price-row.total { color: var(--fg); font-weight: 700; font-size: 16px; border-top: 1px dashed var(--line); padding-top: 10px; margin-top: 4px; }
.code-row { display: flex; align-items: flex-end; gap: 10px; }
.code-field { flex: 1; }
.code-optional { font-weight: 400; color: var(--muted); text-transform: none; letter-spacing: 0; }
.code-row .btn { flex: none; padding: 11px 18px; }
.code-feedback { font-size: 12.5px; margin: -8px 0 0; min-height: 16px; color: var(--muted); }
.code-feedback.ok { color: #3d6b3d; }
.code-feedback.error { color: #a3402c; }
.price-row.discount { color: #3d6b3d; font-weight: 600; }

.calendar-note, .form-note { font-size: 12px; color: var(--muted); text-align: center; margin: 0; }
.hp-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent-row {
  /* flex-direction: row explicite — la règle générique `label` plus haut
     impose `column`, ce qui empilait la case au-dessus du texte. */
  display: flex; flex-direction: row; align-items: flex-start; gap: 10px;
  font-size: 12.5px; line-height: 1.5; color: var(--muted); cursor: pointer;
}
.consent-row input { margin-top: 3px; flex: none; width: 15px; height: 15px; accent-color: var(--accent); cursor: pointer; }
.consent-row a { color: var(--accent); }
.week-note {
  font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--accent); text-align: center; margin: 0 0 4px;
}

/* ---------- Galerie photos ---------- */
.gallery { padding: 88px 24px; }
.gallery-inner { max-width: 1200px; margin: 0 auto; }
.gallery h2 { font-size: 28px; }
.gallery-hint { font-size: 14px; margin-bottom: 28px; }
.gallery-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px;
}
.gallery-tile {
  position: relative; display: block; padding: 0; border: none; cursor: zoom-in;
  border-radius: 4px; overflow: hidden; background: var(--bg-alt);
  aspect-ratio: 4 / 3; font-family: inherit; text-align: left;
}
.gallery-tile img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.35s ease;
}
.gallery-tile:hover img { transform: scale(1.04); }
.gallery-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 24px 14px 10px; font-size: 12.5px; font-weight: 600; color: #fff;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(15,12,9,0.72) 100%);
  opacity: 0; transition: opacity 0.25s ease;
}
.gallery-tile:hover .gallery-caption, .gallery-tile:focus .gallery-caption { opacity: 1; }
.gallery-empty { font-size: 14.5px; padding: 32px 0; text-align: center; }

/* ---------- Visionneuse (lightbox) ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(15, 12, 9, 0.94);
  display: flex; align-items: center; justify-content: center;
}
.lightbox-figure { margin: 0; max-width: min(1100px, 88vw); text-align: center; }
.lightbox-figure img {
  max-width: 100%; max-height: 82vh; display: block; margin: 0 auto;
  border-radius: 3px;
}
.lightbox-figure figcaption { color: #d8cfc2; font-size: 14px; margin-top: 14px; }
.lightbox-btn {
  position: absolute; z-index: 51;
  background: rgba(255,255,255,0.08); color: #fff; border: 1px solid rgba(255,255,255,0.25);
  width: 46px; height: 46px; border-radius: 50%; font-size: 26px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-family: inherit;
}
.lightbox-btn:hover { background: rgba(255,255,255,0.2); }
.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ---------- Chambres ---------- */
.rooms { background: var(--bg-alt); padding: 88px 24px; }
.rooms-inner { max-width: 1200px; margin: 0 auto; }
.rooms h2 { font-size: 28px; }
.rooms-hint { font-size: 14px; margin-bottom: 32px; max-width: 720px; }
.rooms-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.room-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 4px;
  overflow: hidden; display: flex; flex-direction: column;
}
.room-photo { background: linear-gradient(150deg, #d9cdbb, #efe8dd); min-height: 12px; }
.room-photo.has-photo { aspect-ratio: 16 / 9; }
.room-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.room-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; }
.room-body strong { font-size: 16px; font-family: 'Fraunces', serif; font-weight: 600; }
.room-body span { font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.room-body em {
  font-style: normal; font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--accent);
}
.room-card-spa { border-color: var(--accent); }

/* ---------- La station ---------- */
.station { padding: 88px 24px; }
.station-inner { max-width: 1200px; margin: 0 auto; }
.station h2 { font-size: 28px; }
.station-lead { max-width: 640px; font-size: 15.5px; margin-bottom: 36px; }
.station-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.station-card {
  border: 1px solid var(--line); border-left: 3px solid var(--accent);
  background: var(--panel); border-radius: 4px; padding: 24px 26px;
  display: flex; flex-direction: column; gap: 8px;
}
.station-card strong { font-size: 15.5px; }
.station-card span { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ---------- Avis ---------- */
.reviews { background: var(--dark); padding: 88px 24px; color: #f4efe6; }
.reviews-inner { max-width: 1200px; margin: 0 auto; }
.reviews h2 { font-size: 28px; color: #fff; }
.reviews-hint { color: #a89d8c; font-size: 13.5px; max-width: 720px; margin-bottom: 32px; }
.reviews-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.reviews-grid-single { grid-template-columns: minmax(0, 620px); }
.review-card {
  margin: 0; background: rgba(255,255,255,0.05); border: 1px solid rgba(216,207,194,0.2);
  border-radius: 4px; padding: 26px;
}
.review-card p { font-size: 14.5px; line-height: 1.65; color: #e9e2d5; }
.review-card footer { font-size: 12.5px; color: #a89d8c; font-weight: 600; margin-top: 10px; }

/* ---------- Infos pratiques ---------- */
.practical { padding: 88px 24px; background: var(--bg-alt); }
.practical-inner { max-width: 1200px; margin: 0 auto; }
.practical h2 { font-size: 28px; margin-bottom: 32px; }
.practical-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.practical-item { background: var(--panel); padding: 26px; display: flex; flex-direction: column; gap: 8px; }
.practical-item strong { font-size: 15px; }
.practical-item span { font-size: 13.5px; color: var(--muted); line-height: 1.6; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #d8cfc2; padding: 64px 24px 32px; }
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px;
  padding-bottom: 40px; border-bottom: 1px solid rgba(216,207,194,0.2);
}
.footer-bottom { max-width: 1200px; margin: 24px auto 0; font-size: 12px; color: #8f8677; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .split, .booking-inner, .footer-inner { grid-template-columns: 1fr; }
  .practical-grid, .station-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .amenity-list { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
  .rooms-grid, .reviews-grid { grid-template-columns: 1fr; }
  .nav-links { gap: 16px; font-size: 13px; }
  .nav-links a:not(.btn) { display: none; }
  .stats-inner { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding: 28px 24px; }
  .stat strong { font-size: 28px; }
  .field-row { grid-template-columns: 1fr; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

@media (max-width: 540px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .practical-grid, .station-grid, .amenity-list { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { min-height: 540px; }
}
