/* =============================================================================
   BIBI HOUSE · styles.css
   Direction : Grand Hôtel Atlantique · cinematic editorial, Côte des Basques.
   Palette   : Chromatic CH2 0332 Vert Sariette · CH2 0285 Bleu Versa
               CH2 0735 Vert Armerie · Flamant Old Church White
   Type      : Anton (mark) · Instrument Serif (editorial) · Archivo (UI/body)
   ============================================================================= */


/* Force hide for [hidden] attribute (overrides flex/grid/block author rules). */
[hidden] { display: none !important; }

/* Preview mode · single flag: toggle `is-preview` on <html> (set by inline script in <head>).
   Présent : seule la hero + logo sont visibles. URL `?live` retire la classe pour tout afficher. */
.is-preview .nav__menu,
.is-preview .nav__burger,
.is-preview .nav__cta,
.is-preview .rail,
.is-preview .hero__scroll,
.is-preview .marquee,
.is-preview .manifesto,
.is-preview .chambres,
.is-preview .plans,
.is-preview .founder,
.is-preview .cta,
.is-preview .foot { display: none !important; }


/* ==== 01 · TOKENS ================================================= */

:root {
  /* Colors */
  --c-canvas:    #EDE3CE;                     /* Old Church White */
  --c-canvas-2:  #F4ECD7;
  --c-ink:       #1C1E17;
  --c-ink-2:     #4A4E43;
  --c-ink-3:     #6E7267;
  --c-sariette:  #3E4A38;                     /* CH2 0332 */
  --c-sariette-2:#2A3325;
  --c-versa:     #3E5668;                     /* CH2 0285 */
  --c-armerie:   #9AA686;                     /* CH2 0735 */
  --c-armerie-2: #B6C0A6;

  --c-line:      rgba(28,30,23,.14);
  --c-line-soft: rgba(28,30,23,.06);
  --c-over:      rgba(28,30,23,.35);

  /* Type */
  --f-mark:  'Anton', 'Oswald', 'Arial Narrow', sans-serif;
  --f-serif: 'Instrument Serif', 'Cormorant Garamond', Georgia, serif;
  --f-sans:  'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --fz-xs:      .72rem;
  --fz-sm:      .84rem;
  --fz-base:    1rem;
  --fz-md:      1.08rem;
  --fz-lg:      clamp(1.15rem, 1.4vw, 1.3rem);
  --fz-xl:      clamp(1.5rem, 2.4vw, 2.1rem);
  --fz-2xl:     clamp(2rem, 3.6vw, 3.4rem);
  --fz-display: clamp(2.4rem, 5.6vw, 5rem);
  --fz-hero:    clamp(5rem, 18vw, 18rem);
  --fz-cta:     clamp(3rem, 9vw, 8.5rem);

  --lh-tight:  0.92;
  --lh-snug:   1.06;
  --lh-body:   1.6;

  /* Rhythm */
  --gutter:  clamp(20px, 3.2vw, 56px);
  --section: clamp(96px, 14vh, 200px);
  --max-w:   1560px;

  /* Motion */
  --t-fast:   180ms;
  --t-mid:    420ms;
  --t-slow:   700ms;
  --t-reveal: 1100ms;
  --e-out:    cubic-bezier(.16,.84,.3,1);
  --e-in-out: cubic-bezier(.7,0,.3,1);
  --e-soft:   cubic-bezier(.4,0,.2,1);

  /* Scroll progress injected by JS (0..1) */
  --scroll-progress: 0;
}


