/* ============================================================
   WALDHOF v2 — "Quiet Luxury"
   Design language: Apple × Tesla — minimalist, full-bleed,
   monochrome with a single restrained gold accent.
   ============================================================ */

/* ---- Design tokens -------------------------------------- */
:root {
  /* Palette — monochrome + one accent */
  --ink:        #1d1d1f;   /* primary text (Apple near-black) */
  --ink-soft:   #424245;
  --muted:      #6e6e73;   /* secondary text — contraste AA sur blanc */
  --line:       #d2d2d7;   /* hairline */
  --line-soft:  #e8e8ed;
  --bg:         #ffffff;
  --bg-alt:     #f5f5f7;   /* Apple light gray */
  --black:      #000000;   /* Tesla full-bleed panels */
  --gold:       #b8975a;   /* accent — used sparingly */
  --gold-soft:  #c9ad77;
  --gold-text:  #8a6f3c;   /* or lisible sur blanc (≥4.5:1) — pour le texte uniquement */

  /* Typography */
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --serif: "Cormorant Garamond", Georgia, serif;

  /* Fluid type scale */
  --fs-display: clamp(2.75rem, 7vw, 6rem);
  --fs-h1:      clamp(2.25rem, 5vw, 4rem);
  --fs-h2:      clamp(1.75rem, 3.6vw, 3rem);
  --fs-h3:      clamp(1.3rem, 2.2vw, 1.9rem);
  --fs-lead:    clamp(1.05rem, 1.6vw, 1.35rem);
  --fs-body:    1.0625rem;
  --fs-sm:      0.875rem;
  --fs-xs:      0.75rem;

  /* Spacing rhythm (8pt) */
  --s1: 0.5rem;  --s2: 1rem;   --s3: 1.5rem;  --s4: 2rem;
  --s5: 3rem;    --s6: 4rem;   --s7: 6rem;    --s8: 8rem;
  --s9: 10rem;

  --maxw: 1180px;
  --maxw-wide: 1440px;
  --nav-h: 56px;

  --radius: 18px;
  --radius-sm: 12px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t: 0.5s var(--ease);
  --t-fast: 0.25s var(--ease);

  --z-cta: 80;       /* barre CTA mobile fiche bien */
  --z-curtain: 130;  /* .sw-after : contenu qui glisse sur la bannière (index) */
  --z-fab: 140;      /* bouton WhatsApp — au-dessus du rideau */
  --z-nav: 150;      /* header — au-dessus du rideau */
  --z-menu: 200;
}

/* ---- Reset ---------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
}
body {
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
}
a { color: inherit; text-decoration: none; transition: color var(--t-fast), opacity var(--t-fast); }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
ul { list-style: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* ---- Typography ----------------------------------------- */
h1, h2, h3, h4 { font-weight: 600; line-height: 1.06; letter-spacing: -0.025em; }
.display {
  font-size: var(--fs-display);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: 0; }
.eyebrow {
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow--gold { color: var(--gold-text); }
.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--ink-soft); font-weight: 400; }

/* ---- Layout --------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.25rem, 5vw, 2.5rem); }
.container--wide { max-width: var(--maxw-wide); }
.section { padding-block: clamp(4.5rem, 11vw, 9rem); }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--black); color: #fff; }
.section--flush { padding-block: 0; }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }

.section-head { max-width: 720px; margin-inline: auto; text-align: center; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head .eyebrow { display: block; margin-bottom: var(--s2); }
.section-head h2 { font-size: var(--fs-h2); margin-bottom: var(--s3); }
.section-head p { color: var(--muted); font-size: var(--fs-lead); }
.section--dark .section-head p { color: rgba(255,255,255,0.55); }

/* ---- Buttons -------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font-size: var(--fs-sm); font-weight: 500; letter-spacing: 0;
  padding: 0.85rem 1.6rem; border-radius: 980px;
  min-height: 44px; white-space: nowrap;
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast), border-color var(--t-fast), opacity var(--t-fast);
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: #000; }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--gold { background: var(--gold); color: #fff; }
.btn--gold:hover { background: var(--gold-soft); }
.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { background: rgba(255,255,255,0.88); }
.btn--outline-white { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.5); }
.btn--outline-white:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.btn--lg { padding: 1rem 2rem; font-size: 1rem; }
/* Apple-style text link with chevron */
.link-arrow { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--gold-text); font-weight: 500; font-size: var(--fs-body); }
.link-arrow svg { width: 16px; height: 16px; transition: transform var(--t-fast); }
.link-arrow:hover svg { transform: translateX(4px); }
.section--dark .link-arrow { color: var(--gold-soft); }

