/* ============================================================
   ATLAS — Club privé · Lyon
   Charte : charbon froid + bronze · Playfair Display + Work Sans
   ============================================================ */

:root {
  /* ---- Backgrounds ---- */
  --bg:          #0d0d0f;   /* page base — charbon froid, heure bleue */
  --bg-2:        #141416;
  --bg-3:        #1a1a1d;
  --ink:         #09090b;

  /* ---- Text ---- */
  --fg:          #f2f0ec;   /* blanc minéral tiède */
  --fg-soft:     #cdcbc5;
  --muted:       #8b8a8f;

  /* ---- Accent + lines ---- */
  --accent:      #b87333;   /* bronze — seul accent */
  --line:        rgba(242, 240, 236, 0.14);

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

  /* ---- Typefaces ---- */
  --serif:       "Playfair Display", Georgia, serif;
  --sans:        "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ============ Base ============ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  overflow-x: clip; /* jamais hidden — hidden tue le sticky du scrub */
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; margin: 0 0 0.4em; }
h1 em, h2 em { font-style: italic; color: var(--accent); }
p { margin: 0 0 1em; }
a { color: inherit; }
img { max-width: 100%; display: block; }

::selection { background: var(--accent); color: var(--ink); }

/* ============ Fragments partagés ============ */
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 22px;
}
.eyebrow--light { color: var(--accent); }

.lede {
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--fg-soft);
  max-width: 46ch;
}
.meta {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  background: var(--accent);
  padding: 16px 34px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--light {
  background: transparent;
  color: var(--fg);
  border-color: rgba(242, 240, 236, 0.35);
}
.btn--light:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn--nav { padding: 11px 24px; font-size: 11px; }

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px var(--pad);
  transition: background 0.5s var(--ease), backdrop-filter 0.5s var(--ease), padding 0.5s var(--ease);
}
.nav.is-scrolled {
  background: rgba(13, 13, 15, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 12px var(--pad);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 52px);
}
.nav__brand {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-decoration: none;
  margin-right: auto;
}
.nav__links { display: flex; gap: clamp(18px, 3vw, 40px); }
.nav__link {
  position: relative;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--fg-soft);
  padding: 4px 0;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.nav__link:hover::after { transform: scaleX(1); }

/* ============ HERO — SCROLL-SCRUB ============ */
.scrub { position: relative; height: 560vh; background: var(--bg); }
.scrub__stage { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.scrub__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.scrub__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top, rgba(9, 9, 11, 0.78) 0%, rgba(9, 9, 11, 0.12) 42%, rgba(9, 9, 11, 0) 65%),
    linear-gradient(to bottom, rgba(9, 9, 11, 0.5) 0%, rgba(9, 9, 11, 0) 28%);
}
.scrub__beat {
  position: absolute;
  left: var(--pad);
  bottom: clamp(64px, 13vh, 140px);
  z-index: 10;
  max-width: 720px;
  opacity: 0;
  will-change: opacity, transform;
}
.scrub__eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
}
.scrub__title {
  font-size: clamp(52px, 8.5vw, 132px);
  letter-spacing: 0.02em;
  margin: 0 0 18px;
}
.scrub__title em { display: block; font-size: 0.42em; letter-spacing: 0.01em; margin-top: 10px; }
.scrub__beat-title { font-size: clamp(34px, 4.6vw, 68px); margin: 0 0 18px; }
.scrub__tagline, .scrub__beat-copy {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--fg-soft);
  max-width: 52ch;
  text-shadow: 0 1px 24px rgba(0, 0, 0, 0.85), 0 1px 4px rgba(0, 0, 0, 0.6);
}
.scrub__beat .btn { margin-top: 10px; }