/* ==== 02 · RESET + BASE =========================================== */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--c-canvas);
}
html, body {
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: var(--lh-body);
  color: var(--c-ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  background: var(--c-canvas);
}

img, svg, video { max-width: 100%; display: block; }
img { -webkit-user-drag: none; user-select: none; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; }
em { font-style: italic; }

::selection { background: var(--c-sariette); color: var(--c-canvas); }

/* Skip link */
.skip {
  position: fixed; top: 10px; left: 10px; z-index: 2000;
  background: var(--c-ink); color: var(--c-canvas);
  padding: 8px 14px; border-radius: 2px; font-size: var(--fz-sm);
  transform: translateY(-200%); transition: transform var(--t-mid) var(--e-out);
}
.skip:focus { transform: translateY(0); }


/* ==== 03 · LAYOUT · CONTAINERS & ATMOSPHERE ======================= */

main { position: relative; z-index: 1; }

/* Grain film overlay */
.grain {
  position: fixed; inset: 0; z-index: 300;
  pointer-events: none; opacity: .09;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.109  0 0 0 0 0.117  0 0 0 0 0.09  0 0 0 0.85 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 240px 240px;
}

/* Custom cursor */
.cursor { position: fixed; top: 0; left: 0; z-index: 1000; pointer-events: none; mix-blend-mode: normal; display: none; }
.cursor span {
  display: block; width: 10px; height: 10px; border-radius: 50%;
  background: var(--c-sariette);
  transform: translate(-50%, -50%);
  transition: width var(--t-mid) var(--e-out), height var(--t-mid) var(--e-out), background var(--t-mid) var(--e-out), opacity var(--t-mid) var(--e-out);
}
.cursor.is-hover span {
  width: 48px; height: 48px;
  background: transparent;
  border: 1px solid var(--c-sariette);
}
.cursor.is-dark span { background: var(--c-canvas); }
.cursor.is-hover.is-dark span { border-color: var(--c-canvas); background: transparent; }
@media (hover: hover) and (pointer: fine) {
  .cursor { display: block; }
  html.cursor-on, html.cursor-on * { cursor: none !important; }
}

/* Section-level reveal (opacity/translate driven by JS adding .is-in) */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity var(--t-reveal) var(--e-out), transform var(--t-reveal) var(--e-out);
  transition-delay: var(--reveal-d, 0ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }


/* ==== 04 · NAV ==================================================== */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 400;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--gutter);
  padding: 18px var(--gutter);
  color: var(--c-canvas);
  transition: background-color var(--t-mid) var(--e-out),
              color var(--t-mid) var(--e-out),
              border-color var(--t-mid) var(--e-out);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(237,227,206,.92);
  color: var(--c-ink);
  border-bottom-color: var(--c-line);
  backdrop-filter: saturate(1.1) blur(10px);
  -webkit-backdrop-filter: saturate(1.1) blur(10px);
}

.nav__mark {
  justify-self: start;
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mark);
  font-size: 22px; letter-spacing: -.02em; line-height: 1;
  text-transform: uppercase;
}
.nav__mark-b, .nav__mark-h { display: inline-block; }
.nav__mark-word {
  font-family: var(--f-serif); font-style: italic; font-size: 15px; letter-spacing: 0;
  text-transform: none;
  padding-left: 6px; border-left: 1px solid currentColor;
  opacity: .85;
}
.nav__mark-word em { font-style: italic; }

.nav__menu {
  justify-self: center;
  display: flex;
  gap: clamp(18px, 2.4vw, 36px);
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
}
.nav__menu a {
  display: inline-flex; align-items: baseline; gap: 6px;
  padding: 4px 2px;
  position: relative;
  transition: opacity var(--t-fast) var(--e-out);
}
.nav__menu a::after {
  content: ""; position: absolute; left: 2px; right: 2px; bottom: -2px;
  height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform var(--t-mid) var(--e-out);
}
.nav__menu a:hover::after,
.nav__menu a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__num { font-family: var(--f-serif); font-style: italic; font-size: 11px; opacity: .7; letter-spacing: 0; text-transform: none; }

.nav__cta {
  justify-self: end;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  transition: background-color var(--t-mid) var(--e-out), color var(--t-mid) var(--e-out);
}
.nav__cta-short { display: none; }
.nav__cta-full { display: inline; }
.nav__cta:hover { background: currentColor; color: var(--c-canvas); }
.nav.is-scrolled .nav__cta:hover { color: var(--c-canvas); background: var(--c-ink); border-color: var(--c-ink); }

.nav__burger { display: none; width: 28px; height: 22px; position: relative; }
.nav__burger i {
  position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform var(--t-mid) var(--e-out), opacity var(--t-mid) var(--e-out);
}
.nav__burger i:nth-child(1) { top: 6px; }
.nav__burger i:nth-child(2) { top: 14px; }

