:root {
  --teal: #1D9E75;
  --teal-light: #E1F5EE;
  --teal-dark: #085041;
  --teal-mid: #0F6E56;
  --amber: #BA7517;
  --amber-light: #FAEEDA;
  --slate: #2C3E50;
  --off-white: #F9F7F4;
  --white: #ffffff;
  --border: #D3D1C7;
  --text: #2C2C2A;
  --text-soft: #5F5E5A;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Georgia', serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 500;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-brand { font-size: 1.1rem; font-weight: 700; color: var(--teal-dark); letter-spacing: -0.02em; text-decoration: none; }
.nav-brand span { color: var(--amber); }
.nav-links { display: flex; gap: 1.5rem; list-style: none; }
.nav-links a { text-decoration: none; font-size: 0.88rem; font-family: sans-serif; color: var(--text-soft); transition: color 0.2s; }
.nav-links a:hover { color: var(--teal); }
.nav-right { display: flex; gap: 0.75rem; align-items: center; }
.btn-admin {
  background: none; border: 1px solid var(--border);
  padding: 0.35rem 0.9rem; border-radius: 20px;
  font-size: 0.8rem; font-family: sans-serif; cursor: pointer;
  color: var(--text-soft); transition: all 0.2s;
}
.btn-admin:hover { border-color: var(--teal); color: var(--teal); }
.btn-reserve {
  background: var(--teal); color: white; border: none;
  padding: 0.4rem 1.1rem; border-radius: 20px;
  font-size: 0.85rem; font-family: sans-serif; font-weight: 600;
  cursor: pointer; text-decoration: none; transition: background 0.2s;
}
.btn-reserve:hover { background: var(--teal-dark); }

/* ── HERO ── */
.hero {
  position: relative; height: 92vh; min-height: 520px;
  overflow: hidden; display: flex; align-items: flex-end;
}
.hero-gallery {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr; gap: 4px;
}
.hero-gallery img { width: 100%; height: 100%; object-fit: cover; }
.hero-gallery .main { grid-row: 1 / 3; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(4,52,44,0.88) 0%, rgba(0,0,0,0.05) 55%);
}
.hero-content {
  position: relative; z-index: 2;
  padding: 3rem 4rem; color: white; max-width: 720px;
}
.hero-tag {
  display: inline-block;
  background: var(--amber); color: white;
  font-family: sans-serif; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.3rem 0.85rem; border-radius: 20px; margin-bottom: 1rem;
}
.hero h1 { font-size: 3.2rem; line-height: 1.08; font-weight: 400; margin-bottom: 0.75rem; }
.hero h1 em { font-style: italic; color: #9FE1CB; }
.hero-sub { font-family: sans-serif; font-size: 1rem; opacity: 0.82; margin-bottom: 1.5rem; }
.hero-badges { display: flex; gap: 0.65rem; flex-wrap: wrap; }
.badge {
  background: rgba(255,255,255,0.14); backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.28); color: white;
  font-family: sans-serif; font-size: 0.78rem;
  padding: 0.28rem 0.75rem; border-radius: 20px;
}

/* ── GALLERY STRIP ── */
.gallery-strip {
  display: flex; gap: 8px; padding: 1.25rem 2rem;
  overflow-x: auto; background: var(--off-white);
  border-bottom: 1px solid var(--border);
  scrollbar-width: thin;
}
.gallery-strip img {
  height: 76px; width: 114px; object-fit: cover;
  border-radius: 6px; cursor: pointer; flex-shrink: 0;
  transition: opacity 0.2s, transform 0.2s;
}
.gallery-strip img:hover { opacity: 0.82; transform: scale(1.03); }

/* ── LIGHTBOX ── */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.93);
  align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 88vh; border-radius: 8px; }
.lb-close {
  position: absolute; top: 1.25rem; right: 1.75rem;
  color: white; font-size: 2rem; cursor: pointer;
  background: none; border: none; line-height: 1; opacity: 0.8;
}
.lb-close:hover { opacity: 1; }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.12); border: none; color: white;
  font-size: 2rem; cursor: pointer; padding: 0.5rem 1rem; border-radius: 6px;
  transition: background 0.15s;
}
.lb-nav:hover { background: rgba(255,255,255,0.25); }
.lb-prev { left: 1rem; }
.lb-next { right: 1rem; }
.lb-counter {
  position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.6); font-family: sans-serif; font-size: 0.85rem;
}

