/* ============================================================
   SERENITY ESCAPE MARSEILLE — Design System
   Palette stricte : terracotta + bleu profond + sable + crème
   Aucun gris neutre, aucun jaune/doré.
   ============================================================ */

:root {
  /* Bleus */
  --blue-deep: #16384F;   /* texte fort, sections sombres */
  --blue-sea:  #1B4965;   /* bleu mer */
  --blue-slate:#5C6E78;   /* texte secondaire (bleu-ardoise, pas gris) */

  /* Terracotta (accent unique) */
  --terra:      #E07A5F;
  --terra-dark: #C85A3F;

  /* Fonds chauds */
  --sand:  #F4E9DC;       /* fonds alternés */
  --cream: #FDFBF7;       /* fond principal, cartes */
  --white: #FFFFFF;

  /* Typo */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Figtree", system-ui, -apple-system, sans-serif;

  /* Rythme */
  --maxw: 1200px;
  --section-y: clamp(4.5rem, 9vw, 8.5rem);
  --radius: 18px;
  --radius-lg: 26px;
  --shadow-soft: 0 18px 40px -24px rgba(22, 56, 79, 0.35);
  --shadow-lift: 0 36px 70px -28px rgba(22, 56, 79, 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--blue-deep);
  background: var(--cream);
  line-height: 1.65;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }

/* ---------- Utilities ---------- */
.container { width: min(var(--maxw), 92vw); margin-inline: auto; }
.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.74rem;
  color: var(--terra);
}
.section-title {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.01em;
  font-size: clamp(2.1rem, 1.4rem + 3vw, 3.6rem);
  color: var(--blue-deep);
}
.section-title em { font-style: italic; color: var(--terra); }
.lead {
  color: var(--blue-slate);
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.22rem);
  max-width: 46ch;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.95rem 1.8rem;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: transform 0.4s var(--ease), background 0.3s var(--ease), box-shadow 0.4s var(--ease);
  will-change: transform;
}
.btn-primary {
  background: var(--terra);
  color: var(--white);
  box-shadow: 0 14px 30px -12px rgba(224, 122, 95, 0.7);
}
.btn-primary:hover {
  background: var(--terra-dark);
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -12px rgba(200, 90, 63, 0.7);
}
.btn-ghost {
  background: transparent;
  color: var(--blue-deep);
  border: 1.5px solid rgba(22, 56, 79, 0.22);
}
.btn-ghost:hover { border-color: var(--terra); color: var(--terra); transform: translateY(-2px); }
.btn .arrow { transition: transform 0.4s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 4vw;
  transition: background 0.5s var(--ease), box-shadow 0.5s var(--ease), padding 0.5s var(--ease);
}
.nav.scrolled {
  background: rgba(22, 56, 79, 0.94);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px -18px rgba(8, 26, 38, 0.9);
  padding-block: 0.85rem;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  line-height: 1;
  color: var(--white);
  transition: color 0.5s var(--ease);
}
.nav__logo-text { display: flex; flex-direction: column; }
.brand__mark { flex: none; transition: transform 0.5s var(--ease); }
.nav__logo:hover .brand__mark { transform: translateY(-2px); }
.nav__logo-main {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.4rem;
  letter-spacing: 0.01em;
}
.nav__logo-main b { font-weight: 500; }
.nav__logo-sub {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.6rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--terra);
  margin-top: 0.42rem;
}
.nav.scrolled .nav__logo { color: var(--white); }
.nav__links { display: flex; align-items: center; gap: 2.2rem; }
.nav__links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.5s var(--ease);
  position: relative;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -5px;
  width: 0; height: 1.5px;
  background: var(--terra);
  transition: width 0.35s var(--ease);
}
.nav__links a:hover::after { width: 100%; }
.nav.scrolled .nav__links a { color: rgba(255, 255, 255, 0.88); }
.nav.scrolled .nav__links a:hover { color: var(--terra); }
/* ---------- Sélecteur de langue ---------- */
.lang { display: flex; align-items: center; gap: 0.55rem; }
.lang__btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.1rem;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.35s var(--ease);
}
.lang__btn:hover { color: var(--white); }
.lang__btn.is-active { color: var(--terra); }
.lang__sep { width: 1px; height: 12px; background: rgba(255, 255, 255, 0.3); }
.nav.scrolled .lang__btn { color: rgba(255, 255, 255, 0.55); }
.nav.scrolled .lang__btn:hover { color: var(--white); }
.nav.scrolled .lang__btn.is-active { color: var(--terra); }