.scrub__cue {
  position: absolute;
  right: var(--pad);
  bottom: 42px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  transition: opacity 0.4s var(--ease);
}
.scrub__cue-line {
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: cue-drop 2.2s var(--ease) infinite;
}
@keyframes cue-drop {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* 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 0.8s var(--ease), visibility 0.8s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__brand {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 0.42em;
  padding-left: 0.42em; /* recentre optiquement le tracking */
}
.loader__track {
  width: 180px; height: 1px;
  background: var(--line);
  overflow: hidden;
}
.loader__bar {
  display: block;
  width: 0%; height: 100%;
  background: var(--accent);
  transition: width 0.3s ease-out;
}
.loader__pct { font-size: 11px; letter-spacing: 0.2em; color: var(--muted); }

/* ============ STATS ============ */
.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 { text-align: left; 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: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 16px;
}

/* ============ ÉDITORIAL ============ */
.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-size: clamp(38px, 5.2vw, 76px); }
.editorial__title em { color: var(--accent); }

/* fallback visuel tant que l'image de section n'est pas posée */
.frame {
  margin: 0;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.7);
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-3);
  background-image: repeating-linear-gradient(45deg, rgba(242, 240, 236, 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: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.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); }

.editorial__figures {
  display: flex;
  gap: clamp(28px, 4vw, 56px);
  flex-wrap: wrap;
  margin-top: 30px;
}
.figure { display: flex; flex-direction: column; gap: 6px; padding-top: 18px; border-top: 1px solid var(--line); min-width: 120px; }
.figure__v { font-family: var(--serif); font-size: clamp(26px, 2.6vw, 38px); color: var(--fg); line-height: 1; }
.figure__k { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* ============ PRESTATIONS ============ */
.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-size: clamp(38px, 5vw, 72px); }
.amenities__list {
  list-style: none;
  margin: 0; padding: 0;
  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: 15px; color: var(--fg-soft); line-height: 1.55; }

/* ============ FULL-BLEED ============ */
.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; background: var(--bg-3); }
.bleed__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(9, 9, 11, 0.88) 0%, rgba(9, 9, 11, 0.32) 38%, rgba(9, 9, 11, 0) 60%),
    linear-gradient(to right, rgba(9, 9, 11, 0.55) 0%, rgba(9, 9, 11, 0.12) 50%, rgba(9, 9, 11, 0) 80%);
}
.bleed__content { position: relative; z-index: 2; max-width: 640px; padding: 0 var(--pad); }
.bleed__content--low { align-self: flex-end; padding-bottom: clamp(60px, 12vh, 120px); }
.bleed__title { font-size: clamp(38px, 5.2vw, 76px); }
.bleed__copy {
  color: var(--fg-soft);
  max-width: 48ch;
  text-shadow: 0 1px 24px rgba(0, 0, 0, 0.85), 0 1px 4px rgba(0, 0, 0, 0.6);
}
.bleed__specs {
  list-style: none;
  margin: 34px 0 0; padding: 0;
  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, 236, 0.22);
  min-width: 150px;
}
.bleed__spec-k { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.bleed__spec-v { font-family: var(--serif); font-size: clamp(24px, 2.4vw, 34px); color: var(--fg); }

/* ============ PRIX ============ */
.pricing__price {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(64px, 9vw, 148px);
  line-height: 1;
  color: var(--fg);
  margin: 0 0 22px;
}
.pricing__per { font-size: 0.3em; color: var(--accent); letter-spacing: 0.04em; }
.pricing__sub {
  color: var(--fg-soft);
  max-width: 52ch;
  margin-bottom: 34px;
  text-shadow: 0 1px 24px rgba(0, 0, 0, 0.85), 0 1px 4px rgba(0, 0, 0, 0.6);
}
.bleed__scrim--pricing {
  background:
    linear-gradient(to top, rgba(9, 9, 11, 0.92) 0%, rgba(9, 9, 11, 0.45) 44%, rgba(9, 9, 11, 0.08) 72%),
    linear-gradient(to right, rgba(9, 9, 11, 0.55) 0%, rgba(9, 9, 11, 0.12) 50%, rgba(9, 9, 11, 0) 80%);
}

/* ============ MANIFESTE ============ */
.manifesto { background: var(--ink); padding: clamp(110px, 17vh, 220px) var(--pad); }
.manifesto__inner { max-width: 780px; margin: 0 auto; text-align: center; }
.manifesto__inner .eyebrow { margin-bottom: 30px; }
.manifesto__title { font-size: clamp(34px, 4.4vw, 64px); margin-bottom: 30px; }
.manifesto__copy { font-size: clamp(16px, 1.5vw, 19px); color: var(--fg-soft); margin: 0 auto; max-width: 58ch; }

/* ============ CONTACT ============ */
.contact { background: var(--bg); padding: clamp(90px, 14vh, 180px) var(--pad); }
.contact__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.contact__title { font-size: clamp(38px, 5vw, 72px); }
.contact__card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: clamp(30px, 3.4vw, 48px);
}
.contact__name { font-family: var(--serif); font-size: 26px; margin: 0 0 4px; }
.contact__role { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0 0 26px; }
.contact__list { list-style: none; margin: 0 0 32px; padding: 0; }
.contact__list li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--fg-soft); }
.contact__list a { text-decoration: none; transition: color 0.3s; }
.contact__list a:hover { color: var(--accent); }

