/* ==========================================================================
   Villa Alakaza — Landing page (Sainte-Luce, Martinique)
   Charte graphique reprise du guide (maison3/guide)
   ========================================================================== */

:root {
  --color-bg:            #FFFFFF;
  --color-bg-alt:         #F6F5F1;
  --color-text:            #161814;
  --color-text-soft:        #55584E;
  --color-accent:            #2E5B3E;
  --color-accent-soft:        #DCE6DC;
  --color-white:                #FFFFFF;
  --color-line:                  #E6E3D9;
  --color-gold:                    #fac600;

  --font-main: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: "Fraunces", Georgia, serif;

  --section-padding: 6.5rem 0;
  --container-width: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-main);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0 0 .5em; letter-spacing: -0.01em; }
h2, h3 { font-family: var(--font-main); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
h1 { font-family: var(--font-display); font-weight: 500; line-height: 1.08; }
p { margin: 0 0 1em; color: var(--color-text-soft); }

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}
.center { text-align: center; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-main);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .02em;
  padding: .85rem 1.7rem;
  border-radius: 999px;
  transition: background .2s ease, color .2s ease, border-color .2s ease, opacity .2s ease;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--color-gold);
  color: #333333;
}
.btn-primary:hover { opacity: .88; }
.btn-outline {
  color: var(--color-white);
  border-color: rgba(255,255,255,.65);
}
.btn-outline:hover { background: #ffffff; color: var(--color-accent); }
.btn-accent {
  background: var(--color-accent);
  color: var(--color-white);
}
.btn-accent:hover { opacity: .9; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 92px;
}
.logo {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}
.main-nav a {
  font-size: .92rem;
  font-weight: 500;
  padding: .4rem 0;
  border-bottom: 1.5px solid transparent;
  transition: border-color .2s ease, color .2s ease;
}
.main-nav a:hover { color: var(--color-accent); }
.nav-guide {
  padding: .55rem 1.2rem !important;
  border: none;
  border-radius: 999px;
  background: var(--color-accent);
  color: var(--color-white) !important;
  line-height: 1;
}
.nav-guide:hover { opacity: .85; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  width: 100%;
}
.hero-media {
  position: relative;
  height: 92vh;
  min-height: 560px;
  width: 100%;
  overflow: hidden;
}
.hero-img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10,15,10,.62) 0%, rgba(10,15,10,.05) 55%);
}
.hero-caption {
  position: absolute;
  left: 2rem;
  right: 2rem;
  bottom: 3.6rem;
  color: var(--color-white);
  z-index: 1;
}
.hero-caption h1 {
  font-size: clamp(2.4rem, 5.6vw, 4.6rem);
  font-weight: 500;
  color: var(--color-white);
  max-width: 16ch;
  margin: 0 0 .3em;
}
.hero-sub {
  font-style: italic;
  font-weight: 400;
  font-size: 1.08rem;
  color: rgba(255,255,255,.92);
  max-width: 42ch;
  margin: 0 0 1.6rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- Encart réservation flottant sur le hero ---------- */
.hero-booking {
  position: absolute;
  top: 50%;
  right: 4%;
  transform: translateY(-50%);
  z-index: 2;
  width: 380px;
  max-width: 90vw;
  background: rgba(255,255,255,.98);
  border-radius: 16px;
  padding: 1.7rem 1.6rem;
  box-shadow: 0 24px 54px rgba(0,0,0,.28);
}
.hero-booking h2 {
  font-size: 1.35rem;
  color: var(--color-accent);
  margin-bottom: .3em;
}
.hero-booking-sub {
  font-size: .88rem;
  margin-bottom: 1.2rem;
}

/* ==========================================================================
   INTRO
   ========================================================================== */
.intro { padding: var(--section-padding); }
.intro-inner {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 5rem;
  align-items: center;
}
.intro-portrait img {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
}
.intro-text h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); }
.intro-text p { max-width: 60ch; font-size: 1.18rem; line-height: 1.75; }
.intro--lower { background: var(--color-bg-alt); }

/* ==========================================================================
   GALERIE
   ========================================================================== */
