/* ==========================================================
   SALT SXM Rentals · feuille de style commune
   Palette tirée du logo (brun / crème) et des photos
   (turquoise de la piscine, terracotta des terrasses).
   ========================================================== */

:root {
  --sand: #F5EDE0;
  --paper: #FBF7F0;
  --shell: #EFE3CF;
  --ink: #2B2119;
  --brown: #4A3A2C;
  --brown-deep: #33281F;
  --cream: #F1E4CC;
  --gold: #B48F57;
  --gold-soft: #D8BE92;
  --sea: #167C80;
  --sea-deep: #0E5A5E;
  --lagoon: #8FD3CC;
  --coral: #D46F45;
  --coral-deep: #A95837; /* terracotta foncé : texte orange lisible, fond sous texte clair */
  --sea-text: #12686C;   /* bleu des petits textes sur fond clair */
  --muted: #776655;
  --line: rgba(74, 58, 44, 0.14);
  --line-strong: rgba(74, 58, 44, 0.32);
  --shadow: 0 30px 60px -30px rgba(51, 40, 31, 0.45);
  --shadow-soft: 0 12px 30px -16px rgba(51, 40, 31, 0.35);

  --f-display: 'Cormorant Garamond', Georgia, serif;
  --f-body: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  --f-hand: 'Caveat', 'Bradley Hand', cursive;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1240px;
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--f-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
/* Chiffres alignés : les chiffres elzéviriens du Cormorant font lire « 1 » comme « I » */
h1, h2, h3, strong, .key-tag__num, .spot__t, .apt__title { font-variant-numeric: lining-nums; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--sea); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--lagoon); color: var(--ink); }

/* Grain papier, très léger, pour éviter l'aplat numérique */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 1000;
  opacity: .32;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .25 0 0 0 0 .2 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Bilingue : FR / EN ---------- */
html[lang="fr"] [data-l="en"],
html[lang="en"] [data-l="fr"] { display: none !important; }

