/* ============================================================
   NOVA — scroll-driven journey
   One fixed stage. Scroll = timeline. Scenes crossfade over a
   continuous 3D travel. Filmic / warm (LUT-inspired).
   ============================================================ */

:root {
  --bg:        #0b0a09;
  --bg-2:      #131110;
  --fg:        #ece7df;
  --fg-dim:    #ffffff;
  --line:      rgba(236, 231, 223, 0.14);
  --accent:    #d3a53a;
  --accent-2:  #ecc667;
  --accent-grad: linear-gradient(90deg, #f0d27a 0%, #c8971f 100%);
  /* metallic gold for titles & signature */
  --gold-grad: linear-gradient(180deg, #f7d987 0%, #e6b53f 20%, #cf9526 37%, #8a5c11 49%, #e4bb4f 55%, #ffe6a0 68%, #d9a12b 84%, #955f11 100%);
  --maxw: 1320px;
  --pad: clamp(22px, 5vw, 90px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  cursor: none;
}
@media (max-width: 900px) { body { cursor: auto; } }

a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: #1a1207; }

/* Lenis */
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- OVERLAYS ---------- */
.vignette {
  position: fixed; inset: 0; z-index: 40; pointer-events: none;
  background: radial-gradient(120% 100% at 50% 42%, transparent 52%, rgba(0,0,0,.6) 100%);
  mix-blend-mode: multiply;
}
.grain {
  position: fixed; inset: -50%; z-index: 41; pointer-events: none; opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.6s steps(2) infinite;
}
@keyframes grain { 0%{transform:translate(0,0)} 50%{transform:translate(-4%,3%)} 100%{transform:translate(3%,-2%)} }

/* ---------- CURSOR ---------- */
.cursor, .cursor-dot { position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none; border-radius: 50%; transform: translate(-50%,-50%); mix-blend-mode: difference; }
.cursor { width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.7); transition: width .3s var(--ease), height .3s var(--ease), background .3s; }
.cursor-dot { width: 5px; height: 5px; background: #fff; }
.cursor.is-hover { width: 64px; height: 64px; background: rgba(255,255,255,.1); border-color: transparent; }
@media (max-width: 900px) { .cursor, .cursor-dot { display: none; } }

/* ---------- PRELOADER ---------- */
.preloader { position: fixed; inset: 0; z-index: 100; background: var(--bg); display: flex; align-items: center; justify-content: center; transition: opacity .9s var(--ease), visibility .9s; }
.preloader.done { opacity: 0; visibility: hidden; }
.intro { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(34px, 7vw, 92px); line-height: 1; letter-spacing: -.02em; text-align: center; display: grid; place-items: center; }
.intro__word { grid-area: 1 / 1; opacity: 0; transform: translateY(24px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.intro__word.show { opacity: 1; transform: none; }
.intro__word.hide { opacity: 0; transform: translateY(-24px); }
.intro__word:last-of-type { color: transparent; background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; }
.intro__brand { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); font-family: var(--font-display); font-weight: 800; font-size: 15px; letter-spacing: .3em; opacity: 0; transition: opacity .6s var(--ease); }
.intro__brand span { color: var(--accent); }
.intro__brand.show { opacity: 1; }

/* ---------- FIXED STAGE ---------- */
.stage { position: fixed; inset: 0; z-index: 1; overflow: hidden; }
#bg-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
/* cinematic decor fallback — animated warm "smoke", shown until a real video loads */
.stage__fallback {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    radial-gradient(40% 55% at 22% 30%, rgba(200,137,90,.55), transparent 60%),
    radial-gradient(45% 60% at 78% 68%, rgba(244,226,196,.32), transparent 60%),
    radial-gradient(50% 60% at 60% 20%, rgba(168,99,47,.40), transparent 60%),
    radial-gradient(55% 65% at 35% 80%, rgba(120,70,30,.45), transparent 62%),
    rgba(11,10,9,.5);
  filter: blur(6px) brightness(.9) saturate(1.05);
  animation: smoke 22s ease-in-out infinite alternate;
  transition: opacity 1.1s var(--ease);
}
.stage__fallback.hidden { opacity: 0; }
@keyframes smoke {
  0%   { background-position: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0 0; transform: scale(1.05); }
  50%  { transform: scale(1.12); }
  100% { background-position: 12% 8%, -10% -6%, 8% -10%, -8% 10%, 0 0; transform: scale(1.08); }
}
/* full-screen cinematic video decor (LUT signature) */
.stage__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  z-index: 2; opacity: 0; transform: scale(1.0); transform-origin: center;
  filter: saturate(1.1) contrast(1.07) brightness(.94);
  transition: opacity 1.1s var(--ease);
  will-change: transform, opacity;
}
.stage__video.ready { opacity: 1; }
/* scrim: keeps text readable over the footage */
.stage__scrim {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(11,10,9,.58) 0%, rgba(11,10,9,.20) 45%, rgba(11,10,9,.42) 100%),
    linear-gradient(0deg, rgba(11,10,9,.52) 0%, transparent 42%);
}
/* the 3D object sits in the decor, BEHIND the scrim, so text stays foreground */
.stage__object { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.scene { z-index: 5; }

/* scroll length driver */
.scroll-track { position: relative; z-index: 0; height: 880vh; pointer-events: none; }

/* ---------- SCENES ---------- */
.scene {
  position: absolute; inset: 0; z-index: 3;
  display: flex; align-items: center;
  padding: 0 var(--pad);
  opacity: 0; visibility: hidden;
  will-change: opacity, transform;
}
.scene--center { justify-content: center; text-align: center; }
.scene__inner { max-width: var(--maxw); margin: 0 auto; width: 100%; }
.scene--center .scene__inner { max-width: 1050px; }

.scene__idx {
  display: inline-block; font-family: var(--font-display); font-weight: 700;
  font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 26px;
}

/* cursive gold titles */
.display, .title {
  font-family: "Great Vibes", cursive; font-weight: 400; text-transform: none;
  line-height: 1.1; letter-spacing: 0;
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  -webkit-text-stroke: 0.5px rgba(74, 47, 8, 0.5);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.55));
}
.display { font-size: clamp(52px, 11vw, 150px); }
.title { font-size: clamp(40px, 7.5vw, 104px); }
.eyebrow { font-size: 13px; letter-spacing: .26em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 22px; }
.lede { margin-top: 30px; max-width: 500px; font-size: clamp(15px, 1.5vw, 19px); color: var(--fg-dim); text-shadow: 0 2px 20px rgba(0,0,0,.6); }

/* manifesto statement */
.statement { font-family: var(--font-body); font-weight: 400; font-size: clamp(20px, 2.8vw, 34px); line-height: 1.45; letter-spacing: 0; text-shadow: 0 2px 20px rgba(0,0,0,.7); }
.statement em { font-style: normal; color: var(--accent-2); }

/* sectors list */
.list { list-style: none; }
.list li {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(28px, 5.4vw, 78px); line-height: 1.05; letter-spacing: -.02em;
  display: flex; align-items: baseline; gap: 22px; padding: 6px 0;
  text-shadow: 0 4px 30px rgba(0,0,0,.5); transition: color .3s, transform .4s var(--ease);
}
.list li span { font-size: .32em; color: var(--accent); font-weight: 700; }
.list li:hover { transform: translateX(18px); color: var(--accent-2); }

/* method */
.method { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 8px; }
.method article { border-top: 1px solid var(--line); padding-top: 22px; }
.method b { font-family: var(--font-display); color: var(--accent-2); font-size: 15px; }
.method h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(19px, 2vw, 26px); text-transform: uppercase; margin: 14px 0 12px; }
.method p { color: var(--fg-dim); font-size: 15px; }
@media (max-width: 820px) { .method { grid-template-columns: 1fr; gap: 26px; } }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-top: 10px; }
.stats .stat { font-family: var(--font-display); font-weight: 800; font-size: clamp(38px, 6vw, 88px); letter-spacing: -.03em; display: block; }
.stats small { color: var(--fg-dim); font-size: 13px; display: block; margin-top: 10px; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); gap: 34px; } }

