/* ==========================================================================
   Falcoverage — landing cinématique scroll-scrub (skill cinematic-site-design)
   Squelette du skill, charte Falcoverage (dark éditorial, accent violet unique).
   ========================================================================== */

:root {
  --bg:      #0B0A10;   /* ADAPT — dark éditorial, léger sous-ton violet-nuit */
  --bg-2:    #121019;
  --bg-3:    #1A1626;
  --ink:     #08070C;

  --fg:      #F2F0F6;   /* ADAPT — blanc froid, jamais #fff */
  --fg-soft: #C7C4D4;
  --muted:   #8A8698;

  --accent:  #8B5CF6;   /* ADAPT — violet Falcoverage (accent unique) — un cran plus clair pour tenir sur le dark */
  --accent-2:#7C3AED;
  --line:    rgba(242, 240, 246, 0.13);

  --maxw:    1240px;
  --pad:     clamp(22px, 5vw, 80px);
  --ease:    cubic-bezier(0.22, 1, 0.36, 1);

  --serif:   "Fraunces", Georgia, "Times New Roman", serif;
  --sans:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans); font-weight: 400;
  background: var(--bg); color: var(--fg);
  line-height: 1.6; overflow-x: clip;               /* 🔴 clip, jamais hidden (casse le sticky) */
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
em { font-style: italic; }

/* ---------- Fragments partagés ---------- */
.eyebrow { font-family: var(--sans); font-weight: 500; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.eyebrow--light { color: var(--fg-soft); }
.lede { font-size: clamp(16px, 1.4vw, 20px); color: var(--fg-soft); max-width: 46ch; }
.meta { font-size: 14px; color: var(--muted); margin-top: 18px; }

.btn { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--sans); font-weight: 500; font-size: 15px;
  padding: .82rem 1.6rem; border-radius: 40px; border: 1px solid var(--line); color: var(--fg);
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s; cursor: pointer; }
.btn:hover { border-color: color-mix(in srgb, var(--accent) 60%, transparent); transform: translateY(-2px); }
.btn--light { background: var(--fg); color: var(--ink); border-color: var(--fg); }
.btn--light:hover { background: #fff; border-color: #fff; }
.btn:active { transform: translateY(0) scale(0.98); transition-duration: .12s; }

/* ---------- NAV ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 60; opacity: 0; transition: opacity .8s var(--ease); }
body.is-loaded .nav { opacity: 1; }
.nav.is-scrolled { background: rgba(11,10,16,.66); backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid var(--line); }
.nav__inner { max-width: var(--maxw); margin: 0 auto; padding: 16px var(--pad); display: flex; align-items: center; gap: 26px; }
.nav__brand { display: inline-flex; align-items: center; gap: 9px; font-family: var(--serif); font-weight: 500; font-size: 19px; color: var(--fg); }
.nav__mark { color: var(--accent); display: inline-flex; }
.nav__links { display: flex; gap: 26px; margin-left: 14px; }
.nav__links a { position: relative; font-size: 14px; color: var(--fg-soft); }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -5px; height: 1px; background: var(--accent); transition: right .3s var(--ease); }
.nav__links a:hover::after { right: 0; }
.nav__cta { margin-left: auto; padding: .55rem 1.15rem; font-size: 14px; }

/* ==========================================================================
   HERO — vidéo fly-through en autoplay + boucle, textes synchronisés à la lecture
   ========================================================================== */
.hero { position: relative; height: 100vh; min-height: 620px; overflow: hidden; background: var(--ink); }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__scrim { position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top, rgba(8,7,12,0.82) 0%, rgba(8,7,12,0.10) 40%, rgba(8,7,12,0) 58%),
    linear-gradient(to bottom, rgba(8,7,12,0.38) 0%, rgba(8,7,12,0) 20%); }

.hero__beat { position: absolute; left: var(--pad); bottom: clamp(70px, 14vh, 150px); z-index: 10; max-width: 760px; opacity: 0; will-change: opacity, transform; }
.hero__eyebrow { font-family: var(--sans); font-weight: 500; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; }
.hero__title { font-family: var(--serif); font-weight: 400; font-size: clamp(46px, 8.2vw, 128px); line-height: 0.98; letter-spacing: -0.015em; }
.hero__title em, .hero__beat-title em { color: var(--accent); }
.hero__tagline { margin-top: 24px; font-size: clamp(16px, 1.5vw, 21px); color: var(--fg-soft); max-width: 48ch; text-shadow: 0 1px 20px rgba(0,0,0,.6); }
.hero__beat-title { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 5.6vw, 82px); line-height: 1.02; letter-spacing: -0.01em; }
.hero__beat-copy { margin-top: 20px; font-size: clamp(15px, 1.4vw, 19px); color: var(--fg-soft); max-width: 46ch; text-shadow: 0 1px 20px rgba(0,0,0,.6); }
.hero__beat .btn { margin-top: 28px; }