.gallery { padding: var(--section-padding); padding-top: 4.5rem; background: var(--color-bg-alt); }
.gallery h2 { margin-bottom: 2.2rem; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}
.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
  cursor: zoom-in;
  transition: opacity .2s ease;
}
.gallery-grid img:hover { opacity: .85; }
.gallery-quote {
  text-align: center;
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--color-text);
  max-width: 56ch;
  margin: 2.5rem auto 0;
  padding: 0 1rem;
}

/* ==========================================================================
   KPI
   ========================================================================== */
.kpi { padding: var(--section-padding); }
.kpi-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 5rem;
  align-items: center;
}
.kpi-text h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); max-width: 14ch; }
.kpi-text > p { max-width: 46ch; font-size: 1.02rem; margin-bottom: 2.5rem; }
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.2rem 2.5rem;
}
.kpi-number {
  display: block;
  font-weight: 800;
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  color: var(--color-accent);
  letter-spacing: -0.02em;
  line-height: 1;
}
.kpi-number small { font-size: .5em; font-weight: 700; margin-left: .15em; }
.kpi-label { display: block; margin-top: .5rem; font-size: .92rem; color: var(--color-text-soft); }
.kpi-image img { width: 100%; height: 560px; object-fit: cover; border-radius: 4px; }

/* ==========================================================================
   PIÈCES — descriptions détaillées (lits, tailles, équipements)
   ========================================================================== */
.rooms { padding: var(--section-padding); }
.rooms .section-head { max-width: 68ch; margin: 0 auto 3.5rem; text-align: center; }
.rooms .section-head h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); }
.rooms .section-head p { font-size: 1.05rem; margin: 0 auto; max-width: 60ch; }

.room-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.room-block + .room-block { margin-top: 5rem; }
.room-block--reverse { align-items: start; grid-template-columns: 1.35fr 1fr; }

.room-images--single img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 6px;
  cursor: zoom-in;
  transition: opacity .2s ease;
}
.room-images--single img:hover { opacity: .85; }
.room-images--double {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .9rem;
  height: 420px;
}
.room-images--double img,
.room-images--triple img,
.room-images--pool img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  cursor: zoom-in;
  transition: opacity .2s ease;
}
.room-images--double img:hover,
.room-images--triple img:hover,
.room-images--pool img:hover { opacity: .85; }
.room-images--triple {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: .9rem;
  height: 420px;
}
.room-images--triple img:first-child { grid-row: 1 / 3; }
.room-images--pool { display: grid; gap: .9rem; }
.room-images--pool img { height: 220px; }
.room-images--placeholder {
  width: 100%;
  height: 420px;
  border-radius: 6px;
  border: 1px dashed var(--color-line);
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-text-soft);
  font-size: .95rem;
  padding: 2rem;
}

.room-text h2 { font-size: 1.4rem; margin-bottom: .8rem; }
.room-text h3 { font-size: 1.02rem; margin: 1.5rem 0 .8rem; }
.room-text p { font-size: 1rem; max-width: 48ch; }
.room-beds {
  display: inline-block;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  font-weight: 700;
  font-size: .85rem;
  padding: .35rem .8rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.room-warning {
  display: block;
  background: #FBEAE7;
  color: #B5493C;
  border: 1px solid #B5493C;
  font-weight: 700;
  font-size: .88rem;
  line-height: 1.5;
  padding: .7rem 1rem;
  border-radius: 8px;
  margin: 0 0 1rem;
  max-width: none;
}
.info-card {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: 10px;
  padding: 1.6rem;
}
.info-card.is-featured {
  border-color: var(--color-accent);
  background: var(--color-accent-soft);
}
.info-card p { margin: 0; max-width: none; font-size: .95rem; }
.pool-highlight { margin-bottom: 1.1rem; }
.pool-rules {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .75rem;
}
.pool-rules li {
  font-size: .94rem;
  line-height: 1.55;
  color: var(--color-text-soft);
}
.pool-rules li strong { color: var(--color-text); }

/* ==========================================================================
   ÉQUIPEMENTS — amenities (style Airbnb, icônes grises légères)
   ========================================================================== */
.amenities { padding: var(--section-padding); }
.amenities .section-head { max-width: 68ch; margin: 0 auto 3rem; text-align: center; }
.amenities .section-head h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); }

