/* L'Immortelle · Girolata — refonte
   Layout: scroll-driven chapters. The hero zooms through the "I" of GIROLATA into the port video,
   the terrace is a pinned horizontal reel, the village photo expands to full bleed,
   and the footer is a curtain reveal on the immortelle macro.
   Palette (single deliberate look): lime-washed paper, Scandola deep-sea ink,
   immortelle yellow as the accent, porphyry red for the booking field. */
:root {
  --paper: #f2f3ee;
  --paper-2: #e4e7df;
  --ink: #0d2a32;
  --ink-2: #16404a;
  --muted: #55645e;
  --immortelle: #e7bd3a;
  --porphyry: #a83a26;
  --line: rgba(13, 42, 50, 0.16);
  --line-dark: rgba(242, 243, 238, 0.24);

  --f-display: "Bricolage Grotesque", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;

  --gutter: clamp(16px, 4vw, 56px);
  --radius: clamp(12px, 1.4vw, 22px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.no-js, html:not(.motion) { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.125rem;
  line-height: 1.55;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; }
p { margin: 0; }
address { font-style: normal; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 4px; }
::selection { background: var(--immortelle); color: var(--ink); }

.wrap { width: min(100% - 2 * var(--gutter), 1440px); margin-inline: auto; }
.skip {
  position: fixed; left: 1rem; top: -4rem; z-index: 200;
  background: var(--ink); color: var(--paper); padding: .7rem 1rem; border-radius: 8px;
  font-family: var(--f-display); text-decoration: none; transition: top .3s;
}
.skip:focus { top: calc(1rem + env(safe-area-inset-top, 0px)); }

.kicker {
  display: flex; align-items: center; gap: .7rem; margin: 0;
  font-family: var(--f-display); font-weight: 600; font-size: .78rem;
  letter-spacing: .16em; text-transform: uppercase;
}
.kicker::before { content: ""; width: 28px; height: 1.5px; background: currentColor; flex: none; }

.display {
  margin: 0;
  font-family: var(--f-display); font-weight: 760; font-stretch: 75%;
  font-size: clamp(3.1rem, 9.6vw, 9.5rem); line-height: .86; letter-spacing: -.028em;
  text-wrap: balance;
}
.display-xxl { font-size: clamp(3.3rem, 13.5vw, 14rem); }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--paper); --hover: var(--porphyry); --hover-fg: var(--paper);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  padding: .95rem 1.55rem; border: 0; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-family: var(--f-display); font-weight: 650; font-size: 1rem; line-height: 1.1; letter-spacing: .005em;
  text-decoration: none; cursor: pointer;
  transition: transform .6s var(--ease-out), color .45s var(--ease-out), box-shadow .45s;
}
.btn::before {
  content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit;
  background: var(--hover); transform: translateY(102%); transition: transform .55s var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn:hover, .btn:focus-visible { color: var(--hover-fg); }
.btn-label { display: inline-block; transition: transform .6s var(--ease-out); }
.btn-sm { padding: .7rem 1.15rem; font-size: .92rem; }
.btn-light { --bg: var(--paper); --fg: var(--ink); --hover: var(--immortelle); --hover-fg: var(--ink); }
.btn-ghost { --bg: transparent; --fg: currentColor; --hover: var(--ink); --hover-fg: var(--paper); box-shadow: inset 0 0 0 1.5px currentColor; }
.book .btn-ghost, .terrace .btn-ghost { --hover: var(--paper); --hover-fg: var(--ink); }

/* ---------- custom cursor (fine pointers only) ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 150; pointer-events: none; mix-blend-mode: difference; display: none; }
@media (hover: hover) and (pointer: fine) { .motion .cursor { display: block; } }
.cursor-ring {
  position: absolute; left: 0; top: 0; width: 40px; height: 40px; margin: -20px 0 0 -20px;
  border-radius: 50%; border: 1.5px solid #fff; will-change: transform;
  transition: width .45s var(--ease-out), height .45s var(--ease-out), margin .45s var(--ease-out), background-color .3s, opacity .3s;
}
.cursor.is-link .cursor-ring { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: #fff; }
.cursor.is-hidden .cursor-ring { opacity: 0; }

/* ---------- header ---------- */
.hd {
  position: fixed; inset: 0 0 auto 0; z-index: 80;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: calc(14px + env(safe-area-inset-top, 0px)) var(--gutter) 14px;
  color: var(--ink);
  transition: transform .6s var(--ease-out), color .4s;
}
.hd::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: color-mix(in srgb, var(--paper) 84%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: opacity .4s, background-color .4s;
}
.hd.is-solid::before { opacity: 1; }
.hd.is-dark { color: var(--paper); }
.hd.is-dark::before { background: color-mix(in srgb, var(--ink) 70%, transparent); }
.hd.is-hidden { transform: translateY(-110%); }
.hd-brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; font-family: var(--f-display); font-weight: 700; font-stretch: 85%; font-size: 1.2rem; letter-spacing: -.01em; }
.hd-brand img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.hd-nav { display: flex; align-items: center; gap: clamp(.9rem, 2.2vw, 2.2rem); font-family: var(--f-display); font-weight: 500; font-size: .95rem; }
.hd-nav > a:not(.btn) { position: relative; text-decoration: none; }
.hd-nav > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-out);
}
.hd-nav > a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }
.hd.is-dark .btn { --bg: var(--paper); --fg: var(--ink); --hover: var(--immortelle); --hover-fg: var(--ink); }
@media (max-width: 760px) { .hd-nav > a:not(.btn) { display: none; } .hd-nav { gap: .55rem; } }
@media (max-width: 420px) { .hd-brand span { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--paper); }
.hero-stage { position: relative; height: 100svh; min-height: 540px; overflow: hidden; }
.motion .hero { height: 330svh; }
.motion .hero-stage { position: sticky; top: 0; }