.hero__cue { position: absolute; left: var(--pad); bottom: 34px; z-index: 10; display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.hero__cue-line { width: 54px; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.hero__cue-line::after { content: ""; position: absolute; inset: 0; width: 40%; background: var(--accent); animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateX(-100%); } 60%,100% { transform: translateX(320%); } }

/* Loader */
.loader { position: absolute; inset: 0; z-index: 20; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; background: var(--bg); transition: opacity .8s var(--ease), visibility .8s; }
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__brand { font-family: var(--serif); font-size: 22px; letter-spacing: .3em; color: var(--fg); }
.loader__track { width: min(240px, 60vw); height: 2px; background: var(--line); overflow: hidden; }
.loader__bar { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s linear; }
.loader__pct { font-size: 12px; letter-spacing: .14em; color: var(--muted); }

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.stats { background: var(--ink); padding: clamp(70px,11vh,130px) var(--pad); }
.stats__inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(4,1fr); gap: clamp(24px,4vw,60px); }
.stat { border-left: 1px solid var(--line); padding-left: 26px; }
.stat__num { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(46px,5.5vw,76px); line-height: 1; color: var(--fg); }
.stat__unit { font-size: 0.42em; color: var(--accent); }
.stat__label { display: block; font-size: 12px; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); margin-top: 16px; max-width: 22ch; }

.editorial { padding: clamp(90px,13vh,180px) var(--pad); background: var(--bg); }
.editorial--reverse { background: var(--bg-2); }
.editorial__inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(36px,6vw,90px); align-items: center; }
.editorial--reverse .editorial__media { order: 2; }
.editorial--reverse .editorial__text { order: 1; }
.editorial__title { font-family: var(--serif); font-weight: 400; font-size: clamp(38px,5.2vw,76px); line-height: 1.02; letter-spacing: -0.015em; margin-bottom: 22px; }
.editorial__title em { color: var(--accent); }
.frame { margin: 0; overflow: hidden; border-radius: 5px; box-shadow: 0 40px 90px -40px rgba(0,0,0,0.75); position: relative; aspect-ratio: 16/9; background: var(--bg-3);
  background-image: repeating-linear-gradient(45deg, rgba(245,244,242,0.018) 0 14px, transparent 14px 28px); }
.frame::after { content: "Image à venir"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--sans); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); opacity: .5; pointer-events: none; }
.frame img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.editorial__media:hover .frame img { transform: scale(1.04); }

.bleed { position: relative; min-height: 92vh; display: flex; align-items: center; overflow: hidden; }
.bleed--tall { min-height: 100vh; }
.bleed__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bleed__scrim { position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(8,7,12,0.90) 0%, rgba(8,7,12,0.34) 40%, rgba(8,7,12,0) 62%),
    linear-gradient(to right, rgba(8,7,12,0.58) 0%, rgba(8,7,12,0.12) 52%, rgba(8,7,12,0) 82%); }
.bleed__content { position: relative; z-index: 2; max-width: 660px; padding: 0 var(--pad); }
.bleed__content--low { align-self: flex-end; padding-bottom: clamp(60px,12vh,120px); }
.bleed__title { font-family: var(--serif); font-weight: 400; font-size: clamp(38px,5.4vw,80px); line-height: 1.02; letter-spacing: -0.015em; margin-bottom: 20px; }
.bleed__title em { color: var(--accent); }
.bleed__copy { color: var(--fg-soft); font-size: clamp(16px,1.4vw,20px); text-shadow: 0 1px 24px rgba(0,0,0,0.85), 0 1px 4px rgba(0,0,0,0.6); max-width: 52ch; }
.bleed__specs { list-style: none; margin-top: 34px; display: flex; gap: clamp(28px,4vw,56px); flex-wrap: wrap; }
.bleed__specs li { display: flex; flex-direction: column; gap: 6px; padding-top: 18px; border-top: 1px solid rgba(242,240,246,0.22); min-width: 150px; }
.bleed__spec-k { font-size: 12px; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.bleed__spec-v { font-family: var(--serif); font-size: 22px; color: var(--fg); }

.amenities { background: var(--bg-2); padding: clamp(90px,14vh,180px) var(--pad); }
.amenities__inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px,6vw,96px); align-items: start; }
.amenities__head { position: sticky; top: 120px; }
.amenities__title { font-family: var(--serif); font-weight: 400; font-size: clamp(34px,4.6vw,68px); line-height: 1.02; letter-spacing: -0.015em; margin: 18px 0 22px; }
.amenities__title em { color: var(--accent); }
.amenities__list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(28px,4vw,56px); }
.amenity { display: flex; gap: 20px; align-items: baseline; padding: 24px 0; border-bottom: 1px solid var(--line); }
.amenity__index { font-family: var(--serif); font-size: 15px; color: var(--accent); flex: 0 0 auto; min-width: 26px; }
.amenity__text { font-size: 16px; color: var(--fg-soft); }

