/* ==========================================================================
   Les Bungalows Dicilaba — Île Sainte-Marie, Madagascar
   Design system : « Sable & Lagon »
   ========================================================================== */

/* --- 1. Tokens ----------------------------------------------------------- */
:root {
  /* Surfaces */
  --sand:        #F7F2E9;
  --sand-2:      #EFE6D6;
  --paper:       #FFFFFF;
  --deep:        #0E2A30;   /* section sombre */
  --deep-2:      #14383F;

  /* Texte */
  --ink:         #14262B;
  --ink-muted:   #3D5158;
  --on-deep:     #F3EDE2;
  --on-deep-mut: #B9CBCE;

  /* Marque */
  --lagoon:      #146D77;
  --lagoon-deep: #0C464E;
  --hibiscus:    #A83C22;
  --raffia:      #B0865A;

  /* Lignes & ombres */
  --line:        rgba(20, 38, 43, .14);
  --line-strong: rgba(20, 38, 43, .28);
  --shadow-sm:   0 1px 2px rgba(14, 42, 48, .06), 0 2px 8px rgba(14, 42, 48, .06);
  --shadow-md:   0 4px 12px rgba(14, 42, 48, .08), 0 12px 32px rgba(14, 42, 48, .10);
  --shadow-lg:   0 8px 24px rgba(14, 42, 48, .12), 0 32px 64px rgba(14, 42, 48, .16);

  /* Rythme (base 8) */
  --sp-1: .5rem;  --sp-2: 1rem;   --sp-3: 1.5rem; --sp-4: 2rem;
  --sp-5: 3rem;   --sp-6: 4rem;   --sp-7: 6rem;   --sp-8: 8rem;

  --radius-sm: 6px;
  --radius:    14px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --container: 1240px;
  --gutter: clamp(1.25rem, 5vw, 4rem);

  /* Motion */
  --ease-out: cubic-bezier(.22, .61, .36, 1);
  --dur:      220ms;

  /* Étages */
  --z-base: 1; --z-sticky: 40; --z-header: 60; --z-overlay: 100;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --sand:        #0B1A1E;
    --sand-2:      #112A30;
    --paper:       #12292F;
    --deep:        #081418;
    --deep-2:      #102A30;

    --ink:         #EDE6D8;
    --ink-muted:   #A9BFC3;
    --on-deep:     #EDE6D8;
    --on-deep-mut: #9FB6BA;

    --lagoon:      #55B4BA;
    --lagoon-deep: #8AD2D4;
    --hibiscus:    #E8845F;
    --raffia:      #C79C6D;

    --line:        rgba(237, 230, 216, .16);
    --line-strong: rgba(237, 230, 216, .32);
    --shadow-sm:   0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md:   0 4px 12px rgba(0, 0, 0, .45);
    --shadow-lg:   0 12px 40px rgba(0, 0, 0, .55);

    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --sand:        #0B1A1E;
  --sand-2:      #112A30;
  --paper:       #12292F;
  --deep:        #081418;
  --deep-2:      #102A30;
  --ink:         #EDE6D8;
  --ink-muted:   #A9BFC3;
  --on-deep:     #EDE6D8;
  --on-deep-mut: #9FB6BA;
  --lagoon:      #55B4BA;
  --lagoon-deep: #8AD2D4;
  --hibiscus:    #E8845F;
  --raffia:      #C79C6D;
  --line:        rgba(237, 230, 216, .16);
  --line-strong: rgba(237, 230, 216, .32);
  --shadow-sm:   0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md:   0 4px 12px rgba(0, 0, 0, .45);
  --shadow-lg:   0 12px 40px rgba(0, 0, 0, .55);
  color-scheme: dark;
}

/* --- 2. Base ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4 {
  font-family: "Fraunces", ui-serif, Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.015em;
  margin: 0 0 var(--sp-2);
  font-variation-settings: "SOFT" 20, "WONK" 0;
}

h1 { font-size: clamp(2.5rem, 7vw, 5rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.75rem); }

p { margin: 0 0 var(--sp-2); }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

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

ul { margin: 0; padding: 0; list-style: none; }

/* Les marges par défaut de figure/blockquote/dl (40 px horizontaux dans la
   plupart des navigateurs) décaleraient tous les visuels dans les grilles. */
