/* =========================================================
   LoveNoirmoutier — coastal holiday lets
   Design system: clean, modern, warm. Sea blue / sand / off-white.
   ========================================================= */

:root {
  /* Palette */
  --sea:        #2f6f86;
  --sea-deep:   #1e4d5e;
  --sea-light:  #5b95a8;
  --sand:       #e6d7bf;
  --sand-deep:  #cbb389;
  --off-white:  #faf6ef;
  --white:      #ffffff;
  --ink:        #29333a;
  --muted:      #5c6b73;
  --accent:     #d8794f;   /* warm terracotta — CTAs */
  --accent-dark:#bf6238;
  --line:       #e4ddd0;

  /* Type */
  --font-head: "Georgia", "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --maxw: 1160px;
  --gap: clamp(1rem, 3vw, 2rem);
  --radius: 10px;
  --shadow: 0 6px 24px rgba(30, 77, 94, 0.10);
  --shadow-lg: 0 14px 44px rgba(30, 77, 94, 0.16);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sea-deep); text-decoration-color: rgba(47,111,134,0.35); text-underline-offset: 2px; }
a:hover { color: var(--accent-dark); }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; color: var(--ink); font-weight: 600; }
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); margin: 0 0 .5em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin: 0 0 .6em; }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.45rem); margin: 0 0 .4em; }
p { margin: 0 0 1.1em; }
.lead { font-size: clamp(1.15rem, 2.2vw, 1.4rem); color: var(--muted); line-height: 1.55; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gap); }
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--tint { background: var(--white); border-block: 1px solid var(--line); }
.section--sand { background: var(--sand); }
.center { text-align: center; }
.measure { max-width: 62ch; }
.measure.center { margin-inline: auto; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .16em; font-size: .8rem;
  font-weight: 700; color: var(--sea); font-family: var(--font-body); margin: 0 0 .6em;
}
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff;
  padding: .6rem 1rem; z-index: 200; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-family: var(--font-body); font-weight: 600;
  padding: .85rem 1.6rem; border-radius: 50px; text-decoration: none;
  cursor: pointer; border: 2px solid transparent; transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
  font-size: 1rem; line-height: 1;
}
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 4px 14px rgba(216,121,79,.35); }
.btn--primary:hover { background: var(--accent-dark); color: #fff; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.8); }
.btn--ghost:hover { background: rgba(255,255,255,.14); color: #fff; transform: translateY(-2px); }
.btn--outline { background: transparent; color: var(--sea-deep); border-color: var(--sea); }
.btn--outline:hover { background: var(--sea); color: #fff; transform: translateY(-2px); }
.btn--lg { padding: 1rem 2rem; font-size: 1.08rem; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,246,239,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }
.brand { font-family: var(--font-head); font-weight: 600; font-size: 1.3rem; color: var(--ink); text-decoration: none; letter-spacing: .01em; }
.brand span { color: var(--sea); }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: .4rem;
  color: var(--ink); width: 44px; height: 44px;
}
.nav-toggle svg { width: 26px; height: 26px; }
.nav-menu { display: flex; align-items: center; gap: clamp(.6rem, 1.6vw, 1.6rem); list-style: none; margin: 0; padding: 0; }
.nav-menu a {
  text-decoration: none; color: var(--ink); font-weight: 500; font-size: 1rem;
  padding: .4rem .2rem; border-bottom: 2px solid transparent;
}
.nav-menu a:hover, .nav-menu a[aria-current="page"] { color: var(--sea-deep); border-bottom-color: var(--accent); }
.nav-menu .nav-cta a {
  background: var(--accent); color: #fff; padding: .55rem 1.1rem; border-radius: 50px; border: 0;
}
.nav-menu .nav-cta a:hover { background: var(--accent-dark); }

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-menu {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column;
    align-items: stretch; gap: 0; background: var(--off-white); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); max-height: 0; overflow: hidden; transition: max-height .28s ease;
  }
  .nav-menu.open { max-height: 420px; }
  .nav-menu li { border-top: 1px solid var(--line); }
  .nav-menu a { display: block; padding: 1rem var(--gap); border-bottom: 0; }
  .nav-menu .nav-cta { padding: .8rem var(--gap); }
  .nav-menu .nav-cta a { text-align: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; isolation: isolate;
  display: flex; align-items: center; min-height: clamp(440px, 72vh, 680px);
}
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(20,52,64,.30) 0%, rgba(20,52,64,.55) 100%);
}
.hero__inner { padding-block: clamp(2.5rem, 6vw, 4rem); max-width: 760px; }
.hero__place {
  font-family: var(--font-body); font-weight: 700; text-transform: uppercase;
  letter-spacing: .2em; font-size: clamp(1.05rem, 2.6vw, 1.5rem);
  color: #fff; margin: 0 0 .25em; text-shadow: 0 2px 14px rgba(0,0,0,.35);
}
.hero__tag {
  font-family: var(--font-head); font-style: italic;
  font-size: clamp(1.1rem, 2.6vw, 1.5rem); line-height: 1.3;
  color: rgba(255,255,255,.95); margin: 0 0 .7em; text-shadow: 0 2px 14px rgba(0,0,0,.3);
}
.hero h1 { color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.28); }
.hero .lead { color: rgba(255,255,255,.94); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.6rem; }
.hero--sm { min-height: clamp(280px, 44vh, 400px); }

