/* =========================================================
   Maison Lumière — feuille de style
   Langage visuel inspiré des pages produit Apple : fond « brume »,
   typographie monumentale, aucune ombre, et une seule couleur
   d’action (le bleu des boutons « Réserver »).
   ========================================================= */

:root {
  /* Couleurs */
  --ink: #1d1d1f;
  --fog: #f5f5f7;
  --white: #ffffff;
  --graphite: #707070;
  --slate: #86868b;
  --iron: #5b5b61;
  --ash: #e8e8ed;
  --line: #d2d2d7;
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --link: #0066cc;
  --iris: linear-gradient(60deg, #0894ff 0%, #c959dd 40%, #ff2e54 67%, #ff9003 100%);

  /* Typographie : SF Pro sur Apple, Inter ailleurs */
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter Tight", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Mise en page */
  --nav-h: 48px;
  --maxw: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --radius: 28px;
  --radius-sm: 18px;
  --section: clamp(96px, 12vw, 160px);

  /* Courbes d’animation */
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}
html.menu-open,
html.modal-open { overflow: hidden; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--fog);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.014em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
em { font-style: normal; }
::selection { background: var(--ink); color: #fff; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }

.skip {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 3000;
  padding: 8px 16px;
  border-radius: 980px;
  background: var(--ink);
  color: #fff;
  transform: translateY(-200%);
  transition: transform .3s var(--ease);
}
.skip:focus { transform: none; }

.wrap {
  width: min(100% - var(--gutter) * 2, var(--maxw));
  margin-inline: auto;
}

/* ---------- Typographie ---------- */
.eyebrow {
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: clamp(17px, 1.6vw, 21px);
  font-weight: 600;
  line-height: 1.19;
  letter-spacing: -0.008em;
}

.title {
  font-family: var(--font-display);
  font-size: clamp(38px, 5.2vw, 64px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.018em;
}

.headline {
  font-family: var(--font-display);
  font-size: clamp(44px, 7vw, 96px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.022em;
}

.lead {
  font-size: clamp(19px, 1.7vw, 24px);
  line-height: 1.36;
  letter-spacing: -0.012em;
  color: var(--graphite);
}

.caption {
  font-size: 12px;
  line-height: 1.33;
  letter-spacing: -0.01em;
  color: var(--graphite);
}

/* Dégradé irisé : réservé à quelques mots-clés */
.iris {
  padding-right: .04em;
  background-image: var(--iris);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: iris-shift 7s ease-in-out infinite alternate;
}
@keyframes iris-shift {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}

/* ---------- Boutons & liens ---------- */
.btn {
  --bg: var(--ash);
  --fg: var(--ink);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 22px;
  border: 0;
  border-radius: 980px;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-text);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.022em;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .3s var(--ease), color .3s var(--ease), transform .5s var(--ease), scale .3s var(--ease), opacity .3s;
}
/* Reflet qui balaie le bouton au survol */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .4) 50%, transparent 65%);
  transform: translateX(-110%);
  transition: transform .9s var(--ease);
}
.btn:hover::before { transform: translateX(110%); }
.btn:active { scale: .96; }
.btn:disabled { opacity: .35; cursor: not-allowed; }
.btn:disabled::before { display: none; }

.btn--primary { --bg: var(--blue); --fg: #fff; }
.btn--primary:hover:not(:disabled) { --bg: var(--blue-hover); }

/* Bouton fantôme : un disque d’encre se remplit depuis le curseur */
.btn--ghost {
  --bg: transparent;
  padding: 10px 21px;
  border: 1px solid var(--ink);
}
.btn--ghost::before {
  inset: auto;
  left: var(--x, 50%);
  top: var(--y, 50%);
  width: 300%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--ink);
  transform: translate(-50%, -50%) scale(0);
  transition: transform .65s var(--ease);
}
.btn--ghost:hover { --fg: #fff; }
.btn--ghost:hover::before { transform: translate(-50%, -50%) scale(1); }

.btn--sm { min-height: 34px; padding: 7px 16px; font-size: 14px; }
.btn--ghost.btn--sm { padding: 6px 15px; }
.btn--nav { min-height: 28px; padding: 4px 14px; font-size: 12px; letter-spacing: -0.01em; }
.btn--lg { min-height: 56px; padding: 16px 32px; font-size: 19px; }
.btn--block { width: 100%; }

.link {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  color: var(--link);
  font-size: 17px;
  letter-spacing: -0.014em;
}
.link__text {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .45s var(--ease);
}
.link:hover .link__text { background-size: 100% 1px; }
.link__chev { display: inline-block; transition: transform .45s var(--ease); }
.link:hover .link__chev { transform: translateX(5px); }

/* ---------- Apparitions au scroll ---------- */
.js .reveal {
  opacity: 0;
  translate: 0 48px;
  transition:
    opacity 1s var(--ease) calc(var(--d, 0) * 1ms),
    translate 1.2s var(--ease) calc(var(--d, 0) * 1ms),
    var(--t-extra, color 0s);
}
.js .reveal.in { opacity: 1; translate: none; }

/* Titres découpés en mots qui montent depuis un masque */
.js [data-split] .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: .08em .03em .16em;
  margin: -.08em -.03em -.16em;
}
.js [data-split] .w > span {
  display: inline-block;
  translate: 0 115%;
  transition: translate 1.3s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms + var(--d, 0) * 1ms);
}
.js [data-split].in .w > span { translate: none; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--nav-h);
  color: #f5f5f7;
  transition: transform .6s var(--ease);
}
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(29, 29, 31, .78);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  transition: background-color .4s;
}
.nav.is-hidden { transform: translateY(-100%); }
.menu-open .nav::before { background: #161617; }

.nav__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  width: min(100% - var(--gutter) * 2, 1024px);
  height: 100%;
  margin-inline: auto;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.nav__logo svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .6s var(--ease-spring);
}
.nav__logo:hover svg { transform: translateY(-2px) rotate(-8deg); }