/* ---- Navigation ----------------------------------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-nav);
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background var(--t-fast), backdrop-filter var(--t-fast), border-color var(--t-fast);
  border-bottom: 1px solid transparent;
}
.nav__inner { width: 100%; max-width: var(--maxw-wide); margin-inline: auto; padding-inline: clamp(1.25rem, 5vw, 2.5rem);
  display: flex; align-items: center; justify-content: space-between; }
.nav__logo { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; letter-spacing: -0.02em; color: #fff; transition: color var(--t-fast); }
.nav__logo b { font-size: 1.15rem; font-weight: 600; }
.nav__logo span { font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.6; font-weight: 500; }
/* Brand logo image (swaps with nav state) */
.nav__logo-img { height: 32px; width: auto; display: block; }
.nav__logo-img--on-light { display: none; }
.nav.is-solid .nav__logo-img--on-dark { display: none; }
.nav.is-solid .nav__logo-img--on-light { display: block; }
@media (max-width: 480px) { .nav__logo-img { height: 26px; } }
.footer__logo-img { height: 38px; width: auto; display: block; margin-bottom: 1.1rem; }
.nav__links { display: flex; gap: clamp(1rem, 2.4vw, 2.1rem); }
.nav__links a { font-size: 0.82rem; font-weight: 400; color: rgba(255,255,255,0.82); }
.nav__links a:hover { color: #fff; }
.nav__right { display: flex; align-items: center; gap: 1.25rem; }
.nav__lang { font-size: 0.72rem; color: rgba(255,255,255,0.7); letter-spacing: 0.05em; }
.nav__cta { min-height: 40px; display: inline-flex; align-items: center; font-size: 0.78rem; font-weight: 500; color: #fff; padding: 0.5rem 1.05rem; border: 1px solid rgba(255,255,255,0.45); border-radius: 980px; transition: all var(--t-fast); }
.nav__cta:hover { background: #fff; color: var(--ink); }

/* scrolled / solid state */
.nav.is-solid { background: rgba(255,255,255,0.8); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom-color: var(--line-soft); }
.nav.is-solid .nav__logo { color: var(--ink); }
.nav.is-solid .nav__links a { color: var(--ink-soft); }
.nav.is-solid .nav__links a:hover { color: var(--ink); }
.nav.is-solid .nav__lang { color: var(--muted); }
.nav.is-solid .nav__cta { color: var(--ink); border-color: var(--line); }
.nav.is-solid .nav__cta:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.nav.is-solid .nav__burger span { background: var(--ink); }

.nav__burger { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; align-items: flex-end; gap: 5px; }
.nav__burger span { display: block; width: 22px; height: 1.5px; background: #fff; transition: transform var(--t-fast), opacity var(--t-fast); }
.nav__burger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* mobile menu */
.menu { position: fixed; inset: 0; z-index: var(--z-menu); background: rgba(255,255,255,0.98); backdrop-filter: blur(20px);
  display: flex; flex-direction: column; justify-content: center; padding: 6rem 2rem 3rem;
  opacity: 0; visibility: hidden; transition: opacity var(--t-fast), visibility var(--t-fast); }
.menu.is-open { opacity: 1; visibility: visible; }
.menu a { font-size: 1.6rem; font-weight: 500; letter-spacing: -0.02em; padding: 0.6rem 0; color: var(--ink); border-bottom: 1px solid var(--line-soft); }
.menu__foot { margin-top: auto; padding-top: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.menu__foot .muted { color: var(--muted); font-size: var(--fs-sm); }
/* le sélecteur `.menu a` (0-1-1) bat `.btn--primary` (0-1-0) : re-forcer le texte blanc du CTA */
.menu__foot .btn--primary { color: #fff; border-bottom: 0; text-align: center; }
.menu__close { position: absolute; top: max(18px, env(safe-area-inset-top)); right: 16px; width: 44px; height: 44px;
  display: grid; place-items: center; background: transparent; border: 0; color: var(--ink); cursor: pointer; }

/* ---- Hero (full-viewport, Tesla-style) ------------------ */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; color: #fff; overflow: hidden; padding: var(--nav-h) 1.5rem 4rem; }
.hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: -2; transform: scale(1.05); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.15) 35%, rgba(0,0,0,0.25) 75%, rgba(0,0,0,0.55) 100%); }
.hero__inner { max-width: 900px; margin-top: 8vh; }
.hero .eyebrow { color: rgba(255,255,255,0.85); margin-bottom: 1.25rem; }
.hero__title { font-size: var(--fs-display); margin-bottom: 1.25rem; text-shadow: 0 2px 30px rgba(0,0,0,0.25); }
.hero__title em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
.hero__sub { font-size: var(--fs-lead); color: rgba(255,255,255,0.9); max-width: 600px; margin: 0 auto 2rem; font-weight: 400; }
.hero__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero__scroll { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.7); }
.hero__scroll-line { width: 1px; height: 38px; background: linear-gradient(rgba(255,255,255,0.7), transparent); animation: scrollPulse 2s var(--ease) infinite; }
@keyframes scrollPulse { 0%,100% { opacity: 0.3; transform: scaleY(0.6); } 50% { opacity: 1; transform: scaleY(1); } }

/* ---- Stats strip ---------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-soft); border-block: 1px solid var(--line-soft); }
.stat { background: var(--bg); padding: clamp(2rem, 4vw, 3.25rem) 1rem; text-align: center; }
.stat__num { font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 600; letter-spacing: -0.04em; }
.stat__num .accent { color: var(--gold); }
.stat__label { font-size: var(--fs-sm); color: var(--muted); margin-top: 0.4rem; }
.section--dark .stats, .section--dark .stat { background: transparent; border-color: rgba(255,255,255,0.12); }
.section--dark .stat { border-right: 1px solid rgba(255,255,255,0.12); }

/* ---- Press logos ---------------------------------------- */
.press { padding-block: clamp(2.5rem, 5vw, 4rem); background: var(--bg-alt); }
.press__row { display: flex; align-items: center; justify-content: center; gap: clamp(2rem, 6vw, 5rem); flex-wrap: wrap; opacity: 0.55; }
.press__row svg { height: 20px; width: auto; }

/* ---- Property cards ------------------------------------- */
.tabs { display: flex; justify-content: center; gap: 0.5rem; margin-bottom: 3rem; flex-wrap: wrap; }
.tab-btn { min-height: 44px; font-size: var(--fs-sm); font-weight: 500; color: var(--muted); padding: 0.6rem 1.25rem; border-radius: 980px; transition: all var(--t-fast); }
.tab-btn:hover { color: var(--ink); }
.tab-btn.is-active { background: var(--ink); color: #fff; }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: fadeUp 0.6s var(--ease); }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: clamp(1.25rem, 2.5vw, 2rem); }
.card { background: var(--bg); border-radius: var(--radius); overflow: hidden; transition: transform var(--t), box-shadow var(--t); }
.card:hover { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(0,0,0,0.10); }
.card__media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--bg-alt); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__badges { position: absolute; top: 1rem; left: 1rem; display: flex; gap: 0.4rem; flex-wrap: wrap; }
.badge { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.04em; padding: 0.35rem 0.7rem; border-radius: 980px; backdrop-filter: blur(8px); }
.badge--gold { background: rgba(184,151,90,0.92); color: #fff; }
.badge--light { background: rgba(255,255,255,0.92); color: var(--ink); }
.card__save { position: absolute; top: 0.85rem; right: 0.85rem; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.9); display: grid; place-items: center; backdrop-filter: blur(8px); transition: background var(--t-fast); }
.card__save:hover { background: #fff; }
.card__save svg { width: 17px; height: 17px; fill: none; stroke: var(--ink); stroke-width: 1.8; }
.card__body { padding: 1.35rem 1.4rem 1.5rem; }
.card__loc { display: flex; align-items: center; gap: 0.35rem; font-size: var(--fs-xs); letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.5rem; }
.card__loc svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; }
.card__title { font-size: 1.18rem; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 0.9rem; line-height: 1.2; }
.card__specs { display: flex; gap: 1.1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line-soft); margin-bottom: 1rem; }
.card__spec { display: flex; align-items: center; gap: 0.35rem; font-size: var(--fs-sm); color: var(--ink-soft); }
.card__spec svg { width: 15px; height: 15px; fill: none; stroke: var(--muted); stroke-width: 2; }
.card__foot { display: flex; align-items: flex-end; justify-content: space-between; }
.card__price { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.card__price-sub { font-size: var(--fs-xs); color: var(--muted); margin-top: 0.1rem; }
.card__go { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: all var(--t-fast); }
.card__go:hover { background: var(--ink); border-color: var(--ink); }
.card__go svg { width: 17px; height: 17px; fill: none; stroke: var(--ink); stroke-width: 2; transition: stroke var(--t-fast); }
.card__go:hover svg { stroke: #fff; }

/* ---- Feature panel (Apple split) ------------------------ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split--reverse .split__text { order: 2; }
.split__media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__text h2 { font-size: var(--fs-h2); margin-block: var(--s2) var(--s3); }
.split__text p { color: var(--muted); margin-bottom: var(--s3); }

/* ---- Promise grid --------------------------------------- */
.promise-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.promise { text-align: center; }
.promise__icon { width: 52px; height: 52px; margin: 0 auto 1.25rem; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); }
.promise__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--gold); stroke-width: 1.4; }
.promise h4 { font-size: 1.1rem; margin-bottom: 0.6rem; }
.promise p { font-size: var(--fs-sm); color: var(--muted); line-height: 1.6; }
.section--dark .promise__icon { border-color: rgba(255,255,255,0.2); }
.section--dark .promise p { color: rgba(255,255,255,0.55); }