figure, blockquote, dl, dd, figcaption { margin: 0; }

button { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--lagoon);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

::selection { background: var(--lagoon); color: #fff; }

/* --- 3. Utilitaires ------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(4rem, 10vw, 8rem); }
.section--tight { padding-block: clamp(3rem, 7vw, 5rem); }

.section--deep {
  background: var(--deep);
  color: var(--on-deep);
}
.section--deep .eyebrow { color: var(--raffia); }
.section--deep .lede,
.section--deep .prose { color: var(--on-deep-mut); }

.section--alt { background: var(--sand-2); }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: var(--sp-2); top: -100px;
  z-index: calc(var(--z-overlay) + 10);
  background: var(--lagoon); color: #fff;
  padding: .75rem 1.25rem; border-radius: var(--radius-sm);
  text-decoration: none; font-weight: 600;
  transition: top var(--dur) var(--ease-out);
}
.skip-link:focus { top: var(--sp-2); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .625rem;
  font-size: .75rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--lagoon);
  margin: 0 0 var(--sp-2);
}
.eyebrow::before {
  content: ""; width: 28px; height: 1px;
  background: currentColor; opacity: .6;
}

.lede {
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.7;
  color: var(--ink-muted);
  max-width: 62ch;
}

.prose { color: var(--ink-muted); max-width: 62ch; }

.section-head { max-width: 66ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }

/* --- 4. Boutons ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  min-height: 48px;
  padding: .875rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: .9375rem; font-weight: 600;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease-out),
              color var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out),
              transform var(--dur) var(--ease-out);
}
.btn:active { transform: scale(.975); }

.btn--primary {
  background: var(--hibiscus);
  color: #FFF8F3;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: #8F3019; box-shadow: var(--shadow-md); }
:root[data-theme="dark"] .btn--primary,
:root:not([data-theme="light"]) .btn--primary { color: #17110E; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .btn--primary { color: #FFF8F3; }
}
:root[data-theme="dark"] .btn--primary:hover { background: #F09B79; }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--ink); background: rgba(20, 38, 43, .04); }
:root[data-theme="dark"] .btn--ghost:hover { background: rgba(237, 230, 216, .07); }

.btn--ondark {
  background: rgba(255, 255, 255, .1);
  color: #fff;
  border-color: rgba(255, 255, 255, .38);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn--ondark:hover { background: rgba(255, 255, 255, .2); border-color: #fff; }

.btn--sm { min-height: 44px; padding: .625rem 1.125rem; font-size: .875rem; }

.btn .icon { width: 18px; height: 18px; flex: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); }

/* --- 5. En-tête ---------------------------------------------------------- */
.header {
  position: fixed; inset: 0 0 auto 0;
  z-index: var(--z-header);
  padding-top: env(safe-area-inset-top);
  transition: background-color 300ms var(--ease-out),
              box-shadow 300ms var(--ease-out),
              border-color 300ms var(--ease-out);
  border-bottom: 1px solid transparent;
}
.header.is-stuck {
  background: color-mix(in srgb, var(--sand) 88%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex; align-items: center; gap: var(--sp-3);
  min-height: 76px;
}

.brand {
  display: flex; align-items: center; gap: .625rem;
  text-decoration: none; margin-right: auto;
  color: #fff;
  transition: color 300ms var(--ease-out);
}
.header.is-stuck .brand { color: var(--ink); }

.brand__mark { width: 30px; height: 30px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name {
  font-family: "Fraunces", serif; font-size: 1.0625rem;
  letter-spacing: .01em;
}
.brand__sub {
  font-size: .625rem; letter-spacing: .2em;
  text-transform: uppercase; opacity: .72;
}

.nav { display: none; }
@media (min-width: 1024px) {
  .nav { display: flex; align-items: center; gap: .25rem; }
}
.nav a {
  position: relative;
  padding: .5rem .75rem;
  font-size: .875rem; font-weight: 500;
  text-decoration: none;
  color: rgba(255, 255, 255, .88);
  border-radius: var(--radius-sm);
  transition: color var(--dur) var(--ease-out);
}
.header.is-stuck .nav a { color: var(--ink-muted); }
.nav a::after {
  content: ""; position: absolute;
  left: .75rem; right: .75rem; bottom: .25rem; height: 1.5px;
  background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease-out);
}
.nav a:hover, .nav a[aria-current="true"] { color: #fff; }
.header.is-stuck .nav a:hover,
.header.is-stuck .nav a[aria-current="true"] { color: var(--lagoon); }
.nav a:hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); }

.header__cta { display: none; }
@media (min-width: 640px) { .header__cta { display: inline-flex; } }

/* Bouton menu mobile */
.burger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: var(--radius-pill);
  cursor: pointer; color: #fff;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background-color var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out),
              color var(--dur) var(--ease-out);
}
.header.is-stuck .burger {
  background: transparent; border-color: var(--line-strong); color: var(--ink);
}
.burger:hover { background: rgba(255, 255, 255, .24); }
.header.is-stuck .burger:hover { background: rgba(20, 38, 43, .06); }
@media (min-width: 1024px) { .burger { display: none; } }
.burger .icon { width: 22px; height: 22px; }