/* ============ FOOTER ============ */
.footer { background: var(--ink); border-top: 1px solid var(--line); padding: 34px var(--pad); }
.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__brand { font-family: var(--serif); font-weight: 600; letter-spacing: 0.34em; font-size: 15px; }
.footer__legal { font-size: 12px; color: var(--muted); margin-right: auto; }
.footer__cta {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 3px;
}

/* ============================================================
   MOTION LAYER (additive) — ne touche jamais au moteur scrub
   ============================================================ */

/* masked title reveal */
.ml-reveal .ml-line { overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.ml-reveal .ml-line__inner {
  display: block;
  transform: translateY(110%);
  transition: transform 0.9s var(--ease);
  transition-delay: var(--ml-delay, 0s);
  will-change: transform;
}
.ml-reveal.is-shown .ml-line__inner { transform: translateY(0); }

/* eyebrow clip reveal + generic fade-up */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--rv-delay, 0s);
}
.reveal.is-shown { opacity: 1; transform: translateY(0); }

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

/* press feedback */
.btn:active { transform: translateY(0) scale(0.98); transition-duration: 0.12s; }

/* nav intro */
.nav { opacity: 0; transform: translateY(-12px); transition: opacity 0.9s var(--ease) 0.2s, transform 0.9s var(--ease) 0.2s, background 0.5s var(--ease), backdrop-filter 0.5s var(--ease), padding 0.5s var(--ease); }
body.intro-ready .nav.is-loaded { opacity: 1; transform: translateY(0); }
body:not(.intro-ready) .nav { opacity: 1; transform: none; } /* défaut sûr si le JS échoue */

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
  .stats__inner { grid-template-columns: repeat(2, 1fr); }
  .editorial__inner, .contact__inner, .amenities__inner { grid-template-columns: 1fr; }
  .editorial--reverse .editorial__media { order: 0; }
  .editorial--reverse .editorial__text { order: 1; }
  .amenities__head { position: static; }
  .amenities__list { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .scrub { height: 100vh; } /* aligné sur le breakpoint JS : scrub statique */
  .nav__links { display: none; }
  .scrub__beat { max-width: calc(100vw - 2 * var(--pad)); }
  .scrub__title { font-size: clamp(44px, 13vw, 72px); }
  .scrub__cue { display: none; }
}

@media (max-width: 560px) {
  .stats__inner { grid-template-columns: 1fr; }
  .btn--nav { display: none; }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition: none !important;
  }
  .ml-reveal .ml-line__inner { transform: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .bleed__img { transform: none !important; }
  .nav { opacity: 1 !important; transform: none !important; }
  .scrub__cue-line { animation: none !important; }
}