/* ── SECTIONS ── */
.section-wrap { max-width: 1100px; margin: 0 auto; padding: 4rem 2rem; }
.section-divider { border: none; border-top: 1px solid var(--border); margin: 0 2rem; }
.section-label {
  font-family: sans-serif; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 0.4rem;
}
h2 { font-size: 2rem; font-weight: 400; color: var(--slate); margin-bottom: 1.5rem; }

/* ── FEATURES ── */
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem;
}
.feature-card {
  background: var(--off-white); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 1.25rem;
  display: flex; align-items: flex-start; gap: 0.75rem;
  transition: border-color 0.2s;
}
.feature-card:hover { border-color: var(--teal); }
.feat-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 1px; }
.feature-card h3 { font-size: 0.9rem; font-weight: 600; font-family: sans-serif; margin-bottom: 0.2rem; }
.feature-card p { font-size: 0.82rem; color: var(--text-soft); font-family: sans-serif; }

/* ── CALENDRIER + TARIFS ── */
.cal-bg { background: var(--off-white); }
.cal-layout { display: grid; grid-template-columns: 1fr 330px; gap: 2.5rem; }

.cal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.cal-nav-btn {
  background: none; border: 1px solid var(--border); border-radius: 6px;
  padding: 0.38rem 0.85rem; cursor: pointer; font-size: 1.1rem;
  color: var(--text); transition: all 0.15s;
}
.cal-nav-btn:hover { background: var(--teal); color: white; border-color: var(--teal); }
.cal-month-title { font-family: sans-serif; font-size: 1rem; font-weight: 600; color: var(--slate); }

.cal-months { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.cal-month h3 {
  font-family: sans-serif; font-size: 0.85rem; font-weight: 600;
  text-align: center; color: var(--text-soft); margin-bottom: 0.6rem;
}
.cal-days-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-day-hdr {
  font-family: sans-serif; font-size: 0.65rem; font-weight: 700;
  text-align: center; color: var(--text-soft); padding: 3px;
  text-transform: uppercase;
}
.cal-day {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  font-family: sans-serif; font-size: 0.78rem; border-radius: 4px;
}
.cal-day.empty {}
.cal-day.past { color: #B4B2A9; }
.cal-day.available { background: #E1F5EE; color: var(--teal-dark); font-weight: 500; }
.cal-day.booked { background: #F5C4B3; color: #993C1D; text-decoration: line-through; }
.cal-day.today { outline: 2px solid var(--teal); font-weight: 700; }

.cal-legend { display: flex; gap: 1rem; margin-top: 1.25rem; flex-wrap: wrap; }
.legend-item { display: flex; align-items: center; gap: 0.4rem; font-family: sans-serif; font-size: 0.78rem; color: var(--text-soft); }
.legend-dot { width: 13px; height: 13px; border-radius: 3px; }

/* ── PRICES CARD ── */
.prices-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem; height: fit-content;
  box-shadow: var(--shadow);
}
.prices-card h3 { font-family: sans-serif; font-size: 1rem; font-weight: 700; margin-bottom: 1.25rem; color: var(--slate); }
.price-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.7rem 0; border-bottom: 1px solid var(--border);
}
.price-row:last-of-type { border-bottom: none; }
.price-label { font-family: sans-serif; font-size: 0.88rem; }
.price-label small { display: block; color: var(--text-soft); font-size: 0.75rem; }
.price-amount { font-size: 1.25rem; font-weight: 700; color: var(--teal-dark); font-family: sans-serif; }
.price-amount span { font-size: 0.72rem; font-weight: 400; color: var(--text-soft); }
.price-note {
  margin-top: 1rem; padding: 0.75rem; background: var(--amber-light);
  border-radius: var(--radius-sm); font-family: sans-serif; font-size: 0.8rem; color: #633806;
}

/* ── MAP ── */
#map { height: 420px; border-radius: var(--radius); border: 1px solid var(--border); margin-top: 1.5rem; z-index: 1; }
.map-legend {
  display: flex; gap: 1rem; flex-wrap: wrap;
  margin-top: 0.75rem; font-family: sans-serif; font-size: 0.8rem; color: var(--text-soft);
}
.map-legend span { display: flex; align-items: center; gap: 0.35rem; }

/* ── POI ── */
.poi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; margin-top: 0.5rem; }
.poi-card {
  border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem;
  transition: border-color 0.2s, transform 0.18s;
}
.poi-card:hover { border-color: var(--teal); transform: translateY(-2px); }
.poi-emoji { font-size: 1.6rem; margin-bottom: 0.5rem; }
.poi-card h3 { font-size: 0.9rem; font-weight: 600; font-family: sans-serif; margin-bottom: 0.25rem; }
.poi-card p { font-size: 0.8rem; color: var(--text-soft); font-family: sans-serif; }
.poi-dist {
  display: inline-block; margin-top: 0.5rem;
  background: var(--teal-light); color: var(--teal-dark);
  font-family: sans-serif; font-size: 0.72rem; font-weight: 700;
  padding: 0.18rem 0.6rem; border-radius: 20px;
}

/* ── DISTANCES ── */
.dist-table { width: 100%; border-collapse: collapse; font-family: sans-serif; }
.dist-table th {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--text-soft); font-weight: 700;
  padding: 0.6rem 1rem; text-align: left; border-bottom: 2px solid var(--border);
}
.dist-table td { padding: 0.7rem 1rem; border-bottom: 1px solid var(--border); font-size: 0.88rem; }
.dist-table tr:last-child td { border-bottom: none; }
.dist-table tbody tr:hover td { background: var(--off-white); }
.dist-bar { height: 3px; background: var(--teal-light); border-radius: 2px; margin-top: 5px; }
.dist-bar-fill { height: 100%; background: var(--teal); border-radius: 2px; }
.dist-time { color: var(--text-soft); font-size: 0.8rem; }

