/* =====================================================================
   Iguana Bay — Page d'accueil v2 (inspiration « Aqualume »)
   Cadre arrondi, hero encadré, cartes arrondies, bandeau histoire,
   grille contact. Chargé uniquement sur la page d'accueil.
   ===================================================================== */
.home {
  --hp-frame: #d8e0e3;
  --hp-bg: #eef3f3;
  --hp-card: #ffffff;
  --hp-ink: #1d3a40;
  --hp-text: #3d5558;
  --hp-muted: #71878a;
  --hp-deep: #2f5a61;
  --hp-deep-2: #3b6c73;
  --hp-pill: #8ea3a2;
  --hp-radius: 22px;
  --hp-radius-sm: 16px;
  --hp-pad: clamp(1.25rem, 4.5vw, 4rem);
  --hp-frame-gap: 20px;
  --hp-head: "Josefin Sans", "Outfit", "Gill Sans", sans-serif;
  --hp-shadow: 0 24px 50px -30px rgba(20, 50, 55, .45);
}

/* ---------- Cadre ---------- */
body.home {
  background: var(--hp-frame);
  padding: var(--hp-frame-gap) 0;
  color: var(--hp-text);
}
.home main#contenu,
.home .site-footer {
  width: min(1400px, calc(100% - 2 * var(--hp-frame-gap)));
  margin-inline: auto;
  background: var(--hp-bg);
}
.home main#contenu {
  border-radius: 30px 30px 0 0;
  padding: 16px 16px 0;
  position: relative;
}
.home .site-footer { border-radius: 0 0 30px 30px; }

