/* ============================================================
   ACCESS Menu — Lookbook
   Minimal · Immersif · Photographique
   ============================================================ */

:root {
  --bg-light: #FAF8F2;
  --bg-cream: #F0E9D6;
  --ink:      #0D1233;
  --ink-2:    #555876;
  --ink-3:    #8A8C9F;
  --paper:    #FFFFFF;
  --gold:     #C28C2C;
  --gold-bright: #F9A719;
  --line:     rgba(13,18,51,0.10);
  --line-light: rgba(255,255,255,0.18);
  --scrim:    rgba(8,11,28,0.36);
  --scrim-strong: rgba(8,11,28,0.58);
  --wa:       #25D366;
  --font:     'Quicksand', system-ui, -apple-system, sans-serif;
  --maxw:     1440px;
  --gutter:   clamp(24px, 5vw, 80px);
}

/*Ici c'est le dégradé noir de la photo en Héro*/
section.scene.scene--01.is-visible {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);
}

/* ---------- reset ---------- */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg-light);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
input { font: inherit; color: inherit; }
::selection { background: var(--gold-bright); color: var(--ink); }

/* ============================================================
   NAV — floating, minimal
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: 76px;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  mix-blend-mode: difference;
  pointer-events: none;
}
.nav > * { pointer-events: auto; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.04em;
  color: #fff;
}
.brand__mark { width: 48px; height: 28px; color: #fff; }
.brand i { font-style: normal; font-weight: 300; opacity: 0.7; margin-left: 4px; }
.brand__logo {
  height: clamp(70px, 5vh, 60px);
  width: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}
.nav__cta {
  display: inline-flex;
  align-items: center;
  height: 44px; /* tap target standard mobile (44px+) */
  padding-inline: 20px;
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.04em;
  transition: background .25s ease, color .25s ease;
}
.nav__cta:hover { background: #fff; color: var(--ink); mix-blend-mode: normal; }

/* ============================================================
   SCENE — base
   ============================================================ */
.scene {
  position: relative;
  min-height: 100svh; /* small viewport height — corrige le jitter mobile lié à la barre d'URL */
  width: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: clamp(80px, 11vh, 140px) var(--gutter) clamp(56px, 7vh, 90px);
}
/* fallback pour navigateurs sans support svh */
@supports not (height: 100svh) {
  .scene { min-height: 100vh; }
}

.scene__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.9s ease;
}

.scene__photo:hover .scene__img {
  transform: scale(1.02);
}

.scene__photo {
    width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: #FAF8F2; /* fallback if image fails */
  z-index: -2;
  will-change: transform;
  transform: scale(1.04);
  transition: transform 1.8s cubic-bezier(.2,.6,.2,1);
}
.scene.is-visible .scene__photo { transform: scale(1); }
.scene__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,11,28,0.45) 0%, rgba(8,11,28,0.20) 35%, rgba(8,11,28,0.50) 100%);
  z-index: -1;
}
.scene__scrim--strong {
  background: linear-gradient(180deg, rgba(8,11,28,0.55) 0%, rgba(8,11,28,0.45) 35%, rgba(8,11,28,0.75) 100%);
}

.scene__content {
  width: 100%;
  max-width: var(--maxw);
  color: #fff;
  position: relative;
  z-index: 2;
}
.scene__content--centered { text-align: center; margin-inline: auto; max-width: 880px; }

/* ============================================================
   TYPE — pure Quicksand, light to medium
   ============================================================ */
.caption {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 32px;
}
.caption--light { color: rgba(255,255,255,0.7); }
.caption--dark { color: var(--ink-2); }

.display {
  font-family: var(--font);
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: #fff;
}
.display span { display: block; }
.display em {
  font-style: italic;
  font-weight: 300;
  color: var(--gold-bright);
}
.display--xl { font-size: clamp(40px, 8.5vw, 148px); }
.display--l  { font-size: clamp(36px, 6.4vw, 92px); }
.display--m  { font-size: clamp(32px, 5.2vw, 76px); color: var(--ink); }
.display--m em { color: var(--gold); }

.lead {
  margin-top: 28px;
  font-weight: 600;
  font-size: clamp(15.5px, 1.15vw, 18px);
  line-height: 1.6;
  max-width: 48ch;
  color: rgba(255,255,255,0.82);
}
.lead--center { margin-inline: auto; }
.lead--dark { color: var(--ink-2); max-width: 50ch; }

/* ============================================================
   SCENE 01 — HERO
   ============================================================ */