@media (max-width: 900px) {
  .nav { padding: 14px 20px; grid-template-columns: auto auto auto; justify-content: space-between; gap: 12px; }
  .nav__menu {
    position: fixed; inset: 62px 0 auto 0;
    flex-direction: column; gap: 0;
    background: var(--c-canvas);
    padding: 16px 20px 24px;
    border-bottom: 1px solid var(--c-line);
    box-shadow: 0 8px 24px -20px rgba(28,30,23,.35);
    transform: translateY(-110%);
    visibility: hidden;
    transition: transform var(--t-mid) var(--e-out), visibility var(--t-mid) var(--e-out);
    color: var(--c-ink);
    z-index: 399;
  }
  .nav__menu.is-open { transform: translateY(0); visibility: visible; }
  .nav__menu a { padding: 12px 0; border-bottom: 1px dashed var(--c-line); font-size: 12px; }
  .nav__menu a:last-child { border-bottom: 0; }
  .nav__burger { display: block; order: 3; }
  .nav__cta { padding: 8px 14px; font-size: 11px; letter-spacing: .06em; }
  .nav__cta-full { display: none; }
  .nav__cta-short { display: inline; }
  .nav__cta svg { display: none; }
  .nav__mark-word { display: none; }
  body.menu-open { overflow: hidden; }
}


/* ==== 05 · RAIL (chapters index) ================================== */

.rail {
  position: fixed; top: 50%; left: 28px; transform: translateY(-50%);
  z-index: 350;
  font-family: var(--f-sans);
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--c-ink-2);
  pointer-events: auto;
  transition: opacity var(--t-mid) var(--e-out), color var(--t-mid) var(--e-out);
}
.rail.is-hidden { opacity: 0; pointer-events: none; }
.rail__list { display: flex; flex-direction: column; gap: 18px; }
.rail__item a {
  display: inline-flex; align-items: center; gap: 14px;
  position: relative; padding-left: 28px;
  transition: color var(--t-mid) var(--e-out), opacity var(--t-mid) var(--e-out);
  opacity: .6;
}
.rail__item a::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 20px; height: 1px; background: currentColor; opacity: .5;
  transition: width var(--t-mid) var(--e-out), opacity var(--t-mid) var(--e-out), background var(--t-mid) var(--e-out);
}
.rail__item a:hover { opacity: 1; }
.rail__item a:hover::before { width: 28px; opacity: 1; }
.rail__item.is-active a { color: var(--c-sariette); opacity: 1; }
.rail__item.is-active a::before { background: var(--c-sariette); width: 28px; opacity: 1; height: 2px; }
.rail__num { font-family: var(--f-serif); font-style: italic; letter-spacing: 0; text-transform: none; font-size: 13px; opacity: .8; }

@media (max-width: 1100px) { .rail { display: none; } }

/* Push content right on desktop to clear the rail */
@media (min-width: 1100px) {
  .manifesto, .lieu, .chambres, .routine, .founder { padding-left: clamp(160px, 13vw, 220px); }
}


/* ==== 06 · HERO =================================================== */

.hero {
  position: relative; z-index: 1;
  height: 100vh; min-height: 640px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(80px, 12vh, 120px) var(--gutter) clamp(30px, 4vh, 48px);
  overflow: hidden;
  color: var(--c-canvas);
  isolation: isolate;
}
.hero__media {
  position: absolute; inset: 0; z-index: -1;
  overflow: hidden;
}
.hero__media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.08);
  filter: saturate(.84) contrast(1.02);
  animation: heroSlowZoom 18s var(--e-soft) forwards;
}
.hero__media video {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.84) contrast(1.02);
}
.hero__media-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(28,30,23,.2) 0%, rgba(28,30,23,0) 30%, rgba(28,30,23,0) 60%, rgba(28,30,23,.55) 100%),
    linear-gradient(0deg, rgba(62,74,56,.18), rgba(62,74,56,.18));
}
@keyframes heroSlowZoom { from { transform: scale(1.14); } to { transform: scale(1.02); } }

.hero__eyebrow {
  display: flex; gap: 14px; align-items: center; justify-content: center;
  font-size: 11px; letter-spacing: .34em; text-transform: uppercase;
  opacity: 0; animation: fadeDown 1s var(--e-out) .4s forwards;
}
.hero__eyebrow i {
  display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: currentColor;
  opacity: .55;
}

.hero__title {
  align-self: center; justify-self: center;
  font-family: var(--f-mark);
  font-size: var(--fz-hero);
  line-height: var(--lh-tight);
  letter-spacing: -.02em;
  text-transform: uppercase;
  text-align: center;
  font-weight: 400;
}
.hero__line { display: block; overflow: hidden; }
.hero__line span {
  display: inline-block;
  transform: translateY(120%);
  will-change: transform;
}
body.is-loaded .hero__line span {
  animation: heroLetter 1.1s var(--e-out) forwards;
}
.hero__line--1 span:nth-child(1){ animation-delay: .50s }
.hero__line--1 span:nth-child(2){ animation-delay: .58s }
.hero__line--1 span:nth-child(3){ animation-delay: .66s }
.hero__line--1 span:nth-child(4){ animation-delay: .74s }
.hero__line--2 span:nth-child(1){ animation-delay: .86s }
.hero__line--2 span:nth-child(2){ animation-delay: .94s }
.hero__line--2 span:nth-child(3){ animation-delay: 1.02s }
.hero__line--2 span:nth-child(4){ animation-delay: 1.10s }
.hero__line--2 span:nth-child(5){ animation-delay: 1.18s }
@keyframes heroLetter { from { transform: translateY(120%); } to { transform: translateY(0); } }