/* ---------- En-tête posé sur le hero ---------- */
.home .site-header {
  position: absolute;
  top: calc(var(--hp-frame-gap) + 16px);
  left: 50%;
  transform: translateX(-50%);
  width: min(1368px, calc(100% - 2 * var(--hp-frame-gap) - 32px));
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border: 0;
  z-index: 40;
}
.admin-bar.home .site-header { top: calc(var(--hp-frame-gap) + 16px + 32px); }
.home .header-inner { width: calc(100% - 2 * var(--hp-pad)); min-height: 86px; }
.home .brand img { height: 56px; filter: drop-shadow(0 2px 8px rgba(0,0,0,.25)); }
.home .primary-nav a {
  color: #fff;
  font-size: .92rem;
  letter-spacing: .03em;
  text-shadow: 0 1px 8px rgba(0,0,0,.25);
}
.home .primary-nav a:hover,
.home .primary-nav .current-menu-item > a { color: #fff; border-bottom-color: rgba(255,255,255,.8); }
.home .search-toggle {
  color: #fff;
  border: 1px solid rgba(255,255,255,.65);
  background: rgba(255,255,255,.08);
}
.home .search-toggle:hover { background: rgba(255,255,255,.22); }

/* ---------- Titres & boutons ---------- */
.home .hp-h2 {
  font-family: var(--hp-head);
  font-weight: 600;
  color: var(--hp-ink);
  letter-spacing: 0;
  line-height: 1.12;
  font-size: clamp(1.9rem, 3.3vw, 2.9rem);
  margin: 0;
}
.hp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.6rem;
  border-radius: 999px;
  font-family: var(--corps);
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background .2s, color .2s, transform .2s, border-color .2s;
}
.hp-btn:hover { transform: translateY(-1px); }
.hp-btn-light { background: #fff; color: var(--hp-ink); }
.hp-btn-light:hover { background: var(--hp-bg); color: var(--hp-ink); }
.hp-btn-dark { background: var(--hp-deep); color: #fff; }
.hp-btn-dark:hover { background: var(--hp-ink); color: #fff; }
.hp-pill {
  display: inline-flex;
  align-items: center;
  padding: .5rem 1.1rem;
  border-radius: 999px;
  background: var(--hp-pill);
  color: #fff;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .03em;
  white-space: nowrap;
}
.hp-eyebrow {
  margin: 0 0 .35rem;
  font-family: var(--hp-head);
  font-size: .75rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
}

/* ---------- Sections ---------- */
.hp-section { padding: clamp(4rem, 8vw, 7rem) var(--hp-pad) 0; }
.hp-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.2rem;
}

/* ---------- Hero ---------- */
.hp-hero {
  position: relative;
  height: clamp(560px, calc(100svh - 2 * var(--hp-frame-gap) - 32px), 900px);
  border-radius: 24px;
  overflow: hidden;
  isolation: isolate;
  background: var(--encre);
}
.hp-hero-media, .hp-hero-media video, .hp-hero-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hp-hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,35,40,.45) 0%, rgba(10,35,40,0) 26%),
    linear-gradient(0deg, rgba(10,35,40,.35) 0%, rgba(10,35,40,0) 40%);
}
.hp-hero-title {
  position: absolute; inset: 0;
  margin: 0;
  padding: 0 var(--hp-pad);
  pointer-events: none;
  font-family: var(--hp-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -.01em;
  line-height: .9;
  color: rgba(255,255,255,.92);
  font-size: clamp(3.4rem, 10.5vw, 10.5rem);
  text-shadow: 0 6px 40px rgba(10,35,40,.25);
}
.hp-hero-l1, .hp-hero-l2 { position: absolute; white-space: nowrap; }
.hp-hero-l1 { top: clamp(6.5rem, 16%, 10rem); left: var(--hp-pad); }
.hp-hero-l2 { bottom: clamp(2rem, 8%, 4.5rem); right: var(--hp-pad); }
.hp-hero-card {
  position: absolute;
  left: var(--hp-pad);
  bottom: clamp(2rem, 8%, 4.5rem);
  z-index: 2;
  width: min(360px, calc(100% - 2 * var(--hp-pad)));
  padding: 1.5rem 1.6rem 1.6rem;
  border-radius: var(--hp-radius-sm);
  background: rgba(29, 58, 64, .72);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: #fff;
}
.hp-hero-place {
  margin: 0 0 1.2rem;
  font-size: 1.05rem;
  line-height: 1.45;
  color: #fff;
}
.hp-hero-card .hp-btn { padding: .6rem 1.2rem; font-size: .8rem; }

/* ---------- Bienvenue ---------- */
.hp-welcome {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.hp-welcome-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: start;
}
.hp-welcome-media img {
  width: 100%;
  aspect-ratio: 3 / 4.4;
  object-fit: cover;
  border-radius: var(--hp-radius);
  box-shadow: var(--hp-shadow);
}
.hp-welcome-b { margin-top: 3rem; }
.hp-welcome-copy .hp-h2 { max-width: 16ch; }
.hp-prose { margin: 1.5rem 0 0; font-size: 1rem; line-height: 1.75; color: var(--hp-text); max-width: 34rem; }
.hp-prose p { margin: 0; }
.hp-stats {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin: 2rem 0 2.2rem;
  padding: 1.4rem 0 0;
  border-top: 1px solid rgba(29,58,64,.12);
}
.hp-stats li { display: flex; align-items: baseline; gap: .45rem; }
.hp-stats strong {
  font-family: var(--hp-head);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--hp-ink);
}
.hp-stats span { font-size: .82rem; color: var(--hp-muted); }

/* ---------- Villas (sliders) ---------- */
.home .hp-villas { background: transparent; padding: clamp(4rem, 8vw, 7rem) var(--hp-pad) 0; }
.home .hp-villas .villa-split { width: 100%; gap: clamp(1rem, 2vw, 1.5rem); }
.home .hp-villas .villa-panel {
  min-height: clamp(460px, 64vh, 620px);
  border-radius: var(--hp-radius);
  box-shadow: var(--hp-shadow);
}
.home .hp-villas .villa-content h3 {
  font-family: var(--hp-head);
  font-weight: 600;
  letter-spacing: 0;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
}
.home .hp-villas .villa-content .hp-btn { padding: .65rem 1.3rem; font-size: .82rem; }