.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--ink-2); transform-origin: 50% 50%; }
.motion .hero-video { transform: scale(1.15); }

/* white + screen = only the black letters let the video through; the multiply tint brings white back to paper */
.hero-mask { position: absolute; inset: 0; background: #fff; mix-blend-mode: screen; }
.hero-tint { position: absolute; inset: 0; background: var(--paper); mix-blend-mode: multiply; pointer-events: none; }
.hero-zoom {
  position: absolute; inset: 0; display: grid; place-items: center;
  padding: 0 var(--gutter) 6svh; will-change: transform;
}
.hero-word { width: 100%; height: auto; overflow: visible; }
.hero-word text { fill: #000; font-family: var(--f-display); font-weight: 800; font-stretch: 75%; font-variation-settings: "opsz" 96; }
.word-narrow { display: none; width: 100%; }
.word-narrow .hero-word + .hero-word { margin-top: 2.5%; }
@media (max-aspect-ratio: 4/5), (max-width: 560px) {
  .word-wide { display: none; }
  .word-narrow { display: block; }
  .hero-zoom { padding-bottom: 22svh; }
}
@keyframes word-in { from { clip-path: inset(100% 0 0 0); transform: translateY(18%); } to { clip-path: inset(0 0 0 0); transform: none; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.motion .hero-word { animation: word-in 1.3s var(--ease-out) both; animation-delay: calc(.1s + var(--d, 0s)); }

.hero-ui {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(88px + env(safe-area-inset-top, 0px)) var(--gutter) calc(30px + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
}
.hero-ui a, .hero-ui button { pointer-events: auto; }
.hero-kicker { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-family: var(--f-display); font-weight: 600; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; }
.hero-coords { font-variant-numeric: tabular-nums; color: var(--muted); }
.hero-bottom { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 1.4rem 3rem; }
.hero h1 {
  margin: 0; max-width: 15ch;
  font-family: var(--f-display); font-weight: 700; font-stretch: 80%;
  font-size: clamp(1.9rem, 3.7vw, 3.6rem); line-height: .96; letter-spacing: -.018em; text-wrap: balance;
}
.hero-lede { max-width: 40ch; margin-top: .9rem; color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.15rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.motion .hero-kicker, .motion .hero-bottom > * { animation: rise-in 1.1s var(--ease-out) both; }
.motion .hero-kicker { animation-delay: .35s; }
.motion .hero-bottom > :first-child { animation-delay: .5s; }
.motion .hero-bottom > :last-child { animation-delay: .65s; }
.scroll-cue {
  position: absolute; left: 50%; bottom: calc(30px + env(safe-area-inset-bottom, 0px)); translate: -50% 0;
  display: none; align-items: center; gap: .6rem; font-family: var(--f-display); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
}
.scroll-cue i { width: 1.5px; height: 34px; background: currentColor; transform-origin: top; animation: cue 1.8s var(--ease-io) infinite; }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (min-width: 1100px) and (min-height: 700px) { .motion .scroll-cue { display: inline-flex; } }
@media (max-width: 760px) {
  .hero-bottom { grid-template-columns: 1fr; }
  .hero-coords { display: none; }
}

.hero-after {
  position: absolute; inset: 0; display: grid; place-items: center; padding-inline: var(--gutter);
  text-align: center; color: var(--paper); pointer-events: none; opacity: 0;
  background: radial-gradient(ellipse at 50% 55%, rgba(6, 20, 24, .5), rgba(6, 20, 24, .12) 72%);
}
.hero-statement { font-family: var(--f-display); font-weight: 740; font-stretch: 76%; font-size: clamp(2.5rem, 7.4vw, 7rem); line-height: .9; letter-spacing: -.025em; text-wrap: balance; }
.hero-statement .line { display: block; overflow: hidden; padding-block: .06em; }
.hero-statement .line > span { display: block; transform: translateY(105%); will-change: transform; }

/* ---------- se loger à Girolata ---------- */
.intro { background: var(--paper); padding-block: clamp(6rem, 15vw, 14rem); }
.intro-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 2rem clamp(1rem, 3vw, 3rem); align-items: start; }
.intro .kicker { padding-top: .9em; }
.manifesto {
  font-family: var(--f-display); font-weight: 560; font-stretch: 86%;
  font-size: clamp(1.75rem, 4.1vw, 3.7rem); line-height: 1.07; letter-spacing: -.016em; text-wrap: pretty;
}
.manifesto .w { transition: opacity .4s linear, color .4s linear; }
.motion .manifesto .w { opacity: .14; }
.motion .manifesto .w.on { opacity: 1; }
.pill {
  display: inline-block; vertical-align: middle; width: 1.4em; height: .86em; margin: 0 .06em;
  border-radius: 999px; overflow: hidden; transform: translateY(-.07em); background: var(--paper-2);
}
.pill img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.motion .pill { transform: translateY(-.07em) scale(0) rotate(-12deg); transition: transform .8s var(--ease-out); }
.motion .pill.on { transform: translateY(-.07em) scale(1) rotate(0); }
@media (max-width: 900px) { .intro-grid { grid-template-columns: 1fr; } .intro .kicker { padding-top: 0; } }

/* ---------- section heads + reveals ---------- */
.sec-head { display: grid; gap: 1.1rem; margin-bottom: clamp(2.5rem, 6vw, 5rem); }
.split .w { display: inline-block; white-space: nowrap; }
.split .c { display: inline-block; }
.motion .split .w { overflow: hidden; padding: .12em .02em .08em; margin: -.12em -.02em -.08em; vertical-align: top; }
.motion .split .c { transform: translate3d(0, 108%, 0) rotate(7deg); transform-origin: 0 100%; transition: transform 1.15s var(--ease-out); transition-delay: calc(var(--i, 0) * 26ms); }
.motion .split.in .c { transform: none; }

.motion .fade { opacity: 0; transform: translate3d(0, 34px, 0); transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out); transition-delay: var(--d, 0s); }
.motion .fade.in { opacity: 1; transform: none; }

/* media: clipped frame + inner layer for parallax + reveal */
.shot { margin: 0; display: grid; gap: .8rem; min-width: 0; }
.shot figcaption, .panel-shot figcaption { font-family: var(--f-display); font-size: .86rem; letter-spacing: .02em; color: var(--muted); }
.media { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--paper-2); aspect-ratio: 4 / 3; max-width: 100%; transform: translateZ(0); }
.media-inner { position: absolute; inset: -10% 0; will-change: transform; }
.media-inner picture { display: block; width: 100%; height: 100%; }
.media-inner img, .media-inner video { width: 100%; height: 100%; object-fit: cover; }
.motion .media[data-reveal] { clip-path: inset(100% 0 0 0 round var(--radius)); transition: clip-path 1.5s var(--ease-out); }
.motion .media[data-reveal].in { clip-path: inset(0 0 0 0 round var(--radius)); }
.motion .media[data-reveal] .media-inner img, .motion .media[data-reveal] .media-inner video { transform: scale(1.28); transition: transform 1.9s var(--ease-out); }
.motion .media[data-reveal].in .media-inner img, .motion .media[data-reveal].in .media-inner video { transform: none; }

/* ---------- le studio ---------- */
.studio { background: var(--paper); padding-block: clamp(3rem, 8vw, 7rem) clamp(5rem, 12vw, 10rem); }
.studio-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1.25rem, 2.6vw, 2.5rem); align-items: start; }
.shot-wide { grid-column: 1 / -1; }
.shot-wide .media { aspect-ratio: 21 / 9; }
.studio-copy { grid-column: 1 / 6; display: grid; gap: 1.2rem; padding-top: clamp(1rem, 3vw, 3rem); }
.studio-copy .lead { font-family: var(--f-display); font-weight: 560; font-stretch: 88%; font-size: clamp(1.45rem, 2.3vw, 2.1rem); line-height: 1.12; letter-spacing: -.012em; }
.shot-a { grid-column: 7 / -1; margin-top: clamp(2rem, 6vw, 6rem); }
.shot-b { grid-column: 1 / 7; }
.shot-c { grid-column: 8 / -1; margin-top: clamp(4rem, 12vw, 12rem); }
.shot-c .media { aspect-ratio: 4 / 5; }

.spec { margin: 1.2rem 0 0; border-top: 1px solid var(--line); }
.spec > div { position: relative; display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 1rem; padding: .9rem 0; }
.spec > div::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); transform-origin: left; }
.motion .spec > div::after { transform: scaleX(0); transition: transform 1.3s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
.motion .spec.in > div::after { transform: scaleX(1); }
.spec dt { font-family: var(--f-display); font-weight: 600; font-size: .76rem; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); padding-top: .3rem; }
.spec dd { margin: 0; }
@media (max-width: 900px) {
  .shot-wide .media { aspect-ratio: 4 / 5; }
  .studio-copy, .shot-a, .shot-b, .shot-c { grid-column: 1 / -1; margin-top: 0; }
  .shot-c .media { aspect-ratio: 4 / 3; }
}
@media (max-width: 480px) { .spec > div { grid-template-columns: 1fr; gap: .2rem; } }