/* contact */
.scene__inner--contact .mail { display: inline-block; margin-top: 40px; font-size: clamp(18px, 2.4vw, 30px); border-bottom: 1px solid var(--fg-dim); padding-bottom: 8px; transition: border-color .4s, color .4s; }
.scene__inner--contact .mail:hover { border-color: var(--accent-2); color: var(--accent-2); }
.studios { display: flex; gap: 30px; justify-content: center; margin-top: 40px; color: var(--fg-dim); font-size: 14px; flex-wrap: wrap; }

/* ---------- SIGNATURE (handwritten CTA) ---------- */
.signature {
  font-family: "Great Vibes", cursive; font-weight: 400; text-transform: none;
  font-size: clamp(56px, 12.5vw, 158px); line-height: 1.18; letter-spacing: 0;
  padding: .08em .18em;                         /* room for the R & p swashes */
}
.signature__text {
  display: inline-block;
  /* real metallic gold: alternating light/dark bands = reflection */
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  -webkit-text-stroke: 0.6px rgba(74, 47, 8, 0.55);   /* defines the letters on the busy video */
  /* soft cast shadow for lift (drop-shadow follows the gold glyphs) */
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.55)) drop-shadow(0 1px 1px rgba(0,0,0,.45));
  /* only the RIGHT edge wipes; top/left/bottom stay expanded so no glyph is cut */
  clip-path: inset(-30% 100% -30% -14%);
}
.signature__flourish {
  display: block; width: min(560px, 74%); height: auto; margin: -6px auto 0; overflow: visible;
}
.signature__flourish path {
  filter: drop-shadow(0 3px 8px rgba(0,0,0,.55));
  stroke-dasharray: 900; stroke-dashoffset: 900;   /* hidden until drawn */
}
/* trigger: added on the CTA scene when it becomes active (replays each visit) */
.is-writing .signature__text { animation: sign-write 2.3s var(--ease) .15s forwards; }
.is-writing .signature__flourish path { animation: sign-draw 1.3s var(--ease) 1.5s forwards; }
@keyframes sign-write { to { clip-path: inset(-30% -8% -30% -14%); } }
@keyframes sign-draw  { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .signature__text { clip-path: none; }
  .signature__flourish path { stroke-dashoffset: 0; }
}