/* ---------- Notre histoire ---------- */
.hp-story {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--hp-radius);
  min-height: clamp(460px, 62vh, 600px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(3rem, 7vw, 6rem) var(--hp-pad);
  background: var(--story-bg) center / cover no-repeat;
  box-shadow: var(--hp-shadow);
}
.hp-story::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(20,45,50,.55), rgba(20,45,50,.72));
}
.hp-story-title {
  margin: 0 0 1.4rem;
  font-family: var(--hp-head);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1;
}
.hp-story-text { max-width: 44rem; color: rgba(255,255,255,.92); font-size: 1.05rem; line-height: 1.8; }
.hp-story-text p { margin: 0; }

/* ---------- Contact ---------- */
.hp-contact-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: minmax(0, auto);
  gap: 1rem;
}
.hp-card {
  border-radius: var(--hp-radius-sm);
  background: var(--hp-card);
  padding: 1.8rem;
  box-shadow: 0 10px 30px -24px rgba(20,50,55,.4);
}
.hp-card h3 {
  margin: 1rem 0 .6rem;
  font-family: var(--hp-head);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0;
  color: var(--hp-ink);
}
.hp-card p { margin: 0; line-height: 1.65; font-size: .96rem; }
.hp-ico {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--hp-bg);
  color: var(--hp-deep);
}
.hp-card-address { grid-column: 1 / span 3; display: flex; flex-direction: column; justify-content: center; }
.hp-contact-photo {
  grid-column: 4 / span 6;
  width: 100%; height: 100%;
  min-height: 260px;
  object-fit: cover;
  border-radius: var(--hp-radius-sm);
}
.hp-card-dark {
  grid-column: 10 / span 3;
  grid-row: 1 / span 2;
  background: var(--hp-deep);
  color: rgba(255,255,255,.85);
  display: flex;
  flex-direction: column;
}
.hp-card-dark h3 { color: #fff; }
.hp-card-dark .hp-ico { background: rgba(255,255,255,.12); color: #fff; }
.hp-contact-lines {
  list-style: none; margin: .4rem 0 1.8rem; padding: 0;
  display: grid; gap: 0;
}
.hp-contact-lines li { border-bottom: 1px solid rgba(255,255,255,.18); padding: .85rem 0; font-size: .92rem; word-break: break-word; }
.hp-contact-lines a { color: #fff; text-decoration: none; }
.hp-contact-lines a:hover { text-decoration: underline; }
.hp-card-dark .hp-btn { margin-top: auto; align-self: flex-start; }
.hp-map {
  grid-column: 1 / span 9;
  border-radius: var(--hp-radius-sm);
  overflow: hidden;
  background: #dde7e7;
  min-height: 300px;
}
.hp-map iframe { display: block; width: 100%; height: 100%; min-height: 300px; border: 0; }

/* ---------- Pied de page dans le cadre ---------- */
.home .site-footer.ft { padding-top: clamp(4rem, 8vw, 6rem); border-top: 0; background: var(--hp-bg); }

/* ---------- Tablette ---------- */
@media (max-width: 1100px) {
  .hp-welcome { grid-template-columns: 1fr; }
  .hp-welcome-media { max-width: 640px; }
  .hp-card-address { grid-column: 1 / span 6; }
  .hp-contact-photo { grid-column: 7 / span 6; }
  .hp-card-dark { grid-column: 1 / span 5; grid-row: auto; }
  .hp-map { grid-column: 6 / span 7; }
}

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .home { --hp-frame-gap: 8px; }
  .home main#contenu { border-radius: 22px 22px 0 0; padding: 8px 8px 0; }
  .home .site-footer { border-radius: 0 0 22px 22px; }
  .home .site-header { top: calc(var(--hp-frame-gap) + 8px); width: calc(100% - 2 * var(--hp-frame-gap) - 16px); }
  .admin-bar.home .site-header { top: calc(var(--hp-frame-gap) + 8px + 46px); }
  .home .header-inner { width: calc(100% - 2rem); min-height: 70px; }
  .home .brand img { height: 46px; }
  .home .nav-toggle::before { background: #fff; box-shadow: 0 -7px 0 #fff, 0 7px 0 #fff; }
  .home .site-header.is-open,
  .home .site-header.is-search {
    background: rgba(29,58,64,.94);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 18px;
  }
  .home .site-header .search-form input { color: #fff; border-bottom-color: rgba(255,255,255,.4); }
  .hp-hero { height: min(88svh, 720px); border-radius: 18px; }
  .hp-hero-title { font-size: clamp(3rem, 15vw, 5rem); }
  .hp-hero-l1 { top: 7rem; left: 1.25rem; }
  .hp-hero-l2 { top: calc(7rem + 1em); bottom: auto; left: 1.25rem; right: auto; }
  .hp-hero-card { left: 1rem; right: 1rem; width: auto; bottom: 1rem; }
  .hp-welcome-media img { aspect-ratio: 3 / 4; }
  .hp-welcome-b { margin-top: 2rem; }
  .hp-stats { gap: 1.6rem; }
  .home .hp-villas .villa-split { grid-template-columns: 1fr; }
  .home .hp-villas .villa-panel { min-height: 440px; }
  .hp-head { flex-direction: column; align-items: flex-start; gap: .9rem; }
  .hp-contact-grid { grid-template-columns: 1fr; }
  .hp-card-address, .hp-contact-photo, .hp-card-dark, .hp-map { grid-column: auto; grid-row: auto; }
  .hp-contact-photo { min-height: 220px; aspect-ratio: 4 / 3; height: auto; }
  .hp-map, .hp-map iframe { min-height: 280px; }
}

/* Ajustements */
.hp-stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; column-gap: 2.8rem; }
@media (max-width: 860px) {
  .hp-hero-title { font-size: clamp(2.6rem, 12.5vw, 4.6rem); }
  .hp-stats { grid-template-columns: repeat(3, 1fr); column-gap: 1rem; }
  .hp-stats li { flex-direction: column; gap: .1rem; }
}

/* ---------- Cadre pleine largeur ---------- */
.home main#contenu,
.home .site-footer { width: calc(100% - 2 * var(--hp-frame-gap)); }
.home .site-header { width: calc(100% - 2 * var(--hp-frame-gap) - 32px); }
.home .hp-section,
.home .hp-villas {
  padding-left: max(var(--hp-pad), calc((100% - 1400px) / 2));
  padding-right: max(var(--hp-pad), calc((100% - 1400px) / 2));
}
.home .ft-inner { width: min(1400px, calc(100% - 2 * var(--hp-pad))); }
@media (max-width: 860px) {
  .home .site-header { width: calc(100% - 2 * var(--hp-frame-gap) - 16px); }
}

/* ---------- Notre histoire : bord à bord ---------- */
.home .hp-story-wrap { padding-left: 0; padding-right: 0; margin-left: -16px; margin-right: -16px; }
.home .hp-story {
  border-radius: 0;
  box-shadow: none;
  min-height: clamp(520px, 78vh, 760px);
  background-attachment: fixed;
}
.home .hp-story::before { background: linear-gradient(180deg, rgba(20,45,50,.62), rgba(20,45,50,.74)); }
.home .hp-story-title { font-size: clamp(2.8rem, 6vw, 5rem); }
.home .hp-story-text { font-size: 1.12rem; max-width: 48rem; }
@supports (-webkit-touch-callout: none) { .home .hp-story { background-attachment: scroll; } }

/* ---------- Contact : carte plein cadre + une seule carte d'infos ---------- */
.hp-contact2 {
  position: relative;
  margin: clamp(4rem, 8vw, 7rem) -16px 0;
  min-height: clamp(560px, 80vh, 720px);
  display: flex;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
}
.hp-map2 { position: absolute; inset: 0; z-index: -1; background: #dde7e7; }
.hp-map2 iframe { width: 100%; height: 100%; border: 0; display: block; }
.hp-contact2-inner {
  width: 100%;
  padding: 3rem max(var(--hp-pad), calc((100% - 1400px) / 2));
  pointer-events: none;
}
.hp-contact2-card {
  pointer-events: auto;
  width: min(430px, 100%);
  background: rgba(255,255,255,.96);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: var(--hp-radius);
  padding: 2.4rem 2.2rem;
  box-shadow: 0 30px 70px -30px rgba(20,50,55,.5);
}
.hp-contact2-card .hp-h2 { font-size: clamp(1.8rem, 2.6vw, 2.3rem); margin-bottom: 1.6rem; }
.hp-c-row {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 1rem;
  padding: 1.1rem 0;
  border-top: 1px solid rgba(29,58,64,.1);
}
.hp-c-row h3 {
  margin: .1rem 0 .3rem;
  font-family: var(--hp-head);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0;
  color: var(--hp-ink);
}
.hp-c-row p { margin: 0; font-size: .94rem; line-height: 1.65; word-break: break-word; }
.hp-c-row a { color: var(--hp-deep); text-decoration: none; }
.hp-c-row a:hover { text-decoration: underline; }
.hp-contact2-card .hp-btn { margin-top: 1.2rem; }
.home .site-footer.ft { padding-top: 3.5rem; }
@media (max-width: 860px) {
  .home .hp-story-wrap { margin-left: -8px; margin-right: -8px; }
  .hp-contact2 { margin-left: -8px; margin-right: -8px; display: block; min-height: 0; }
  .hp-map2 { position: relative; height: 340px; z-index: 0; }
  .hp-contact2-inner { padding: 0 1rem 2.5rem; margin-top: -4rem; position: relative; }
  .hp-contact2-card { padding: 1.8rem 1.4rem; }
}
.home .hp-story { background-attachment: scroll; }
.hp-contact2 { margin-top: 0; }

/* Bandeau de version : l'en-tête posé sur le hero descend d'autant */
.ib-switch-on.home .site-header { top: calc(52px + var(--hp-frame-gap) + 16px); }
.admin-bar.ib-switch-on.home .site-header { top: calc(32px + 52px + var(--hp-frame-gap) + 16px); }
@media (max-width: 860px) {
  body.home.ib-switch-on .ib-switch { margin-bottom: var(--hp-frame-gap); }
  .ib-switch-on.home .site-header { top: calc(52px + var(--hp-frame-gap) + 8px); }
}
@media (max-width: 640px) {
  .ib-switch-on.home .site-header { top: calc(48px + var(--hp-frame-gap) + 8px); }
}
@media (max-width: 782px) {
  .admin-bar.ib-switch-on.home .site-header { top: calc(46px + 52px + var(--hp-frame-gap) + 8px); }
}

/* Boutons de réservation */
.hp-hero-btns, .hp-villa-btns { display: flex; flex-wrap: wrap; gap: .6rem; }
.hp-btn-teal { background: #2a7c6f; color: #fff; }
.hp-btn-teal:hover { background: #1c534a; color: #fff; }
.hp-btn-ghost { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hp-btn-ghost:hover { background: #fff; color: var(--hp-ink); }

/* Accueil version 1 : même sigle agrandi, posé sur le hero */
.home .header-inner { align-items: start; }
.home .brand img { filter: none; }
.home .brand img { height: 112px; width: 112px; }
@media (max-width: 860px) { .home .brand img { height: 76px; width: 76px; } }
.home .header-inner { align-items: center; }
.home .brand { align-self: start; }
.hp-hero-l1 { top: clamp(9.5rem, 22%, 12rem); }
@media (max-width: 860px) { .hp-hero-l1 { top: 7.5rem; } .hp-hero-l2 { top: calc(7.5rem + 1em); } }
@media (max-width: 860px) {
  .home .header-inner { flex-wrap: nowrap; }
  .home .site-header.is-open .header-inner, .home .site-header.is-search .header-inner { flex-wrap: wrap; }
  .home .header-cta { margin-left: auto !important; }
  .home .search-toggle, .home .nav-toggle { margin-left: .25rem !important; flex: none; }
}
@media (max-width: 860px) {
  .home .brand, .home .brand img { flex: none; }
  .home .site-header.is-open .primary-nav, .home .site-header.is-search .search-form { order: 10; flex-basis: 100%; }
}
@media (max-width: 860px) {
  .home .header-inner { column-gap: .3rem !important; }
  .home .brand img { height: 68px !important; width: 68px !important; }
  .home .header-cta { padding: .5rem .9rem; font-size: .82rem; }
  .home .search-toggle { width: 36px; height: 36px; }
}
