@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --sable: #fafaf7;       /* blanc cassé / ivoire */
  --sable-fonce: #e4d5c7; /* nude / beige rosé */
  --marine: #0a0a0a;      /* noir profond / anthracite */
  --marine-clair: #2b2b2b;
  --terracotta: #5c1a2b;  /* bordeaux / rouge rubis */
  --terracotta-clair: #8c4356;
  --texte: #1a1a1a;
  --blanc: #ffffff;
  --vert-libre: #4c8c5f;
  --rouge-occupe: #c14b4b;
  --orange-option: #d19a3a;
  --ombre: 0 10px 30px rgba(10, 10, 10, 0.12);
  --rayon: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--texte);
  background: var(--sable);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  color: var(--marine);
  margin: 0 0 0.5em;
}

a { color: inherit; text-decoration: none; }

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

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 241, 231, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sable-fonce);
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 14px;
}
.nav-logo {
  font-family: 'Fraunces', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--marine);
}
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-weight: 500;
}
.nav-links a {
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color .2s;
}
.nav-links a:hover, .nav-links a.active {
  border-color: var(--terracotta);
}
.nav-cta {
  background: var(--terracotta);
  color: var(--blanc) !important;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  white-space: nowrap;
}
.nav-toggle { display: none; }

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--marine);
    cursor: pointer;
  }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--sable);
    padding: 20px;
    border-bottom: 1px solid var(--sable-fonce);
    gap: 16px;
  }
}

/* HERO */
.hero {
  background: linear-gradient(160deg, var(--marine) 0%, var(--marine-clair) 100%);
  color: var(--blanc);
  padding: 90px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero .container { position: relative; z-index: 2; }
.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .8rem;
  color: var(--terracotta-clair);
  font-weight: 600;
  margin-bottom: 14px;
}
.hero h1 {
  color: var(--blanc);
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  max-width: 720px;
}
.hero p {
  max-width: 560px;
  color: #dce7ec;
  font-size: 1.05rem;
  margin-bottom: 30px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .15s ease, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn.btn-disabled {
  opacity: .4;
  pointer-events: none;
  transform: none;
}
.btn-primary { background: var(--terracotta); color: var(--blanc); }
.btn-outline { border-color: rgba(255,255,255,.5); color: var(--blanc); }
.btn-outline:hover { border-color: var(--blanc); }
.btn-dark { background: var(--marine); color: var(--blanc); }

/* SECTIONS */
section { padding: 80px 0; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--terracotta);
  margin-bottom: 10px;
  display: block;
}
.section-head p { color: #5b5b5b; }

/* HEBERGEMENTS */
.category-block { margin-bottom: 56px; }
.category-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 22px;
}
.category-count {
  background: var(--marine);
  color: var(--blanc);
  font-family: 'Inter', sans-serif;
  font-size: .75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}
.category-note {
  color: #5b6b66;
  font-size: .92rem;
  max-width: 640px;
  margin-bottom: 10px;
}
.category-price {
  color: var(--marine);
  font-size: 1rem;
  margin-bottom: 20px;
}
.category-cta {
  display: inline-block;
  margin-bottom: 22px;
}
/* Galerie "bento" : première photo en grand, les suivantes en mosaïque */
.photo-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 120px;
  gap: 10px;
}
.photo-bento .photo-thumb:first-child {
  grid-column: span 2;
  grid-row: span 2;
}
@media (max-width: 640px) {
  .photo-bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; }
}
.photo-thumb {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  background: var(--sable-fonce);
}
.photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.photo-thumb:hover img { transform: scale(1.06); }
.photo-thumb.more::after {
  content: attr(data-more);
  position: absolute;
  inset: 0;
  background: rgba(15, 40, 40, .55);
  color: var(--blanc);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-size: 1.05rem;
  font-weight: 600;
  text-align: center;
  padding: 10px;
}
.photo-missing {
  aspect-ratio: 16/7;
  border-radius: 14px;
  border: 1.5px dashed var(--sable-fonce);
  background: rgba(255,255,255,.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8a9490;
  font-size: .88rem;
  font-weight: 600;
  text-align: center;
  padding: 10px;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 22, 21, 0.94);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: rgba(255,255,255,.12);
  color: var(--blanc);
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
}
.lightbox-close:hover { background: rgba(255,255,255,.22); }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.12);
  color: var(--blanc);
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}
.lightbox-nav:hover { background: rgba(255,255,255,.22); }
.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }
.lightbox-counter {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.8);
  font-size: .82rem;
  letter-spacing: .06em;
}
@media (max-width: 600px) {
  .lightbox-nav { width: 38px; height: 38px; font-size: 1.2rem; }
  .lightbox-prev { left: 6px; }
  .lightbox-next { right: 6px; }
}

