/* ============================================================
   APPARTEMENTS MEUBLÉS — Feuille de styles
   ============================================================ */

:root {
  --navy: #0f2c3f;
  --navy-2: #123b53;
  --gold: #c9a54e;
  --gold-2: #b8923c;
  --ink: #1c2530;
  --muted: #5f6b78;
  --line: #e4e8ec;
  --bg: #f6f8f9;
  --white: #ffffff;

  --ok: #1f9d55;
  --ok-bg: #e5f6ec;
  --busy: #d9534f;
  --busy-bg: #fbeaea;
  --work: #e08a1e;
  --work-bg: #fbf1e0;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(15, 44, 63, .10);
  --shadow-lg: 0 24px 60px rgba(15, 44, 63, .22);
  --container: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Poppins", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: #201a08; }
.btn-gold:hover { background: var(--gold-2); box-shadow: 0 8px 20px rgba(201, 165, 78, .4); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .6); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-outline-header {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, .35);
  padding: 9px 18px;
}
.btn-outline-header:hover { background: rgba(255, 255, 255, .12); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 2px 14px rgba(0, 0, 0, .18);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
  width: 50px; height: 46px;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
  padding: 5px 6px;
  flex: 0 0 auto;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 700; font-size: 1.05rem; }
.brand-sub { font-size: .72rem; color: rgba(255, 255, 255, .65); letter-spacing: .04em; }