/* Panneau mobile */
.mobile-nav {
  position: fixed; inset: 0;
  z-index: var(--z-overlay);
  display: grid; grid-template-rows: auto 1fr auto;
  background: var(--sand);
  padding: calc(env(safe-area-inset-top) + 1rem) var(--gutter)
           calc(env(safe-area-inset-bottom) + 2rem);
  visibility: hidden; opacity: 0;
  transition: opacity 240ms var(--ease-out), visibility 240ms;
}
.mobile-nav[data-open="true"] { visibility: visible; opacity: 1; }
.mobile-nav__top { display: flex; justify-content: flex-end; }
.mobile-nav__close {
  width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill); cursor: pointer;
}
.mobile-nav__close .icon { width: 22px; height: 22px; }
.mobile-nav ul {
  display: flex; flex-direction: column; justify-content: center;
  gap: .25rem;
}
.mobile-nav ul a {
  display: block;
  font-family: "Fraunces", serif;
  font-size: clamp(1.5rem, 6vw, 2.25rem);
  padding: .5rem 0;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.mobile-nav__foot { display: grid; gap: var(--sp-1); }

/* --- 6. Hero ------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 58%;
}
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  /* Deux voiles superposés : l'un vertical pour l'en-tête et le bas de page,
     l'autre horizontal pour garantir le contraste du texte à gauche. */
  background:
    linear-gradient(100deg, rgba(6, 22, 26, .80) 0%, rgba(6, 22, 26, .58) 34%, rgba(6, 22, 26, .14) 62%, transparent 82%),
    linear-gradient(180deg, rgba(6, 22, 26, .58) 0%, rgba(6, 22, 26, .12) 30%, rgba(6, 22, 26, .18) 55%, rgba(6, 22, 26, .72) 100%);
}
@media (max-width: 899px) {
  .hero__scrim {
    background:
      linear-gradient(180deg, rgba(6, 22, 26, .58) 0%, rgba(6, 22, 26, .22) 26%, rgba(6, 22, 26, .55) 60%, rgba(6, 22, 26, .86) 100%);
  }
}

.hero__inner {
  width: 100%;
  padding-block: clamp(6rem, 14vh, 9rem) clamp(3rem, 8vh, 5rem);
  color: #fff;
}

.hero__badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem .875rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .32);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: .8125rem; font-weight: 600; letter-spacing: .02em;
  margin-bottom: var(--sp-3);
}
.hero__badge .icon { width: 16px; height: 16px; color: #FFC94A; }

.hero h1 {
  color: #fff;
  max-width: 15ch;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .35);
  margin-bottom: var(--sp-3);
}
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: block; }

.hero__lede {
  font-size: clamp(1.0625rem, 1.6vw, 1.3125rem);
  color: rgba(255, 255, 255, .94);
  max-width: 46ch;
  margin-bottom: var(--sp-4);
  text-shadow: 0 1px 12px rgba(0, 0, 0, .4);
}

.hero__meta {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: .5rem 1.25rem;
  margin-top: var(--sp-4);
  font-size: .875rem;
  color: rgba(255, 255, 255, .86);
}
.hero__meta span { display: inline-flex; align-items: center; gap: .4375rem; }
.hero__meta .icon { width: 16px; height: 16px; opacity: .85; }