.hero__tagline {
  position: absolute; left: var(--gutter); bottom: clamp(88px, 14vh, 140px);
  max-width: 38ch;
  font-family: var(--f-serif); font-size: clamp(18px, 1.9vw, 26px);
  line-height: 1.35; letter-spacing: .003em;
  opacity: 0; animation: fadeUp 1.1s var(--e-out) 1.6s forwards;
}
.hero__tagline em { font-style: italic; }

.hero__foot {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: var(--gutter);
  opacity: 0; animation: fadeUp 1.1s var(--e-out) 1.8s forwards;
}
.hero__scroll {
  display: inline-flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 10px; letter-spacing: .4em; text-transform: uppercase; opacity: .8;
}
.hero__scroll svg { opacity: .9; }

.hero__coords {
  font-family: var(--f-sans); font-weight: 300; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; opacity: .85;
}

@keyframes fadeDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: .9; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

@media (max-width: 720px) {
  .hero__tagline { position: static; margin-top: 20px; max-width: 28ch; font-size: 18px; }
  .hero__foot { flex-direction: column; align-items: flex-start; gap: 20px; }
  .hero__eyebrow { flex-wrap: wrap; gap: 8px; font-size: 10px; }
}


/* ==== 07 · MARQUEE ================================================= */

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  padding: 18px 0;
  color: var(--c-sariette);
  background: var(--c-canvas);
}
.marquee__track {
  display: flex; align-items: center; gap: 36px;
  white-space: nowrap;
  font-family: var(--f-mark); font-size: 18px; letter-spacing: .22em; text-transform: uppercase;
  animation: marquee 54s linear infinite;
  will-change: transform;
}
.marquee__track i {
  font-family: var(--f-serif); font-style: italic; opacity: .5;
  font-size: 14px;
}
.marquee__track span { padding: 0 2px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }


/* ==== 08 · SHARED SECTION PRIMITIVES =============================== */

section { padding: var(--section) var(--gutter); position: relative; }
.chap {
  display: inline-block; font-family: var(--f-serif); font-style: italic;
  font-size: 15px; letter-spacing: .04em;
  color: var(--c-ink-2);
}
.chap-word {
  display: inline-block; margin-left: 10px; font-family: var(--f-sans); font-weight: 400;
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--c-ink-2);
}
.section-title {
  font-family: var(--f-serif);
  font-size: var(--fz-display);
  line-height: 1.02; letter-spacing: -.005em;
  color: var(--c-ink);
  font-weight: 400;
}
.section-title em { font-style: italic; color: var(--c-sariette); }
.section-kicker {
  max-width: 58ch; font-size: var(--fz-md); color: var(--c-ink-2);
  line-height: 1.55;
}


/* ==== 09 · MANIFESTO =============================================== */

.manifesto { min-height: 90vh; }
.manifesto__grid {
  display: grid;
  grid-template-columns: minmax(180px, 2fr) minmax(320px, 5fr);
  gap: clamp(32px, 5vw, 80px);
  max-width: var(--max-w);
  margin: 0 auto;
  align-items: start;
}
.manifesto__label { display: flex; flex-direction: column; gap: 6px; padding-top: 12px; border-top: 1px solid var(--c-line); }
.manifesto__label .chap { color: var(--c-ink); }
.manifesto__label .chap-word { margin-left: 0; display: block; }

