/* ===== Le Nid d'Azur — Feuille de style ===== */
:root {
  --accent: #17b1a8;         /* turquoise */
  --accent-dark: #0f8a83;
  --accent-soft: #e6f7f5;
  --terracotta: #e07a5f;
  --ink: #223b41;
  --muted: #64787d;
  --bg: #fbfaf7;
  --card: #ffffff;
  --line: #e7e3db;
  --shadow: 0 10px 30px rgba(34, 59, 65, 0.08);
  --radius: 16px;
  --maxw: 1120px;
  --sans: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-dark); text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .4em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; font-weight: 600; color: var(--accent-dark); margin: 0 0 .6em; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ===== Demo banner ===== */
.demo-banner {
  background: repeating-linear-gradient(45deg, #223b41, #223b41 12px, #1c3237 12px, #1c3237 24px);
  color: #cfeeeb;
  font-size: .78rem;
  letter-spacing: .05em;
  text-align: center;
  padding: 6px 12px;
}
.demo-banner strong { color: #fff; }

/* ===== Header / Nav ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 250, 247, .9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 1.35rem; font-weight: 700; color: var(--ink); }
.brand .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a { padding: 8px 14px; border-radius: 999px; color: var(--ink); font-weight: 500; font-size: .95rem; transition: background .2s, color .2s; }
.nav-links a:hover { background: var(--accent-soft); color: var(--accent-dark); }
.nav-links a.active { background: var(--accent); color: #fff; }
.nav-cta { background: var(--terracotta) !important; color: #fff !important; }
.nav-cta:hover { filter: brightness(1.05); }
.burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .25s; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; cursor: pointer; font-family: var(--sans); font-weight: 600; font-size: 1rem;
  padding: 14px 26px; border-radius: 999px; transition: transform .15s, box-shadow .2s, filter .2s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(23,177,168,.3); }
.btn--primary:hover { filter: brightness(1.05); }
.btn--terra { background: var(--terracotta); color: #fff; box-shadow: 0 8px 20px rgba(224,122,95,.28); }
.btn--ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn--block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 82vh; display: flex; align-items: center;
  color: #fff; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(120deg, rgba(15,63,66,.82), rgba(23,177,168,.35)),
    url("https://picsum.photos/seed/nidazur-sea/1600/1000") center/cover no-repeat,
    linear-gradient(120deg, #0f3f42, #17b1a8);
}
.hero-inner { position: relative; max-width: 640px; padding: 60px 0; }
.hero .tag { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3); padding: 6px 14px; border-radius: 999px; font-size: .82rem; letter-spacing: .05em; margin-bottom: 18px; }
.hero h1 { color: #fff; text-shadow: 0 2px 20px rgba(0,0,0,.25); }
.hero p.lead { font-size: 1.15rem; max-width: 520px; color: #eafaf8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.price-pill { display: inline-flex; flex-direction: column; margin-top: 30px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); padding: 12px 22px; border-radius: 14px; backdrop-filter: blur(4px); }
.price-pill b { font-size: 1.6rem; font-family: var(--serif); }

/* ===== Gallery ===== */
.gallery {
  display: grid; gap: 14px;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
}
.gallery figure { margin: 0; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); position: relative; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery figure:hover img { transform: scale(1.06); }
.gallery .g-wide { grid-column: span 2; }
.gallery .g-tall { grid-row: span 2; }

/* ===== Amenities ===== */
.amenities { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.amenity { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-align: center; box-shadow: var(--shadow); }
.amenity .ico { font-size: 2rem; }
.amenity h3 { font-family: var(--sans); font-size: 1.05rem; margin: 12px 0 4px; }

/* ===== Generic cards / layout ===== */
.grid-2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.summary-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.summary-row:last-child { border-bottom: 0; }
.summary-total { font-weight: 700; font-size: 1.25rem; color: var(--accent-dark); }

/* ===== Calendar ===== */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal-head button { background: var(--accent-soft); border: 0; width: 40px; height: 40px; border-radius: 10px; font-size: 1.2rem; cursor: pointer; color: var(--accent-dark); }
.cal-title { font-family: var(--serif); font-size: 1.4rem; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-dow { text-align: center; font-size: .75rem; font-weight: 600; color: var(--muted); text-transform: uppercase; padding: 6px 0; }
.cal-cell { aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; border-radius: 10px; font-size: .92rem; cursor: pointer; border: 1px solid transparent; user-select: none; transition: background .15s; }
.cal-cell.empty { visibility: hidden; }
.cal-cell.available:hover { background: var(--accent-soft); }
.cal-cell.past { color: #c3c9c9; cursor: not-allowed; text-decoration: line-through; }
.cal-cell.unavailable { background: #f3ebe8; color: #c99; cursor: not-allowed; text-decoration: line-through; }
.cal-cell.selected { background: var(--accent); color: #fff; font-weight: 600; }
.cal-cell.inrange { background: var(--accent-soft); color: var(--accent-dark); }
.cal-legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 16px; font-size: .82rem; color: var(--muted); }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.swatch { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }

/* ===== Forms ===== */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font-family: var(--sans); font-size: 1rem; background: #fff; color: var(--ink);
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.note { font-size: .82rem; color: var(--muted); }

/* ===== Alerts ===== */
.alert { padding: 14px 18px; border-radius: 12px; margin: 16px 0; font-size: .95rem; }
.alert--warn { background: #fff4ec; border: 1px solid #f3c9b6; color: #a8492f; }
.alert--info { background: var(--accent-soft); border: 1px solid #b6e6e2; color: var(--accent-dark); }
.alert--ok { background: #e9f7ec; border: 1px solid #bfe4c7; color: #2c7a45; }
.demo-stripe { display: flex; align-items: center; gap: 10px; background: var(--terracotta); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; }

/* ===== Confirmation ===== */
.confirm-hero { text-align: center; padding: 60px 0; }
.confirm-check { width: 84px; height: 84px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark); display: flex; align-items: center; justify-content: center; font-size: 2.6rem; margin: 0 auto 20px; }
.res-number { font-family: var(--serif); font-size: 2rem; letter-spacing: .05em; color: var(--accent-dark); background: var(--accent-soft); display: inline-block; padding: 8px 22px; border-radius: 12px; }

/* ===== Steps ===== */
.steps { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 30px; }
.step { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--muted); }
.step .n { width: 26px; height: 26px; border-radius: 50%; background: var(--line); color: #fff; display: flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 700; }
.step.active .n { background: var(--accent); }
.step.active { color: var(--ink); font-weight: 600; }

/* ===== Footer ===== */
.site-footer { background: var(--ink); color: #cdd9db; padding: 48px 0 28px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: 1rem; margin-bottom: 12px; }
.site-footer a { color: #cdd9db; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 30px; padding-top: 18px; font-size: .82rem; color: #8ca3a6; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .grid-2 { grid-template-columns: 1fr; }
  .amenities { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-links {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 12px 20px; transform: translateY(-140%); transition: transform .3s ease; align-items: stretch;
  }
  .nav-links.open { transform: translateY(0); box-shadow: var(--shadow); }
  .nav-links a { padding: 14px 12px; border-radius: 10px; }
  .burger { display: block; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
  .gallery .g-wide, .gallery .g-tall { grid-column: auto; grid-row: auto; }

  /* Swipeable mobile gallery */
  .gallery.swipe {
    display: flex; grid-auto-rows: unset; overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; gap: 12px; padding-bottom: 8px;
  }
  .gallery.swipe figure { flex: 0 0 82%; scroll-snap-align: center; height: 240px; }
}
@media (max-width: 520px) {
  .amenities { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .hero { min-height: 88vh; }
}