.hero__scroll {
  position: absolute; left: 50%; bottom: calc(1.25rem + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: none;
  align-items: center; gap: .5rem;
  font-size: .6875rem; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255, 255, 255, .8);
  text-decoration: none;
}
@media (min-width: 768px) { .hero__scroll { display: inline-flex; } }
.hero__scroll .icon { width: 16px; height: 16px; }

/* Intro du hero — animations CSS : elles aboutissent toujours à l'état final,
   même si le JS ou le CDN d'animation ne se charge pas. */
@keyframes dcl-line-up {
  from { transform: translateY(110%); }
  to   { transform: translateY(0); }
}
@keyframes dcl-rise-in {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes dcl-ken-burns {
  from { transform: scale(1.08); }
  to   { transform: scale(1); }
}

.hero__media img { animation: dcl-ken-burns 2600ms var(--ease-out) both; }

.hero h1 .line > span { animation: dcl-line-up 1100ms var(--ease-out) both; }
.hero h1 .line:nth-child(1) > span { animation-delay: 150ms; }
.hero h1 .line:nth-child(2) > span { animation-delay: 235ms; }
.hero h1 .line:nth-child(3) > span { animation-delay: 320ms; }

.hero__badge,
.hero__lede,
.hero .btn-row,
.hero__meta { animation: dcl-rise-in 900ms var(--ease-out) both; }
.hero__badge   { animation-delay: 60ms; }
.hero__lede    { animation-delay: 500ms; }
.hero .btn-row { animation-delay: 590ms; }
.hero__meta    { animation-delay: 680ms; }

.hero__scroll { animation: dcl-rise-in 900ms var(--ease-out) 900ms both; }

/* --- 7. Bandeau de chiffres --------------------------------------------- */
.stats {
  background: var(--paper);
  border-block: 1px solid var(--line);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4) var(--sp-2);
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}
@media (min-width: 860px) { .stats__grid { grid-template-columns: repeat(4, 1fr); } }
.stat { text-align: center; }
.stat__value {
  font-family: "Fraunces", serif;
  font-size: clamp(2.25rem, 4.5vw, 3rem);
  line-height: 1;
  color: var(--lagoon);
  display: block;
  font-variant-numeric: tabular-nums;
}
.stat__label {
  display: block;
  margin-top: .625rem;
  font-size: .8125rem;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-muted);
}

/* --- 8. Blocs éditoriaux ------------------------------------------------- */
.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
/* Quand la colonne texte est nettement plus courte que les images,
   on l'aligne en haut pour éviter un grand vide. */
.split--top { align-items: start; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--wide-media { grid-template-columns: .85fr 1.15fr; }
  .split--reverse .split__media { order: 2; }
}

.split__media { position: relative; }
.figure {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  background: var(--sand-2);
}
.figure img { width: 100%; height: 100%; object-fit: cover; }
.figure--tall { aspect-ratio: 4 / 5; }
.figure--wide { aspect-ratio: 16 / 10; }
.figure--square { aspect-ratio: 1 / 1; }

.figure__caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2.5rem 1.25rem 1rem;
  background: linear-gradient(180deg, transparent, rgba(6, 22, 26, .78));
  color: #fff; font-size: .8125rem; letter-spacing: .04em;
}

.stack-media {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-2);
}
.stack-media > *:first-child { grid-column: 1 / -1; }

/* Liste de prestations */
.feature-list { display: grid; gap: var(--sp-2); margin-top: var(--sp-4); }
@media (min-width: 560px) { .feature-list { grid-template-columns: repeat(2, 1fr); } }
.feature {
  display: flex; gap: .75rem; align-items: flex-start;
  font-size: .9375rem;
}
.feature .icon {
  width: 20px; height: 20px; flex: none;
  margin-top: 2px;
  color: var(--lagoon);
}
.section--deep .feature .icon { color: var(--raffia); }
.feature strong { display: block; font-weight: 600; }
.feature span { color: var(--ink-muted); font-size: .875rem; }
.section--deep .feature span { color: var(--on-deep-mut); }