.nav__cta { display: inline-flex; }
.nav__links .nav__cta { color: var(--white); }
.nav__toggle { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  animation: slowZoom 20s ease-out forwards;
}
@keyframes slowZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(22,56,79,0.55) 0%, rgba(22,56,79,0.25) 40%, rgba(22,56,79,0.85) 100%),
    linear-gradient(90deg, rgba(22,56,79,0.6) 0%, rgba(22,56,79,0.05) 60%);
}
/* fallback si l'image ne charge pas */
.hero { background: linear-gradient(160deg, var(--blue-sea), var(--blue-deep)); }

.hero__inner { padding-top: 6rem; position: relative; z-index: 1; }
.hero__eyebrow { color: rgba(255,255,255,0.85); }
.hero__eyebrow::before { content: ""; }
.hero__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.9rem, 1.6rem + 6.2vw, 6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 1.1rem 0 1.4rem;
  max-width: 15ch;
}
.hero__title em { font-style: italic; color: var(--terra); }
.hero__sub {
  font-size: clamp(1.05rem, 1rem + 0.5vw, 1.3rem);
  color: rgba(255, 255, 255, 0.9);
  max-width: 40ch;
  margin-bottom: 2.4rem;
  font-weight: 400;
}
.hero__scroll {
  position: absolute;
  left: 4vw; bottom: 2.2rem;
  display: flex; align-items: center; gap: 0.7rem;
  font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}
.hero__scroll .line {
  width: 46px; height: 1px; background: rgba(255,255,255,0.5);
  transform-origin: left; animation: scrollLine 2.4s var(--ease) infinite;
}
@keyframes scrollLine { 0%,100%{transform:scaleX(0.3);opacity:.4} 50%{transform:scaleX(1);opacity:1} }

/* ============================================================
   BANDEAU CONFIANCE
   ============================================================ */
.trust {
  background: var(--blue-deep);
  color: var(--cream);
  padding: clamp(2.4rem, 4vw, 3.4rem) 0;
}
.trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.trust__item { position: relative; padding: 0 1rem; }
.trust__item:not(:last-child)::after {
  content: "";
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 46px; background: rgba(244, 233, 220, 0.18);
}
.trust__num {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.8rem, 1.2rem + 2vw, 2.7rem);
  color: var(--terra);
  line-height: 1;
}
.trust__label {
  font-size: 0.86rem;
  color: rgba(244, 233, 220, 0.82);
  margin-top: 0.5rem;
  letter-spacing: 0.02em;
}

/* ============================================================
   SECTIONS génériques
   ============================================================ */
section { position: relative; }
.section { padding-block: var(--section-y); }
.section--sand { background: var(--sand); }
.section--cream { background: var(--cream); }

/* Section sombre : les cartes crème ressortent en pleine lumière */
.section--deep { background: var(--blue-deep); }
.section--deep .section-title { color: var(--white); }
.section--deep .lead { color: rgba(255, 255, 255, 0.78); }

.section-head { max-width: 60ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head .eyebrow { display: block; margin-bottom: 1rem; }
.section-head .lead { margin-top: 1.4rem; }

/* ---------- Intro : split photo + bloc terracotta ---------- */
.intro { background: var(--cream); }
.intro__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  min-height: clamp(520px, 60vw, 680px);
}
.intro__media { position: relative; overflow: hidden; }
.intro__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.intro:hover .intro__media img { transform: scale(1.04); }