.manifesto__title {
  font-family: var(--f-serif);
  font-size: clamp(2rem, 5.4vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -.004em;
  color: var(--c-ink);
  font-weight: 400;
}
.manifesto__title em { font-style: italic; color: var(--c-sariette); }

.manifesto__text {
  margin-top: clamp(28px, 4vw, 48px);
  display: grid; gap: 16px;
  max-width: 60ch;
  font-size: var(--fz-md); color: var(--c-ink-2); line-height: 1.65;
}
.manifesto__text em { font-style: italic; color: var(--c-ink); }

.manifesto__pull {
  margin-top: clamp(48px, 8vw, 90px);
  padding-top: 28px; border-top: 1px solid var(--c-line);
  font-family: var(--f-serif); font-size: clamp(1.3rem, 2.2vw, 2.1rem);
  line-height: 1.35;
  max-width: 40ch;
  color: var(--c-sariette);
}
.manifesto__pull em { font-style: italic; }

@media (max-width: 900px) {
  .manifesto__grid { grid-template-columns: 1fr; gap: 32px; }
  .manifesto__label { border-top: 0; padding-top: 0; }
}


/* ==== 10 · LIEU (contact sheet) ==================================== */

.lieu { padding-top: calc(var(--section) * .6); }
.lieu__head, .chambres__head, .routine__head, .plans__head {
  max-width: var(--max-w); margin: 0 auto clamp(48px, 8vw, 90px);
  display: grid; gap: 16px;
}
.lieu__head .chap { margin-bottom: 4px; }

.lieu__grid {
  max-width: var(--max-w); margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}

.sheet {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(10px, 1.4vw, 16px);
  transition: filter var(--t-mid) var(--e-out);
}
.sheet:hover .sheet__cell:not(:hover) { filter: grayscale(1) opacity(.55); }
.sheet__cell {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--c-canvas-2);
  box-shadow: 0 1px 0 var(--c-line-soft);
  transition: transform var(--t-mid) var(--e-out), filter var(--t-mid) var(--e-out);
}
.sheet__cell img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.02);
  transition: transform 1.8s var(--e-soft), filter var(--t-mid) var(--e-out);
  filter: saturate(.88);
}
.sheet__cell:hover img { transform: scale(1.06); filter: saturate(1); }
.sheet__cell figcaption {
  position: absolute; left: 10px; bottom: 10px;
  font-size: 10px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--c-canvas);
  background: rgba(28,30,23,.65);
  padding: 5px 8px; border-radius: 1px;
  display: inline-flex; gap: 8px;
}
@media (min-width: 900px) {
  .sheet__cell figcaption { background: rgba(28,30,23,.55); backdrop-filter: blur(2px); }
}
.sheet__cell figcaption span {
  font-family: var(--f-serif); font-style: italic; letter-spacing: 0; text-transform: none;
  color: var(--c-canvas); font-size: 11px; opacity: .85;
}

.facts {
  position: sticky; top: 100px;
  padding: 28px;
  border: 1px solid var(--c-line);
  background: var(--c-canvas-2);
}
.facts__title {
  font-family: var(--f-serif); font-size: var(--fz-xl);
  margin-bottom: 20px; color: var(--c-ink);
  font-weight: 400;
}
.facts__list { display: grid; gap: 14px; }
.facts__list > div {
  display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 12px;
  padding-bottom: 12px; border-bottom: 1px dashed var(--c-line);
}
.facts__list > div:last-child { border-bottom: 0; padding-bottom: 0; }
.facts__list dt { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--c-ink-2); }
.facts__list dd { font-family: var(--f-mark); font-size: clamp(18px, 1.8vw, 22px); color: var(--c-ink); }
.facts__note {
  margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--c-line);
  font-family: var(--f-sans); font-weight: 300; font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--c-ink-3);
}

@media (max-width: 900px) {
  .lieu__grid { grid-template-columns: 1fr; }
  .sheet { grid-template-columns: repeat(2, 1fr); }
  .facts { position: static; }
}


/* ==== 11 · CHAMBRES =============================================== */

.chambre {
  position: relative;
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  max-width: var(--max-w); margin: 0 auto;
  padding: clamp(40px, 8vh, 80px) 0;
}
.chambre + .chambre { border-top: 1px solid var(--c-line); margin-top: clamp(40px, 6vw, 80px); padding-top: clamp(60px, 10vh, 120px); }
.chambre--flip { grid-template-columns: 5fr 6fr; }
.chambre--flip .chambre__media { order: 2; }
.chambre--flip .chambre__body { order: 1; padding-right: clamp(16px, 3vw, 40px); }