/* --- 9. Fiche du bungalow ----------------------------------------------- */
.room-facts {
  display: flex; flex-wrap: wrap; gap: .5rem;
  margin-bottom: var(--sp-3);
}
.chip {
  display: inline-flex; align-items: center; gap: .4375rem;
  padding: .4375rem .8125rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  font-size: .8125rem; font-weight: 500;
  background: var(--paper);
}
.section--deep .chip {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .22);
}
.chip .icon { width: 15px; height: 15px; color: var(--lagoon); }
.section--deep .chip .icon { color: var(--raffia); }

.bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-2);
}
@media (min-width: 900px) {
  .bento { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 180px; }
  .bento > :nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .bento > :nth-child(2) { grid-column: span 2; grid-row: span 1; }
  .bento > :nth-child(3) { grid-column: span 1; grid-row: span 1; }
  .bento > :nth-child(4) { grid-column: span 1; grid-row: span 1; }
}
.bento .figure { height: 100%; aspect-ratio: 4 / 3; }
@media (min-width: 900px) { .bento .figure { aspect-ratio: auto; } }

/* --- 10. Cartes expériences --------------------------------------------- */
.cards {
  display: grid; gap: var(--sp-3);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--sp-3);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.section--deep .card {
  background: rgba(255, 255, 255, .05);
  border-color: rgba(255, 255, 255, .14);
  box-shadow: none;
}
.card__icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--lagoon) 12%, transparent);
  color: var(--lagoon);
  margin-bottom: var(--sp-2);
}
.section--deep .card__icon {
  background: rgba(176, 134, 90, .18); color: var(--raffia);
}
.card__icon .icon { width: 22px; height: 22px; }
.card h3 { font-size: 1.1875rem; margin-bottom: .5rem; }
.card p { font-size: .9375rem; color: var(--ink-muted); margin: 0; }
.section--deep .card p { color: var(--on-deep-mut); }
.card__season {
  display: inline-block; margin-top: var(--sp-2);
  font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--hibiscus); font-weight: 600;
}

