/* ===========================================================
   Gîte des claires — feuille de style (fidèle à l'original)
   Fond blanc, accent bleu-gris unique, sections empilées simples
   Typo : Playfair Display (titres) / Lato (texte courant)
   =========================================================== */

:root {
  --blue: #4f93ac;
  --blue-dark: #3d7488;
  --ink: #333333;
  --grey: #666666;
  --bg: #ffffff;
  --bg-alt: #f5f5f4;
  --line: #e6e6e4;

  --serif: "Playfair Display", Georgia, serif;
  --sans: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--blue);
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; max-width: 62ch; color: var(--grey); }

.lede { font-size: 1.1rem; max-width: 60ch; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--blue); color: #fff;
  padding: 10px 18px; z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 28px 0 18px;
}

.site-header .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.header-top {
  width: 100%;
  display: flex;
  justify-content: center;
  position: relative;
}

.brand {
  font-family: var(--serif);
  font-size: 2.3rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--blue);
  text-align: center;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--blue);
  border-radius: 2px;
  width: 42px;
  height: 38px;
  cursor: pointer;
  position: absolute;
  right: 0;
  top: 0;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 9px; right: 9px; height: 2px;
  background: var(--blue);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle span { top: 18px; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

.main-nav ul {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: center;
}

.main-nav a {
  text-decoration: none;
  font-size: 0.97rem;
  color: var(--grey);
  padding: 10px 18px;
  border-radius: 3px;
  transition: background 0.15s ease, color 0.15s ease;
}

.main-nav a:hover { color: var(--blue); }

.main-nav a[aria-current="page"] {
  background: var(--blue);
  color: #fff;
}

/* ---------- Hero (image plein cadre + texte superposé) ---------- */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.62) 0%, rgba(0,0,0,0.25) 45%, rgba(0,0,0,0) 75%);
}

.hero .wrap {
  position: relative;
  z-index: 1;
  padding-bottom: 56px;
  padding-top: 56px;
}

.hero-content { max-width: 760px; }

.hero h1, .hero .kicker { color: #fff; }

.hero .kicker {
  font-family: var(--serif);
  font-size: 1.3rem;
  display: block;
  margin-bottom: 6px;
}

.hero p { color: #f2f2f2; }

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  text-decoration: none;
  font-size: 0.95rem;
  padding: 13px 26px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.btn:hover { background: var(--blue-dark); }

.btn.outline {
  background: transparent;
  border: 1px solid var(--blue);
  color: var(--blue);
}
.btn.outline:hover { background: var(--blue); color: #fff; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
section.tight { padding: 48px 0; }

.section-head { max-width: 620px; margin-bottom: 40px; }

.on-alt { background: var(--bg-alt); }
.on-blue { background: var(--blue); color: #fff; }
.on-blue h2, .on-blue h3 { color: #fff; }
.on-blue p { color: rgba(255,255,255,0.9); }
.on-blue .btn { background: #fff; color: var(--blue); }
.on-blue .btn:hover { background: #f0f0f0; }
.on-blue .btn.outline { background: transparent; border: 1px solid #fff; color: #fff; }
.on-blue .btn.outline:hover { background: #fff; color: var(--blue); }

/* ---------- Feature grid (accueil) ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.feature-card figure {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin: 0 0 18px;
}
.feature-card img { width: 100%; height: 100%; object-fit: cover; }

.feature-card.cta {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.feature-card.cta .cta-spacer { aspect-ratio: 4 / 3; margin: 0 0 18px; }
.feature-card.cta .btn { margin-top: 12px; align-self: flex-start; }

/* ---------- Ambiance banner ---------- */
.ambiance-figure {
  aspect-ratio: 2.4 / 1;
  overflow: hidden;
  margin-top: 28px;
}
.ambiance-figure img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Testimonials ---------- */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}
.testimonial { text-align: center; }
.testimonial p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink);
  margin: 0 auto 12px;
}
.testimonial cite {
  display: block;
  font-style: normal;
  font-size: 0.9rem;
  color: var(--blue);
}

/* ---------- CTA band ---------- */
.cta-band {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.cta-band p { max-width: 56ch; margin-left: auto; margin-right: auto; }

/* ---------- Contact form ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
}

form.contact-form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.88rem; color: var(--ink); }

.field input,
.field textarea {
  font-family: var(--sans);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--bg);
  color: var(--ink);
}
.field input:focus,
.field textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; }

.field.honeypot { position: absolute; left: -9999px; }
.form-note { font-size: 0.85rem; color: var(--grey); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-alt);
  color: var(--ink);
  padding: 40px 0;
  border-top: 1px solid var(--line);
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.site-footer a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.site-footer .footer-meta { font-size: 0.85rem; color: var(--grey); }

/* ---------- Hébergement page ---------- */
.stay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }

.stat-row {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin: 28px 0;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat { min-width: 140px; text-align: center; }
.stat .num { font-family: var(--serif); font-size: 1.8rem; color: var(--blue); display: block; }
.stat .label { font-size: 0.85rem; color: var(--grey); }

.check-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px;
}
.check-list li { padding-left: 22px; position: relative; font-size: 0.95rem; color: var(--grey); }
.check-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--blue); font-weight: 700;
}

.bed-list { list-style: none; margin: 0 0 24px; padding: 0; }
.bed-list li {
  padding: 10px 0; border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; font-size: 0.95rem;
}

.notice-box { background: var(--bg-alt); padding: 18px 22px; font-size: 0.9rem; margin-top: 24px; border-radius: 3px; }

/* ---------- Galerie ---------- */
.gallery-room { margin-bottom: 60px; }
.gallery-room h3 { border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 6px; }
.gallery-room .room-desc { color: var(--grey); margin-bottom: 20px; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery-grid figure { aspect-ratio: 1 / 1; overflow: hidden; margin: 0; }
.gallery-grid img {
  width: 100%; height: 100%; object-fit: cover;
  cursor: zoom-in; transition: transform 0.25s ease;
}
.gallery-grid img:hover { transform: scale(1.04); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; background: rgba(20,20,20,0.92);
  display: none; align-items: center; justify-content: center;
  z-index: 200; padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; }
.lightbox-close {
  position: absolute; top: 24px; right: 32px;
  background: none; border: 1px solid #fff; color: #fff;
  width: 40px; height: 40px; cursor: pointer; font-size: 1.1rem;
}

/* ---------- Région ---------- */
.poi {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  padding: 52px 0; border-bottom: 1px solid var(--line);
}
.poi:nth-child(even) .poi-text { order: 2; }
.poi-images { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.poi-images figure { aspect-ratio: 1 / 1; overflow: hidden; margin: 0; }
.poi-images img { width: 100%; height: 100%; object-fit: cover; }
.poi-text a.source-link {
  display: inline-block; margin-top: 8px; font-size: 0.9rem;
  color: var(--blue); text-decoration: underline; text-underline-offset: 3px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .testimonials { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .stay-grid { grid-template-columns: 1fr; }
  .check-list { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .poi, .poi:nth-child(even) .poi-text { grid-template-columns: 1fr; order: initial; }
  .poi-images { grid-template-columns: repeat(3, 1fr); }
  .hero { min-height: 440px; }
}

@media (max-width: 640px) {
  .header-top { justify-content: center; }
  .main-nav {
    width: 100%;
    display: none;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav li { border-top: 1px solid var(--line); }
  .main-nav a { display: block; border-radius: 0; padding: 14px 0; text-align: center; }
  .main-nav a[aria-current="page"] { background: none; color: var(--blue); font-weight: 700; }
  .nav-toggle { display: block; }
  .feature-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