.chambre__media {
  position: relative; overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--c-canvas-2);
}
.chambre__media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.08);
  filter: saturate(.88);
  will-change: transform;
}
.chambre__body { padding: 0 clamp(10px, 2vw, 28px); }
.chambre__num {
  font-family: var(--f-serif); font-style: italic;
  font-size: clamp(40px, 6vw, 72px); line-height: 1;
  color: var(--c-armerie); display: inline-block; margin-bottom: 14px;
}
.chambre__title {
  font-family: var(--f-serif); font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.02; letter-spacing: -.005em;
  color: var(--c-ink); margin-bottom: 20px;
}
.chambre__title em { font-style: italic; color: var(--c-sariette); }
.chambre__lede {
  font-size: var(--fz-md); color: var(--c-ink-2);
  line-height: 1.6;
  max-width: 48ch;
  margin-bottom: 22px;
}
.chambre__lede em { font-style: italic; color: var(--c-ink); }
.chambre__list {
  display: grid; gap: 10px;
  font-size: var(--fz-base); color: var(--c-ink);
  border-top: 1px solid var(--c-line); padding-top: 18px;
}
.chambre__list li {
  padding-left: 22px; position: relative;
  line-height: 1.5;
}
.chambre__list li::before {
  content: "·"; position: absolute; left: 0; top: 0;
  font-family: var(--f-serif); font-style: italic; color: var(--c-armerie);
}

@media (max-width: 900px) {
  .chambre, .chambre--flip { grid-template-columns: 1fr; gap: 24px; }
  .chambre--flip .chambre__media { order: 0; }
  .chambre--flip .chambre__body { order: 1; padding-right: 0; }
  .chambre__media { aspect-ratio: 5/4; }
}


/* ==== 12 · ROUTINE ================================================= */

.routine__grid {
  max-width: var(--max-w); margin: 0 auto;
  display: grid;
  grid-template-columns: clamp(68px, 8vw, 110px) 1fr;
  gap: clamp(24px, 4vw, 60px);
}

.routine__rail {
  position: sticky; top: 110px; align-self: start;
  height: calc(100vh - 160px);
  display: grid; grid-template-columns: 1px 1fr; gap: 12px;
}
.routine__track {
  position: relative;
  width: 1px; height: 100%;
  background: var(--c-line);
}
.routine__track::after {
  content: ""; position: absolute; top: 0; left: 0; width: 100%;
  height: calc(var(--scroll-progress, 0) * 100%);
  background: var(--c-versa);
  transition: height 80ms linear;
}
.routine__ticks {
  display: flex; flex-direction: column; justify-content: space-between;
  height: 100%;
  font-family: var(--f-sans); font-weight: 300;
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--c-ink-3);
}

.routine__items { display: grid; gap: clamp(30px, 6vh, 80px); padding: 10px 0; }
.routine__item {
  display: grid;
  grid-template-columns: minmax(120px, 160px) 1fr;
  gap: clamp(16px, 3vw, 40px);
  align-items: start;
  padding: clamp(20px, 3vh, 40px) 0;
  border-bottom: 1px solid var(--c-line);
}
.routine__item:last-child { border-bottom: 0; }
.routine__time {
  font-family: var(--f-mark);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -.01em;
  color: var(--c-sariette);
  line-height: 1;
}
.routine__text {
  font-family: var(--f-serif);
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  line-height: 1.4;
  color: var(--c-ink);
  max-width: 48ch;
}
.routine__text em { font-style: italic; color: var(--c-sariette); }

@media (max-width: 700px) {
  .routine__grid { grid-template-columns: 1fr; }
  .routine__rail { display: none; }
  .routine__item { grid-template-columns: 1fr; gap: 10px; }
}


/* ==== 13 · PLANS (menu d'hôtel) =================================== */

.plans { background: var(--c-canvas-2); }
.plans__head {
  max-width: 960px; text-align: center; justify-items: center;
}
.plans__head .section-kicker { margin: 0 auto; }