/* ---- Destination / lifestyle panels (full-bleed tiles) -- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; }
.tile { position: relative; aspect-ratio: 3/4; border-radius: var(--radius); overflow: hidden; }
.tile--wide { grid-column: span 2; aspect-ratio: 16/10; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.tile:hover img { transform: scale(1.06); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,0.7) 100%); }
.tile__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.75rem; color: #fff; z-index: 1; }
.tile__label { font-size: var(--fs-xs); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 0.4rem; }
.tile__body h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.tile__body p { font-size: var(--fs-sm); color: rgba(255,255,255,0.78); max-height: 0; opacity: 0; overflow: hidden; transition: max-height var(--t), opacity var(--t), margin var(--t); }
.tile:hover .tile__body p { max-height: 120px; opacity: 1; margin-bottom: 0.75rem; }
.tile__link { font-size: var(--fs-sm); color: #fff; display: inline-flex; align-items: center; gap: 0.4rem; }

/* ---- Footer --------------------------------------------- */
.footer { background: var(--black); color: rgba(255,255,255,0.6); padding-block: clamp(3.5rem, 7vw, 6rem) 2.5rem; }
.footer__grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer__brand b { color: #fff; font-size: 1.3rem; font-weight: 600; }
.footer__brand p { font-size: var(--fs-sm); margin-top: 1rem; max-width: 280px; }
.footer h5 { color: #fff; font-size: var(--fs-sm); font-weight: 600; margin-bottom: 1.1rem; letter-spacing: 0.02em; }
.footer li { margin-bottom: 0.7rem; }
.footer li a { font-size: var(--fs-sm); color: rgba(255,255,255,0.6); }
.footer li a:hover { color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; padding-top: 2rem; font-size: var(--fs-xs); color: rgba(255,255,255,0.65); }
.footer__by { font-size: var(--fs-sm); }
.footer__by a { color: rgba(255,255,255,0.85); transition: color var(--t-fast); }
.footer__by a b { font-weight: 600; }
.footer__by a:hover { color: var(--gold-soft); }

/* ---- Floating WhatsApp ---------------------------------- */
.fab { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: var(--z-fab); width: 54px; height: 54px; border-radius: 50%;
  background: #25D366; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,0.2); transition: transform var(--t-fast); }
.fab:hover { transform: scale(1.08); }
.fab svg { width: 28px; height: 28px; fill: #fff; }

/* ---- Scroll reveal -------------------------------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
[data-stagger] > * { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
[data-stagger].is-in > * { opacity: 1; transform: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* ---- Responsive ----------------------------------------- */
@media (max-width: 980px) {
  .nav__links, .nav__right { display: none; }
  .nav__burger { display: flex; }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__text { order: 0; }
  .split__media { aspect-ratio: 16/11; }
  .tile--wide { grid-column: span 1; aspect-ratio: 3/4; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (hover: none), (max-width: 980px) {
  /* texte des tuiles toujours visible sans hover (mobile + tablettes tactiles) */
  .tile__body p { max-height: 120px; opacity: 1; margin-bottom: 0.75rem; }
}
@media (max-width: 640px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero__actions { flex-direction: column; width: 100%; max-width: 320px; }
  .hero__actions .btn { width: 100%; }
  /* tile p always visible on touch (no hover) */
  .tile__body p { max-height: 120px; opacity: 1; margin-bottom: 0.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal, [data-stagger] > * { opacity: 1 !important; transform: none !important; }
  .hero__bg { transform: none; }
}

/* ============================================================
   SUB-PAGE COMPONENTS
   ============================================================ */

/* Page header (compact hero for inner pages) */
.page-hero { position: relative; padding: calc(var(--nav-h) + 4.5rem) 0 3.5rem; background: var(--bg-alt); overflow: hidden; }
.page-hero--image { color: #fff; background: var(--black); padding: calc(var(--nav-h) + 7rem) 0 4.5rem; }
.page-hero--image .page-hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: 0; }
.page-hero--image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.5), rgba(0,0,0,0.35)); z-index: 0; }
.page-hero__inner { position: relative; z-index: 1; }
.page-hero h1 { font-size: var(--fs-h1); margin-top: 0.75rem; max-width: 16ch; }
.page-hero--image h1 { max-width: 20ch; }
.page-hero p { color: var(--muted); font-size: var(--fs-lead); margin-top: 1rem; max-width: 56ch; }
.page-hero--image p { color: rgba(255,255,255,0.8); }

/* Breadcrumb */
.crumb { display: flex; align-items: center; gap: 0.5rem; font-size: var(--fs-sm); color: var(--muted); }
.crumb a:hover { color: var(--ink); }
.page-hero--image .crumb, .page-hero--image .crumb a { color: rgba(255,255,255,0.7); }
.crumb span { opacity: 0.5; }

/* Filter / toolbar */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.toolbar__count { font-size: var(--fs-body); color: var(--ink); }
.toolbar__count b { font-weight: 600; }
.toolbar__right { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; font: inherit; font-size: 1rem; /* ≥16px : évite le zoom auto iOS */ padding: 0.6rem 2.2rem 0.6rem 1rem; border: 1px solid var(--line); border-radius: 980px; background: var(--bg); color: var(--ink); cursor: pointer; min-height: 44px; }
.select::after { content: ""; position: absolute; right: 1rem; top: 50%; width: 8px; height: 8px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: translateY(-65%) rotate(45deg); pointer-events: none; }
.view-toggle { display: flex; gap: 0.25rem; }
.view-toggle button { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; display: grid; place-items: center; color: var(--muted); }
.view-toggle button.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.view-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }

.filters { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 2rem; }
.chip { min-height: 44px; font-size: var(--fs-sm); padding: 0.55rem 1.1rem; border: 1px solid var(--line); border-radius: 980px; color: var(--ink-soft); transition: all var(--t-fast); cursor: pointer; }
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---- Property detail ---- */
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; aspect-ratio: 16/8; border-radius: var(--radius); overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery a:first-child { grid-row: span 2; }
.gallery a { position: relative; overflow: hidden; }
.gallery a img { transition: transform 0.8s var(--ease); }
.gallery a:hover img { transform: scale(1.05); }
.gallery__more { position: absolute; inset: 0; background: rgba(0,0,0,0.45); color: #fff; display: grid; place-items: center; font-size: var(--fs-sm); font-weight: 500; }

.detail { display: grid; grid-template-columns: 1fr 380px; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.detail__main h2 { font-size: var(--fs-h3); margin: 2.5rem 0 1rem; }
.detail__main p { color: var(--ink-soft); margin-bottom: 1rem; }
.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem 2rem; margin-top: 1rem; }
.feature-list li { display: flex; align-items: center; gap: 0.6rem; font-size: var(--fs-sm); color: var(--ink-soft); padding: 0.5rem 0; border-bottom: 1px solid var(--line-soft); }
.feature-list svg { width: 16px; height: 16px; fill: none; stroke: var(--gold); stroke-width: 2; flex-shrink: 0; }
.spec-row { display: flex; gap: clamp(1.5rem, 4vw, 3rem); flex-wrap: wrap; padding: 1.5rem 0; border-block: 1px solid var(--line); }
.spec-row .spec__v { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; }
.spec-row .spec__l { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }

.booking { position: sticky; top: calc(var(--nav-h) + 1.5rem); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; }
.booking__price { font-size: 1.9rem; font-weight: 600; letter-spacing: -0.03em; }
.booking__price-sub { font-size: var(--fs-sm); color: var(--muted); margin-bottom: 1.25rem; }
.booking .btn { width: 100%; margin-bottom: 0.6rem; }
.booking__meta { display: flex; align-items: center; gap: 0.5rem; justify-content: center; font-size: var(--fs-xs); color: var(--muted); margin-top: 0.75rem; }

/* Sticky mobile CTA bar */
.cta-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: var(--z-cta); background: rgba(255,255,255,0.92); backdrop-filter: blur(16px); border-top: 1px solid var(--line-soft); padding: 0.75rem clamp(1rem,5vw,1.5rem); display: none; align-items: center; justify-content: space-between; gap: 1rem; }
.cta-bar__price { font-size: 1.15rem; font-weight: 600; }
.cta-bar__price small { display: block; font-size: var(--fs-xs); color: var(--muted); font-weight: 400; }

/* ---- Forms ---- */
.form { display: grid; gap: 1.25rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-size: var(--fs-sm); font-weight: 500; }
.field .req { color: var(--gold); }
.field input, .field select, .field textarea { font: inherit; font-size: var(--fs-body); padding: 0.85rem 1rem; min-height: 48px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); color: var(--ink); transition: border-color var(--t-fast); width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(184,151,90,0.30); }
.field textarea { min-height: 120px; resize: vertical; }
.field__hint { font-size: var(--fs-xs); color: var(--muted); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.steps { display: flex; gap: 0.5rem; margin-bottom: 2.5rem; }
.step { flex: 1; height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; }
.step.is-done { background: var(--gold); }
.benefit-list { display: grid; gap: 1.5rem; }
.benefit { display: flex; gap: 1rem; }
.benefit__icon { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; }
.benefit__icon svg { width: 20px; height: 20px; fill: none; stroke: var(--gold); stroke-width: 1.5; }
.benefit h4 { font-size: 1rem; margin-bottom: 0.2rem; }
.benefit p { font-size: var(--fs-sm); color: var(--muted); }
.page-hero--image .benefit h4 { color: #fff; }
.page-hero--image .benefit p { color: rgba(255,255,255,0.7); }
.page-hero--image .benefit__icon { border-color: rgba(255,255,255,0.25); }

/* ---- Checkout ---- */
.summary { background: var(--bg-alt); border-radius: var(--radius); overflow: hidden; }
.summary__media { aspect-ratio: 16/9; }
.summary__media img { width: 100%; height: 100%; object-fit: cover; }
.summary__body { padding: 1.5rem; }
.summary__row { display: flex; justify-content: space-between; padding: 0.7rem 0; font-size: var(--fs-body); color: var(--ink-soft); border-bottom: 1px solid var(--line-soft); }
.summary__row--total { font-weight: 600; color: var(--ink); font-size: 1.2rem; border-bottom: none; padding-top: 1.1rem; }
.summary__row .num { font-variant-numeric: tabular-nums; }
.rating { display: flex; align-items: center; gap: 0.4rem; font-size: var(--fs-sm); color: var(--ink-soft); }
.rating svg { width: 15px; height: 15px; fill: var(--gold); }

/* ---- About / story ---- */
.story-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; }
@media (max-width: 860px) { .story-grid { grid-template-columns: repeat(2, 1fr); } .story-stat { padding: 1.5rem 0.75rem; } }
.story-stat { background: var(--bg); padding: 2.25rem 1.5rem; text-align: center; }
.story-stat__n { font-size: clamp(1.6rem, 6vw, 2.5rem); font-weight: 600; letter-spacing: -0.03em; white-space: nowrap; }
.story-stat__l { font-size: var(--fs-sm); color: var(--muted); margin-top: 0.3rem; }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
@media (max-width: 980px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .team-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; } }
.member__photo { aspect-ratio: 3/4; border-radius: var(--radius); overflow: hidden; margin-bottom: 1rem; }
.member__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.member:hover .member__photo img { transform: scale(1.05); }
.member h4 { font-size: 1.1rem; }
.member span { font-size: var(--fs-sm); color: var(--muted); }

/* ---- Services (management) ---- */
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: clamp(1.25rem,3vw,2rem); }
.service { padding: 2rem; border: 1px solid var(--line-soft); border-radius: var(--radius); transition: border-color var(--t-fast), transform var(--t); }
.service:hover { border-color: var(--line); transform: translateY(-4px); }
.service__icon { width: 48px; height: 48px; border-radius: 14px; background: var(--bg-alt); display: grid; place-items: center; margin-bottom: 1.25rem; }
.service__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--gold); stroke-width: 1.5; }
.service h4 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.service p { font-size: var(--fs-sm); color: var(--muted); }
.section--dark .service { border-color: rgba(255,255,255,0.12); }
.section--dark .service__icon { background: rgba(255,255,255,0.06); }
.section--dark .service p { color: rgba(255,255,255,0.55); }