/* ---------- depuis la terrasse ---------- */
.terrace { position: relative; background: var(--ink); color: var(--paper); }
.terrace .kicker { color: var(--immortelle); }
.terrace-pin { position: relative; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; }
.motion .terrace-pin { position: sticky; top: 0; height: 100svh; overflow: hidden; scroll-snap-type: none; }
.terrace-track {
  position: relative; display: flex; align-items: center; gap: clamp(1.25rem, 3.4vw, 3.5rem);
  width: max-content; height: 100%; padding: clamp(90px, 13svh, 130px) var(--gutter) clamp(70px, 11svh, 110px);
  will-change: transform;
}
.panel { position: relative; flex: none; scroll-snap-align: start; }
.panel-intro { width: min(36rem, 84vw); display: grid; gap: 1.4rem; align-content: center; }
.panel-intro .display { font-size: clamp(3rem, 8.4vw, 8.4rem); }
.panel-intro > p:not(.kicker) { max-width: 42ch; color: rgba(242, 243, 238, .82); }
.panel-hint { font-family: var(--f-display); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--immortelle) !important; display: none; }
.motion .panel-hint { display: block; }
.panel-hint span { display: inline-block; animation: nudge 1.6s var(--ease-io) infinite; }
@keyframes nudge { 50% { transform: translateX(8px); } }
.panel-shot { display: grid; gap: .8rem; margin: 0; }
.panel-shot figcaption { color: rgba(242, 243, 238, .7); }
.panel-shot .media { aspect-ratio: auto; height: min(62svh, 640px); background: var(--ink-2); }
.terrace .media-inner { inset: 0 -12%; }
.p-xl .media { width: min(112svh, 86vw); }
.p-tall .media { width: min(46svh, 74vw); }
.p-sq .media { width: min(64svh, 82vw); }
.panel-outro { width: min(34rem, 84vw); display: grid; gap: 2rem; justify-items: start; padding-right: 4vw; }
.outro-text { font-family: var(--f-display); font-weight: 740; font-stretch: 76%; font-size: clamp(2.6rem, 6.4vw, 6.2rem); line-height: .9; letter-spacing: -.025em; text-wrap: balance; }
.terrace-ghost {
  position: absolute; left: 0; bottom: -.1em; margin: 0; pointer-events: none; white-space: nowrap;
  font-family: var(--f-display); font-weight: 800; font-stretch: 75%; font-size: clamp(9rem, 30svh, 26rem); line-height: .8; letter-spacing: -.02em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(242, 243, 238, .1); will-change: transform; display: none;
}
.motion .terrace-ghost { display: block; }
.terrace-progress { position: absolute; left: var(--gutter); right: var(--gutter); bottom: calc(28px + env(safe-area-inset-bottom, 0px)); height: 2px; background: var(--line-dark); display: none; }
.motion .terrace-progress { display: block; }
.terrace-progress span { display: block; height: 100%; background: var(--immortelle); transform-origin: left; transform: scaleX(0); }
@media (max-aspect-ratio: 4/5) {
  .p-xl .media { width: min(40svh, 76vw); }
  .panel-shot .media { height: min(58svh, 560px); }
}