.manifesto { background: var(--bg); padding: clamp(110px,18vh,220px) var(--pad); }
.manifesto__inner { max-width: 980px; margin: 0 auto; text-align: center; }
.manifesto__quote { font-family: var(--serif); font-weight: 400; font-size: clamp(30px,4.4vw,62px); line-height: 1.14; letter-spacing: -0.01em; margin: 24px 0; }
.manifesto__quote em { color: var(--accent); }
.manifesto__by { color: var(--muted); font-size: 14px; letter-spacing: .04em; }

.contact { background: var(--ink); padding: clamp(90px,14vh,180px) var(--pad); }
.contact__inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(40px,6vw,90px); align-items: end; }
.contact__title { font-family: var(--serif); font-weight: 400; font-size: clamp(38px,5vw,76px); line-height: 1.02; letter-spacing: -0.015em; margin: 18px 0 22px; }
.contact__title em { color: var(--accent); }
.contact__coords { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.contact__btn { padding: .95rem 1.9rem; font-size: 16px; }
.contact__link { color: var(--fg-soft); font-size: 15px; border-bottom: 1px solid var(--line); padding-bottom: 3px; }
.contact__link:hover { color: var(--fg); border-color: var(--accent); }

.foot { background: var(--ink); border-top: 1px solid var(--line); padding: 40px var(--pad); }
.foot__inner { max-width: var(--maxw); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 14px 30px; align-items: center; justify-content: space-between; }
.foot__brand { font-family: var(--serif); font-size: 18px; color: var(--fg); }
.foot__legal { color: var(--muted); font-size: 13px; }
.foot__links { display: flex; gap: 20px; }
.foot__links a { color: var(--muted); font-size: 13px; }
.foot__links a:hover { color: var(--fg); }

/* ==========================================================================
   MOTION LAYER (additive)
   ========================================================================== */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
[data-reveal].is-inview { opacity: 1; transform: none; }

/* masked title reveal — le masque gère l'anim, donc pas de fade opacity dessus */
[data-ml] { opacity: 1; transform: none; }
.ml-reveal .ml-line { overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.ml-reveal .ml-line__inner { display: block; transform: translateY(112%); transition: transform .95s var(--ease); transition-delay: var(--ml-delay, 0s); will-change: transform; }
.ml-reveal.is-shown .ml-line__inner { transform: translateY(0); }

/* full-bleed parallax (JS pose --py) */
.bleed__img { will-change: transform; transform: translate3d(0, var(--py, 0px), 0) scale(1.12); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 820px) {
  .hero__beat { max-width: 90vw; }
  .nav__links { display: none; }
  .stats__inner { grid-template-columns: 1fr 1fr; gap: 34px; }
  .editorial__inner, .contact__inner { grid-template-columns: 1fr; }
  .editorial--reverse .editorial__media { order: 0; }
  .editorial--reverse .editorial__text { order: 0; }
  .amenities__inner { grid-template-columns: 1fr; }
  .amenities__head { position: static; }
  .amenities__list { grid-template-columns: 1fr; }
  .contact__coords { align-items: stretch; }
}
@media (max-width: 520px) {
  .stats__inner { grid-template-columns: 1fr; }
}

/* ==========================================================================
   REDUCED MOTION — tout neutralisé
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transform: none !important; transition: none !important; animation: none !important; }
  [data-reveal] { opacity: 1 !important; }
  .ml-reveal .ml-line__inner { transform: none !important; }
  .loader { display: none !important; }
}