/* Panneau sable : chaud mais doux — le terracotta reste un accent, pas un aplat */
.intro__panel {
  background: var(--sand);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.6rem, 5vw, 5rem);
}
.intro__eyebrow { margin-bottom: 1.3rem; }
.intro__title {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.015em;
  font-size: clamp(2.2rem, 1.4rem + 3vw, 3.5rem);
  color: var(--blue-deep);
}
.intro__title em { font-style: italic; color: var(--terra); }
.intro__panel p {
  margin-top: 1.7rem;
  font-size: 1.08rem;
  color: var(--blue-slate);
  max-width: 46ch;
}
.intro__punch {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.2rem, 1rem + 0.7vw, 1.5rem);
  color: var(--blue-deep) !important;
  line-height: 1.35;
  margin-top: 2.1rem !important;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(224, 122, 95, 0.35);
}

/* ============================================================
   LOGEMENTS
   ============================================================ */
.stays__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.6rem, 3vw, 2.4rem);
}
.stay {
  background: var(--cream);
  border: 1px solid rgba(253, 251, 247, 0.1);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  /* ombre portée profonde : la carte flotte au-dessus du bleu */
  box-shadow: 0 26px 50px -26px rgba(8, 26, 38, 0.75);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.stay:hover {
  transform: translateY(-8px);
  box-shadow: 0 44px 76px -28px rgba(8, 26, 38, 0.85);
}
.stay__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.stay__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.stay:hover .stay__media img { transform: scale(1.06); }
.stay__badge {
  position: absolute; top: 1rem; left: 1rem;
  background: rgba(253, 251, 247, 0.94);
  color: var(--blue-deep);
  font-size: 0.76rem; font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.42rem 0.85rem;
  border-radius: 100px;
  backdrop-filter: blur(4px);
}
.stay__rating {
  position: absolute; top: 1rem; right: 1rem;
  background: rgba(22, 56, 79, 0.82);
  color: var(--white);
  font-size: 0.82rem; font-weight: 600;
  display: flex; align-items: center; gap: 0.32rem;
  padding: 0.42rem 0.75rem;
  border-radius: 100px;
  backdrop-filter: blur(4px);
}
.stay__rating .star { color: var(--terra); font-size: 0.9rem; line-height: 1; }
.stay__rating .count { color: rgba(255,255,255,0.7); font-weight: 500; }
.stay__body { padding: 1.6rem 1.7rem 1.8rem; display: flex; flex-direction: column; flex: 1; }
.stay__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.35rem;
  line-height: 1.2;
  color: var(--blue-deep);
  margin-bottom: 0.9rem;
}
.stay__specs {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.1rem;
  font-size: 0.9rem; color: var(--blue-slate);
  margin-bottom: 1.1rem;
}
.stay__specs li { display: flex; align-items: center; gap: 0.4rem; }
.stay__specs li::before { content: "·"; color: var(--terra); font-weight: 700; }
.stay__specs li:first-child::before { display: none; }
.stay__tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.stay__tag {
  font-size: 0.78rem;
  color: var(--blue-sea);
  background: var(--sand);
  padding: 0.34rem 0.75rem;
  border-radius: 100px;
}
.stay__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.stay__link {
  font-weight: 600; font-size: 0.96rem; color: var(--terra);
  display: inline-flex; align-items: center; gap: 0.5rem;
  transition: gap 0.35s var(--ease), color 0.3s var(--ease);
}
.stay:hover .stay__link { gap: 0.85rem; color: var(--terra-dark); }

/* ============================================================
   RÉSERVATION
   ============================================================ */
.booking__card {
  background: var(--sand);
  border: 1px solid rgba(224, 122, 95, 0.3);
  border-radius: var(--radius-lg);
  padding: clamp(2.4rem, 5vw, 4rem);
  box-shadow: var(--shadow-soft);
  max-width: 940px;
  margin-inline: auto;
  text-align: center;
}
.booking__card .section-title { margin-bottom: 1rem; }
.booking__card .lead { margin: 0 auto 2.2rem; }
.booking__widget {
  margin-top: 2rem;
  min-height: 90px;
  display: flex;
  justify-content: center;
}
/* Le conteneur Guesty s'étale sur toute la largeur mais son contenu reste à gauche :
   on le fait s'ajuster à son contenu pour qu'il soit réellement centré. */