.menu {
  max-width: 820px; margin: 0 auto;
  padding: clamp(36px, 5vw, 72px) clamp(24px, 4vw, 64px);
  background: var(--c-canvas);
  border: 1px solid var(--c-line);
  box-shadow: 0 1px 0 rgba(28,30,23,.05), 0 20px 60px -40px rgba(28,30,23,.25);
}
.menu__list { display: grid; gap: clamp(26px, 3vw, 42px); }
.menu__item {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: baseline;
  gap: clamp(12px, 2vw, 24px);
  padding-bottom: clamp(22px, 3vw, 36px);
  border-bottom: 1px dashed var(--c-line);
  position: relative;
}
.menu__list li:last-child { border-bottom: 0; padding-bottom: 0; }
.menu__num {
  font-family: var(--f-serif); font-style: italic; font-size: 22px;
  color: var(--c-armerie);
  line-height: 1;
}
.menu__body { max-width: 52ch; }
.menu__name {
  font-family: var(--f-mark);
  font-size: clamp(2rem, 3.6vw, 2.6rem);
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--c-ink); line-height: 1;
  font-weight: 400;
  display: inline-flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
}
.menu__flag {
  font-family: var(--f-serif); font-style: italic; font-size: 14px;
  color: var(--c-ink-2); text-transform: none; letter-spacing: 0;
}
.menu__desc {
  margin-top: 8px;
  font-family: var(--f-serif); font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.5; color: var(--c-ink-2);
}
.menu__desc em { font-style: italic; }
.menu__price {
  display: flex; align-items: baseline; gap: 6px; white-space: nowrap;
  color: var(--c-ink);
}
.menu__amount {
  font-family: var(--f-mark); font-size: clamp(2rem, 3.4vw, 2.6rem); line-height: 1; letter-spacing: -.01em;
}
.menu__unit { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--c-ink-2); }

.menu__item--featured {
  background: linear-gradient(180deg, rgba(154,166,134,.11), rgba(154,166,134,0));
  margin: 0 calc(clamp(24px, 4vw, 64px) * -1);
  padding-left: clamp(24px, 4vw, 64px);
  padding-right: clamp(24px, 4vw, 64px);
  padding-top: clamp(24px, 3vw, 38px);
  border-top: 1px dashed var(--c-line);
  border-bottom: 1px dashed var(--c-line);
}

.menu__footnote {
  margin-top: clamp(36px, 5vw, 56px);
  padding-top: 22px; border-top: 1px solid var(--c-line);
  text-align: center;
  font-family: var(--f-serif); font-style: italic;
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--c-ink-2);
}
.menu__footnote a {
  color: var(--c-sariette); font-style: normal; font-family: var(--f-sans);
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  border-bottom: 1px solid var(--c-sariette);
  padding-bottom: 2px; margin-left: 10px;
  transition: opacity var(--t-fast) var(--e-out);
}
.menu__footnote a:hover { opacity: .7; }

@media (max-width: 640px) {
  .menu__item { grid-template-columns: 30px 1fr; }
  .menu__price { grid-column: 2; justify-content: flex-start; margin-top: 10px; }
}


/* ==== 14 · FOUNDER + CTA ========================================== */

.founder__grid {
  max-width: var(--max-w); margin: 0 auto;
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

.founder__portrait { position: relative; overflow: hidden; aspect-ratio: 4/5; background: var(--c-canvas-2); }
.founder__portrait img {
  width: 100%; height: 100%; object-fit: cover;
  filter: contrast(1.05) brightness(.98);
  transform: scale(1.02);
  transition: transform 2s var(--e-soft);
}
.founder__portrait:hover img { transform: scale(1.05); }
.founder__portrait figcaption {
  position: absolute; left: 14px; bottom: 14px;
  font-size: 11px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--c-canvas);
  background: rgba(28,30,23,.55);
  padding: 6px 10px;
}

.founder__body { padding-top: 10px; display: grid; gap: 20px; }
.founder__body .section-title { margin-top: 4px; }
.founder__text { display: grid; gap: 16px; font-size: var(--fz-md); color: var(--c-ink-2); line-height: 1.65; max-width: 58ch; }
.founder__text em { font-style: italic; color: var(--c-ink); }

.founder__creds {
  margin-top: 12px; padding-top: 20px; border-top: 1px solid var(--c-line);
  display: grid; gap: 10px;
  font-size: var(--fz-base);
}
.founder__creds li {
  display: grid;
  grid-template-columns: 60px 1fr;
  column-gap: 12px;
  row-gap: 2px;
  padding: 4px 0;
}
.founder__creds .cred-year {
  grid-column: 1; grid-row: 1;
  font-family: var(--f-mark); font-size: 18px; letter-spacing: 0; color: var(--c-sariette);
}
.founder__creds .cred-name {
  grid-column: 2; grid-row: 1;
}
.founder__creds li em { font-style: italic; color: var(--c-ink-3); }
.founder__creds .cred-note {
  grid-column: 2; grid-row: 2;
  font-size: 0.82em; color: var(--c-ink-3); line-height: 1.3;
}

@media (max-width: 900px) {
  .founder__grid { grid-template-columns: 1fr; }
  .founder__portrait { aspect-ratio: 5/4; }
}

/* CTA */

