/* ============================================================
   KRISTOU COUCOU BEACH — styles.css
   Palette sampled directly from the logo:
   deep pine green (#3E5D49) on warm cream (#FFF7EC).
   ============================================================ */

:root {
  /* --- Brand palette (from the logo) --- */
  --green:        #3E5D49;   /* sampled wordmark green */
  --green-dark:   #2A4234;   /* deeper shade for header/footer */
  --green-deep:   #1E3126;   /* darkest, for text on cream */
  --green-light:  #6E8C77;   /* muted sage */
  --green-soft:   #AFC3B4;   /* pale sage for lines/hover */
  --cream:        #FFF7EC;   /* sampled background */
  --cream-2:      #F4EBDC;   /* slightly deeper cream */
  --white:        #FFFFFF;
  --sand:         #D6A85B;   /* warm accent, harmonizes with cream */
  --sand-dark:    #BC9042;
  --ink:          #24312A;   /* near-black green for body text */
  --muted:        #5F6E63;   /* muted body text */

  --shadow-sm: 0 4px 14px rgba(30, 49, 38, .08);
  --shadow-md: 0 12px 34px rgba(30, 49, 38, .12);
  --shadow-lg: 0 24px 60px rgba(30, 49, 38, .18);

  --radius:    22px;
  --radius-sm: 14px;
  --radius-lg: 30px;

  --header-h: 84px;
  --maxw: 1200px;

  --font-head: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Jost', 'Segoe UI', system-ui, sans-serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------------- Base ---------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, iframe { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: .2px; }

section[id] { scroll-margin-top: var(--header-h); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-cream { background: var(--cream-2); }

/* ---------------- Eyebrow + titles ---------------- */
.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 3.5px;
  font-size: .78rem;
  font-weight: 500;
  color: var(--sand-dark);
  margin: 0 0 14px;
}
.eyebrow-light { color: var(--sand); }
.section-title {
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  color: var(--green-deep);
  margin-bottom: 18px;
}
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head-sm { margin-top: 84px; margin-bottom: 40px; }
.section-intro { color: var(--muted); font-size: 1.08rem; margin: 0; }
.lead { color: var(--muted); font-size: 1.06rem; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .96rem;
  letter-spacing: .4px;
  padding: 14px 30px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .3s var(--ease), background .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
  will-change: transform;
}
.btn:focus-visible { outline: 3px solid var(--sand); outline-offset: 3px; }
.btn-primary { background: var(--green); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--green-dark); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.btn-lg { padding: 17px 40px; font-size: 1.05rem; }
.btn-outline { background: transparent; border-color: var(--green); color: var(--green-dark); }
.btn-outline:hover { background: var(--green); color: var(--white); transform: translateY(-3px); }

/* ---------------- Header ---------------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  transition: background .45s var(--ease), box-shadow .45s var(--ease), height .3s var(--ease);
  background: transparent;
}
.site-header.scrolled {
  background: var(--green);
  box-shadow: 0 6px 24px rgba(30, 49, 38, .22);
}
.header-inner {
  max-width: var(--maxw); margin: 0 auto; height: 100%;
  padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.brand-logo { height: 62px; width: auto; transition: height .3s var(--ease); filter: drop-shadow(0 2px 6px rgba(0,0,0,.35)); }
.site-header.scrolled .brand-logo { height: 54px; filter: none; }

.main-nav { display: flex; gap: 6px; }
.nav-link {
  position: relative;
  color: var(--white);
  font-size: .95rem; font-weight: 400; letter-spacing: .5px;
  padding: 8px 14px; border-radius: 999px;
  text-shadow: 0 1px 6px rgba(0,0,0,.35);
  transition: color .25s, background .25s;
}
.nav-link::after {
  content: ""; position: absolute; left: 50%; bottom: 4px; transform: translateX(-50%);
  width: 0; height: 2px; background: var(--sand); transition: width .3s var(--ease);
}
.nav-link:hover::after, .nav-link.active::after { width: 22px; }
.site-header.scrolled .nav-link { text-shadow: none; }

.header-actions { display: flex; align-items: center; gap: 12px; }
.btn-reserve {
  background: var(--sand); color: var(--green-deep);
  padding: 11px 24px; border-radius: 999px; font-weight: 600; font-size: .92rem;
  box-shadow: 0 6px 18px rgba(214,168,91,.35);
  transition: transform .3s var(--ease), background .3s var(--ease);
}
.btn-reserve:hover { background: var(--sand-dark); transform: translateY(-2px); }

.social-icon {
  width: 40px; height: 40px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.35);
  color: var(--white);
  transition: background .3s var(--ease), transform .3s var(--ease), color .3s;
  backdrop-filter: blur(4px);
}
.social-icon svg { width: 19px; height: 19px; fill: currentColor; }
.social-icon:hover { background: var(--sand); color: var(--green-deep); transform: translateY(-2px) rotate(-4deg); border-color: var(--sand); }
.site-header.scrolled .social-icon { background: rgba(255,255,255,.14); }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  width: 46px; height: 46px; border: none; border-radius: 12px;
  background: rgba(255,255,255,.16); cursor: pointer;
  align-items: center; justify-content: center;
}
.hamburger span { width: 22px; height: 2px; background: var(--white); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: var(--header-h) 0 auto 0; z-index: 99;
  background: var(--green); padding: 24px;
  transform: translateY(-120%); transition: transform .45s var(--ease);
  box-shadow: 0 20px 40px rgba(0,0,0,.3);
  display: flex; flex-direction: column; gap: 6px;
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu nav { display: flex; flex-direction: column; }
.m-link { display: block; color: var(--white); padding: 14px 8px; font-size: 1.1rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.m-reserve { margin-top: 18px; }
.m-socials { display: flex; gap: 12px; justify-content: center; margin-top: 18px; }

/* ---------------- HERO ---------------- */
.hero { position: relative; height: 100vh; min-height: 620px; overflow: hidden; display: flex; align-items: center; }
.hero-slides { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.3s var(--ease); }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(30,49,38,.78) 0%, rgba(30,49,38,.28) 45%, rgba(30,49,38,.42) 100%),
    linear-gradient(to right, rgba(30,49,38,.45), rgba(30,49,38,.05));
}
.hero-content { position: relative; z-index: 3; max-width: 760px; margin: 0 auto; padding: 0 24px; text-align: center; color: var(--white); }
.hero-title { font-size: clamp(2.8rem, 8vw, 5.6rem); font-weight: 700; text-shadow: 0 4px 26px rgba(0,0,0,.4); margin-bottom: 18px; }
.hero-sub { font-size: clamp(1rem, 2.2vw, 1.28rem); font-weight: 300; margin: 0 auto 34px; max-width: 620px; text-shadow: 0 2px 14px rgba(0,0,0,.4); }