.booking__widget .guesty-widget__container {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: auto !important;
  margin-inline: auto !important;
  flex-wrap: wrap !important;
  border-radius: 100px !important;
  overflow: hidden !important;
  box-shadow: 0 14px 34px -22px rgba(22, 56, 79, 0.5);
}
.booking__widget .guesty-widget__item { margin: 0 !important; }
/* Style de secours pour le widget Guesty */
.booking__widget :where(button, .search-bar__button) { border-radius: 100px !important; }

/* Neutralise les gris injectés par le widget Guesty (datepicker lightpick + selects).
   Le client ne veut aucun gris : on remplace par du bleu-ardoise / sable. */
.lightpick :where(.lightpick__previous-action, .lightpick__next-action) {
  color: var(--blue-slate) !important;
  border-color: var(--sand) !important;
}
.lightpick :where(.lightpick__month-title, .lightpick__day-of-the-week) { color: var(--blue-deep) !important; }
.lightpick .lightpick__day.is-disabled { color: rgba(92, 110, 120, 0.4) !important; }
.lightpick .lightpick__day.is-start-date,
.lightpick .lightpick__day.is-end-date,
.lightpick .lightpick__day.is-in-range { background-color: var(--terra) !important; color: #fff !important; }
.booking__widget select { border-color: var(--sand) !important; color: var(--blue-deep) !important; }
.booking__widget input { color: var(--blue-deep) !important; }
.booking__widget input::placeholder { color: var(--blue-slate) !important; }
.booking__fallback {
  margin-top: 1.8rem;
  font-size: 0.9rem;
  color: var(--blue-slate);
}
.booking__fallback a { color: var(--terra); font-weight: 600; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--blue-deep);
  color: rgba(244, 233, 220, 0.82);
  padding-block: clamp(3.5rem, 6vw, 5rem) 2rem;
}
.footer__top {
  text-align: center;
  padding-bottom: 2.4rem;
  border-bottom: 1px solid rgba(244, 233, 220, 0.14);
}
.footer__mark { margin: 0 auto 1.1rem; display: block; }
.footer__logo {
  font-family: var(--font-display); font-weight: 300;
  font-size: 1.7rem; color: var(--white); line-height: 1;
}
.footer__logo b { font-weight: 500; }
.footer__logo-sub {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.66rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--terra);
  margin: 0.55rem 0 1rem;
}
.footer__tag { font-family: var(--font-display); font-style: italic; color: var(--terra); font-size: 1.15rem; }
.footer__bottom {
  text-align: center;
  padding-top: 1.8rem; font-size: 0.85rem;
  color: rgba(244, 233, 220, 0.55);
}

/* ============================================================
   ANIMATIONS scroll (fade-up cascade)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__media img { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .stays__grid { grid-template-columns: 1fr; }
  .intro__split { grid-template-columns: 1fr; min-height: 0; }
  .intro__media { aspect-ratio: 16 / 10; }
  .trust__grid { grid-template-columns: repeat(2, 1fr); gap: 2.2rem 1rem; }
  .trust__item:nth-child(2)::after { display: none; }
}
@media (max-width: 640px) {
  .nav__links { display: none; }
  .nav__toggle {
    display: inline-flex; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 6px;
  }
  .nav__toggle span { width: 26px; height: 2px; background: var(--white); transition: background 0.4s; }
  .nav.scrolled .nav__toggle span { background: var(--white); }
  .trust__grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .trust__item::after { display: none !important; }
  .hero__scroll { display: none; }
}

/* Mobile menu ouvert */
.nav__links.open {
  display: flex; flex-direction: column;
  position: absolute; top: 100%; right: 4vw;
  background: var(--blue-deep);
  padding: 1.4rem 1.8rem; border-radius: var(--radius);
  box-shadow: var(--shadow-lift); gap: 1.1rem;
}
.nav__links.open a { color: rgba(255, 255, 255, 0.9); }

/* Lien discret vers le guide voyageurs */
.footer__guide {
  display: inline-block;
  margin-top: 0.7rem;
  font-size: 0.82rem;
  color: rgba(244, 233, 220, 0.5);
  border-bottom: 1px solid transparent;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.footer__guide:hover { color: var(--terra); border-color: var(--terra); }