/* --- 11. Galerie --------------------------------------------------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-flow: row dense;
  gap: var(--sp-1);
}
@media (min-width: 700px)  { .gallery { grid-template-columns: repeat(3, 1fr); gap: var(--sp-2); } }
@media (min-width: 1100px) { .gallery { grid-template-columns: repeat(4, 1fr); } }

.gallery__item {
  position: relative;
  display: block;
  padding: 0; border: 0;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--sand-2);
  cursor: pointer;
  aspect-ratio: 1 / 1;
}
@media (min-width: 700px) { .gallery__item { border-radius: var(--radius); } }
@media (min-width: 700px) {
  .gallery__item--tall { grid-row: span 2; aspect-ratio: auto; }
}
.gallery__item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 600ms var(--ease-out), filter 300ms var(--ease-out);
}
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(6, 22, 26, .5));
  opacity: 0;
  transition: opacity var(--dur) var(--ease-out);
}
.gallery__item:hover::after, .gallery__item:focus-visible::after { opacity: 1; }
.gallery__cap {
  position: absolute; left: .75rem; right: .75rem; bottom: .625rem;
  z-index: 1;
  color: #fff; font-size: .75rem; text-align: left;
  opacity: 0; transform: translateY(6px);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.gallery__item:hover .gallery__cap,
.gallery__item:focus-visible .gallery__cap { opacity: 1; transform: none; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  z-index: var(--z-overlay);
  display: grid; grid-template-rows: auto 1fr auto;
  background: rgba(6, 16, 19, .96);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  visibility: hidden; opacity: 0;
  transition: opacity 200ms var(--ease-out), visibility 200ms;
  padding: calc(env(safe-area-inset-top) + .75rem) .75rem
           calc(env(safe-area-inset-bottom) + .75rem);
}
.lightbox[data-open="true"] { visibility: visible; opacity: 1; }
.lightbox__bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-2); color: rgba(255, 255, 255, .8);
  font-size: .8125rem; font-variant-numeric: tabular-nums;
  padding-inline: .5rem;
}
.lightbox__stage {
  display: grid; place-items: center;
  position: relative; min-height: 0;
}
.lightbox__stage img {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
}
.lightbox__cap {
  text-align: center; color: rgba(255, 255, 255, .78);
  font-size: .875rem; padding: .75rem 1rem 0;
  min-height: 2.5rem;
}
.lb-btn {
  width: 48px; height: 48px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: var(--radius-pill);
  color: #fff; cursor: pointer;
  transition: background-color var(--dur) var(--ease-out);
}
.lb-btn:hover { background: rgba(255, 255, 255, .22); }
.lb-btn .icon { width: 22px; height: 22px; }
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 2;
}
.lightbox__nav--prev { left: .25rem; }
.lightbox__nav--next { right: .25rem; }
@media (min-width: 768px) {
  .lightbox { padding: 1.5rem; }
  .lightbox__nav--prev { left: 1rem; }
  .lightbox__nav--next { right: 1rem; }
}

/* --- 12. Avis ------------------------------------------------------------ */
.reviews {
  display: grid; gap: var(--sp-3);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
.review {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--sp-3);
  display: flex; flex-direction: column; gap: var(--sp-2);
  box-shadow: var(--shadow-sm);
}
.review__stars { display: flex; gap: 2px; color: #E8A33D; }
.review__stars .icon { width: 16px; height: 16px; }
.review blockquote {
  margin: 0; font-size: .9375rem; line-height: 1.7;
  color: var(--ink);
}
.review figcaption {
  margin-top: auto;
  display: flex; align-items: baseline; gap: .5rem;
  font-size: .8125rem; color: var(--ink-muted);
  padding-top: var(--sp-1);
  border-top: 1px solid var(--line);
}
.review figcaption b { color: var(--ink); font-weight: 600; }

.award {
  display: grid; gap: var(--sp-4);
  align-items: center;
  grid-template-columns: 1fr;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
@media (min-width: 800px) { .award { grid-template-columns: .9fr 1.1fr; gap: 0; } }
.award__media { aspect-ratio: 4 / 3; }
@media (min-width: 800px) { .award__media { aspect-ratio: auto; height: 100%; min-height: 340px; } }
.award__media img { width: 100%; height: 100%; object-fit: cover; }
.award__body { padding: var(--sp-4) var(--sp-4) var(--sp-4); }
@media (min-width: 800px) { .award__body { padding: clamp(2rem, 4vw, 3.5rem); } }
.award__score {
  display: inline-flex; align-items: baseline; gap: .375rem;
  font-family: "Fraunces", serif; font-size: 3rem; line-height: 1;
  color: var(--lagoon);
}
.award__score small { font-size: 1rem; color: var(--ink-muted); font-family: "Inter", sans-serif; }

/* --- 13. Hôtes ----------------------------------------------------------- */
.hosts { align-items: center; }
.hosts__signature {
  font-family: "Fraunces", serif;
  font-size: 1.5rem;
  color: var(--raffia);
  margin-top: var(--sp-3);
}

/* --- 14. Infos pratiques ------------------------------------------------- */
.info-grid {
  display: grid; gap: var(--sp-3);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}
.info {
  padding: var(--sp-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.info dt {
  display: flex; align-items: center; gap: .5rem;
  font-size: .75rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-muted); margin-bottom: .625rem;
}
.info dt .icon { width: 16px; height: 16px; color: var(--lagoon); }
.info dd { margin: 0; font-size: .9375rem; line-height: 1.6; }
.info dd + dd { margin-top: .375rem; }
.info dd b { font-weight: 600; }

.map-link {
  display: inline-flex; align-items: center; gap: .5rem;
  margin-top: .75rem;
  font-size: .875rem; font-weight: 600; color: var(--lagoon);
  text-decoration: none;
}
.map-link:hover { text-decoration: underline; }
.map-link .icon { width: 16px; height: 16px; }

/* --- 14 bis. Bande de distances ----------------------------------------- */
.distances {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: var(--sp-3) var(--sp-2);
  padding-block: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: clamp(2rem, 4vw, 3rem);
  border-block: 1px solid var(--line);
}

.distance { text-align: center; }

.distance .icon {
  width: 24px; height: 24px;
  color: var(--lagoon);
  margin: 0 auto .625rem;
  display: block;
}

.distance__value {
  display: block;
  font-family: "Fraunces", ui-serif, Georgia, serif;
  font-size: clamp(1.25rem, 2.2vw, 1.625rem);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.distance__label {
  display: block;
  margin-top: .375rem;
  font-size: .8125rem;
  line-height: 1.4;
  color: var(--ink-muted);
}

/* --- 15. CTA final ------------------------------------------------------- */
.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  text-align: center;
}
.cta__media { position: absolute; inset: 0; z-index: -2; }
.cta__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(6, 22, 26, .74), rgba(6, 22, 26, .82));
}
.cta h2 { color: #fff; }
.cta .lede { color: rgba(255, 255, 255, .9); margin-inline: auto; }
.cta .btn-row { justify-content: center; margin-top: var(--sp-4); }
.cta__note {
  margin-top: var(--sp-3);
  font-size: .8125rem; color: rgba(255, 255, 255, .72);
}

/* --- 15 bis. Quand venir (saisons) --------------------------------------- */
.seasons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: var(--sp-2);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.season {
  padding: var(--sp-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.season--now { border-color: var(--lagoon); box-shadow: 0 0 0 1px var(--lagoon); }

.season__months {
  display: block;
  font-size: .6875rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--lagoon);
  margin-bottom: .5rem;
}
.season h4 {
  font-family: "Fraunces", ui-serif, Georgia, serif;
  font-weight: 400; font-size: 1.125rem;
  margin: 0 0 .375rem;
}
.season p { font-size: .875rem; color: var(--ink-muted); margin: 0; }

.seasons__note {
  margin-top: var(--sp-2);
  font-size: .8125rem;
  color: var(--ink-muted);
}

/* --- 15 ter. Réserver en direct ------------------------------------------ */
.direct { align-items: start; }

.contact-list { display: grid; gap: var(--sp-2); margin-top: var(--sp-4); }

.contact-row {
  display: flex; align-items: center; gap: var(--sp-2);
  min-height: 64px;
  padding: .875rem var(--sp-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  text-decoration: none;
  transition: border-color var(--dur) var(--ease-out),
              transform var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out);
}
.contact-row:hover {
  border-color: var(--lagoon);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.contact-row:active { transform: none; }

.contact-row__icon {
  width: 40px; height: 40px; flex: none;
  display: grid; place-items: center;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--lagoon) 12%, transparent);
  color: var(--lagoon);
}
.contact-row__icon .icon { width: 21px; height: 21px; }
.contact-row--wa .contact-row__icon {
  background: color-mix(in srgb, #25D366 20%, transparent);
  color: #128C4A;
}
:root[data-theme="dark"] .contact-row--wa .contact-row__icon { color: #4BE38A; }

.contact-row__body { min-width: 0; }
.contact-row__label {
  display: block; font-weight: 600; font-size: .9375rem;
}
.contact-row__value {
  display: block; font-size: .875rem; color: var(--ink-muted);
  overflow-wrap: anywhere;
}
.contact-row__go { margin-left: auto; color: var(--ink-muted); }
.contact-row__go .icon { width: 18px; height: 18px; }

/* Formulaire */
.booking-card {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-md);
}
.booking-card h3 { font-size: 1.375rem; margin-bottom: .375rem; }
.booking-card > p { font-size: .875rem; color: var(--ink-muted); }

.field-grid {
  display: grid; gap: var(--sp-2);
  margin-top: var(--sp-3);
}
@media (min-width: 520px) { .field-grid { grid-template-columns: 1fr 1fr; } }
.field--full { grid-column: 1 / -1; }

.field { display: flex; flex-direction: column; gap: .375rem; }
.field label { font-size: .8125rem; font-weight: 600; }
.field label .req { color: var(--hibiscus); }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: .6875rem .875rem;
  font: inherit; font-size: 1rem;   /* 16px : évite le zoom automatique sur iOS */
  color: var(--ink);
  background: var(--sand);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  transition: border-color var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out);
}
.field textarea { min-height: 104px; resize: vertical; line-height: 1.55; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--lagoon);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--lagoon) 22%, transparent);
  outline: none;
}
.field__hint { font-size: .75rem; color: var(--ink-muted); }
.field__error {
  font-size: .75rem; font-weight: 600; color: var(--hibiscus);
  display: none;
}
.field[data-invalid="true"] input,
.field[data-invalid="true"] select { border-color: var(--hibiscus); }
.field[data-invalid="true"] .field__error { display: block; }