/* ---------- Utilitaires ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 300; background: var(--brown); color: var(--cream); padding: 10px 16px; border-radius: 8px; text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--sea-text); font-weight: 500;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.h-display {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(40px, 6.4vw, 92px);
  line-height: .98; letter-spacing: -.015em; margin: 0;
}
.h-section {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.02; letter-spacing: -.01em; margin: 14px 0 0;
}
.h-section em, .h-display em { font-style: italic; color: var(--sea); }
.lead { font-size: clamp(17px, 1.4vw, 19px); color: var(--muted); max-width: 58ch; }
.hand { font-family: var(--f-hand); font-weight: 600; }
section { position: relative; }
.section { padding: clamp(80px, 11vw, 150px) 0; }

/* ---------- Boutons ---------- */
.btn {
  --bg: var(--brown); --fg: var(--cream);
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; border: 0;
  background: var(--bg); color: var(--fg);
  font-size: 14px; letter-spacing: .1em; text-transform: uppercase; font-weight: 500;
  text-decoration: none; overflow: hidden; isolation: isolate;
  transition: transform .5s var(--ease), box-shadow .4s var(--ease);
  will-change: transform;
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--sea); border-radius: inherit;
  transform: translateY(101%); transition: transform .55s var(--ease);
}
.btn:hover::after, .btn:focus-visible::after { transform: none; }
.btn:hover { box-shadow: var(--shadow-soft); }
.btn svg { width: 18px; height: 18px; transition: transform .4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--ghost { --bg: transparent; --fg: var(--brown); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn--ghost::after { background: var(--brown); }
.btn--ghost:hover { --fg: var(--cream); color: var(--cream); }
.btn--sea { --bg: var(--sea); }
.btn--sea::after { background: var(--brown); }
.btn--light { --bg: var(--cream); --fg: var(--brown); }
.btn--light::after { background: var(--gold-soft); }

.link-u {
  text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .45s var(--ease);
}
.link-u:hover { background-size: 100% 1px; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .4s, box-shadow .4s, transform .5s var(--ease);
}
.nav.is-solid { background: rgba(245, 237, 224, .86); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 1px 0 var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--brown); }
.brand__salt { font-family: var(--f-display); font-size: 30px; letter-spacing: .06em; line-height: 1; font-weight: 400; }
.brand__bar { width: 1px; height: 26px; background: var(--gold); }
.brand__sub { display: flex; flex-direction: column; line-height: 1; }
.brand__sub b { font-weight: 500; font-size: 9px; letter-spacing: .38em; }
.brand__sub i { font-family: var(--f-display); font-size: 15px; color: var(--gold); }
/* Logo sur fond clair (barre du haut) : doré un peu plus profond, lisible ; le pied de page garde le doré d'origine */
.nav .brand__sub i { color: #81663E; }
.menu-open .nav .brand__sub i { color: var(--gold); }
.nav__links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav__links a { text-decoration: none; font-size: 14px; letter-spacing: .06em; color: var(--brown); }
.nav__right { display: flex; align-items: center; gap: 14px; }
.lang {
  position: relative; display: inline-flex; padding: 3px; border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line-strong); background: rgba(255,255,255,.35);
}
.lang button { position: relative; z-index: 1; border: 0; background: none; padding: 6px 11px; font-size: 12px; letter-spacing: .12em; font-weight: 500; color: var(--muted); transition: color .3s; }
.lang button[aria-pressed="true"] { color: var(--cream); }
.lang__pill { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 999px; background: var(--brown); transition: transform .45s var(--ease-spring); }
html[lang="en"] .lang__pill { transform: translateX(100%); }
.nav .btn { padding: 11px 20px; font-size: 12px; }
.burger { display: none; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--brown); position: relative; }
.burger span { position: absolute; left: 14px; right: 14px; height: 1.5px; background: var(--cream); transition: transform .45s var(--ease), opacity .3s; }
.burger span:nth-child(1) { top: 18px; } .burger span:nth-child(2) { top: 23px; } .burger span:nth-child(3) { top: 28px; }
.menu-open .burger span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.mmenu {
  position: fixed; inset: 0; z-index: 90; background: var(--brown); color: var(--cream);
  display: flex; flex-direction: column; padding: 100px var(--gutter) 40px;
  overflow-y: auto; overscroll-behavior: contain;
  clip-path: circle(0 at calc(100% - 40px) 36px); transition: clip-path .8s var(--ease);
  visibility: hidden;
}
.menu-open .mmenu { clip-path: circle(150% at calc(100% - 40px) 36px); visibility: visible; }
/* marges automatiques : centré quand tout tient, sinon on part du haut et on fait défiler */
.mmenu ol { list-style: none; margin: auto 0 0; padding: 0; counter-reset: m; }
.mmenu li { overflow: hidden; border-bottom: 1px solid rgba(241,228,204,.14); }
.mmenu ol a { display: flex; align-items: baseline; gap: 16px; padding: 14px 0; text-decoration: none; font-family: var(--f-display); font-size: clamp(34px, 9vw, 52px); line-height: 1.1; transform: translateY(105%); transition: transform .7s var(--ease); }
.mmenu ol a::before { counter-increment: m; content: "0" counter(m); font-family: var(--f-body); font-size: 12px; letter-spacing: .2em; color: var(--gold-soft); }
.menu-open .mmenu ol a { transform: none; }
.menu-open .mmenu li:nth-child(2) a { transition-delay: .05s; } .menu-open .mmenu li:nth-child(3) a { transition-delay: .1s; }
.menu-open .mmenu li:nth-child(4) a { transition-delay: .15s; } .menu-open .mmenu li:nth-child(5) a { transition-delay: .2s; }
.menu-open .mmenu li:nth-child(6) a { transition-delay: .25s; } .menu-open .mmenu li:nth-child(7) a { transition-delay: .3s; } .menu-open .mmenu li:nth-child(8) a { transition-delay: .35s; }
.mmenu__foot { margin: 36px 0 auto; display: flex; flex-wrap: wrap; gap: 12px; }
.menu-open { overflow: hidden; }
/* Menu ouvert : barre du haut opaque (les liens défilent dessous) et logo lisible sur le brun */
.menu-open .nav, .menu-open .nav.is-solid { background: var(--brown); box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.menu-open .nav .brand { color: var(--cream); }

/* ---------- Barre mobile collante ---------- */
.dock {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 80;
  display: none; gap: 8px; padding: 8px; border-radius: 999px;
  background: rgba(51, 40, 31, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow); transform: translateY(150%); transition: transform .6s var(--ease);
}
.dock.is-on { transform: none; }
.dock a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 10px; border-radius: 999px; text-decoration: none; color: var(--cream); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; }
.dock a:last-child { background: var(--sea); }
.dock svg { width: 18px; height: 18px; }