.main-nav { display: flex; gap: 6px; }
.nav-link {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .82);
  transition: background .2s, color .2s;
}
.nav-link:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.nav-link.active { background: var(--gold); color: var(--navy); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(15, 44, 63, .55), rgba(15, 44, 63, .92)),
    radial-gradient(1200px 600px at 70% -10%, #1b4a68, var(--navy));
  overflow: hidden;
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding: 96px 20px 104px;
  text-align: center;
}
.hero-kicker {
  text-transform: uppercase;
  letter-spacing: .28em;
  font-size: .78rem;
  color: var(--gold);
  margin: 0 0 14px;
  font-weight: 600;
}
.hero-title {
  font-family: "Playfair Display", serif;
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.12;
  margin: 0 0 18px;
}
.hero-tagline {
  max-width: 640px;
  margin: 0 auto 30px;
  color: rgba(255, 255, 255, .88);
  font-size: 1.05rem;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Sections ---------- */
.section { padding: 76px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-kicker {
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .76rem;
  color: var(--gold-2);
  font-weight: 600;
  margin: 0 0 10px;
}
.section-title {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  margin: 0 0 12px;
  color: var(--navy);
}
.section-lead { color: var(--muted); margin: 0; }

/* ---------- Filtres ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin-bottom: 22px;
}
.filter-group { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.filter-label {
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  font-weight: 600;
}
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chip {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-size: .88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .18s ease;
}
.chip:hover { border-color: var(--gold); }
.chip.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.results-count {
  text-align: center;
  color: var(--muted);
  font-size: .9rem;
  margin: 0 0 26px;
}

/* ---------- Grille d'appartements ---------- */
.apart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 26px;
}
.apart-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
  cursor: pointer;
}
.apart-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.apart-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #1b4a68, var(--navy));
  overflow: hidden;
}
.apart-media img { width: 100%; height: 100%; object-fit: cover; }
.apart-media .media-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, .5);
  font-size: 2.6rem;
}
.media-count {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(15, 44, 63, .78);
  color: #fff;
  font-size: .72rem;
  padding: 4px 9px;
  border-radius: 999px;
  display: inline-flex;
  gap: 5px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .74rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
}
.badge-status { position: absolute; top: 12px; left: 12px; }
.badge-type {
  position: absolute; top: 12px; right: 12px;
  background: rgba(255, 255, 255, .92);
  color: var(--navy);
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-type::before { display: none; }
.status-disponible { background: var(--ok-bg); color: var(--ok); }
.status-occupe { background: var(--busy-bg); color: var(--busy); }
.status-travaux { background: var(--work-bg); color: var(--work); }

.apart-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.apart-ref {
  font-size: .72rem; font-weight: 600; letter-spacing: .06em;
  color: var(--gold-2); font-variant-numeric: tabular-nums; margin: 0 0 -4px;
}
.apart-title { font-size: 1.12rem; font-weight: 600; margin: 0; color: var(--navy); }
.apart-loc { font-size: .84rem; color: var(--muted); display: flex; align-items: center; gap: 6px; margin: 0; }
.apart-desc {
  font-size: .9rem;
  color: var(--muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.apart-plans {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  padding-top: 10px;
}
.apart-plan {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px 9px;
  font-size: .84rem;
  color: var(--navy);
}
.apart-plan b { font-weight: 700; }
.apart-plan small { color: var(--muted); font-size: .72rem; }
.apart-foot {
  padding-top: 12px;
  margin-top: 10px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.apart-cta { font-size: .85rem; font-weight: 600; color: var(--gold-2); }

.no-results { text-align: center; color: var(--muted); padding: 40px 0; }

/* ---------- Contact ---------- */
.section-contact { background: var(--white); }
.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  max-width: 820px;
  margin: 0 auto;
}
.contact-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--gold); }
.contact-ico { font-size: 1.8rem; }
.contact-k { font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.contact-v { font-weight: 600; color: var(--navy); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .8); padding: 30px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.footer-brand { font-weight: 600; color: #fff; margin: 0; }
.footer-copy { margin: 0; font-size: .86rem; }

/* ---------- Modale ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal.open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(15, 44, 63, .6); backdrop-filter: blur(3px); }
.modal-dialog {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  width: 100%;
  max-width: 860px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: pop .22s ease;
}
@keyframes pop { from { transform: scale(.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-close {
  position: absolute;
  top: 12px; right: 14px;
  z-index: 3;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(15, 44, 63, .8);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.modal-close:hover { background: var(--navy); }

.modal-gallery { background: #0c2130; }
.modal-hero {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #1b4a68, var(--navy));
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, .5);
  font-size: 3.4rem;
}
.modal-hero img, .modal-hero video { width: 100%; height: 100%; object-fit: cover; }
.modal-thumbs { display: flex; gap: 8px; padding: 10px; overflow-x: auto; }
.modal-thumb {
  width: 84px; height: 60px;
  flex: 0 0 auto;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  background: #1b4a68;
}
.modal-thumb.active { border-color: var(--gold); }
.modal-thumb img { width: 100%; height: 100%; object-fit: cover; }

.modal-content { padding: 24px 28px 30px; }
.modal-topline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.modal-ref {
  font-size: .74rem; font-weight: 600; letter-spacing: .06em;
  color: var(--gold-2); font-variant-numeric: tabular-nums; margin-left: auto;
}
.modal-content h3 { font-family: "Playfair Display", serif; font-size: 1.6rem; color: var(--navy); margin: 6px 0 4px; }
.modal-loc { color: var(--muted); font-size: .9rem; margin: 0 0 16px; }
.modal-desc { color: var(--ink); margin: 0 0 20px; }
.modal-pricing { margin: 0 0 20px; }
.pricing-label { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 8px; }
.pricing-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.price-plan {
  flex: 1 1 120px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
}
.price-plan-amount { font-weight: 700; color: var(--navy); font-size: 1.08rem; }
.price-plan-period { font-size: .78rem; color: var(--muted); }
.modal-facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 0 0 20px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact { display: flex; flex-direction: column; }
.fact-k { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.fact-v { font-weight: 600; color: var(--navy); }
.modal-equip { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.equip-tag { background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px; font-size: .82rem; color: var(--ink); }
.modal-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); }
.btn-line { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-line:hover { border-color: var(--navy); }

/* ============ Réservation (façon Airbnb) ============ */
.modal-booking { margin: 22px 0 18px; }
.modal-booking-head { display: block; font-family: "Playfair Display", serif; font-size: 1.25rem; color: var(--navy); margin-bottom: 12px; }
.bk-card { border: 1px solid var(--line); border-radius: 16px; padding: 16px; box-shadow: var(--shadow); }
.bk-price-hint { font-size: 1.02rem; color: var(--navy); margin-bottom: 12px; }
.bk-price-hint b { font-weight: 700; font-size: 1.15rem; }
.bk-price-hint span { color: var(--muted); font-size: .9rem; }

.bk-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; }
.bk-date-field { background: #fff; border: none; border-right: 1.5px solid var(--line); padding: 11px 14px; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.bk-date-field:last-child { border-right: none; }
.bk-date-field:hover { background: var(--bg); }
.bk-date-k { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.bk-date-val { font-size: .92rem; color: var(--navy); font-weight: 500; }

.bk-calendar { margin-top: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.bk-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-weight: 600; color: var(--navy); text-transform: capitalize; }
.bk-cal-nav { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; width: 32px; height: 32px; font-size: 1.1rem; cursor: pointer; color: var(--navy); }
.bk-cal-nav:hover { border-color: var(--navy); }
.bk-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.bk-dow { margin-bottom: 4px; }
.bk-dowc { text-align: center; font-size: .7rem; color: var(--muted); font-weight: 600; padding: 4px 0; }
.bk-day { min-height: 46px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; border-radius: 8px; cursor: pointer; color: var(--ink); user-select: none; padding: 3px 1px; }
.bk-day-n { font-size: .85rem; line-height: 1.05; }
.bk-day-sub { font-size: .58rem; line-height: 1; font-weight: 600; color: var(--gold-2); white-space: nowrap; }
.bk-occupe { color: var(--busy); font-weight: 700; }
.bk-day:not(.blocked):not(.empty):hover { background: var(--bg); }
.bk-day.empty { cursor: default; min-height: 46px; }
.bk-day.blocked { cursor: not-allowed; }
.bk-day.blocked .bk-day-n { color: #c3cad1; }
.bk-day.reserved .bk-day-n { text-decoration: line-through; }
.bk-day.inrange { background: var(--bg); border-radius: 0; }
.bk-day.sel { background: var(--navy); border-radius: 8px; }
.bk-day.sel .bk-day-n { color: #fff; font-weight: 700; }
.bk-day.sel .bk-day-sub { color: rgba(255, 255, 255, .8); }
.bk-day.sel.start { border-radius: 8px 0 0 8px; }
.bk-day.sel.end { border-radius: 0 8px 8px 0; }

.bk-guests { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding: 6px 2px; }
.bk-guests-k { font-weight: 500; color: var(--navy); }
.bk-stepper { display: flex; align-items: center; gap: 14px; }
.bk-stepper button { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; font-size: 1.1rem; cursor: pointer; color: var(--navy); line-height: 1; }
.bk-stepper button:hover { border-color: var(--navy); }
.bk-guests-val { min-width: 20px; text-align: center; font-weight: 600; }

.bk-breakdown { margin-top: 12px; }
.bk-line { display: flex; justify-content: space-between; font-size: .92rem; color: var(--ink); padding: 4px 0; }
.bk-note { font-size: .8rem; color: var(--ok); padding: 2px 0; }
.bk-total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; font-weight: 700; color: var(--navy); font-size: 1rem; }

.bk-submit { width: 100%; margin-top: 14px; }
.bk-submit:disabled { opacity: .5; cursor: not-allowed; }
.bk-hint { text-align: center; font-size: .78rem; color: var(--muted); margin: 8px 0 0; }

.bk-form { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.bk-form input, .bk-form textarea { padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 10px; font-size: .92rem; font-family: inherit; width: 100%; }
.bk-form input:focus, .bk-form textarea:focus { outline: none; border-color: var(--gold); }
.bk-status { font-size: .86rem; margin-top: 8px; min-height: 18px; }
.bk-status.err { color: var(--busy); }

.bk-success { text-align: center; padding: 20px 10px; }
.bk-success-ico { font-size: 2.6rem; }
.bk-success h4 { font-size: 1.2rem; color: var(--navy); margin: 8px 0; }
.bk-success p { color: var(--ink); margin: 6px 0; }
.bk-success-sub { color: var(--muted); font-size: .9rem; }
.bk-disabled-msg { text-align: center; color: var(--work); padding: 16px; line-height: 1.6; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .main-nav {
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 12px 20px 20px;
    gap: 4px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, .25);
    display: none;
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .btn-outline-header { display: none; }
}

@media (max-width: 520px) {
  .apart-grid { grid-template-columns: 1fr; }
  .hero-inner { padding: 70px 20px 80px; }
  .modal-content { padding: 20px; }
}