.amenity-category { max-width: 900px; margin: 0 auto; }
.amenity-category + .amenity-category { margin-top: 2.6rem; padding-top: 2.6rem; border-top: 1px solid var(--color-line); }
.amenity-category h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.3rem;
}
.amenity-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 3rem;
  row-gap: 1.1rem;
}
.amenity-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.amenity-row i {
  flex-shrink: 0;
  width: 22px;
  text-align: center;
  font-size: 1.05rem;
  color: #A2A69B;
  margin-top: .15em;
}
.amenity-row .label {
  display: block;
  font-size: .95rem;
  color: var(--color-text);
  line-height: 1.4;
}
.amenity-row .sub {
  display: block;
  font-size: .82rem;
  color: var(--color-text-soft);
  margin-top: .15em;
}

/* ==========================================================================
   WELCOME — texte sur image sombre
   ========================================================================== */
.welcome {
  position: relative;
  min-height: auto;
  padding: 5rem 0;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.welcome img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.welcome-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12,15,10,.62), rgba(12,15,10,.84));
}
.welcome-content {
  position: relative;
  z-index: 1;
  color: var(--color-white);
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2rem;
  text-align: center;
}
.welcome-content h2 {
  color: var(--color-white);
  font-size: clamp(2.4rem, 6vw, 4rem);
  margin-bottom: .5em;
}
.welcome-content p {
  color: rgba(255,255,255,.88);
  font-style: italic;
  font-size: .96rem;
  margin: 0 0 1.1em;
}
.welcome-content p:last-child { margin-bottom: 0; }

/* ==========================================================================
   CTA FINAL
   ========================================================================== */
.cta-final {
  padding: 5.5rem 0;
  text-align: center;
  background: var(--color-bg-alt);
}
.cta-final h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 1.3rem; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { padding: 2.2rem 0; background: var(--color-text); }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.site-footer p { margin: 0; font-size: .8rem; color: rgba(255,255,255,.6); }
.site-footer a { font-size: .8rem; color: rgba(255,255,255,.8); }
.site-footer a:hover { color: var(--color-white); }

/* ==========================================================================
   LIGHTBOX — zoom galerie
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 15, 10, .93);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox-img {
  max-width: 88vw;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .4);
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: var(--color-white);
  cursor: pointer;
  line-height: 1;
  padding: .6rem;
  opacity: .85;
  transition: opacity .2s ease;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { opacity: 1; }
.lightbox-close { top: 1.2rem; right: 1.5rem; font-size: 2.2rem; }
.lightbox-prev,
.lightbox-next { top: 50%; transform: translateY(-50%); font-size: 2.8rem; }
.lightbox-prev { left: .8rem; }
.lightbox-next { right: .8rem; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 980px) {
  .hero-media { height: 74vh; min-height: 480px; }
  .hero-booking {
    position: static;
    transform: none;
    width: 92%;
    max-width: 440px;
    margin: 1.6rem auto 0;
  }

  .intro-inner { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
  .intro-portrait { margin: 0 auto; }
  .intro-portrait img { width: 220px; height: 220px; }
  .intro-text p { margin-left: auto; margin-right: auto; }

  .kpi-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .kpi-text > p { margin-left: auto; margin-right: auto; }
  .kpi-image img { height: 340px; order: -1; }
  .kpi-text { text-align: center; }
  .kpi-text h2 { margin-left: auto; margin-right: auto; }
  .kpi-grid { max-width: 420px; margin: 0 auto; text-align: left; }

  .gallery-grid { grid-template-columns: repeat(3, 1fr); }

  .room-block { grid-template-columns: 1fr; gap: 1.8rem; }
  .room-block--reverse { grid-template-columns: 1fr; }
  .room-images--single img,
  .room-images--placeholder { height: 320px; }
  .room-images--double,
  .room-images--triple { height: 320px; }
  .room-images--pool img { height: 200px; }

  .amenity-cols { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  :root { --section-padding: 4.5rem 0; }
  .main-nav { display: none; }
  .hero-caption { left: 1.2rem; right: 1.2rem; bottom: 2.2rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-quote { font-size: 1rem; margin-top: 1.8rem; }
  .footer-inner { flex-direction: column; text-align: center; }
  .lightbox-prev, .lightbox-next { font-size: 2rem; padding: .4rem; }
  .lightbox-close { font-size: 1.8rem; top: .8rem; right: 1rem; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .kpi-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