/* AVIS CLIENTS */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.review-card {
  background: var(--blanc);
  border-radius: var(--rayon);
  padding: 22px 24px;
  box-shadow: var(--ombre);
}
.review-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.review-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--terracotta);
  color: var(--blanc);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .8rem;
  flex-shrink: 0;
}
.review-who { display: flex; flex-direction: column; margin-right: auto; }
.review-who strong { color: var(--marine); font-size: .95rem; }
.review-date { font-size: .75rem; color: #8a8a8a; }
.review-score {
  background: var(--marine);
  color: var(--blanc);
  font-weight: 700;
  font-size: .82rem;
  padding: 4px 10px;
  border-radius: 8px;
}
.review-title { font-weight: 700; color: var(--marine); margin: 0 0 6px; }
.review-text { color: #4a4a4a; font-size: .92rem; font-style: italic; margin: 0; }
.reviews-source { margin-top: 22px; font-size: .8rem; color: #8a8a8a; }

/* ADRESSE / CARTE */
.locate { background: var(--sable-fonce); }
.locate-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 36px;
  align-items: stretch;
}
.locate-info {
  background: var(--blanc);
  border-radius: var(--rayon);
  padding: 30px;
  box-shadow: var(--ombre);
}
.locate-info dl { margin: 0; }
.locate-info dt {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--terracotta);
  font-weight: 700;
  margin-top: 18px;
}
.locate-info dt:first-child { margin-top: 0; }
.locate-info dd { margin: 4px 0 0; font-size: 1rem; }
#map {
  border-radius: var(--rayon);
  overflow: hidden;
  box-shadow: var(--ombre);
  min-height: 360px;
  background: var(--sable-fonce);
}
@media (max-width: 800px) {
  .locate-grid { grid-template-columns: 1fr; }
}

/* PLANNING */
.planning-legend {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.planning-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--blanc);
  border: 1px solid var(--sable-fonce);
  border-radius: 999px;
  padding: 6px 14px 6px 10px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--texte);
}
.legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-libre { background: var(--vert-libre); }
.dot-occupe { background: var(--rouge-occupe); }
.dot-option { background: var(--orange-option); }

.planning-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
}
.month-nav { display: flex; align-items: center; gap: 16px; }
.month-nav button {
  background: var(--blanc);
  border: 1px solid var(--sable-fonce);
  border-radius: 50%;
  width: 38px; height: 38px;
  cursor: pointer;
  font-size: 1.15rem;
  color: var(--marine);
  transition: background .15s, border-color .15s;
}
.month-nav button:hover { background: var(--sable-fonce); border-color: var(--terracotta); }
.month-label {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--marine);
  min-width: 170px;
  text-align: center;
}