/* ── FORM SECTION ── */
.form-bg { background: var(--teal-dark); }
.form-bg .section-label { color: #9FE1CB; }
.form-bg h2 { color: white; }
.form-intro { color: rgba(255,255,255,0.72); font-family: sans-serif; margin-bottom: 2rem; max-width: 560px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-family: sans-serif; font-size: 0.78rem; font-weight: 600; color: rgba(255,255,255,0.75); }
.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.22);
  border-radius: var(--radius-sm); padding: 0.65rem 0.85rem;
  font-family: sans-serif; font-size: 0.88rem; color: white;
  transition: border-color 0.2s; -webkit-appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.38); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: #9FE1CB; }
.form-group select option { background: var(--teal-dark); }
.form-group textarea { resize: vertical; min-height: 100px; }

.form-actions { margin-top: 1.5rem; display: flex; align-items: center; gap: 1rem; }
.btn-submit {
  background: #9FE1CB; color: var(--teal-dark); border: none;
  padding: 0.85rem 2.5rem; border-radius: 30px;
  font-family: sans-serif; font-size: 0.95rem; font-weight: 700;
  cursor: pointer; transition: background 0.2s, transform 0.15s;
}
.btn-submit:hover { background: white; transform: translateY(-1px); }
.btn-submit:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.form-status { font-family: sans-serif; font-size: 0.85rem; color: #9FE1CB; }

.form-success {
  display: none; text-align: center; padding: 3rem 2rem;
  color: white;
}
.form-success .check { font-size: 3rem; margin-bottom: 1rem; }
.form-success h3 { font-size: 1.5rem; font-weight: 400; margin-bottom: 0.5rem; }
.form-success p { color: rgba(255,255,255,0.72); font-family: sans-serif; }

/* ── FOOTER ── */
footer {
  background: #1a1a18; color: rgba(255,255,255,0.45);
  text-align: center; padding: 2rem;
  font-family: sans-serif; font-size: 0.78rem;
}
footer a { color: #9FE1CB; text-decoration: none; }
footer p + p { margin-top: 0.4rem; }

/* ── OVERLAYS ── */
.overlay {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.55); backdrop-filter: blur(4px);
  align-items: center; justify-content: center;
}
.overlay.open { display: flex; }

/* LOGIN */
.login-box {
  background: var(--white); border-radius: var(--radius);
  padding: 2.5rem; width: 90%; max-width: 360px; text-align: center;
}
.login-box h2 { font-family: sans-serif; font-size: 1.1rem; margin-bottom: 0.5rem; }
.login-box p { font-family: sans-serif; font-size: 0.85rem; color: var(--text-soft); margin-bottom: 1.5rem; }
.login-box input {
  width: 100%; border: 1px solid var(--border); border-radius: 6px;
  padding: 0.65rem 0.9rem; font-family: sans-serif; font-size: 0.9rem;
  margin-bottom: 0.75rem; transition: border-color 0.2s;
}
.login-box input:focus { outline: none; border-color: var(--teal); }
.login-box .btn-login {
  background: var(--teal); color: white; border: none;
  width: 100%; padding: 0.7rem; border-radius: 6px;
  font-family: sans-serif; font-size: 0.9rem; font-weight: 600; cursor: pointer;
  transition: background 0.2s;
}
.login-box .btn-login:hover { background: var(--teal-dark); }
.login-error { color: #993C1D; font-family: sans-serif; font-size: 0.82rem; margin-top: 0.6rem; display: none; }

/* ADMIN PANEL */
.admin-panel {
  background: var(--white); border-radius: var(--radius);
  padding: 2rem; width: 92%; max-width: 660px;
  max-height: 90vh; overflow-y: auto;
}
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.admin-header h2 { font-family: sans-serif; font-size: 1.15rem; font-weight: 700; }
.admin-close { background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--text-soft); line-height: 1; }
.admin-close:hover { color: var(--text); }

.admin-section { margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border); }
.admin-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.admin-section h3 {
  font-family: sans-serif; font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--teal); margin-bottom: 1rem;
}