.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  width: 54px; height: 54px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.5); background: rgba(30,49,38,.28);
  color: var(--white); cursor: pointer; backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  transition: background .3s, transform .3s;
}
.hero-arrow svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hero-arrow:hover { background: var(--sand); color: var(--green-deep); }
.hero-prev { left: 24px; }
.hero-next { right: 24px; }
.hero-arrow:hover { transform: translateY(-50%) scale(1.08); }

.hero-dots { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 4; display: flex; gap: 10px; }
.hero-dot { width: 11px; height: 11px; border-radius: 50%; border: none; background: rgba(255,255,255,.45); cursor: pointer; transition: background .3s, transform .3s; padding: 0; }
.hero-dot.active { background: var(--sand); transform: scale(1.25); }

/* ---------------- Split (À propos) ---------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split-media { position: relative; }
.ratio-media {
  width: 100%; aspect-ratio: 4/5; object-fit: cover;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
.split-media-inset {
  position: absolute; right: -22px; bottom: -30px;
  width: 45%; aspect-ratio: 3/4; object-fit: cover;
  border-radius: var(--radius); border: 6px solid var(--cream);
  box-shadow: var(--shadow-md);
}
.split-text .section-title { text-align: left; }
.split-text .lead { margin-bottom: 30px; }

/* ---------------- Features ---------------- */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.feature-card {
  background: var(--white); border-radius: var(--radius);
  padding: 38px 26px; text-align: center;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(62,93,73,.08);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.feature-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.feature-badge {
  width: 74px; height: 74px; margin: 0 auto 22px;
  border-radius: 20px; /* rounded-square badge (distinct from reference circles) */
  background: linear-gradient(150deg, var(--green) 0%, var(--green-light) 100%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 22px rgba(62,93,73,.28);
  transform: rotate(-6deg);
  transition: transform .4s var(--ease);
}
.feature-card:hover .feature-badge { transform: rotate(0deg) scale(1.05); }
.feature-badge svg { width: 36px; height: 36px; fill: none; stroke: var(--white); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transform: rotate(6deg); }
.feature-card h3 { font-size: 1.5rem; color: var(--green-deep); margin-bottom: 10px; }
.feature-card p { color: var(--muted); font-size: .98rem; margin: 0; }

/* ---------------- Ambient video banner ---------------- */
.exp-banner {
  position: relative; margin-top: 64px;
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-md); aspect-ratio: 21/8;
}
.exp-banner video { width: 100%; height: 100%; object-fit: cover; }
.exp-banner-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(30,49,38,.7), rgba(30,49,38,.15) 60%);
  display: flex; align-items: flex-end; padding: 40px;
}
.exp-banner-text {
  color: var(--white); font-family: var(--font-head); font-size: clamp(1.4rem, 3vw, 2.3rem);
  font-weight: 600; max-width: 640px; margin: 0; text-shadow: 0 2px 16px rgba(0,0,0,.4);
}
@media (max-width: 640px) { .exp-banner { aspect-ratio: 4/5; } .exp-banner-overlay { padding: 24px; } }

