:root {
  --bg: #ffffff;
  --text: #1f2a24;
  --muted: #68736d;
  --line: #e8e8e8;
  --panel: #ffffff;
  --accent: #1f6f68;
  --accent-dark: #164f4a;
  --warm: #d89b55;
  --shadow: 0 18px 50px rgba(31, 42, 36, 0.08);
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 5vw, 64px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  font-weight: 800;
  text-decoration: none;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a,
.site-footer a {
  text-decoration: none;
}

.nav a:hover,
.site-footer a:hover {
  color: var(--accent);
}

.hero {
  min-height: calc(100svh - 66px);
  display: grid;
  align-items: end;
  padding: clamp(48px, 8vw, 96px) clamp(20px, 5vw, 64px);
  background:
    linear-gradient(180deg, rgba(12, 20, 18, 0.18), rgba(12, 20, 18, 0.74)),
    url("../photos/galerie/04-vue-balcon-hiver.jpg") center / cover;
  color: #fff;
}

.hero__content {
  width: min(760px, 100%);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--warm);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffd08e;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
}

h1 {
  max-width: 720px;
  font-size: clamp(2.6rem, 8vw, 5.4rem);
}

h2 {
  font-size: clamp(2rem, 5vw, 3.4rem);
}

h3 {
  font-size: 1.15rem;
}

.hero p:not(.eyebrow) {
  max-width: 640px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.hero__actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.button:hover {
  background: var(--accent-dark);
}

.button--secondary {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.62);
}

.section {
  padding: clamp(56px, 8vw, 96px) clamp(20px, 5vw, 64px);
}

.section--muted {
  background: #ffffff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section__header {
  width: min(780px, 100%);
  margin-bottom: 28px;
}

.section__header p:not(.eyebrow) {
  margin: 14px 0 0;
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.feature-grid article {
  min-height: 190px;
  padding: 24px;
  background: var(--panel);
}

.feature-grid p {
  margin: 12px 0 0;
  color: var(--muted);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.gallery__item {
  position: relative;
  min-height: 210px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 6px;
  background: #f2f2f2;
  cursor: zoom-in;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 180ms ease;
}

.gallery__item:hover img {
  transform: scale(1.03);
}

.gallery__item span {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 28px 12px 10px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.7));
  color: #fff;
  font-weight: 700;
  text-align: left;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 28px;
  align-items: start;
}

.split p {
  max-width: 720px;
  margin: 0 0 16px;
  color: var(--muted);
}

.notice,
.contact-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.notice {
  display: grid;
  gap: 8px;
}

.notice span,
.contact-card p {
  color: var(--muted);
}

.availability-shell {
  display: grid;
  gap: 18px;
}

.availability-legend,
.availability-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
}

.availability-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.95rem;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid var(--line);
}

.legend-dot--available {
  background: #e7f7ef;
  border-color: #8bd1aa;
}

.legend-dot--option {
  background: #fff4d6;
  border-color: #e3bd55;
}

.legend-dot--booked {
  background: #f2f2f2;
  border-color: #c8c8c8;
}

.legend-dot--closed {
  background: #fde8e8;
  border-color: #dfa0a0;
}

.availability-calendar {
  display: grid;
  gap: 18px;
}

.availability-toolbar {
  justify-content: space-between;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.availability-toolbar button {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.availability-toolbar button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.availability-months {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.availability-month {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.availability-month h3 {
  margin-bottom: 14px;
  font-size: 1.1rem;
  text-transform: capitalize;
}

.availability-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.availability-weekday {
  min-height: 28px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.availability-day {
  display: grid;
  align-content: space-between;
  min-height: 68px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  font: inherit;
  text-align: left;
}

button.availability-day {
  cursor: pointer;
}

button.availability-day:hover {
  border-color: var(--accent);
}

.availability-day--empty {
  border: 0;
  background: transparent;
}

.availability-day--available {
  background: #e7f7ef;
  border-color: #b7e3c9;
}

.availability-day--option {
  background: #fff4d6;
  border-color: #eed68b;
}

.availability-day--booked {
  background: #f2f2f2;
  color: #777;
}

.availability-day--closed {
  background: #fde8e8;
  border-color: #efc4c4;
}

.availability-day--unknown {
  color: #9a9a9a;
}

.availability-day--selected-start,
.availability-day--selected-end {
  outline: 3px solid var(--accent);
  outline-offset: -3px;
}

.availability-day--selected-range {
  box-shadow: inset 0 0 0 999px rgba(31, 111, 104, 0.12);
}

.availability-day span {
  font-weight: 800;
}

.availability-day small {
  min-height: 18px;
  color: inherit;
  font-size: 0.68rem;
  font-weight: 800;
}

.availability-details,
.availability-note {
  margin: 0;
  color: var(--muted);
}

.section--map iframe {
  width: 100%;
  height: min(64vh, 560px);
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-section {
  background: #ffffff;
  color: var(--text);
  border-top: 1px solid var(--line);
}

.contact-section .section__header p:not(.eyebrow),
.contact-card p {
  color: var(--muted);
}

.contact-card {
  width: min(760px, 100%);
  background: var(--panel);
  border-color: var(--line);
  box-shadow: var(--shadow);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(20px, 5vw, 64px);
  color: var(--muted);
}

.lightbox {
  width: min(1080px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #111;
  color: #fff;
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.lightbox img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
}

.lightbox p {
  margin: 0;
  padding: 14px 18px 18px;
}

.lightbox__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.66);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 980px) {
  .feature-grid,
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: 78svh;
  }

  .feature-grid,
  .gallery,
  .split,
  .availability-months {
    grid-template-columns: 1fr;
  }

  .gallery__item {
    min-height: 230px;
  }

  .availability-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .availability-day {
    min-height: 56px;
    padding: 5px;
  }
}