/* ---------- bandeaux ---------- */
.marquee { position: relative; background: var(--paper); padding-block: clamp(4rem, 9vw, 8rem); overflow: hidden; }
.mq { display: flex; overflow: hidden; padding-block: .32em .26em; font-family: var(--f-display); font-weight: 760; font-stretch: 75%; font-size: clamp(2.4rem, 6.4vw, 6rem); line-height: 1; letter-spacing: -.015em; white-space: nowrap; }
.mq-a { background: var(--immortelle); color: var(--ink); transform: rotate(-2.4deg) scale(1.06); --flower-core: var(--porphyry); }
.mq-b { background: var(--ink); color: var(--paper); transform: rotate(1.8deg) scale(1.06); margin-top: -.15em; --flower-core: var(--immortelle); }
.mq-b .sep { color: var(--paper); }
.mq-inner { display: flex; flex: none; will-change: transform; }
.mq-track { display: flex; flex: none; align-items: center; gap: .45em; padding-right: .45em; }
.sep { width: .62em; height: .62em; flex: none; color: var(--ink); }

/* ---------- girolata ---------- */
.village { background: var(--paper); }
.village-head { display: grid; gap: 1.1rem; padding-block: clamp(3rem, 8vw, 7rem) clamp(2rem, 5vw, 4rem); }
.expand { position: relative; }
.motion .expand { height: 230svh; }
.expand-stage { position: relative; height: 82svh; overflow: hidden; }
.motion .expand-stage { position: sticky; top: 0; height: 100svh; }
.expand-media { position: absolute; inset: 0; margin: 0; will-change: clip-path; }
.expand-media picture, .expand-media img { width: 100%; height: 100%; object-fit: cover; }
.expand-media img { will-change: transform; }
.expand-caption {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  color: var(--paper); font-family: var(--f-display); font-size: .9rem; letter-spacing: .04em; text-shadow: 0 1px 14px rgba(0, 0, 0, .45);
}