.scene--01 {
  align-items: flex-end;
  min-height: 100svh;
  padding-bottom: clamp(70px, 8vh, 110px);
}
.scene--01 .scene__content {
  max-width: 920px;
}
.scene__meta {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(28px, 4vh, 48px);
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: #fff;
}
.meta-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.85);
}
.meta-line strong { color: var(--gold-bright); font-weight: 700; }
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 0 0 rgba(249,167,25,0.6);
  animation: pulse 2.2s infinite;
}
.dot--gold { background: var(--gold-bright); }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(249,167,25,0.55); }
  70%  { box-shadow: 0 0 0 12px rgba(249,167,25,0); }
  100% { box-shadow: 0 0 0 0 rgba(249,167,25,0); }
}

.scroll-cue {
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0.85;
  padding: 8px 0;
  transition: opacity .25s ease, transform .25s ease;
}
.scroll-cue svg { animation: nudge 2.4s ease-in-out infinite; }
.scroll-cue:hover { opacity: 1; transform: translateY(-2px); }
@keyframes nudge {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(6px); }
}

/* ============================================================
   SCENE 02 — TROIS PROMESSES (split)
   ============================================================ */
.scene--02 {
  background: var(--bg-light);
  align-items: stretch;
  padding-block: clamp(72px, 9vh, 120px);
}
.scene__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
}
@media (max-width: 900px) {
  .scene__split { grid-template-columns: 1fr; gap: 48px; }
}
.scene__visual {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.scene__photo--block {
  position: relative !important;
  aspect-ratio: 4 / 5;
  width: 100%;
  height: auto !important;
  inset: auto;
  overflow: hidden;
  background: var(--bg-light); /* fondu avec la page, plus de liseret sombre */
  z-index: 1;
  transform: scale(1.02);
  transition: transform 8s ease-out;
}
.scene--02.is-visible .scene__photo--block { transform: scale(1); }
/* la légende sort de la photo et flotte en dessous, sur le fond crème */
.scene__visual figcaption {
  margin: 0;
  padding: 0 2px;
  text-shadow: none;
}

.promesses {
  display: grid;
  gap: 0;
  align-content: center;
}
.promesses .caption { margin-bottom: 44px; letter-spacing: 0.16em; }
.promesse {
  display: grid;
  gap: 18px;
  padding-block: 32px;
}
.promesse:first-of-type { padding-top: 0; }
.promesse__num {
  font-family: var(--font);
  font-weight: 300;
  font-size: clamp(76px, 10vw, 142px);
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: var(--ink);
  display: inline-flex;
  align-items: baseline;
}
.promesse__num .plus {
  font-weight: 300;
  font-size: 0.55em;
  color: var(--gold);
  margin-right: 0.02em;
}
.promesse__num .unit {
  font-size: 0.32em;
  margin-left: 0.06em;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.04em;
}
.promesse p {
  font-size: clamp(15px, 1.1vw, 17px);
  color: var(--ink-2);
  line-height: 1.55;
  max-width: 34ch;
}
.hairline {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: 0;
}

/* ============================================================
   SCENE 03 — APERÇU APP (iPhone 3D mockup)
   ============================================================ */
.scene--app {
  background: var(--bg-light);
  align-items: center;
}
.scene-app__inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(48px, 7vw, 110px);
  align-items: center;
}
@media (max-width: 900px) {
  .scene-app__inner { grid-template-columns: 1fr; gap: 56px; }
  .scene-app__copy { text-align: center; margin-inline: auto; }
}
.scene-app__copy { display: grid; max-width: 540px; }
.scene-app__copy .display { color: var(--ink); }
.scene-app__copy .display em { color: var(--gold); }
.scene-app__copy .lead { margin-top: 28px; }

/* --- iPhone 3D mockup --- */
.phone-3d {
  position: relative;
  width: 100%;
  max-width: clamp(240px, 30vw, 340px);
  aspect-ratio: 9 / 19.5;
  margin: 0 auto;
  perspective: 2000px;
}
.phone-3d__device {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #2c2c30 0%, #0d0d0f 60%, #050505 100%);
  border-radius: 11.5% / 5.5%;
  padding: 7px;
  transform: rotateY(-14deg) rotateX(7deg) rotateZ(-1.5deg);
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.07),
    inset 0 1.5px 0 rgba(255,255,255,0.15),
    0 6px 12px rgba(0,0,0,0.16),
    0 24px 36px -8px rgba(0,0,0,0.28),
    0 60px 80px -20px rgba(0,0,0,0.22);
}
.phone-3d:hover .phone-3d__device {
  transform: rotateY(-8deg) rotateX(3deg) rotateZ(0);
}
.phone-3d__screen {
  width: 100%;
  height: 100%;
  border-radius: 8.5% / 4%;
  overflow: hidden;
  background: #1a1410;
  position: relative;
}
.phone-3d__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}
.phone-3d__notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 32%;
  max-width: 100px;
  height: 22px;
  background: #000;
  border-radius: 0 0 18px 18px;
  z-index: 3;
}
.phone-3d__glare {
  position: absolute;
  inset: 7px;
  border-radius: 8.5% / 4%;
  background: linear-gradient(125deg,
    rgba(255,255,255,0.12) 0%,
    rgba(255,255,255,0.05) 22%,
    transparent 42%,
    transparent 62%,
    rgba(255,255,255,0.04) 82%,
    rgba(255,255,255,0.09) 100%);
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: screen;
}
.phone-3d__shadow {
  position: absolute;
  bottom: -3%;
  left: 5%;
  right: 5%;
  height: 28px;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.35) 0%, transparent 70%);
  filter: blur(14px);
  z-index: -1;
}