.booking-list { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 0.75rem; }
.booking-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.6rem 0.9rem; background: var(--off-white);
  border-radius: var(--radius-sm); font-family: sans-serif; font-size: 0.84rem;
}
.booking-item .del { background: none; border: none; color: #993C1D; cursor: pointer; font-size: 1rem; padding: 0 0.25rem; }
.add-booking { display: flex; gap: 0.5rem; }
.add-booking input {
  flex: 1; border: 1px solid var(--border); border-radius: 6px;
  padding: 0.45rem 0.7rem; font-family: sans-serif; font-size: 0.84rem;
}
.add-booking input:focus { outline: none; border-color: var(--teal); }
.add-booking button {
  background: var(--teal); color: white; border: none;
  padding: 0.45rem 1rem; border-radius: 6px;
  font-family: sans-serif; font-size: 0.84rem; cursor: pointer;
}

.price-admin-row { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.6rem; }
.price-admin-row label { font-family: sans-serif; font-size: 0.84rem; min-width: 180px; color: var(--text-soft); }
.price-admin-row input {
  width: 110px; border: 1px solid var(--border); border-radius: 6px;
  padding: 0.45rem 0.7rem; font-family: sans-serif; font-size: 0.84rem;
  transition: border-color 0.2s;
}
.price-admin-row input:focus { outline: none; border-color: var(--teal); }
.price-admin-row span { font-family: sans-serif; font-size: 0.8rem; color: var(--text-soft); }

.contact-list { display: flex; flex-direction: column; gap: 0.5rem; }
.contact-item {
  background: var(--off-white); border-radius: var(--radius-sm);
  padding: 0.75rem 1rem; font-family: sans-serif; font-size: 0.83rem;
}
.contact-item strong { display: block; margin-bottom: 0.2rem; }
.contact-item .meta { color: var(--text-soft); font-size: 0.78rem; margin-bottom: 0.3rem; }

.admin-footer { display: flex; justify-content: flex-end; gap: 0.75rem; margin-top: 1.5rem; }
.btn-save {
  background: var(--teal); color: white; border: none;
  padding: 0.65rem 1.75rem; border-radius: 20px;
  font-family: sans-serif; font-size: 0.88rem; font-weight: 600;
  cursor: pointer; transition: background 0.2s;
}
.btn-save:hover { background: var(--teal-dark); }

/* ── RESPONSIVE ── */
@media (max-width: 820px) {
  .hero h1 { font-size: 2rem; }
  .hero-content { padding: 2rem 1.5rem; }
  .cal-layout { grid-template-columns: 1fr; }
  .cal-months { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column: 1; }
  nav .nav-links { display: none; }
  .section-wrap { padding: 2.5rem 1.25rem; }
  #map { height: 300px; }
}