.cta {
  background: var(--c-sariette);
  color: var(--c-canvas);
  padding: clamp(120px, 22vh, 260px) var(--gutter);
  position: relative; overflow: hidden;
  isolation: isolate;
}
.cta::before {
  content: ""; position: absolute; inset: -20% -10% auto auto;
  width: 72vw; height: 72vw; max-width: 900px; max-height: 900px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(154,166,134,.25), transparent 70%);
  pointer-events: none; z-index: -1;
}
.cta__inner {
  max-width: 1280px; margin: 0 auto;
  display: grid; gap: clamp(20px, 3vh, 40px);
  justify-items: start;
}
.cta__eyebrow {
  font-family: var(--f-sans); font-weight: 300;
  font-size: 12px; letter-spacing: .28em; text-transform: uppercase;
  opacity: .7;
}
.cta__title {
  font-family: var(--f-serif);
  font-size: var(--fz-cta);
  line-height: .98;
  letter-spacing: -.012em;
  font-weight: 400;
}
.cta__title em { font-style: italic; color: var(--c-armerie-2); }
.cta__text {
  max-width: 52ch;
  font-family: var(--f-serif); font-size: clamp(18px, 1.9vw, 24px); line-height: 1.5;
  color: rgba(237,227,206,.9);
}
.cta__text em { font-style: italic; color: var(--c-armerie-2); }
.cta__btn {
  display: inline-flex; align-items: center; gap: 14px;
  margin-top: 14px;
  padding: 20px 30px;
  background: var(--c-canvas); color: var(--c-sariette);
  border: 1px solid var(--c-canvas);
  font-family: var(--f-sans); font-weight: 500;
  font-size: 13px; letter-spacing: .18em; text-transform: uppercase;
  transition: background-color var(--t-mid) var(--e-out), color var(--t-mid) var(--e-out), transform var(--t-mid) var(--e-out);
}
.cta__btn:hover { background: transparent; color: var(--c-canvas); transform: translateY(-2px); }


/* ==== 15 · FOOTER ================================================= */

.foot {
  background: var(--c-ink);
  color: rgba(237,227,206,.82);
  padding: clamp(80px, 12vh, 140px) var(--gutter) clamp(20px, 3vh, 40px);
  position: relative; overflow: hidden;
  isolation: isolate;
}
.foot__cols {
  max-width: var(--max-w); margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 4vw, 64px);
  padding-bottom: clamp(40px, 6vw, 72px);
  border-bottom: 1px solid rgba(237,227,206,.18);
}
.foot__col h4 {
  font-family: var(--f-sans); font-weight: 400;
  font-size: 11px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--c-armerie-2); margin-bottom: 14px;
}
.foot__col address,
.foot__col a,
.foot__col p {
  font-style: normal; font-size: var(--fz-base); line-height: 1.55; color: inherit;
  display: block; transition: color var(--t-mid) var(--e-out);
}
.foot__col a:hover { color: var(--c-canvas); }
.foot__coords {
  margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(237,227,206,.18);
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase; opacity: .65;
}

.foot__mark {
  position: relative; z-index: -1;
  max-width: var(--max-w); margin: clamp(40px, 8vh, 80px) auto 0;
  font-family: var(--f-mark);
  font-size: clamp(6rem, 22vw, 22rem);
  line-height: .78; letter-spacing: -.02em; text-transform: uppercase;
  color: rgba(237,227,206,.06);
  text-align: center;
  pointer-events: none;
}
.foot__mark span { display: block; }

.foot__legal {
  max-width: var(--max-w); margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(14px, 3vw, 40px);
  padding-top: 24px;
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(237,227,206,.55);
}
.foot__legal a:hover { color: var(--c-canvas); }
.foot__legal > span:nth-child(2) { text-align: right; }

@media (max-width: 900px) {
  .foot__cols { grid-template-columns: repeat(2, 1fr); }
  .foot__legal { grid-template-columns: 1fr; gap: 10px; text-align: left; }
  .foot__legal > span:nth-child(2) { text-align: left; }
}


/* ==== 16 · UTILITIES & A11Y ======================================= */

:focus-visible {
  outline: 2px solid var(--c-sariette);
  outline-offset: 3px;
  border-radius: 1px;
}
.cta :focus-visible { outline-color: var(--c-canvas); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .hero__line span { transform: none; animation: none; }
  .hero__media img { animation: none; transform: none; }
  .marquee__track { animation: none; }
  .cursor { display: none; }
}