/* ---------------- Service cards ---------------- */
.cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.svc-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(62,93,73,.08);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.svc-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.svc-img { aspect-ratio: 4/5; overflow: hidden; }
.svc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.svc-card:hover .svc-img img { transform: scale(1.08); }
.svc-body { padding: 22px 22px 26px; }
.svc-body h3 { font-size: 1.55rem; color: var(--green-deep); margin-bottom: 8px; }
.svc-body p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------------- Gallery ---------------- */
.gallery-grid { columns: 3; column-gap: 18px; }
.gallery-item {
  break-inside: avoid; margin-bottom: 18px; border-radius: var(--radius-sm); overflow: hidden;
  cursor: pointer; position: relative; box-shadow: var(--shadow-sm);
}
.gallery-item img { width: 100%; height: auto; display: block; transition: transform .7s var(--ease); }
.gallery-item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(30,49,38,.45), transparent 55%);
  opacity: 0; transition: opacity .4s;
}
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item:hover::after { opacity: 1; }
.gallery-item.is-hidden { display: none; }
.gallery-more-wrap { text-align: center; margin-top: 36px; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center;
  background: rgba(20,32,26,.94); padding: 40px;
}
.lightbox.open { display: flex; }
.lb-img { max-width: 90vw; max-height: 86vh; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); }
.lb-close { position: absolute; top: 22px; right: 30px; background: none; border: none; color: var(--white); font-size: 2.6rem; line-height: 1; cursor: pointer; }
.lb-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 56px; height: 56px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.5);
  background: rgba(255,255,255,.08); color: var(--white); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.lb-arrow svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lb-arrow:hover { background: var(--sand); color: var(--green-deep); }
.lb-prev { left: 24px; } .lb-next { right: 24px; }