.village-body { padding-block: clamp(4rem, 9vw, 8rem); }
.village-intro { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.village-intro p { grid-column: 4 / -1; font-family: var(--f-display); font-weight: 520; font-stretch: 90%; font-size: clamp(1.35rem, 2.4vw, 2.2rem); line-height: 1.18; letter-spacing: -.01em; max-width: 34ch; }

.stats { list-style: none; margin: clamp(4rem, 9vw, 8rem) 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.stat { display: grid; gap: .8rem; align-content: start; padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1rem, 2.4vw, 2rem); border-inline-end: 1px solid var(--line); min-width: 0; }
.stat:first-child { padding-inline-start: 0; }
.stat:last-child { border-inline-end: 0; }
.stat-num { display: block; font-family: var(--f-display); font-weight: 760; font-stretch: 75%; font-size: clamp(3.6rem, 9vw, 8.5rem); line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: pre; }
.stat-label { color: var(--muted); max-width: 24ch; }
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr; }
  .stat { border-inline-end: 0; border-bottom: 1px solid var(--line); padding-inline: 0; }
}

/* digit roller: the real digit stays in the DOM, the strip is a pseudo-element */
.dg { position: relative; display: inline-block; height: 1em; overflow: hidden; vertical-align: top; }
.dg-real { display: inline-block; color: transparent; }
.dg::before {
  content: "0\A 1\A 2\A 3\A 4\A 5\A 6\A 7\A 8\A 9\A 0\A 1\A 2\A 3\A 4\A 5\A 6\A 7\A 8\A 9";
  position: absolute; left: 0; top: 0; width: 100%; white-space: pre; text-align: center; line-height: 1;
  transform: translateY(calc(var(--t, 0) * -1em)); transition: transform 1.8s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms);
}
.motion [data-roll]:not(.in) .dg::before { transform: translateY(0); }
html:not(.motion) .dg::before { transition: none; }