/* --- Slider 3 écrans à l'intérieur de l'iPhone --- */
.phone-3d__slides {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: transform;
}
.phone-3d__slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}
/* Empêche le défilement vertical d'être bloqué par le swipe horizontal */
.phone-3d__screen { touch-action: pan-y pinch-zoom; }

/* Pastilles de navigation sous le téléphone */
.phone-3d__nav {
  position: absolute;
  left: 50%;
  bottom: -52px;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  background: rgba(13, 18, 51, 0.05);
  border: 1px solid rgba(13, 18, 51, 0.08);
  border-radius: 999px;
  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
}
.phone-3d__dot {
  width: 9px;
  height: 9px;
  border: 0;
  padding: 0;
  border-radius: 50%;
  background: rgba(13, 18, 51, 0.22);
  cursor: pointer;
  transition:
    background 0.35s ease,
    transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 0.35s ease;
}
.phone-3d__dot:hover { background: rgba(13, 18, 51, 0.45); }
.phone-3d__dot.is-active {
  background: var(--gold-bright);
  transform: scale(1.45);
  box-shadow: 0 0 0 6px rgba(249, 167, 25, 0.14);
}
.phone-3d__dot:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

@media (max-width: 900px) {
  .phone-3d__nav { bottom: -48px; padding: 8px 14px; gap: 9px; }
  .phone-3d__dot { width: 8px; height: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .phone-3d__slides { transition: none; }
  .phone-3d__dot { transition: none; }
}

/* ============================================================
   SCENE 04 — CLUB FOUNDERS
   ============================================================ */
.scene--03 {
  align-items: center;
  text-align: center;
}
.club-foot {
  margin-top: 44px;
  display: inline-flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.counter {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px;
  border: 1px solid rgba(255,255,255,0.32);
  border-radius: 999px;
  color: #fff;
  font-size: 13.5px;
  letter-spacing: 0.04em;
  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
}
.counter strong { color: var(--gold-bright); font-weight: 700; }

/* ============================================================
   BUTTONS — minimal
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding-inline: 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  transition: transform .25s ease, background .25s ease, color .25s ease, box-shadow .25s ease;
}
.btn--gold {
  background: var(--gold-bright);
  color: var(--ink);
}
.btn--gold:hover { background: #FFC759; transform: translateY(-1px); }
.btn--ink {
  background: var(--ink);
  color: #fff;
}
.btn--ink:hover { background: #1B2257; transform: translateY(-1px); }
.btn--block { width: 100%; }

/* ============================================================
   SCENE 04 — AUDIT (form, light)
   ============================================================ */
.scene--04 {
  background: var(--bg-cream);
  align-items: center;
}
.audit {
  width: 100%;
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
  color: var(--ink);
}
.audit .caption { margin-bottom: 36px; }
.audit .lead--dark { margin-inline: auto; }
.audit__form {
  margin-top: 56px;
  display: grid;
  gap: 18px;
  text-align: left;
}
.field { display: block; }
.field__label {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.field input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 10px 0 14px;
  font-family: var(--font);
  font-weight: 500;
  font-size: 18px;
  color: var(--ink);
  transition: border-color .25s ease, padding .25s ease;
}
.field input:focus {
  outline: none;
  border-bottom-color: var(--ink);
}
.field input::placeholder { color: var(--ink-3); }

.audit .btn--ink { margin-top: 10px; height: 58px; font-size: 14.5px; }
.audit__note {
  text-align: center;
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--ink-2);
}
.audit__note a {
  color: var(--ink);
  font-weight: 600;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 1px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.foot {
  background: var(--bg-cream);
  padding: 36px var(--gutter) 48px;
  border-top: 1px solid var(--line);
}
.foot__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}

/* ============================================================
   FOCUS / motion
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 4px;
}

/* simple reveal */
.scene__content, .promesses, .scene__visual {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.1s cubic-bezier(.2,.6,.2,1), transform 1.1s cubic-bezier(.2,.6,.2,1);
}
.scene.is-visible .scene__content,
.scene.is-visible .promesses,
.scene.is-visible .scene__visual { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .scene__photo, .scene__photo--block { transform: none !important; transition: none !important; }
  .scene__content, .promesses, .scene__visual { opacity: 1 !important; transform: none !important; }
  .scroll-cue svg, .dot { animation: none !important; }
}