/* ---------------- Forfaits ---------------- */
.forfaits { background: var(--cream); }
.forfaits-panel {
  background: #EDE7DC; /* soft grey/greige block per screenshot */
  border-radius: var(--radius-lg);
  padding: 64px 44px;
  box-shadow: inset 0 0 0 1px rgba(62,93,73,.06);
}
.forfaits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.forfait-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(62,93,73,.08);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.forfait-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.forfait-card.featured { border: 2px solid var(--sand); }
.forfait-img { aspect-ratio: 3/2; overflow: hidden; position: relative; }
.forfait-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.forfait-card:hover .forfait-img img { transform: scale(1.07); }
.forfait-tag {
  position: absolute; top: 14px; left: 14px;
  background: var(--sand); color: var(--green-deep);
  font-size: .72rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
}
.forfait-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.forfait-body h3 { font-size: 1.7rem; color: var(--green-deep); margin-bottom: 6px; }
.forfait-price { font-family: var(--font-head); font-size: 2rem; font-weight: 700; color: var(--green); margin: 4px 0 6px; }
.forfait-price .cur { font-size: 1.1rem; font-weight: 600; }
.forfait-extra { font-size: .82rem; color: var(--sand-dark); font-weight: 500; margin: 0 0 12px; }
.forfait-desc { color: var(--muted); font-size: .93rem; margin: 0 0 22px; flex: 1; }
.forfait-card .btn { width: 100%; }

.forfaits-note { text-align: center; margin: 40px 0 0; color: var(--muted); font-size: .95rem; font-style: italic; }

/* ---------------- Contact ---------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: stretch; }
.contact-info { display: flex; flex-direction: column; gap: 28px; }
.info-row { display: flex; gap: 20px; align-items: flex-start; }
.info-badge {
  flex: none; width: 58px; height: 58px; border-radius: 18px;
  background: var(--green); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 18px rgba(62,93,73,.25);
  transition: transform .35s var(--ease), background .35s;
}
.info-row:hover .info-badge { transform: translateY(-4px) rotate(-6deg); background: var(--sand); color: var(--green-deep); }
.info-badge svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.info-row h3 { font-size: 1.4rem; color: var(--green-deep); margin-bottom: 2px; }
.info-row p { color: var(--muted); margin: 0; }
.info-row a { color: var(--green); font-weight: 500; }
.contact-info .btn { align-self: flex-start; margin-top: 6px; }

.contact-map { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); min-height: 420px; }
.contact-map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; }
.map-link {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  background: var(--white); color: var(--green-dark); font-weight: 500; font-size: .9rem;
  padding: 10px 22px; border-radius: 999px; box-shadow: var(--shadow-md);
  transition: background .3s, color .3s;
}
.map-link:hover { background: var(--green); color: var(--white); }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--green-dark); color: var(--cream); padding: 56px 0 34px; }
.footer-inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.footer-logo { height: 72px; width: auto; }
.footer-tag { color: rgba(255,247,236,.8); margin: 0; max-width: 460px; }
.footer-socials { display: flex; gap: 12px; }
.footer-copy { color: rgba(255,247,236,.55); font-size: .85rem; margin: 8px 0 0; }

/* ---------------- Reveal animation ---------------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* ---------------- Responsive ---------------- */
@media (max-width: 980px) {
  .main-nav, .header-actions { display: none; }
  .hamburger { display: flex; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split-media-inset { width: 38%; }
  .split-text .section-title { text-align: center; }
  .split-text { text-align: center; }
  .split-text .btn { margin: 0 auto; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .forfaits-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .gallery-grid { columns: 2; }
}
@media (max-width: 640px) {
  .section { padding: 68px 0; }
  .section-head { margin-bottom: 40px; }
  .section-head-sm { margin-top: 60px; }
  .features-grid, .cards-grid, .forfaits-grid { grid-template-columns: 1fr; }
  .gallery-grid { columns: 1; }
  .forfaits-panel { padding: 40px 20px; }
  .hero-arrow { width: 44px; height: 44px; }
  .hero-prev { left: 12px; } .hero-next { right: 12px; }
  .split-media-inset { display: none; }
  :root { --header-h: 72px; }
  .brand-logo { height: 50px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-slide { transition: opacity .3s; }
  * { animation-duration: .001ms !important; }
}