.access { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2.4vw, 2rem); }
.access-card {
  display: grid; gap: 1rem; align-content: start; padding: clamp(1.6rem, 3.4vw, 3rem); border-radius: var(--radius);
  background: var(--paper-2); transition: background-color .6s var(--ease-out), color .6s var(--ease-out), transform .6s var(--ease-out);
}
.access-card:hover { background: var(--ink); color: var(--paper); transform: translateY(-6px); }
.access-icon { width: 58px; height: 58px; color: var(--porphyry); transition: transform .8s var(--ease-out), color .6s; }
.access-card:hover .access-icon { color: var(--immortelle); transform: rotate(-8deg) scale(1.08); }
.access-card h3 { margin: 0; font-family: var(--f-display); font-weight: 720; font-stretch: 78%; font-size: clamp(2rem, 3.4vw, 3rem); line-height: .95; letter-spacing: -.02em; }
@media (max-width: 760px) { .access { grid-template-columns: 1fr; } }

.know { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1.5rem 2rem; margin-top: clamp(3rem, 7vw, 6rem); }
.know .kicker { grid-column: 1 / 4; padding-top: 1.1rem; }
.know ul { grid-column: 4 / -1; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.know li { display: flex; gap: 1rem; padding: 1.05rem 0; border-bottom: 1px solid var(--line); }
.know li::before { content: ""; width: .5rem; height: .5rem; margin-top: .65em; border-radius: 50%; background: var(--porphyry); flex: none; }
@media (max-width: 760px) { .know .kicker, .know ul { grid-column: 1 / -1; } .know .kicker { padding-top: 0; } }

/* ---------- questions ---------- */
.faq { background: var(--paper-2); padding-block: clamp(5rem, 11vw, 10rem); }
.faq-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2.5rem clamp(1rem, 3vw, 3rem); align-items: start; }
.faq-head { grid-column: 1 / 6; display: grid; gap: 1.1rem; }
.motion .faq-head { position: sticky; top: 110px; }
.faq-head .display { font-size: clamp(3rem, 6.6vw, 6.4rem); }
.faq-list { grid-column: 6 / -1; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.5rem 0; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { margin: 0; font-family: var(--f-display); font-weight: 640; font-stretch: 86%; font-size: clamp(1.25rem, 2.1vw, 1.75rem); line-height: 1.12; letter-spacing: -.01em; transition: transform .5s var(--ease-out); }
.faq summary:hover h3 { transform: translateX(8px); }
.faq-icon { position: relative; flex: none; width: 2.6rem; height: 2.6rem; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; transition: background-color .4s, color .4s, transform .6s var(--ease-out); }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 13px; height: 1.5px; margin: -.75px 0 0 -6.5px; background: currentColor; transition: transform .6s var(--ease-out); }
.faq-icon::after { transform: rotate(90deg); }
.faq details[open] .faq-icon { background: var(--ink); color: var(--paper); transform: rotate(180deg); }
.faq details[open] .faq-icon::after { transform: rotate(0deg); }
.faq-a { padding: 0 3.5rem 1.7rem 0; max-width: 62ch; color: var(--muted); }
@supports (interpolate-size: allow-keywords) {
  .faq { interpolate-size: allow-keywords; }
  .motion .faq details::details-content { height: 0; overflow: clip; transition: height .7s var(--ease-out), content-visibility .7s allow-discrete; }
  .motion .faq details[open]::details-content { height: auto; }
}
@media (max-width: 900px) { .faq-head, .faq-list { grid-column: 1 / -1; } .motion .faq-head { position: static; } .faq-a { padding-right: 0; } }

/* ---------- réserver ---------- */
.book { position: relative; background: var(--porphyry); color: var(--paper); padding-block: clamp(5rem, 12vw, 10rem) clamp(5rem, 10vw, 9rem); overflow: hidden; }
.book .kicker { margin-bottom: 1.4rem; }
.book-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; margin-top: clamp(2.5rem, 6vw, 5rem); }
.book-contact { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); justify-items: start; min-width: 0; }
.book-sub { max-width: 44ch; font-size: clamp(1.1rem, 1.5vw, 1.3rem); }
.phone {
  display: inline-block; font-family: var(--f-display); font-weight: 760; font-stretch: 75%;
  font-size: clamp(2.7rem, 8.6vw, 8.2rem); line-height: 1; letter-spacing: -.02em; white-space: pre;
  text-decoration: none; font-variant-numeric: tabular-nums; transition: transform .7s var(--ease-out), color .4s;
}
.phone:hover { color: var(--immortelle); }
.book-actions { display: flex; flex-wrap: wrap; gap: .6rem; }