.nav__links { position: relative; display: flex; align-items: center; gap: 2px; }
.nav__links a {
  position: relative;
  z-index: 1;
  padding: 6px 12px;
  border-radius: 980px;
  font-size: 13px;
  letter-spacing: -0.01em;
  color: rgba(245, 245, 247, .76);
  transition: color .3s;
}
.nav__links a:hover,
.nav__links a.is-active { color: #fff; }
.nav__links a.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: currentColor;
}
/* Pastille qui glisse d’un lien à l’autre */
.nav__hover {
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 30px;
  margin-top: -15px;
  border-radius: 980px;
  background: rgba(255, 255, 255, .14);
  opacity: 0;
  pointer-events: none;
  transition: transform .5s var(--ease), width .5s var(--ease), opacity .3s;
}
.nav__hover.is-on { opacity: 1; }

/* Accès à « Mon compte » */
.nav__account {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-right: -6px;
  border-radius: 50%;
  color: rgba(245, 245, 247, .76);
  transition: color .3s, background-color .3s;
}
.nav__account:hover { color: #fff; background: rgba(255, 255, 255, .14); }
.nav__account svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav__burger {
  display: none;
  position: relative;
  width: 36px;
  height: 36px;
  margin-right: -8px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.nav__burger span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .5s var(--ease), top .5s var(--ease);
}
.nav__burger span:first-child { top: 14px; }
.nav__burger span:last-child { top: 21px; }
.menu-open .nav__burger span:first-child { top: 17.5px; transform: rotate(45deg); }
.menu-open .nav__burger span:last-child { top: 17.5px; transform: rotate(-45deg); }

.nav__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--iris);
  transform-origin: 0 50%;
  transform: scaleX(var(--progress, 0));
}

/* Menu mobile plein écran */
.menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: calc(var(--nav-h) + 28px) var(--gutter) max(32px, env(safe-area-inset-bottom));
  background: #161617;
  color: #f5f5f7;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path .7s var(--ease), visibility 0s .7s;
}
.menu.is-open {
  clip-path: inset(0 0 0 0);
  visibility: visible;
  transition: clip-path .7s var(--ease), visibility 0s;
}
.menu__links { display: flex; flex-direction: column; gap: 4px; }
.menu__links a {
  font-family: var(--font-display);
  font-size: clamp(28px, 7vw, 40px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
}
.menu__links a,
.menu__cta {
  opacity: 0;
  translate: 0 -16px;
  transition: opacity .4s, translate .6s var(--ease);
}
.menu.is-open .menu__links a,
.menu.is-open .menu__cta {
  opacity: 1;
  translate: none;
  transition-delay: calc(var(--i) * 45ms + 150ms);
}
.menu__cta { align-self: flex-start; }

/* ---------- 1. Héros ---------- */
.hero { position: relative; height: 250vh; }
.hero__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

/* Halo irisé derrière la photo, comme une lumière de fin de journée */
.hero__glow {
  position: absolute;
  z-index: 0;
  left: 6%;
  right: 6%;
  top: 44%;
  height: 34%;
  border-radius: 50%;
  background: var(--iris);
  filter: blur(90px);
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
  animation: glow-drift 10s ease-in-out infinite alternate;
}
@keyframes glow-drift {
  from { scale: 1 .85; rotate: -3deg; }
  to { scale: 1.1 1.05; rotate: 3deg; }
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  background: #2b2b2e;
  clip-path: inset(68px var(--gutter) 34% var(--gutter) round var(--radius));
  will-change: clip-path;
}
.hero__frame { position: absolute; inset: 0; }
.js .hero__frame { opacity: 0; transition: opacity 1.4s var(--ease); }
.is-ready .hero__frame { opacity: 1; }
.hero__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 40% 55%; /* garde le soleil couchant dans le cadre, même sur téléphone */
  transform: scale(1.16);
  will-change: transform;
}
.hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .1) 0%, rgba(0, 0, 0, .18) 45%, rgba(0, 0, 0, .62) 100%);
  opacity: 0;
}
.hero__welcome {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 13vh;
  color: #fff;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(54px, 10vw, 150px);
  font-weight: 600;
  line-height: .98;
  letter-spacing: -0.03em;
  opacity: 0;
  will-change: transform, opacity;
}

