:root {
  --black: #0F0F0E;
  --ink-2: #191917;
  --ivory: #F2EEE6;
  --olive: #8C8A5A;
  --champ: #D8C3A5;
  --muted: rgba(242, 238, 230, .62);
  --line: rgba(242, 238, 230, .14);
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.19, 1, .22, 1);
  --display: 'Libre Caslon Display', Georgia, serif;
  --body: 'Figtree', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { background: var(--black); color: var(--ivory); font-family: var(--body); font-weight: 300; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; background: none; border: 0; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.kicker { font-size: 12px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--champ); }
.title { font-family: var(--display); font-weight: 400; font-size: clamp(44px, 6vw, 100px); line-height: 1; letter-spacing: -.01em; margin-top: 14px; }
.title em { color: var(--olive); }
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
[data-split] .w > span { display: inline-block; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 17px 30px; background: var(--ivory); color: var(--black); font-weight: 500; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; transition: background .4s; }
.btn:hover { background: var(--champ); }
.btn-small { padding: 11px 18px; font-size: 11px; }
.btn-full { width: 100%; }

.header { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; justify-content: space-between; align-items: center; padding: 16px var(--gutter); background: rgba(15, 15, 14, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.logo { font-family: var(--display); font-size: 26px; }
.logo em, .footer-word em, .hero-title em { color: var(--olive); }
.header .logo em { color: inherit; font-style: italic; }
.nav { display: flex; gap: 32px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.header .logo em { color: var(--olive); }

/* Hero */
.hero { position: relative; height: 100svh; min-height: 640px; overflow: hidden; display: flex; align-items: flex-end; padding: 0 var(--gutter) 90px; }
.hero-img { position: absolute; inset: 0; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
.hero-img img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.55); }
.hero-text { position: relative; z-index: 1; max-width: 900px; }
.hero-title { font-family: var(--display); font-weight: 400; font-size: clamp(90px, 14vw, 230px); line-height: .88; margin-top: 16px; }
.hero-title .ln { display: block; overflow: hidden; padding-bottom: .04em; }
.hero-title .ln > span { display: inline-block; }
.hero-title .b { padding-left: 1.2em; }
.hero-lead { max-width: 46ch; margin: 22px 0 30px; font-size: 18px; line-height: 1.65; color: var(--muted); }
.hero-meta { position: absolute; right: var(--gutter); bottom: 90px; z-index: 1; display: grid; gap: 8px; text-align: right; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* Simulateur */
.planner { padding: clamp(100px, 12vw, 170px) var(--gutter); background: var(--ivory); color: var(--black); }
.planner .title em { color: #6E6B3F; }
.planner .kicker { color: #6E6B3F; }
.planner-head { margin-bottom: 50px; }
.planner-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 5vw, 70px); align-items: start; }
.planner-form { display: grid; gap: 34px; }
.row { display: grid; gap: 14px; }
.lbl { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: rgba(15, 15, 14, .55); }
.lbl b { font-family: var(--display); font-weight: 400; font-size: 54px; letter-spacing: 0; color: var(--black); line-height: .8; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 11px 18px; border: 1px solid rgba(15, 15, 14, .18); font-size: 14px; transition: all .3s; }
.chip.is-on { background: var(--black); color: var(--ivory); border-color: var(--black); }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 2px; background: rgba(15, 15, 14, .2); outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: var(--black); box-shadow: 0 0 0 6px rgba(140, 138, 90, .35); cursor: grab; }
input[type=range]::-moz-range-thumb { width: 26px; height: 26px; border: 0; border-radius: 50%; background: var(--black); cursor: grab; }
.formulas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.formula { text-align: left; padding: 20px; border: 1px solid rgba(15, 15, 14, .15); background: #fff; transition: all .4s var(--ease); }
.formula b { display: block; font-family: var(--display); font-weight: 400; font-size: 24px; }
.formula small { display: block; margin-top: 6px; font-size: 13px; color: rgba(15, 15, 14, .6); line-height: 1.4; }
.formula i { display: block; margin-top: 14px; font-style: normal; font-weight: 600; }
.formula.is-on { background: var(--black); color: var(--ivory); transform: translateY(-4px); }
.formula.is-on small { color: var(--muted); }
.planner-result { position: sticky; top: 100px; padding: 24px; background: var(--black); color: var(--ivory); }
.floor { width: 100%; height: auto; background: radial-gradient(circle at 50% 40%, #232320, #141413); }
.floor .tbl { fill: none; stroke: rgba(216, 195, 165, .5); stroke-width: 1.5; }
.floor .seat { fill: var(--champ); }
.floor .seat.off { fill: rgba(242, 238, 230, .08); }
.sum { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.sum span { display: block; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.sum b { font-family: var(--display); font-weight: 400; font-size: clamp(34px, 3.4vw, 50px); }
.sum-detail { margin: 10px 0 20px; font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.quote-msg { margin-top: 12px; min-height: 1.4em; font-size: 14px; color: var(--champ); }

/* Menu empilé */
.courses { padding: clamp(100px, 12vw, 160px) var(--gutter) 40px; }
.courses-head { margin-bottom: 50px; }
.stack { display: grid; gap: 30px; }
.course { position: sticky; top: 100px; display: grid; grid-template-columns: 1.2fr 1fr; min-height: 66svh; background: var(--ink-2); border: 1px solid var(--line); overflow: hidden; transform-origin: 50% 0; }
.course img { width: 100%; height: 100%; object-fit: cover; }
.course > div { display: flex; flex-direction: column; justify-content: center; padding: clamp(24px, 4vw, 60px); }
.course span { font-family: var(--display); font-size: 22px; color: var(--olive); }
.course h3 { margin-top: 10px; font-family: var(--display); font-weight: 400; font-size: clamp(40px, 4.4vw, 70px); line-height: 1; }
.course p { margin-top: 18px; max-width: 34ch; line-height: 1.7; color: var(--muted); }

/* Galerie */
.gallery { padding: clamp(80px, 10vw, 140px) var(--gutter); }
.gallery-head { margin-bottom: 44px; }
.masonry { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 22vw; gap: 14px; }
.tile { position: relative; overflow: hidden; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tile:hover img { transform: scale(1.05); }
.tile figcaption { position: absolute; left: 14px; right: 14px; bottom: 12px; font-size: 13px; letter-spacing: .04em; text-shadow: 0 1px 10px rgba(0, 0, 0, .7); }
.t1 { grid-column: span 2; grid-row: span 2; }
.t4 { grid-column: span 2; }

.pbc-loyalty { --pbc-bg: var(--ivory); --pbc-fg: var(--black); --pbc-title-font: var(--display); --pbc-body-font: var(--body); --pbc-accent: var(--black); --pbc-accent-fg: var(--ivory); }
.pbc-loyalty .pbc-title { font-weight: 400; }

.footer { padding: 70px var(--gutter) 24px; overflow: hidden; }
.footer-word { font-family: var(--display); font-size: 17vw; line-height: .9; text-align: center; white-space: nowrap; }
.footer-bottom { display: flex; justify-content: space-between; gap: 10px; margin-top: 20px; font-size: 13px; color: var(--muted); }

@media (max-width: 900px) {
  .nav { display: none; }
  .hero-meta { display: none; }
  .planner-grid, .course { grid-template-columns: 1fr; }
  .planner-result { position: static; }
  .formulas { grid-template-columns: 1fr; }
  .course img { height: 220px; }
  .course { min-height: 0; }
  .masonry { grid-template-columns: 1fr 1fr; grid-auto-rows: 44vw; }
  .footer-bottom { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; } }