/* ---------- Quick facts ---------- */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; }
.fact {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem 1.2rem; text-align: center;
}
.fact .num { font-family: var(--font-head); font-size: 2rem; color: var(--sea); line-height: 1; display: block; margin-bottom: .3rem; }
.fact .lbl { font-size: .92rem; color: var(--muted); }

/* ---------- Cards / grid ---------- */
.grid { display: grid; gap: clamp(1.4rem, 3vw, 2.2rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.card__media { aspect-ratio: 3 / 2; background: var(--sand); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { padding: 1.4rem 1.5rem 1.6rem; flex: 1; display: flex; flex-direction: column; }
.card__body .btn { margin-top: auto; align-self: flex-start; }
.badge {
  display: inline-block; background: var(--sand); color: var(--sea-deep);
  font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: .3rem .7rem; border-radius: 50px; margin-bottom: .7rem;
}

/* ---------- Feature split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.6rem, 4vw, 3.5rem); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media img, .split__media .ph { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
}

/* ---------- Spec lists ---------- */
.spec { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; gap: .55rem; }
.spec li { position: relative; padding-left: 1.7rem; }
.spec li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: .7rem; height: .7rem;
  border-radius: 50%; background: var(--sea-light);
}
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: .5rem 1.4rem; }
.feature-list li { padding-left: 1.6rem; position: relative; }
.feature-list li::before { content: "✓"; position: absolute; left: 0; color: var(--sea); font-weight: 700; }

/* ---------- Callout / panel ---------- */
.panel {
  background: linear-gradient(135deg, var(--sea) 0%, var(--sea-deep) 100%);
  color: #fff; border-radius: var(--radius); padding: clamp(1.8rem, 4vw, 3rem);
  box-shadow: var(--shadow-lg);
}
.panel h2, .panel h3 { color: #fff; }
.panel p { color: rgba(255,255,255,.92); }
.panel .btn--primary { box-shadow: 0 4px 14px rgba(0,0,0,.25); }

.note {
  background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--sea-light);
  border-radius: 8px; padding: 1rem 1.2rem; font-size: .96rem; color: var(--muted);
}

/* ---------- Placeholder image slots ---------- */
.ph {
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: repeating-linear-gradient(135deg, #e9ddc8 0 18px, #e3d4ba 18px 36px);
  color: var(--sea-deep); font-family: var(--font-body); font-weight: 600; font-size: .9rem;
  border-radius: var(--radius); padding: 1rem; min-height: 120px; width: 100%; aspect-ratio: 3/2;
  border: 1px dashed var(--sand-deep);
}
.ph span { background: rgba(255,255,255,.7); padding: .35rem .8rem; border-radius: 50px; }
.ph--wide { aspect-ratio: 16/7; }
.ph--tall { aspect-ratio: 3/4; }

/* ---------- Guide ---------- */
.guide-toc { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; }
.guide-toc a { background: var(--white); border: 1px solid var(--line); padding: .5rem 1rem; border-radius: 50px; text-decoration: none; font-size: .95rem; }
.guide-toc a:hover { background: var(--sea); color: #fff; border-color: var(--sea); }
.guide-block { margin-bottom: 2.6rem; scroll-margin-top: 90px; }
.guide-block h3 { color: var(--sea-deep); border-bottom: 2px solid var(--sand); padding-bottom: .3rem; }
.guide-block h4 { font-family: var(--font-head); font-size: 1.08rem; color: var(--ink); margin: 1.5rem 0 .4rem; }
.guide-block .intro { color: var(--muted); }
.guide-block dl { margin: 0; }
.guide-block dt { font-weight: 700; margin-top: 1rem; color: var(--ink); }
.guide-block dd { margin: .1rem 0 0; color: var(--muted); }

/* ---------- Gallery ---------- */
.masonry { columns: 3 260px; column-gap: 1rem; }
.masonry > * { break-inside: avoid; margin-bottom: 1rem; }
.masonry .ph { aspect-ratio: auto; min-height: 200px; }
.gallery-item { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gallery-item img { width: 100%; display: block; cursor: zoom-in; transition: transform .3s ease; }
.gallery-item:hover img { transform: scale(1.03); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(18, 28, 33, .94);
  display: none; align-items: center; justify-content: center; padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox__fig { margin: 0; display: flex; flex-direction: column; align-items: center; max-width: 94vw; }
.lightbox__fig img {
  max-width: 94vw; max-height: 82vh; width: auto; height: auto; object-fit: contain;
  border-radius: 6px; box-shadow: 0 12px 48px rgba(0,0,0,.55); background: #0d1418;
}
.lightbox__cap { color: rgba(255,255,255,.85); font-size: .95rem; margin-top: .9rem; text-align: center; max-width: 60ch; }
.lightbox__close {
  position: absolute; top: .8rem; right: 1rem; width: 48px; height: 48px;
  background: none; border: 0; color: #fff; font-size: 2.2rem; line-height: 1; cursor: pointer;
}
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.14); color: #fff; font-size: 2rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.lightbox__nav:hover { background: rgba(255,255,255,.28); }
.lightbox__prev { left: 1rem; } .lightbox__next { right: 1rem; }
.lightbox__count { position: absolute; bottom: 1rem; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.6); font-size: .85rem; }
.lightbox button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (max-width: 600px) {
  .lightbox { padding: 1rem; }
  .lightbox__nav { width: 44px; height: 44px; font-size: 1.6rem; }
  .lightbox__fig img { max-height: 76vh; }
}

/* ---------- Forms ---------- */
.form { max-width: 640px; }
.field { margin-bottom: 1.3rem; }
.field label { display: block; font-weight: 600; margin-bottom: .35rem; }
.field .hint { font-weight: 400; color: var(--muted); font-size: .9rem; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; padding: .8rem .9rem; border: 1px solid var(--sand-deep);
  border-radius: 8px; background: var(--white); color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 3px solid rgba(47,111,134,.25); border-color: var(--sea); outline-offset: 0;
}
.field textarea { min-height: 130px; resize: vertical; }
.form-status { margin-top: 1rem; padding: 1rem 1.2rem; border-radius: 8px; display: none; }
.form-status.success { display: block; background: #e6f3ec; border: 1px solid #b7dcc6; color: #1f6b40; }
.form-status.error { display: block; background: #fbeae6; border: 1px solid #f1c2b4; color: #a3462a; }
.contact-line { display: grid; gap: .4rem; }
.contact-line a { font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.82); padding-block: 3rem 2rem; margin-top: 0; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 2rem; margin-bottom: 2rem; }
.site-footer h4 { font-family: var(--font-head); color: #fff; margin: 0 0 .7rem; font-size: 1.1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.social { display: flex; gap: .8rem; margin-top: .6rem; }
.social a {
  width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.12);
  display: inline-flex; align-items: center; justify-content: center;
}
.social a:hover { background: var(--accent); }
.social svg { width: 20px; height: 20px; fill: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); padding-top: 1.4rem; font-size: .9rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; color: rgba(255,255,255,.6); }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: 1.1rem; }
.text-muted { color: var(--muted); }
.hr { border: 0; border-top: 1px solid var(--line); margin-block: 2.4rem; }

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