@media (max-width: 900px) {
  .detail { grid-template-columns: 1fr; }
  .booking { position: static; }
  .cta-bar { display: flex; }
  .gallery { grid-template-columns: 1fr 1fr; aspect-ratio: 3/2; }
  .gallery a:first-child { grid-column: span 2; grid-row: span 1; }
  .gallery a:nth-child(n+4) { display: none; }
  body:has(.cta-bar) .fab { bottom: 5.25rem; }
}
@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
  .feature-list { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; grid-template-rows: 1fr; aspect-ratio: 4/3; }
  .gallery a:nth-child(n+2) { display: none; }
  .gallery a:first-child { grid-column: span 1; grid-row: span 1; }
}

/* Vue liste (toggle de la page propriétés) */
.cards--list { grid-template-columns: 1fr !important; }
.cards--list .card { display: grid; grid-template-columns: minmax(220px, 340px) 1fr; }
.cards--list .card__media { aspect-ratio: 4/3; height: 100%; }
@media (max-width: 640px) { .cards--list .card { grid-template-columns: 1fr; } }
/* Favori actif */
.card__save.is-saved svg { fill: var(--gold); stroke: var(--gold); }

/* ---- Carrousel fiche bien ---- */
.pd-carousel { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/8; background: var(--bg-alt); }
.pd-carousel__track { display: flex; height: 100%; transition: transform 0.55s var(--ease); will-change: transform; }
.pd-carousel__slide { flex: 0 0 100%; height: 100%; }
.pd-carousel__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-carousel__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.92); color: var(--ink); display: grid; place-items: center; backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.18); transition: background var(--t-fast), transform var(--t-fast); }
.pd-carousel__nav:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.pd-carousel__nav--prev { left: 14px; } .pd-carousel__nav--next { right: 14px; }
.pd-carousel__count { position: absolute; top: 14px; right: 14px; font-size: var(--fs-xs); font-weight: 500; letter-spacing: 0.04em;
  color: #fff; background: rgba(10,14,20,0.55); padding: 0.35rem 0.75rem; border-radius: 980px; backdrop-filter: blur(8px); }
.pd-carousel__more { position: absolute; bottom: 14px; right: 14px; font-size: var(--fs-xs); font-weight: 500; color: #fff;
  background: rgba(10,14,20,0.55); padding: 0.45rem 0.9rem; border-radius: 980px; backdrop-filter: blur(8px); transition: background var(--t-fast); }
.pd-carousel__more:hover { background: rgba(10,14,20,0.8); }
.pd-carousel__dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 7px; }
.pd-carousel__dots button { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.5); transition: background var(--t-fast), transform var(--t-fast); padding: 0; }
.pd-carousel__dots button.is-active { background: #fff; transform: scale(1.25); }
@media (max-width: 640px) {
  .pd-carousel { aspect-ratio: 4/3; }
  .pd-carousel__more { display: none; }
  .pd-carousel__dots { bottom: 12px; }
}