/* ---------- Révélations au scroll ---------- */
.rv { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > span { display: inline-block; transform: translateY(110%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 55ms + var(--d, 0s)); }
.split.in .w > span { transform: none; }

/* ---------- Vagues ---------- */
.waves { position: absolute; left: 0; right: 0; height: 90px; pointer-events: none; overflow: hidden; }
.waves svg { position: absolute; bottom: 0; width: 200%; max-width: none; height: 100%; }
.waves .w1 { animation: drift 18s linear infinite; opacity: .55; }
.waves .w2 { animation: drift 11s linear infinite reverse; }
@keyframes drift { to { transform: translateX(-50%); } }

/* ---------- Pied de page ---------- */
.footer { background: var(--brown-deep); color: var(--cream); padding: 90px 0 calc(40px + env(safe-area-inset-bottom)); position: relative; overflow: hidden; }
.footer a { text-decoration: none; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer h4, .footer .footer__h { margin: 0 0 16px; font-family: var(--f-body); font-size: 11px; line-height: 1.4; letter-spacing: .24em; text-transform: uppercase; font-weight: 500; color: var(--gold-soft); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: rgba(241,228,204,.78); }
.footer p { color: rgba(241,228,204,.7); max-width: 36ch; }
.footer__big {
  font-family: var(--f-display); font-size: clamp(110px, 30vw, 420px); line-height: .75; letter-spacing: .02em;
  margin: 70px 0 0;
  /* remplissage discret plutôt qu'un contour : le A de Cormorant a des tracés qui se
     chevauchent, et -webkit-text-stroke en dessinait les jonctions internes */
  color: rgba(216,190,146,.13);
  display: flex; justify-content: space-between; user-select: none;
}
.footer__big span {
  /* inline-block + line-height serré : la zone de survol colle à la lettre au lieu
     de déborder (avec cette taille de police) sur les liens situés au-dessus */
  display: inline-block; line-height: .75; transition: color .6s var(--ease), transform .6s var(--ease);
}
.footer__grid, .footer__legal { position: relative; z-index: 1; }
.footer__big span:hover { color: var(--gold-soft); transform: translateY(-8px); }
.footer__legal { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: rgba(241,228,204,.62); }

/* ---------- Réponses aux tailles d'écran ---------- */
@media (max-width: 960px) {
  .nav__links, .nav .btn--nav { display: none; }
  .burger { display: block; }
  .dock { display: flex; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .footer__grid { grid-template-columns: 1fr; }
  .brand__salt { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  html { scroll-behavior: auto; }
  .rv, .split .w > span { opacity: 1; transform: none; }
}

/* ---------- Menu de choix (WhatsApp ou email) ---------- */
.choice { position: relative; display: inline-block; }
.choice__chev { transition: transform .4s var(--ease); }
.choice .btn:hover .choice__chev { transform: none; }
.choice.is-open .choice__chev { transform: rotate(180deg) !important; }
.choice__menu {
  position: absolute; left: 0; top: calc(100% + 10px); z-index: 20; min-width: 280px; padding: 8px; border-radius: 20px;
  background: var(--paper); box-shadow: 0 24px 50px -20px rgba(51,40,31,.45), inset 0 0 0 1px var(--line);
  opacity: 0; transform: translateY(-8px) scale(.97); transform-origin: top left; transition: opacity .25s, transform .35s var(--ease-spring);
}
.choice__menu.in { opacity: 1; transform: none; }
.choice__item { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 14px; text-decoration: none; color: var(--ink); transition: background .25s; }
.choice__item:hover, .choice__item:focus-visible { background: var(--sand); }
.choice__ico { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--c); color: #fff; }
.choice__ico svg { width: 22px; height: 22px; }
.choice__item b { display: block; font-weight: 500; font-size: 15px; }
.choice__item small { display: block; font-size: 13px; color: var(--muted); }
