/* === Reset léger & base === */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: #1f2733;
  background: #fbfaf7;
}
img { max-width: 100%; display: block; }
a { color: #1f2733; }
h1, h2 { font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 0 0 .5rem; }
h2 { font-size: clamp(1.3rem, 2vw, 1.7rem); margin: 0 0 1rem; }

/* === Header / nav === */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem 1.5rem;
  background: rgba(251, 250, 247, .9);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid #ebe6dc;
}
.brand a {
  text-decoration: none; font-weight: 600; letter-spacing: .02em;
}
.main-nav { display: flex; gap: 1.5rem; }
.main-nav a {
  text-decoration: none; font-size: .95rem;
  color: #4b5663; transition: color .15s;
}
.main-nav a:hover { color: #c97a4a; }

/* === Layout sections === */
main { max-width: 1100px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }
section { margin-bottom: 4rem; }

/* === Hero === */
.hero { padding: 1rem 0 .5rem; }
.lede { font-size: 1.1rem; color: #4b5663; margin: 0 0 1.5rem; }
.address-link {
  color: #c97a4a; text-decoration: none;
  border-bottom: 1px dashed #c97a4a;
  display: inline-flex; align-items: center; gap: .25rem;
}
.address-link:hover { color: #b06539; border-bottom-color: #b06539; }
.facts a { color: #c97a4a; text-decoration: none; border-bottom: 1px dashed #c97a4a; }
.facts a:hover { color: #b06539; }
.facts {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: .5rem 2rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  background: #fff; border: 1px solid #ebe6dc; border-radius: 14px;
  padding: 1.2rem 1.5rem;
}
.facts li { font-size: .95rem; color: #4b5663; }
.facts strong { color: #1f2733; }
[data-edit] { color: #c97a4a; font-style: italic; }

/* === Plan === */
.hint { color: #6b7280; font-size: .92rem; margin: 0 0 1rem; }
.plan-wrap {
  position: relative;
  background: #fff;
  border: 1px solid #ebe6dc; border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.plan-img { width: 100%; height: auto; display: block; }
.plan-zones {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.zone {
  fill: rgba(201, 122, 74, 0);
  stroke: rgba(201, 122, 74, 0);
  stroke-width: 3;
  cursor: pointer;
  transition: fill .15s, stroke .15s;
}
.zone:hover, .zone:focus {
  fill: rgba(201, 122, 74, .18);
  stroke: rgba(201, 122, 74, .85);
  outline: none;
}
.zone-labels text {
  fill: #1f2733;
  font-size: 28px;
  font-weight: 600;
  font-family: inherit;
  opacity: 0;
  transition: opacity .15s;
  paint-order: stroke;
  stroke: #fff;
  stroke-width: 6px;
}
/* Affiche le label seulement quand la zone correspondante est survolée */
.plan-zones:hover .zone-labels text { opacity: 0; }
.zone:hover ~ .zone-labels text { opacity: 0; }
/* Astuce simple : montrer tous les labels au survol global du plan */
.plan-wrap:hover .zone-labels text { opacity: .85; }

/* === Visite virtuelle === */
.virtual-tour h2 { margin-top: 2rem; }
.iframe-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #ebe6dc;
  background: #000;
}
.iframe-wrap iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* === Calendar === */
.availability h2 { margin-bottom: .5rem; }
.legend-dot {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%;
  vertical-align: middle; margin: 0 .25rem 0 .5rem;
}
.legend-dot.booked { background: #d96666; }
.legend-dot.free { background: #7fb886; }

.calendar {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.month {
  background: #fff;
  border: 1px solid #ebe6dc;
  border-radius: 14px;
  padding: 1rem 1.1rem 1.2rem;
}
.month-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: .8rem;
  font-weight: 600; font-size: 1rem;
}
.month-nav {
  display: flex; gap: .25rem;
}
.month-nav button {
  border: 1px solid #ebe6dc; background: #fff;
  width: 28px; height: 28px; border-radius: 8px;
  cursor: pointer; font-size: 1rem; line-height: 1;
}
.month-nav button:hover { background: #f4efe5; }
.month-grid {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  font-size: .85rem;
}
.dow {
  text-align: center; color: #6b7280; font-size: .75rem;
  text-transform: uppercase; padding: .25rem 0;
}
.day {
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: #f1f7f1;
  color: #2a4a2c;
}
.day.booked { background: #fbe5e5; color: #8a3030; text-decoration: line-through; }
.day.empty { background: transparent; }
.day.past { opacity: .35; }
.day.today { outline: 2px solid #c97a4a; outline-offset: -2px; }

/* === Contact form === */
.contact-form {
  display: grid; gap: .9rem;
  background: #fff;
  border: 1px solid #ebe6dc;
  border-radius: 14px;
  padding: 1.5rem;
  max-width: 600px;
}
.contact-form label {
  display: grid; gap: .25rem;
  font-size: .9rem; color: #4b5663;
}
.contact-form input, .contact-form textarea {
  font: inherit;
  padding: .6rem .75rem;
  border: 1px solid #d8d2c4;
  border-radius: 8px;
  background: #fbfaf7;
  color: #1f2733;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: 2px solid #c97a4a; border-color: transparent;
}
.contact-form button {
  justify-self: start;
  font: inherit; font-weight: 600;
  padding: .7rem 1.4rem;
  background: #c97a4a; color: #fff;
  border: 0; border-radius: 8px; cursor: pointer;
  transition: background .15s;
}
.contact-form button:hover { background: #b06539; }
.hp { position: absolute; left: -9999px; }
.form-status { font-size: .9rem; }
.form-status.ok { color: #2a7a3a; }
.form-status.err { color: #a73030; }

/* === Footer === */
.site-footer {
  text-align: center; padding: 2rem 1.5rem 3rem;
  color: #6b7280; font-size: .9rem;
  border-top: 1px solid #ebe6dc;
}

/* === Lightbox === */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(15, 17, 22, .92);
  display: flex; align-items: center; justify-content: center;
}
.lightbox[hidden] { display: none; }
.lb-figure {
  margin: 0; max-width: 92vw; max-height: 90vh;
  display: flex; flex-direction: column; align-items: center; gap: .8rem;
}
.lb-img {
  max-width: 92vw; max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.lb-caption { color: #f5f1ea; font-size: .95rem; }
.lb-close, .lb-prev, .lb-next {
  position: absolute;
  background: rgba(255,255,255,.1);
  color: #fff; border: 0;
  font-size: 2rem; line-height: 1;
  width: 48px; height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.25); }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* === Responsive === */
@media (max-width: 640px) {
  .site-header { padding: .7rem 1rem; }
  .main-nav { gap: .9rem; font-size: .85rem; }
  .zone-labels text { font-size: 36px; }
  .lb-prev, .lb-next { width: 40px; height: 40px; font-size: 1.5rem; }
}