.planning-scroll {
  overflow-x: auto;
  border-radius: 18px;
  box-shadow: var(--ombre);
  background: var(--blanc);
  padding: 22px;
}
table.planning {
  border-collapse: separate;
  border-spacing: 3px;
  width: 100%;
  min-width: 780px;
}
table.planning th, table.planning td {
  text-align: center;
  padding: 0;
}
table.planning thead th {
  color: #8a9c97;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 4px 2px 8px;
}
table.planning thead th.weekend { color: var(--terracotta); }
table.planning .unit-name {
  text-align: left;
  padding: 0 16px 0 4px;
  font-weight: 600;
  font-size: .88rem;
  color: var(--marine);
  white-space: nowrap;
  position: sticky;
  left: 0;
  background: var(--blanc);
}
td.cell {
  width: 30px;
  height: 38px;
  min-width: 30px;
  border-radius: 8px;
  cursor: default;
  transition: transform .1s ease;
}
td.cell.libre { background: #e3f2e6; }
td.cell.occupe { background: #f7e0e0; }
td.cell.option { background: #faedcf; }
td.cell.clickable { cursor: pointer; }
td.cell.clickable:hover {
  transform: scale(1.12);
  box-shadow: 0 4px 10px rgba(15, 61, 61, 0.18);
}
td.cell.past { opacity: .3; }
td.cell.no-arrival {
  background-image: repeating-linear-gradient(45deg, rgba(15,61,61,.09) 0 4px, transparent 4px 9px);
}
tr:hover td.unit-name { color: var(--terracotta); }

.selection-heading {
  font-size: 1.05rem;
  margin-bottom: 12px;
}
.nights-picker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.qty-label { font-weight: 600; font-size: .9rem; color: var(--marine); }
.cleaning-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .9rem;
  color: var(--marine);
  font-weight: 600;
  margin: 4px 0 14px;
  cursor: pointer;
}
.cleaning-option input { width: 16px; height: 16px; accent-color: var(--terracotta); }

.selection-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  background: var(--sable-fonce);
  border-radius: 10px;
  padding: 12px 16px;
  margin-top: 4px;
  font-weight: 700;
  color: var(--marine);
}
.selection-total .total-amount {
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  color: var(--terracotta);
}
.departure-warning {
  background: #fdecec;
  color: var(--rouge-occupe);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: .85rem;
  font-weight: 600;
  margin: 0 0 16px;
}
.selection-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: var(--blanc);
  border: 1px solid var(--sable-fonce);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
}
.selection-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-right: auto;
}
.selection-info strong { color: var(--marine); }
.selection-date { font-size: .85rem; color: #5b6b66; }
.selection-price { font-size: .82rem; color: var(--terracotta); font-weight: 600; }
.remove-line {
  background: none;
  border: none;
  color: #9aa8a3;
  font-size: 1rem;
  cursor: pointer;
  padding: 4px;
}
.remove-line:hover { color: var(--rouge-occupe); }

.qty-stepper {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--blanc);
  border: 1px solid var(--sable-fonce);
  border-radius: 999px;
  padding: 4px 6px;
}
.qty-stepper button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: var(--sable);
  color: var(--marine);
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
}
.qty-stepper button:hover:not(:disabled) { background: var(--terracotta-clair); }
.qty-stepper button:disabled { opacity: .35; cursor: not-allowed; }
.qty-stepper span { min-width: 18px; text-align: center; font-weight: 700; }
.qty-max { font-size: .78rem; color: #6b7d78; }

.planning-note {
  margin-top: 20px;
  font-size: .88rem;
  color: #6b6b6b;
  background: var(--sable-fonce);
  border-radius: 10px;
  padding: 14px 18px;
}

/* GESTION (admin) */
.admin-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}
.tab-btn {
  background: var(--blanc);
  border: 1px solid var(--sable-fonce);
  border-radius: 999px;
  padding: 9px 20px;
  font-weight: 600;
  font-size: .88rem;
  color: var(--marine);
  cursor: pointer;
}
.tab-btn.active {
  background: var(--marine);
  border-color: var(--marine);
  color: var(--blanc);
}
.planning-help { color: #5b6b66; font-size: .92rem; margin-bottom: 14px; }

td.cell.price-cell {
  font-size: .72rem;
  font-weight: 700;
  color: var(--marine);
  background: #eef6f2;
}
td.cell.price-cell.custom { background: #fdeee0; color: var(--terracotta); }
table.pricing-grid td.cell { width: 38px; }

.gestion-lock {
  max-width: 420px;
  margin: 80px auto;
  background: var(--blanc);
  padding: 34px;
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
  text-align: center;
}
.gestion-lock input {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--sable-fonce);
  margin: 16px 0;
  font-size: 1rem;
}

/* FOOTER */
footer {
  background: var(--marine);
  color: #cfdde3;
  padding: 46px 0 30px;
  font-size: .9rem;
}
footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
footer a:hover { color: var(--terracotta-clair); }

.badge-todo {
  display: inline-block;
  background: #fff3cd;
  color: #8a6d1d;
  border: 1px solid #f0dca0;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: .72rem;
  font-weight: 700;
  margin-left: 8px;
}