.booking-card .btn-row { margin-top: var(--sp-3); }
/* Les libellés ne doivent pas se couper : les boutons passent à la ligne
   entiers plutôt que de casser leur texte. */
.booking-card .btn-row .btn { flex: 1 1 auto; white-space: nowrap; }

.btn--wa { background: #128C4A; color: #fff; }
.btn--wa:hover { background: #0E6F3B; }
:root[data-theme="dark"] .btn--wa { background: #1FA85C; color: #05130A; }

.booking-note {
  margin-top: var(--sp-2);
  font-size: .75rem; color: var(--ink-muted);
}

/* Repli plateformes */
.platforms {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2);
}
.platforms p { margin: 0 auto 0 0; font-size: .9375rem; color: var(--ink-muted); }

/* --- 15 quater. Réseaux sociaux ------------------------------------------ */
.socials { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: var(--sp-2); }
.social {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--radius-pill);
  color: var(--on-deep-mut);
  transition: background-color var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out),
              color var(--dur) var(--ease-out);
}
.social:hover { background: rgba(255, 255, 255, .12); border-color: #fff; color: #fff; }
.social .icon { width: 20px; height: 20px; }

/* --- 15 quinquies. Sélecteur de langue ----------------------------------- */
.lang {
  display: inline-flex; align-items: center;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-right: .5rem;
  transition: border-color 300ms var(--ease-out);
}
.header.is-stuck .lang { border-color: var(--line-strong); }
.lang a {
  min-height: 36px;
  padding: 0 .6875rem;
  display: inline-flex; align-items: center;
  font-size: .75rem; font-weight: 600; letter-spacing: .06em;
  text-decoration: none;
  color: rgba(255, 255, 255, .8);
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.header.is-stuck .lang a { color: var(--ink-muted); }
.lang a[aria-current="true"] { background: rgba(255, 255, 255, .22); color: #fff; }
.header.is-stuck .lang a[aria-current="true"] { background: var(--lagoon); color: #fff; }
.lang a:hover:not([aria-current="true"]) { background: rgba(255, 255, 255, .12); }
.header.is-stuck .lang a:hover:not([aria-current="true"]) { background: rgba(20, 38, 43, .06); }

.mobile-nav__lang { display: flex; gap: .5rem; margin-bottom: var(--sp-2); }
.mobile-nav__lang a {
  flex: 1; min-height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong); border-radius: var(--radius-pill);
  font-size: .875rem; font-weight: 600; text-decoration: none;
}
.mobile-nav__lang a[aria-current="true"] {
  background: var(--lagoon); color: #fff; border-color: var(--lagoon);
}

/* --- 16. Pied de page ---------------------------------------------------- */
.footer {
  background: var(--deep);
  color: var(--on-deep-mut);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  font-size: .875rem;
}
.footer__grid {
  display: grid; gap: var(--sp-4);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.footer h4 {
  font-family: "Inter", sans-serif;
  font-size: .75rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--on-deep); margin-bottom: var(--sp-2);
}
.footer a { color: var(--on-deep-mut); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer li + li { margin-top: .5rem; }
.footer .brand { color: var(--on-deep); margin-bottom: var(--sp-2); }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: var(--sp-2);
  justify-content: space-between; align-items: center;
  padding-top: var(--sp-3);
  font-size: .8125rem;
  color: rgba(255, 255, 255, .5);
}

/* --- 17. Barre de réservation mobile ------------------------------------ */
.book-bar {
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: var(--z-sticky);
  display: flex; align-items: center; gap: var(--sp-2);
  padding: .75rem var(--gutter) calc(.75rem + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform 320ms var(--ease-out);
}
.book-bar.is-visible { transform: none; }
@media (min-width: 640px) { .book-bar { display: none; } }
.book-bar__price { line-height: 1.25; }
.book-bar__price b { display: block; font-size: .9375rem; }
.book-bar__price span { font-size: .75rem; color: var(--ink-muted); }
.book-bar .btn { margin-left: auto; }

/* Marge basse pour ne pas masquer le contenu sous la barre */
@media (max-width: 639px) { .footer { padding-bottom: 6rem; } }

/* --- 18. Animations ------------------------------------------------------ */
[data-reveal] { will-change: transform, opacity; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .gallery__item:hover img { transform: none; }
}

/* --- 19. Impression ------------------------------------------------------ */
@media print {
  .header, .book-bar, .hero__scroll, .lightbox, .mobile-nav { display: none !important; }
  body { background: #fff; color: #000; }
}