.request { display: grid; gap: 1.2rem; padding: clamp(1.5rem, 3vw, 2.5rem); border-radius: var(--radius); background: rgba(13, 42, 50, .18); box-shadow: inset 0 0 0 1px rgba(242, 243, 238, .2); min-width: 0; }
.request h3 { margin: 0 0 .3rem; font-family: var(--f-display); font-weight: 700; font-stretch: 82%; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.request label { display: grid; gap: .35rem; min-width: 0; font-family: var(--f-display); font-weight: 600; font-size: .74rem; letter-spacing: .15em; text-transform: uppercase; color: rgba(242, 243, 238, .82); }
.request input, .request select, .request textarea {
  width: 100%; min-width: 0; padding: .55rem 0; border: 0; border-bottom: 1.5px solid rgba(242, 243, 238, .45); border-radius: 0;
  background: transparent; color: var(--paper); font: 400 1.05rem/1.4 var(--f-body); letter-spacing: 0; text-transform: none;
  color-scheme: dark; transition: border-color .3s;
}
.request select option { color: var(--ink); background: var(--paper); }
.request textarea { resize: vertical; }
.request input:focus, .request select:focus, .request textarea:focus { outline: none; border-bottom-color: var(--immortelle); }
.request input::placeholder, .request textarea::placeholder { color: rgba(242, 243, 238, .55); }
.request > .btn { justify-self: start; }
.form-note { min-height: 1.2em; font-size: .95rem; }
.form-note.is-ok { color: var(--paper); font-weight: 500; }
.form-hint, .form-privacy { font-size: .9rem; color: rgba(242, 243, 238, .78); margin-top: -.4rem; }
.form-privacy { margin-top: -.6rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.request { position: relative; }
.request .btn[disabled] { opacity: .65; cursor: progress; }
.form-note.is-error { color: var(--immortelle); }
.form-fallback { display: grid; gap: .8rem; padding-top: 1rem; border-top: 1px solid rgba(242, 243, 238, .25); }
.form-fallback textarea { border: 1.5px solid rgba(242, 243, 238, .45); padding: .7rem; border-radius: 10px; }
.form-fallback .btn { justify-self: start; }
@media (max-width: 900px) { .book-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }

/* ---------- footer : l'immortelle ---------- */
main { position: relative; z-index: 1; background: var(--paper); }
.ft { position: relative; z-index: 0; overflow: hidden; color: var(--paper); background: var(--ink); min-height: min(100svh, 940px); display: flex; flex-direction: column; justify-content: flex-end; }
@media (min-width: 900px) and (min-height: 660px) {
  .motion .ft { position: sticky; bottom: 0; height: min(100svh, 940px); }
}
.ft-bg { position: absolute; inset: 0; }
.ft-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 70%; transform-origin: 50% 100%; will-change: transform; }
.ft-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 22, 26, .62) 0%, rgba(8, 22, 26, .5) 40%, rgba(8, 22, 26, .38) 62%, rgba(8, 22, 26, .9) 100%); }
.ft-inner { position: relative; display: grid; gap: clamp(2rem, 4vw, 3rem); padding: clamp(110px, 16svh, 160px) var(--gutter) calc(22px + env(safe-area-inset-bottom, 0px)); }
.ft-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; font-size: 1rem; line-height: 1.5; text-shadow: 0 1px 14px rgba(0, 0, 0, .6); }
.ft-cols > * { min-width: 0; }
.ft-cols p:not(.ft-label) { max-width: 30ch; }
.ft-label { margin: 0 0 .7rem; font-family: var(--f-display); font-weight: 600; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--immortelle); }
.ft-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.ft a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.ft a:hover { color: var(--immortelle); }
.ft-word { width: 100%; height: auto; overflow: visible; will-change: transform, clip-path; }
.ft-word text { fill: var(--paper); font-family: var(--f-display); font-weight: 800; font-stretch: 75%; }
.ft-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line-dark); font-family: var(--f-display); font-size: .85rem; color: rgba(242, 243, 238, .78); }
@media (max-width: 900px) { .ft-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .ft-cols { grid-template-columns: 1fr; gap: 1.4rem; } }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ---------- langues ---------- */
.lang { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: .45rem; padding: .55rem .8rem; border: 0; border-radius: 999px; cursor: pointer;
  background: color-mix(in srgb, currentColor 8%, transparent); color: inherit; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, currentColor 30%, transparent);
  font: 650 .9rem/1 var(--f-display); letter-spacing: .06em; transition: background-color .3s, box-shadow .3s;
}
.lang-btn:hover, .lang-btn[aria-expanded="true"] { background: color-mix(in srgb, currentColor 16%, transparent); }
.lang-flag { font-size: 1.05rem; line-height: 1; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.lang-chev { width: 12px; height: 8px; transition: transform .35s var(--ease-out); }
.lang-btn[aria-expanded="true"] .lang-chev { transform: rotate(180deg); }
.lang-menu {
  position: absolute; top: calc(100% + 10px); inset-inline-end: 0; z-index: 95; display: grid; gap: 2px; min-width: 13.5rem;
  max-height: min(72svh, 32rem); overflow: auto; margin: 0; padding: .4rem; list-style: none;
  background: var(--paper); color: var(--ink); border-radius: 18px; box-shadow: 0 22px 50px rgba(13, 42, 50, .24), 0 0 0 1px var(--line);
}
.lang-menu a { display: flex; align-items: center; gap: .7rem; padding: .62rem .8rem; border-radius: 12px; color: var(--ink); text-decoration: none; font: 650 .95rem/1 var(--f-display); letter-spacing: .06em; }
.lang-menu a:hover, .lang-menu a:focus-visible, .lang-menu a[aria-current] { background: var(--paper-2); }
.lang-menu a[aria-current] { box-shadow: inset 3px 0 0 var(--porphyry); }
.lang-menu .lang-name { margin-inline-start: auto; font: 400 .85rem/1 var(--f-body); letter-spacing: 0; color: var(--muted); }
.motion .lang-menu:not([hidden]) { animation: rise-in .35s var(--ease-out) both; }

/* polices : Bricolage et Newsreader n'ont ni arabe ni chinois */
:root:lang(ar) {
  --f-display: "SF Arabic", "Geeza Pro", "Noto Kufi Arabic", "Segoe UI", Tahoma, sans-serif;
  --f-body: "SF Arabic", "Geeza Pro", "Noto Naskh Arabic", "Segoe UI", Tahoma, sans-serif;
}
:root:lang(zh) {
  --f-display: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --f-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}
:lang(ar) body, :lang(ar) body *:not(.lang-code) { letter-spacing: 0 !important; }
:lang(zh) .display, :lang(zh) .hero h1, :lang(zh) .hero-statement, :lang(zh) .outro-text, :lang(zh) .manifesto, :lang(zh) .mq { letter-spacing: 0; line-height: 1.12; }
:lang(ar) .display, :lang(ar) .hero h1, :lang(ar) .hero-statement, :lang(ar) .outro-text, :lang(ar) .manifesto, :lang(ar) .mq { line-height: 1.3; font-weight: 700; }
:lang(ar) .kicker, :lang(ar) .spec dt, :lang(zh) .kicker { text-transform: none; }
:lang(zh) .hero h1 { max-width: 12em; }
:lang(zh) .brief-text, :lang(zh) .lead { line-break: strict; }

/* lecture de droite à gauche (arabe) */
[dir="rtl"] .hero-word text, [dir="rtl"] .ft-word text { direction: ltr; }
[dir="rtl"] .terrace-track, [dir="rtl"] .marquee { direction: ltr; }
[dir="rtl"] .terrace-track > *, [dir="rtl"] .mq span { direction: rtl; }
[dir="rtl"] .spec > div::after { transform-origin: right; }
[dir="rtl"] .faq summary:hover h3 { transform: translateX(-8px); }
[dir="rtl"] .phone, [dir="rtl"] .stat-num, [dir="rtl"] a[href^="tel:"], [dir="rtl"] .form-fallback strong, [dir="rtl"] .hero-coords { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .stat-num { justify-content: flex-end; text-align: right; }
[dir="rtl"] .lang-menu a[aria-current] { box-shadow: inset -3px 0 0 var(--porphyry); }