/* ---------- EVENT CONTENT ---------- */
.scene__inner--wide { max-width: 1180px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* .title now defined once (cursive gold) near the top */

.event-meta { margin-top: 26px; font-family: var(--font-display); font-weight: 600; font-size: clamp(15px, 1.7vw, 21px); letter-spacing: .02em; color: var(--fg); text-shadow: 0 2px 18px rgba(0,0,0,.7); }
.note { margin-top: 22px; color: var(--fg-dim); font-size: 14px; letter-spacing: .01em; text-shadow: 0 2px 14px rgba(0,0,0,.7); }

/* primary button */
.btn {
  display: inline-block; margin-top: 34px;
  font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: .02em;
  color: #2a1c04; background: linear-gradient(180deg, #f5d67e 0%, #d9a63a 52%, #b9821f 100%);
  border-radius: 46px; padding: 15px 30px;
  box-shadow: 0 10px 36px rgba(190,140,30,.32);
  transition: transform .35s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease);
}
.btn:hover { background: linear-gradient(180deg, #ffe9a8 0%, #e8bd52 52%, #cf9628 100%); box-shadow: 0 14px 48px rgba(190,140,30,.45); }
.btn--lg { font-size: 17px; padding: 18px 38px; }

/* programme */
.prog { display: grid; grid-template-columns: 1.5fr 1fr; gap: 30px 50px; margin-top: 6px; align-items: start; }
.sched h4 { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 15px; letter-spacing: .12em; color: var(--accent-2); border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 6px; }
.sched__row { display: grid; grid-template-columns: 74px 1fr; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.sched__row time { font-family: var(--font-display); font-weight: 600; font-size: 13px; color: var(--fg); white-space: nowrap; }
.sched__row span { font-size: 14.5px; color: var(--fg-dim); line-height: 1.35; }
@media (max-width: 820px) { .prog { grid-template-columns: 1fr; } .sched__row span { font-size: 13.5px; } }

/* cards */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 8px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.card {
  position: relative; padding: clamp(22px, 2.4vw, 34px);
  background: linear-gradient(155deg, rgba(28,32,30,.72), rgba(10,12,11,.72));
  border: 1px solid var(--line); border-radius: 16px; backdrop-filter: blur(6px);
}
.card__kicker, .card__prices small { font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: .1em; color: var(--accent-2); text-transform: uppercase; }
.card h4 { font-family: var(--font-display); font-weight: 700; font-size: clamp(19px, 2vw, 26px); margin: 12px 0 12px; letter-spacing: -.01em; }
.card p { color: var(--fg-dim); font-size: 15px; }
.card__prices { margin-top: 14px; color: var(--fg); font-weight: 500; }
.card__prices small { color: var(--fg-dim); }
.card__link { display: inline-block; margin-top: 18px; font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--accent-2); border-bottom: 1px solid transparent; transition: border-color .3s; }
.card__link:hover { border-color: var(--accent-2); }
.card--ticket { text-align: left; }
.tag { display: inline-block; font-family: var(--font-display); font-weight: 700; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; padding: 5px 12px; border-radius: 40px; }
.tag--complet { color: #e7b0b0; background: rgba(180,60,60,.18); border: 1px solid rgba(200,90,90,.4); }
@media (max-width: 860px) { .cards, .cards--3 { grid-template-columns: 1fr; } }

/* hotels */
.linklist { list-style: none; margin-top: 24px; }
.linklist li { border-top: 1px solid var(--line); }
.linklist li:last-child { border-bottom: 1px solid var(--line); }
.linklist a { display: block; padding: 16px 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(17px, 2vw, 24px); transition: color .3s, transform .4s var(--ease); }
.linklist a:hover { color: var(--accent-2); transform: translateX(12px); }

/* small print inside cards */
.card__fine { margin-top: 16px; font-size: 12.5px; line-height: 1.5; color: var(--fg-dim); opacity: .85; }

/* facts list (hébergement) */
.facts { list-style: none; margin: 22px 0 6px; }
.facts li { position: relative; padding: 9px 0 9px 22px; border-top: 1px solid var(--line); color: var(--fg-dim); font-size: 15px; }
.facts li:last-child { border-bottom: 1px solid var(--line); }
.facts li::before { content: "—"; position: absolute; left: 0; color: var(--accent-2); }

/* pricing table */
.pricing { margin-top: 8px; border-top: 1px solid var(--line); }
.pricing__head, .pricing__row {
  display: grid; grid-template-columns: 1fr 120px 130px; gap: 16px; align-items: center;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.pricing__head { font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); }
.pricing__head span:first-child { color: var(--fg-dim); }
.pricing__row span:first-child { font-size: 16px; color: var(--fg); }
.pricing__row span:not(:first-child) { font-family: var(--font-display); font-weight: 700; font-size: clamp(20px, 2.4vw, 30px); color: var(--fg); }
.pricing__row span:last-child { color: var(--accent-2); }
@media (max-width: 720px) {
  .pricing__head { display: none; }
  .pricing__row { grid-template-columns: 1fr auto auto; gap: 14px; }
  .pricing__row span:not(:first-child) { font-size: 18px; }
}

/* read-more link */
.link-more {
  display: inline-block; margin-top: 26px; padding: 0;
  font-family: var(--font-display); font-weight: 600; font-size: 14px; letter-spacing: .03em;
  color: var(--accent-2); background: none; border: 0; border-bottom: 1px solid transparent;
  cursor: pointer; transition: border-color .3s var(--ease);
}
.link-more:hover { border-color: var(--accent-2); }

/* ---------- MODAL ---------- */
.modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 6vh var(--pad);
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s var(--ease);
}
.modal.open { opacity: 1; visibility: visible; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(6,6,8,.72); backdrop-filter: blur(6px); }
.modal__panel {
  position: relative; width: 100%; max-width: 700px; max-height: 86vh; overflow-y: auto;
  background: linear-gradient(155deg, rgba(30,25,18,.94), rgba(12,10,8,.96));
  border: 1px solid var(--line); border-radius: 20px; padding: clamp(30px, 5vw, 56px);
  box-shadow: 0 40px 120px rgba(0,0,0,.6);
  transform: translateY(16px); transition: transform .5s var(--ease);
}
.modal.open .modal__panel { transform: none; }
.modal__panel .title { font-size: clamp(30px, 5vw, 54px); margin-top: 4px; }
.modal__close {
  position: absolute; top: 14px; right: 18px; width: 40px; height: 40px;
  background: none; border: 0; color: var(--fg); font-size: 30px; line-height: 1; cursor: pointer;
  transition: color .3s, transform .3s var(--ease);
}
.modal__close:hover { color: var(--accent-2); transform: rotate(90deg); }
.modal__body { margin-top: 22px; }
.modal__body p { color: var(--fg-dim); font-size: 16px; line-height: 1.6; margin-bottom: 16px; }
.modal__body strong { color: var(--accent-2); font-weight: 600; }
.modal__highlight { border: 1px solid var(--line); border-left: 2px solid var(--accent-2); border-radius: 10px; padding: 16px 18px; background: rgba(211,165,58,.06); }
.modal__body .note { margin-top: 8px; }

/* ---------- NAV ---------- */
.nav { position: fixed; top: 0; left: 0; width: 100%; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: 22px var(--pad); text-shadow: 0 1px 10px rgba(0,0,0,.55); }
.nav__logo { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -.01em; }
.nav__logo span { color: var(--accent-2); }
.nav__links { display: flex; gap: 30px; font-size: 14px; }
.nav__links a { position: relative; padding: 4px 0; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px; background: currentColor; transition: width .4s var(--ease); }
.nav__links a:hover::after, .nav__links a.active::after { width: 100%; }
.nav__cta { font-size: 14px; color: var(--accent-2); border: 1px solid var(--accent-2); border-radius: 40px; padding: 10px 22px; text-shadow: none; transition: background .35s var(--ease), color .35s var(--ease); }
.nav__cta:hover { background: var(--accent-2); color: #2a1c04; }
@media (max-width: 820px) { .nav__links { display: none; } }

/* ---------- HUD ---------- */
.hud { position: fixed; z-index: 50; left: var(--pad); right: var(--pad); bottom: 26px; display: flex; align-items: center; gap: 20px; mix-blend-mode: difference; pointer-events: none; }
.hud__counter { font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: .1em; }
.hud__counter b { color: #fff; }
.hud__progress { flex: 1; max-width: 40vw; height: 1px; background: rgba(255,255,255,.25); position: relative; }
.hud__progress span { position: absolute; left: 0; top: 0; height: 100%; width: 0; background: #fff; }
.hud__hint { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; opacity: .8; }
@media (max-width: 620px) { .hud__hint { display: none; } }

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
  .scene { position: relative; opacity: 1; visibility: visible; min-height: 100vh; }
  .scroll-track { display: none; }
  .stage { position: relative; }
}