.hero__content {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding: 0 max(var(--gutter), (100% - 1440px) / 2) clamp(28px, 5.5vh, 60px);
  will-change: transform, opacity;
}
.hero__text { max-width: 820px; }
.hero__eyebrow {
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-size: clamp(19px, 1.8vw, 24px);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.hero__title {
  --d: 280;
  font-family: var(--font-display);
  font-size: clamp(44px, 6.4vw, 92px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.028em;
}
.hero__sub {
  margin-top: 14px;
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.38;
  color: var(--graphite);
}
.hero__buy { flex: none; display: flex; align-items: center; gap: 20px; }
.hero__price {
  font-size: 14px;
  line-height: 1.3;
  color: var(--graphite);
  text-align: right;
}
.hero__price strong {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.js .hero__eyebrow,
.js .hero__sub,
.js .hero__buy {
  opacity: 0;
  translate: 0 24px;
  transition: opacity 1s var(--ease), translate 1.3s var(--ease);
}
.is-ready .hero__eyebrow,
.is-ready .hero__sub,
.is-ready .hero__buy { opacity: 1; translate: none; }
.is-ready .hero__eyebrow { transition-delay: .15s; }
.is-ready .hero__sub { transition-delay: .6s; }
.is-ready .hero__buy { transition-delay: .75s; }

/* ---------- 2. Manifeste ---------- */
.manifesto { position: relative; height: 240vh; }
.manifesto__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  align-items: center;
}
.manifesto__eyebrow { color: var(--graphite); }
.manifesto__text {
  max-width: 21em;
  font-family: var(--font-display);
  font-size: clamp(30px, 4.3vw, 58px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}
.js .manifesto__text .word { opacity: .14; }

/* ---------- Sections ---------- */
.section { position: relative; padding-block: var(--section); }
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 48px;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section-head__aside { max-width: 20em; padding-bottom: 6px; }

/* ---------- 3. L’essentiel (bento) ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(260px, auto);
  gap: 20px;
  grid-template-areas:
    "feat feat rooms guests"
    "feat feat pool pool"
    "beach garden fiber fiber";
}
.tile--feat { grid-area: feat; }
.tile--rooms { grid-area: rooms; }
.tile--guests { grid-area: guests; }
.tile--pool { grid-area: pool; }
.tile--beach { grid-area: beach; }
.tile--garden { grid-area: garden; }
.tile--fiber { grid-area: fiber; }

.tile {
  --t-extra: transform .8s var(--ease);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  min-height: 260px;
  padding: clamp(24px, 2.6vw, 36px);
  border-radius: var(--radius);
  background: var(--white);
  transition: transform .8s var(--ease);
  will-change: transform;
}
.tile:hover { --t-extra: transform .25s var(--ease); transition-duration: .25s; }

/* Liseré irisé qui suit la souris */
.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  padding: 1.5px;
  border-radius: inherit;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), #0894ff, #c959dd 25%, #ff2e54 45%, #ff9003 60%, transparent 75%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0;
  pointer-events: none;
  transition: opacity .5s;
}
.tile:hover::before { opacity: 1; }

.tile__label {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.tile__num {
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: clamp(52px, 5.6vw, 84px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.tile__unit { font-size: .42em; letter-spacing: -0.01em; }
.tile__num--iris {
  background: var(--iris);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.tile__text {
  max-width: 26em;
  margin-top: 10px;
  font-size: 17px;
  line-height: 1.4;
  color: var(--graphite);
}

.tile--image { color: #fff; }
.tile--image .tile__text { color: rgba(255, 255, 255, .86); }
.tile__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.tile__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .3) 0%, rgba(0, 0, 0, 0) 32%, rgba(0, 0, 0, 0) 48%, rgba(0, 0, 0, .64) 100%);
}
.tile__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  scale: 1.18;
  transition: scale 1.4s var(--ease);
}
.tile--image:hover .tile__bg img { scale: 1.26; }
/* Affiche des courses : voile plus soutenu pour que le texte reste lisible sur le ciel orangé */
.tile--fiber .tile__bg::after { background: linear-gradient(180deg, rgba(0, 0, 0, .45) 0%, rgba(0, 0, 0, 0) 38%, rgba(0, 0, 0, .1) 55%, rgba(0, 0, 0, .72) 100%); }

/* Autocollant « posé » dans le coin de la tuile « Le circuit » */
.tile__sticker {
  position: absolute;
  top: 18px;
  right: 18px;
  width: clamp(76px, 34%, 112px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 14px;
  mix-blend-mode: multiply;
  rotate: 8deg;
  pointer-events: none;
  transition: rotate .6s var(--ease-spring), scale .6s var(--ease-spring);
}
.tile:hover .tile__sticker { rotate: -4deg; scale: 1.08; }

.tile--dark { background: var(--ink); color: #f5f5f7; }
.tile--dark .tile__text { color: #a1a1a6; }
.tile--dark::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(440px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .13), transparent 60%);
  opacity: 0;
  transition: opacity .5s;
}
.tile--dark:hover::after { opacity: 1; }

/* ---------- 4. Les espaces (défilement horizontal) ---------- */
.spaces { position: relative; height: 420vh; }
.spaces__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(20px, 3.5vh, 40px);
  padding-top: calc(var(--nav-h) * .5);
}
.spaces__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.spaces__counter {
  display: flex;
  gap: 6px;
  padding-bottom: 8px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--slate);
}
.spaces__current { display: inline-block; color: var(--ink); }
.spaces__track {
  position: relative;
  display: flex;
  gap: clamp(16px, 2.2vw, 28px);
  width: max-content;
  padding-inline: max(var(--gutter), (100% - var(--maxw)) / 2);
  will-change: transform;
}
.room { flex: none; width: min(78vw, 820px, (100svh - 400px) * 1.5); }
.room__media {
  position: relative;
  isolation: isolate;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ash);
  cursor: zoom-in;
}
.room__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  scale: 1.2;
  transition: scale 1.2s var(--ease);
}
.room__media:hover img { scale: 1.28; }
.room__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background-color .5s;
}
.room__media:hover::after { background: rgba(0, 0, 0, .08); }
.room__body { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; padding: 20px 4px 0; }
.room__index {
  grid-row: span 2;
  padding-top: 7px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--slate);
  font-variant-numeric: tabular-nums;
}
.room__title {
  font-family: var(--font-display);
  font-size: clamp(21px, 2vw, 28px);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.01em;
}
.room__text { max-width: 46ch; margin-top: 6px; color: var(--graphite); }
.spaces__bar { height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; }
.spaces__bar span {
  display: block;
  height: 100%;
  background: var(--ink);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

/* ---------- 5. Une journée ---------- */
.day {
  position: relative;
  height: 440vh;
  background: var(--fog);
  transition: background-color 1s var(--ease-io), color 1s var(--ease-io);
}
.day.is-night { background: #000; color: #f5f5f7; }
.day__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.day__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 100px);
}
.day__media {
  position: relative;
  isolation: isolate;
  height: min(72svh, 680px);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ash);
}
.day__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  scale: 1.14;
  transition: opacity 1.1s var(--ease-io), scale 2.4s var(--ease);
}
.day__img.is-active { opacity: 1; scale: 1; }
.day__eyebrow { color: var(--graphite); transition: color 1s; }
.is-night .day__eyebrow { color: #a1a1a6; }
.day__clock {
  display: flex;
  margin: 6px 0 28px;
  font-family: var(--font-display);
  font-size: clamp(72px, 10vw, 140px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.odo { display: inline-block; height: 1em; overflow: hidden; }
.odo__strip { display: flex; flex-direction: column; transition: transform 1.1s var(--ease); }
.odo__strip span { display: block; height: 1em; }
.day__colon { padding-inline: .02em; animation: blink 2s steps(1) infinite; }
@keyframes blink { 50% { opacity: .25; } }
.day__steps { display: grid; }
.day__step {
  grid-area: 1 / 1;
  opacity: 0;
  translate: 0 28px;
  pointer-events: none;
  transition: opacity .5s, translate .7s var(--ease);
}
.day__step.is-active {
  opacity: 1;
  translate: none;
  pointer-events: auto;
  transition: opacity .8s .15s, translate 1s var(--ease) .15s;
}
.day__step h3 {
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.day__step p {
  max-width: 30em;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.42;
  color: var(--graphite);
  transition: color 1s;
}
.is-night .day__step p { color: #a1a1a6; }
.day__dots { display: flex; gap: 8px; margin-top: 36px; }
.day__dots li {
  position: relative;
  width: 44px;
  height: 3px;
  border-radius: 3px;
  background: var(--line);
  overflow: hidden;
  transition: background-color 1s;
}
.day__dots li::after {
  content: "";
  position: absolute;
  inset: 0;
  background: currentColor;
  transform-origin: 0 50%;
  transform: scaleX(var(--fill, 0));
}
.is-night .day__dots li { background: #333336; }

/* ---------- 6. Équipements ---------- */
.amenities__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.amenity {
  --t-extra: background-color .5s var(--ease);
  padding: 28px;
  border-radius: var(--radius);
  transition: background-color .5s var(--ease);
}
.amenity:hover { background: var(--white); }
.amenity svg {
  width: 40px;
  height: 40px;
  margin-bottom: 22px;
  overflow: visible;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .6s var(--ease-spring);
}
.amenity:hover svg { transform: translateY(-4px) scale(1.08); }
/* Les icônes se dessinent trait par trait */
.js .amenity svg > * {
  stroke-dasharray: 1 2;
  stroke-dashoffset: 1.01;
  transition: stroke-dashoffset 1.6s var(--ease) calc(var(--d, 0) * 1ms + 250ms);
}
.js .amenity.in svg > * { stroke-dashoffset: 0; }
.js .amenity:hover svg > * { animation: redraw 1.2s var(--ease); }
@keyframes redraw {
  from { stroke-dashoffset: 1.01; }
  to { stroke-dashoffset: 0; }
}
.amenity h3 {
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.amenity p { font-size: 15px; line-height: 1.4; color: var(--graphite); }

/* ---------- 7. Avis ---------- */
.reviews { overflow: hidden; }
.reviews__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.score { text-align: right; }
.score__num {
  font-family: var(--font-display);
  font-size: clamp(72px, 9vw, 120px);
  font-weight: 600;
  line-height: .95;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  background: var(--iris);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.score .stars { margin: 14px 0 8px auto; }
.score__text { color: var(--graphite); }
.score__text strong { font-weight: 600; color: var(--ink); }

/* Notes par critère : six barres fines qui se remplissent à l’apparition */
.ratings {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px clamp(24px, 4vw, 56px);
  margin-bottom: clamp(36px, 5vw, 60px);
}
.ratings li {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 8px 12px;
  font-size: 15px;
  color: var(--graphite);
}
.ratings strong { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.ratings__bar { grid-column: 1 / -1; height: 4px; border-radius: 2px; background: var(--ash); overflow: hidden; }
.ratings__bar span {
  display: block;
  width: calc(var(--v, 1) * 100%);
  height: 100%;
  border-radius: inherit;
  background: var(--ink);
  transform-origin: left;
}
.js .ratings__bar span { transform: scaleX(0); transition: transform 1.4s var(--ease) calc(var(--i, 0) * 90ms + .2s); }
.js .ratings.in .ratings__bar span { transform: scaleX(1); }
.reviews__note { max-width: 46em; margin-top: 14px; }
.reviews__cta { margin-top: 32px; }
.score__site { display: block; margin-top: 2px; }
.review--site .review__author span:last-child { color: var(--graphite); }

.stars {
  --size: 18px;
  position: relative;
  width: calc(var(--size) * 5);
  height: var(--size);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23d2d2d7' d='M12 2.6l2.85 6.1 6.65.78-4.92 4.56 1.3 6.6L12 17.3l-5.88 3.34 1.3-6.6L2.5 9.48l6.65-.78z'/%3E%3C/svg%3E") 0 0 / var(--size) var(--size) repeat-x;
}
.stars span {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--rating, 1) * 100%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%231d1d1f' d='M12 2.6l2.85 6.1 6.65.78-4.92 4.56 1.3 6.6L12 17.3l-5.88 3.34 1.3-6.6L2.5 9.48l6.65-.78z'/%3E%3C/svg%3E") 0 0 / var(--size) var(--size) repeat-x;
}
.stars--lg { --size: 24px; }
.js .score .stars span { width: 0; transition: width 1.8s var(--ease) .4s; }
.js .score.in .stars span { width: calc(var(--rating, 1) * 100%); }

.marquee {
  overflow: hidden;
  padding-block: 10px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee + .marquee { margin-top: 8px; }
.marquee__track { display: flex; gap: 20px; width: max-content; will-change: transform; }
.review {
  flex: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  width: 380px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--white);
  transition: transform .6s var(--ease);
}
.review:hover { transform: translateY(-6px) rotate(-1.2deg); }
.review__text { font-size: 19px; line-height: 1.4; letter-spacing: -0.012em; }
.review__author { display: flex; align-items: center; gap: 12px; font-size: 14px; line-height: 1.3; color: var(--graphite); }
.review__author strong { display: block; font-weight: 600; color: var(--ink); }
.review__avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--fog);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
}

/* ---------- 8. Accès ---------- */
.location__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
}
.location__text .lead { max-width: 26em; margin-top: 20px; }
.places { margin-top: 36px; }
/* Chaque lieu : icône + nom (site officiel) et épingle (itinéraire Google Maps) */
.place {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  transition: padding .5s var(--ease);
}
.place:last-child { border-bottom: 1px solid var(--line); }
.place.is-active { padding-inline: 8px 0; }
.place__site {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 14px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
.place__site:focus-visible,
.place__maps:focus-visible { outline-offset: 3px; border-radius: 14px; }
/* Petite photo du lieu (libre de droits, crédits sous la liste) */
.place__photo {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  background: var(--ash);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .06);
  transition: transform .6s var(--ease-spring), box-shadow .35s var(--ease);
}
.place__site:hover .place__photo { transform: scale(1.06); }
.place.is-active .place__photo {
  transform: scale(1.1) rotate(-4deg);
  box-shadow: 0 0 0 2px var(--white), 0 0 0 3.5px var(--ink), 0 12px 24px -12px rgba(0, 0, 0, .45);
}
.place__text { display: grid; gap: 1px; min-width: 0; }
.place__site:hover .place__name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.place__maps {
  display: grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--link);
  transition: background-color .3s, color .3s, border-color .3s, scale .4s var(--ease-spring);
}
.place__maps:hover { border-color: var(--link); background: var(--link); color: #fff; scale: 1.08; }
.place__maps svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.places__hint { margin-top: 14px; }
.places__credits { margin-top: 8px; }
.places__credits summary {
  display: inline-block;
  padding: 4px 0;
  cursor: pointer;
  list-style: none;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.places__credits summary::-webkit-details-marker { display: none; }
.places__credits[open] summary { color: var(--ink); }
.places__credits p { margin-top: 6px; }
.places__credits ul { display: grid; gap: 3px; margin-top: 8px; }
.places__credits a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.places__credits a:hover { color: var(--link); }
.map a { cursor: pointer; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.place__name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: color .3s;
}
.place__time { font-size: 14px; color: var(--graphite); white-space: nowrap; }
.places.has-active .place:not(.is-active) .place__name { color: var(--slate); }

.map { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--white); }
.map__svg { width: 100%; height: auto; }
.map__land { fill: var(--white); }
.map__forest { fill: url(#pins); }
#pins circle { fill: #ededf1; }
/* La Sarthe : un ruban d’eau dont le courant file vers l’aval */
.map__river { fill: none; stroke: var(--ash); stroke-width: 18; stroke-linecap: round; stroke-linejoin: round; }
.map__river-flow {
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 6 18;
  animation: flow 3.2s linear infinite;
}
@keyframes flow { to { stroke-dashoffset: -24; } }
.map__river-name { font-family: var(--font-text); font-size: 12px; font-style: italic; letter-spacing: .02em; fill: var(--slate); }
.map__town {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  fill: var(--ink);
  paint-order: stroke;
  stroke: var(--white);
  stroke-width: 5px;
  stroke-linejoin: round;
}
.map__road { fill: none; stroke: var(--fog); stroke-width: 9; stroke-linecap: round; }
.map__road--small { stroke-width: 5; }
.map__route {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 1 2;
  transition: opacity .4s, stroke-width .4s;
}
.js .map__route { stroke-dashoffset: 1.01; }
.map[data-active] .map__route { opacity: .16; }
.map[data-active] .map__route.is-hot { opacity: 1; stroke-width: 2.6; }
.map__poi {
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity .5s, scale .7s var(--ease-spring);
}
.js .map__poi { opacity: 0; scale: .5; }
.js .map__poi.is-on { opacity: 1; scale: 1; }
.map__poi circle { fill: var(--white); stroke: var(--ink); stroke-width: 1.6; transition: fill .3s; }
.map__poi.is-hot circle { fill: var(--ink); }
.map__poi text {
  font-family: var(--font-text);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  fill: var(--ink);
  paint-order: stroke;
  stroke: var(--white);
  stroke-width: 5px;
  stroke-linejoin: round;
}
.map__home-dot { fill: var(--ink); }
.map__home-icon { fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.map__pulse {
  fill: var(--ink);
  transform-box: fill-box;
  transform-origin: center;
  animation: pulse 2.6s var(--ease) infinite;
}
@keyframes pulse {
  from { scale: 1; opacity: .3; }
  to { scale: 2.8; opacity: 0; }
}
.map__traveler { fill: var(--ink); stroke: #fff; stroke-width: 2; opacity: 0; transition: opacity .3s; }
.map__traveler.is-on { opacity: 1; }
.map__note { position: absolute; right: 22px; bottom: 16px; }

/* ---------- 9. Réservation ---------- */
.booking__head { max-width: 820px; margin: 0 auto clamp(40px, 6vw, 72px); text-align: center; }
.booking__head .lead { margin-top: 18px; }
.booking__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  align-items: start;
  gap: 20px;
}
.card { padding: clamp(22px, 3vw, 36px); border-radius: var(--radius); background: var(--white); }

.cal__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.cal__heading { font-family: var(--font-display); font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
.cal__navs { display: flex; gap: 8px; }
.cal__nav {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--fog);
  cursor: pointer;
  transition: background-color .3s, scale .4s var(--ease-spring), opacity .3s;
}
.cal__nav svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cal__nav:hover:not(:disabled) { background: var(--ash); scale: 1.1; }
.cal__nav:disabled { opacity: .3; cursor: default; }

.cal__months { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 28px; }
.cal__month { width: 100%; max-width: 340px; margin-inline: auto; }
.cal__months.slide-next { animation: cal-next .55s var(--ease); }
.cal__months.slide-prev { animation: cal-prev .55s var(--ease); }
@keyframes cal-next { from { opacity: 0; translate: 32px 0; } }
@keyframes cal-prev { from { opacity: 0; translate: -32px 0; } }
.cal__month-name {
  margin-bottom: 10px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  text-transform: capitalize;
}
.cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); row-gap: 2px; }
.cal__dow { padding-bottom: 6px; text-align: center; font-size: 12px; font-weight: 500; color: var(--slate); }
.cal__day {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  background: none;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}
.cal__day span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: min(40px, 92%);
  aspect-ratio: 1;
  border-radius: 50%;
  transition: background-color .25s, color .25s;
}
.cal__day:hover:not(:disabled) span { outline: 1.5px solid var(--ink); outline-offset: -1.5px; }
.cal__day.is-today span::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: currentColor;
}
.cal__day:disabled { cursor: default; }
.cal__day.is-past span { color: #c7c7cc; }
.cal__day.is-booked span { color: var(--slate); text-decoration: line-through; }
.cal__day.is-muted span { color: #b8b8bd; }
/* Bande grise qui relie l’arrivée au départ */
.cal__day.in-range::before,
.cal__day.has-end::before,
.cal__day.is-end::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 0;
  right: 0;
  top: 50%;
  height: min(40px, 92%);
  translate: 0 -50%;
  background: var(--fog);
}
.cal__day.has-end::before { left: 50%; }
.cal__day.is-end::before { right: 50%; }
.cal__day.is-start span,
.cal__day.is-end span { background: var(--ink); color: #fff; }
.cal__day.is-preview.is-end span { background: var(--white); color: var(--ink); outline: 1.5px solid var(--ink); outline-offset: -1.5px; }

.cal__legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; font-size: 13px; color: var(--graphite); }
.cal__legend span { display: inline-flex; align-items: center; gap: 8px; }
.lg { display: inline-block; width: 14px; height: 14px; border-radius: 50%; }
.lg--free { border: 1.5px solid var(--line); }
.lg--booked { border: 1.5px solid var(--line); background: linear-gradient(135deg, transparent 44%, var(--slate) 44% 56%, transparent 56%); }
.lg--sel { background: var(--ink); }

.summary { display: flex; flex-direction: column; gap: 16px; }
.summary__price { font-size: 15px; color: var(--graphite); }
.summary__price strong {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.summary__dates { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.summary__field { min-width: 0; padding: 12px 16px; }
.summary__field + .summary__field { border-left: 1px solid var(--line); }
.summary__field span { display: block; font-size: 12px; font-weight: 500; color: var(--graphite); }
.summary__field strong {
  display: block;
  overflow: hidden;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.summary__field strong.is-empty { font-weight: 400; color: var(--slate); }
.summary__field strong.pop { animation: pop .5s var(--ease-spring); }
@keyframes pop { from { opacity: 0; scale: .85; } }

.guests {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 12px 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.guests__label { display: block; font-weight: 600; }
.guests__hint { display: block; font-size: 12px; color: var(--graphite); }
.stepper { display: flex; align-items: center; gap: 12px; }
.stepper button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: border-color .3s, scale .4s var(--ease-spring), opacity .3s;
}
.stepper button:hover:not(:disabled) { border-color: var(--ink); scale: 1.1; }
.stepper button:disabled { opacity: .35; cursor: default; }
.stepper output { display: inline-block; min-width: 1.6ch; text-align: center; font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }

.breakdown { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.breakdown.is-open { grid-template-rows: 1fr; }
.breakdown__inner { display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.breakdown__row { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; color: var(--iron); }
.breakdown__row[hidden] { display: none; }
.breakdown__row span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.breakdown__total {
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
}
.summary__hint { min-height: 1.4em; text-align: center; font-size: 14px; color: var(--graphite); }
.summary__hint.is-warn { color: var(--ink); font-weight: 600; animation: shake .5s; }
@keyframes shake {
  20%, 60% { translate: -6px 0; }
  40%, 80% { translate: 6px 0; }
}
.summary__note { margin-top: -6px; text-align: center; }

.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 40px; }
.chip {
  --t-extra: background-color .3s, color .3s, scale .4s var(--ease-spring);
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--white);
  font-size: 14px;
  transition: background-color .3s, color .3s, scale .4s var(--ease-spring);
}
.chip:hover { background: var(--ink); color: #fff; scale: 1.05; }

.tariffs { max-width: 680px; margin: 56px auto 0; }
.tariffs__title {
  margin-bottom: 16px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
}
.tariffs__list li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: baseline;
  gap: 24px;
  padding: 14px 4px;
  border-top: 1px solid var(--line);
}
.tariffs__list li:last-child { border-bottom: 1px solid var(--line); }
.tariffs__name { font-weight: 600; }
.tariffs__dates { font-size: 15px; color: var(--graphite); }
.tariffs__price { min-width: 4.5em; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- 10. Questions fréquentes ---------- */
.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  align-items: start;
  gap: clamp(40px, 6vw, 96px);
}
.faq__intro { position: sticky; top: calc(var(--nav-h) + 40px); }
.faq__intro .lead { margin-top: 20px; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item:first-child { border-top: 1px solid var(--line); }
.faq__q button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 26px 0;
  border: 0;
  background: none;
  text-align: left;
  font-family: var(--font-display);
  font-size: clamp(19px, 1.8vw, 24px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: padding .5s var(--ease);
}
.faq__q button:hover { padding-left: 10px; }
.faq__icon {
  position: relative;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--white);
  transition: background-color .4s, color .4s, rotate .6s var(--ease);
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 1.5px;
  margin: -.75px 0 0 -6px;
  border-radius: 2px;
  background: currentColor;
  transition: rotate .6s var(--ease);
}
.faq__icon::after { rotate: 90deg; }
.faq__item.is-open .faq__icon { rotate: 180deg; background: var(--ink); color: #fff; }
.faq__item.is-open .faq__icon::after { rotate: 0deg; }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.faq__a > div { overflow: hidden; visibility: hidden; transition: visibility 0s .6s; }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__item.is-open .faq__a > div { visibility: visible; transition-delay: 0s; }
.faq__a p { max-width: 60ch; padding: 0 48px 28px 0; color: var(--iron); }

/* ---------- Pied de page ---------- */
.footer { padding: var(--section) 0 calc(28px + env(safe-area-inset-bottom)); }
.footer__cta { display: flex; flex-direction: column; align-items: center; gap: 32px; text-align: center; }
.footer__giant-wrap { margin-top: clamp(72px, 10vw, 140px); overflow: hidden; }
.footer__giant {
  width: max-content;
  margin-inline: auto;
  padding: .16em 0 .04em;
  font-family: var(--font-display);
  font-size: 12vw;
  font-weight: 600;
  line-height: .92;
  letter-spacing: -0.045em;
  white-space: nowrap;
  user-select: none;
}
.footer__giant .l {
  display: inline-block;
  transition: translate .6s var(--ease-spring);
}
.footer__giant .l:hover {
  translate: 0 -.14em;
  background: var(--iris);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.footer__giant .l:hover + .l,
.footer__giant .l:has(+ .l:hover) { translate: 0 -.07em; }

.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.footer__cols h3 { margin-bottom: 10px; font-size: 12px; font-weight: 600; }
.footer__cols a,
.footer__cols > div > span { display: block; line-height: 2; color: var(--graphite); }
.footer__cols a { width: fit-content; transition: color .3s; }
.footer__cols a:hover { color: var(--ink); text-decoration: underline; }
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 40px;
  font-size: 12px;
  color: var(--graphite);
}
.footer__legal a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Barre flottante ---------- */
.dock {
  position: fixed;
  z-index: 90;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 7px 7px 7px 22px;
  border-radius: 980px;
  color: #f5f5f7;
  background: rgba(29, 29, 31, .8);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  translate: -50% 160%;
  opacity: 0;
  visibility: hidden;
  transition: translate .8s var(--ease), opacity .5s, visibility 0s .8s;
}
.dock.is-visible {
  translate: -50% 0;
  opacity: 1;
  visibility: visible;
  transition: translate .8s var(--ease), opacity .5s, visibility 0s;
}
.dock__info { display: flex; flex-direction: column; line-height: 1.2; white-space: nowrap; }
.dock__info strong { font-size: 14px; font-weight: 600; }
.dock__info > span { font-size: 12px; color: #a1a1a6; }

/* ---------- Fenêtres (réservation & photos) ---------- */
dialog { max-width: none; max-height: none; padding: 0; border: 0; background: none; color: inherit; }
dialog::backdrop {
  background: rgba(0, 0, 0, .45);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
dialog[open]::backdrop { animation: fade-in .4s ease; }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }

.modal { width: min(560px, 100% - 24px); margin: auto; overflow: visible; }
.modal[open] .modal__card { animation: modal-in .7s var(--ease) both; }
.modal.is-closing .modal__card { animation: modal-out .3s var(--ease-io) both; }
.modal.is-closing::backdrop { animation: fade-out .3s ease both; }
@keyframes modal-in { from { opacity: 0; translate: 0 40px; scale: .96; } }
@keyframes modal-out { to { opacity: 0; translate: 0 20px; scale: .98; } }

.modal__card {
  position: relative;
  max-height: calc(100svh - 24px);
  overflow-y: auto;
  padding: clamp(28px, 5vw, 44px);
  border-radius: var(--radius);
  background: var(--white);
}
.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--fog);
  cursor: pointer;
  transition: background-color .3s, rotate .5s var(--ease);
}
.modal__close:hover { background: var(--ash); rotate: 90deg; }
.modal__close svg,
.lightbox__btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.modal__title {
  margin-bottom: 20px;
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.modal__recap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-bottom: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--line);
}
.modal__recap div { padding: 12px 16px; background: var(--white); }
.modal__recap dt { font-size: 12px; color: var(--graphite); }
.modal__recap dd { font-weight: 600; }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.field { position: relative; display: block; }
.field:first-child,
.field--area { grid-column: 1 / -1; }
.field input,
.field textarea {
  width: 100%;
  padding: 26px 16px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  font-size: 17px;
  outline: none;
  resize: vertical;
  transition: border-color .3s;
}
.field input:focus,
.field textarea:focus { border-color: var(--link); outline: 3px solid rgba(0, 102, 204, .18); }
.field input:user-invalid { border-color: #d70015; }
/* Étiquette flottante */
.field span {
  position: absolute;
  left: 17px;
  top: 18px;
  font-size: 17px;
  color: var(--graphite);
  pointer-events: none;
  transform-origin: 0 0;
  transition: translate .35s var(--ease), scale .35s var(--ease), color .3s;
}
.field input:focus + span,
.field input:not(:placeholder-shown) + span,
.field textarea:focus + span,
.field textarea:not(:placeholder-shown) + span { translate: 0 -10px; scale: .72; }
.modal__note { margin-top: 12px; text-align: center; }

.modal__done { display: none; padding-block: 12px; text-align: center; }
.modal.is-done .modal__form { display: none; }
.modal.is-done .modal__done { display: block; animation: modal-in .7s var(--ease) both; }
.modal__check {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.modal__check > * { stroke-dasharray: 1 2; stroke-dashoffset: 1.01; }
.modal.is-done .modal__check circle { animation: draw .9s var(--ease) .1s forwards; }
.modal.is-done .modal__check path { animation: draw .6s var(--ease) .6s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.modal__done-text { max-width: 30em; margin: 0 auto 20px; color: var(--iron); }
.modal__fallback { margin: 0 auto 24px; padding: 16px; border-radius: var(--radius-sm); background: var(--fog); font-size: 15px; }
.modal__fallback p { margin-bottom: 12px; }
.modal__fallback .link { font-size: inherit; }
.modal__fallback[hidden] { display: none; }

/* Comptes dans la fenêtre de demande */
.modal__who { margin: -4px 0 18px; padding: 12px 16px; border-radius: 14px; background: var(--fog); font-size: 15px; }
.modal__who .link { font-size: inherit; }
.modal__account { display: grid; gap: 12px; margin: -4px 0 20px; }
.modal__account .caption { font-size: 14px; }
.modal__login { display: grid; justify-items: start; gap: 12px; padding: 16px; border-radius: var(--radius-sm); background: var(--fog); }
.modal__login .fields { width: 100%; margin: 0; }
.modal__login .field:first-child { grid-column: auto; }
.modal__error { margin: -6px 0 16px; padding: 10px 14px; border-radius: 12px; background: #fdecee; color: #c4001a; font-size: 15px; }
.modal__done-account { margin: -8px 0 20px; }
.modal__who[hidden],
.modal__account[hidden],
.modal__login[hidden],
.modal__error[hidden],
.modal__done-account[hidden],
.field[hidden] { display: none; }
.check { display: flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--blue); cursor: pointer; }
.link-btn { padding: 0; border: 0; background: none; color: var(--link); font: inherit; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
@media (max-width: 734px) {
  .modal__login .fields { grid-template-columns: 1fr; }
}

.lightbox {
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: rgba(10, 10, 12, .95);
  color: #f5f5f7;
}
.lightbox::backdrop { background: transparent; }
.lightbox[open] { animation: fade-in .4s ease both; }
.lightbox.is-closing { animation: fade-out .3s ease both; }
.lightbox__figure {
  position: absolute;
  inset: 64px 88px 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.lightbox__img {
  max-width: 100%;
  max-height: calc(100% - 40px);
  border-radius: var(--radius-sm);
  object-fit: contain;
}
.lightbox__caption { font-family: var(--font-display); font-size: 19px; font-weight: 600; }
.lightbox__count {
  position: absolute;
  top: 22px;
  left: 50%;
  translate: -50% 0;
  font-size: 14px;
  color: #a1a1a6;
  font-variant-numeric: tabular-nums;
}
.lightbox__btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  cursor: pointer;
  transition: background-color .3s, scale .4s var(--ease-spring);
}
.lightbox__btn:hover { background: rgba(255, 255, 255, .2); scale: 1.08; }
.lightbox__prev { left: 20px; top: 50%; margin-top: -24px; }
.lightbox__next { right: 20px; top: 50%; margin-top: -24px; }
.lightbox__close { top: 14px; right: 14px; width: 40px; height: 40px; }

/* ---------- Curseur personnalisé ---------- */
.cursor,
.cursor-dot { display: none; }
.has-cursor .cursor,
.has-cursor .cursor-dot { display: block; }
.has-cursor:not(.modal-open),
.has-cursor:not(.modal-open) * { cursor: none !important; }

.cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1500;
  pointer-events: none;
  mix-blend-mode: difference;
  opacity: 0;
  transition: opacity .3s;
}
.cursor__ring {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  translate: -50% -50%;
  border: 1.5px solid #fff;
  border-radius: 50%;
  transition: width .5s var(--ease), height .5s var(--ease), background-color .4s, border-color .4s, scale .3s var(--ease);
}
.cursor.is-link .cursor__ring { width: 64px; height: 64px; }
.cursor.is-label { mix-blend-mode: normal; }
.cursor.is-label .cursor__ring {
  width: 96px;
  height: 96px;
  border-color: transparent;
  background: rgba(29, 29, 31, .85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.cursor.is-down .cursor__ring { scale: .82; }
.cursor__label {
  font-family: var(--font-text);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  opacity: 0;
  scale: .5;
  transition: opacity .3s, scale .5s var(--ease);
}
.cursor.is-label .cursor__label { opacity: 1; scale: 1; }
.cursor-dot {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1501;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: #fff;
  mix-blend-mode: difference;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s, scale .4s var(--ease);
}
.cursor.is-visible,
.cursor-dot.is-visible { opacity: 1; }
.cursor-dot.is-small { scale: 0; }
.modal-open .cursor,
.modal-open .cursor-dot { opacity: 0 !important; }

/* ---------- Écran d’introduction ---------- */
.loader { display: none; }
.js .loader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  background: var(--fog);
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.1s var(--ease-io);
  animation: loader-failsafe .01s 7s forwards;
}
.js .loader.is-done { clip-path: inset(0 0 100% 0); pointer-events: none; }
@keyframes loader-failsafe { to { visibility: hidden; } }
.loader__word {
  display: flex;
  overflow: hidden;
  padding-bottom: .06em;
  font-family: var(--font-display);
  font-size: clamp(30px, 4.6vw, 56px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.loader__word .l {
  display: inline-block;
  translate: 0 110%;
  animation: loader-rise 1s var(--ease) forwards;
  animation-delay: calc(var(--i) * 40ms + 100ms);
}
@keyframes loader-rise { to { translate: 0 0; } }
.loader__bar { width: 140px; height: 2px; overflow: hidden; border-radius: 2px; background: var(--ash); }
.loader__bar span {
  display: block;
  height: 100%;
  background: var(--ink);
  transform-origin: 0 50%;
  transform: scaleX(0);
  transition: transform .8s var(--ease);
}
.js.is-loading { overflow: hidden; }

/* ---------- Tablettes ---------- */
@media (max-width: 1068px) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "feat feat"
      "rooms guests"
      "pool pool"
      "beach garden"
      "fiber fiber";
  }
  .tile--feat { min-height: 420px; }
  .amenities__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__burger { display: block; }
  .day__grid { grid-template-columns: 1fr; gap: 24px; }
  .day__media { height: 40svh; }
  .day__clock { margin: 0 0 14px; font-size: clamp(56px, 14vw, 96px); }
  .day__dots { margin-top: 20px; }
  .location__grid,
  .faq__grid,
  .booking__grid { grid-template-columns: 1fr; }
  .faq__intro { position: static; }
}

/* ---------- Téléphones ---------- */
@media (max-width: 734px) {
  .hero__content { flex-direction: column; align-items: stretch; gap: 22px; }
  .hero__buy { justify-content: space-between; }
  .hero__price { text-align: left; }

  .bento {
    gap: 12px;
    grid-auto-rows: minmax(200px, auto);
    grid-template-areas:
      "feat feat"
      "rooms guests"
      "pool pool"
      "beach beach"
      "garden garden"
      "fiber fiber";
  }
  .tile { min-height: 200px; padding: 22px; }
  .tile--feat { min-height: 380px; }
  .tile__num { font-size: clamp(44px, 12vw, 60px); }
  .tile__text { font-size: 15px; }

  .room { width: min(80vw, (100svh - 380px) * .8); }
  .room__media { aspect-ratio: 4 / 5; }
  .room__text { font-size: 15px; }
  .day__step h3 { margin-bottom: 8px; }

  .amenities__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .amenity { padding: 20px; }

  .review { width: 300px; padding: 22px; }
  .review__text { font-size: 17px; }
  .score { text-align: left; }
  .score .stars { margin-left: 0; }
  .ratings { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }
  .ratings li { font-size: 14px; }

  .faq__a p { padding-right: 8px; }
  .footer__cols { grid-template-columns: 1fr; gap: 24px; }
  .fields { grid-template-columns: 1fr; }

  .dock { left: 12px; right: 12px; justify-content: space-between; translate: 0 160%; }
  .dock.is-visible { translate: 0 0; }

  .lightbox__figure { inset: 56px 12px 88px; }
  .lightbox__prev,
  .lightbox__next { top: auto; bottom: 20px; margin-top: 0; }
  .lightbox__prev { left: calc(50% - 60px); }
  .lightbox__next { right: calc(50% - 60px); }
}

/* ---------- Mouvements réduits ---------- */
.reduce .hero { height: 100vh; height: 100svh; }
.reduce .hero__welcome,
.reduce .hero__shade { display: none; }
.reduce .manifesto { height: auto; }
.reduce .manifesto__sticky { position: static; height: auto; padding-block: var(--section); }
.reduce .spaces { height: auto !important; }
.reduce .spaces__sticky { position: static; height: auto; overflow: visible; padding-block: var(--section); }
.reduce .spaces__track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
.reduce .room { scroll-snap-align: start; }
.reduce .spaces__bar,
.reduce .spaces__counter { display: none; }
.reduce .marquee { overflow-x: auto; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
  }
}
