/* ──────────────────────────────────────────────────────────────────
   Mémoires du corps — atelier butô · Paris
   Plain HTML/CSS/JS · no build step · Geist + Geist Mono
   ────────────────────────────────────────────────────────────────── */

:root {
  --paper:   #f7f6f2;
  --paper-2: #ffffff;
  --ink:     #0a0a0a;
  --ink-2:   #2c2c2c;
  --ink-3:   #5a5a58;
  --ink-4:   #8a8884;
  --rule:    #e3e1db;
  --rule-2:  #d6d3cc;
  --white:   #ffffff;
  --max:     1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Geist", system-ui, -apple-system, "Helvetica Neue", sans-serif;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection { background: var(--ink); color: var(--paper); }
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }

.skip-link {
  position: absolute; left: -9999px; top: -9999px;
  background: var(--ink); color: var(--paper);
  padding: 10px 16px;
  font-family: "Geist Mono", monospace; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  z-index: 200;
}
.skip-link:focus { left: 16px; top: 16px; }

/* ──────────── nav ────────────
   Two clean states (no mix-blend — interferes with backdrop-filter on Chrome):
   • default (over hero):   transparent bg, white text. The hero already has
                            its own veil so the nav reads cleanly on top.
   • .nav--scrolled:        paper-tinted backdrop + ink text. Body content
                            below the nav stays untouched.
*/
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 28px;
  font-family: "Geist Mono", monospace;
  font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--white);
  background: transparent;
  pointer-events: none;
  transition: background-color .35s ease, color .35s ease, padding .35s ease, border-color .35s ease;
}
/* Subtle top-gradient over hero so nav stays legible without darkening the whole frame */
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto 0;
  height: 120px; z-index: 4;
  background: linear-gradient(to bottom, rgba(0,0,0,0.45), transparent);
  pointer-events: none;
}
.nav--scrolled {
  color: var(--ink);
  background: rgba(247, 246, 242, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.nav a, .nav button { pointer-events: auto; color: inherit; background: transparent; border: 0; cursor: pointer; }
.nav-mark { font-weight: 500; }
.nav-links { display: none; align-items: center; gap: 28px; }
.nav-links a { transition: opacity .25s ease; }
.nav-links a:hover { opacity: 0.65; }
.nav-cta {
  border: 1px solid currentColor;
  padding: 8px 14px;
  font-weight: 500;
  transition: background .25s ease, color .25s ease, letter-spacing .25s ease;
}
.nav-cta:hover { letter-spacing: 0.34em; }
/* Mobile S'inscrire pill — same label & style as desktop, just slightly smaller */
.nav-cta--mobile { display: inline-flex; padding: 7px 12px; font-size: 10px; letter-spacing: 0.24em; }

@media (min-width: 880px) {
  .nav { padding: 22px 36px; }
  .nav-links { display: flex; }
  .nav-cta--mobile { display: none; }
}

/* ──────────── HERO — full 16:9 frame, video preserved ──────────── */
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  color: var(--white);
  background: #050505;
  isolation: isolate;
}
.hero-stage { position: absolute; inset: 0; z-index: 0; }
.hero-video,
.hero-poster {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  filter: grayscale(1) brightness(1.05);
}
.hero-poster { z-index: 1; opacity: 0; transition: opacity .4s ease; }
.hero-stage--still .hero-video { display: none; }
.hero-stage--still .hero-poster { opacity: 1; }
.hero-video { z-index: 2; }

.hero-veil {
  position: absolute; inset: 0; z-index: 3;
  background: radial-gradient(ellipse 50% 42% at 50% 48%, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 60%, transparent 95%);
  pointer-events: none;
}

.hero-content {
  position: absolute; inset: 0; z-index: 4;
  display: grid; align-content: center; justify-items: center;
  text-align: center;
  padding: 80px 22px;
  gap: 18px;
}
.hero-eyebrow {
  font-family: "Geist Mono", monospace;
  font-size: clamp(10px, 0.85vw, 12px);
  letter-spacing: 0.42em; text-transform: uppercase;
  color: rgba(255,255,255,0.62);
  margin-bottom: 6px;
}
.hero-title {
  font-weight: 600;
  font-size: clamp(46px, 9.5vw, 168px);   /* tighter floor — the title fits inside 390px without bumping the edges */
  letter-spacing: -0.06em;
  line-height: 0.88;
  color: var(--white);
  max-width: 16ch;
  text-wrap: balance;
}
.hero-lede {
  max-width: 36ch;
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.6;
  color: rgba(255,255,255,0.82);
  font-weight: 400;
  margin-top: 10px;
}
.hero-sub {
  max-width: 40ch;
  font-size: clamp(13px, 1vw, 14px);
  line-height: 1.6;
  color: rgba(255,255,255,0.55);
}
.hero-ctas {
  display: flex; flex-direction: column; align-items: stretch; gap: 10px;
  margin-top: 14px; width: 100%; max-width: 520px;
}
.hero-micro {
  margin-top: 10px;
  font-family: "Geist Mono", monospace;
  font-size: 10px; letter-spacing: 0.34em; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.hero-scroll {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  z-index: 4;
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  font-size: 18px; line-height: 1;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: transform .25s ease, color .25s ease;
  animation: heroArrowBob 2.6s ease-in-out infinite;
}
.hero-scroll:hover { color: rgba(255,255,255,0.9); }
@keyframes heroArrowBob {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 4px); }
}

@media (min-width: 720px) {
  .hero-ctas { flex-direction: row; justify-content: center; gap: 12px; max-width: none; }
}

/* ──────────── buttons ──────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 22px;
  font-family: "Geist Mono", monospace;
  font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
  font-weight: 600;
  cursor: pointer; border: 0;
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
  text-align: left;
}
.btn-arrow { font-size: 14px; transition: transform .4s cubic-bezier(.22,1,.36,1); }
.btn:hover .btn-arrow { transform: translateX(4px); }
.btn--primary { background: var(--white); color: var(--ink); }
.btn--primary:hover { background: #ececec; }
.btn--ghost {
  background: transparent; color: var(--white);
  border: 1px solid rgba(255,255,255,0.28);
}
.btn--ghost:hover { background: rgba(255,255,255,0.1); }
.btn--solid { background: var(--ink); color: var(--white); }
.btn--solid:hover { background: var(--ink-2); }
.btn--solid:disabled { opacity: 0.6; cursor: progress; }
.btn--block { width: 100%; justify-content: space-between; }

/* ──────────── sections ──────────── */
.section {
  position: relative;
  padding: 96px 22px;
  overflow: hidden;
}
.section--paper { background: var(--paper); color: var(--ink); }
.section--white { background: var(--paper-2); color: var(--ink); }
.section--ink   { background: var(--ink); color: var(--white); }

.section-grid {
  position: relative; z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 880px) {
  .section { padding: 144px 32px; }
  .section-grid { grid-template-columns: 0.72fr 1.28fr; gap: 48px; }
}

.section-grid--split { gap: 36px; }
@media (min-width: 1000px) {
  .section-grid--split { grid-template-columns: 1fr 1fr; gap: 64px; align-items: end; }
}

.section-label {
  display: flex; align-items: center; gap: 14px;
  font-family: "Geist Mono", monospace;
  font-size: 10px; letter-spacing: 0.38em; text-transform: uppercase;
  color: var(--ink-4);
  font-weight: 500;
}
.section--ink .section-label { color: rgba(255,255,255,0.45); }
.section-label-rule {
  display: inline-block; width: 44px; height: 1px;
  background: var(--rule);
}
.section--ink .section-label-rule { background: rgba(255,255,255,0.22); }

.section-body { display: grid; gap: 28px; }

.display {
  font-weight: 600;
  font-size: clamp(40px, 6vw, 80px);
  letter-spacing: -0.045em;
  line-height: 0.96;
  max-width: 18ch;
}
.section--ink .display { color: var(--white); }

.prose, .prose-lede { max-width: 56ch; }
.prose p {
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.75;
  color: var(--ink-2);
  margin-bottom: 18px;
}
.prose-lede {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.7;
  color: var(--ink-2);
}
.section--ink .prose p,
.section--ink .prose-lede { color: rgba(255,255,255,0.7); }

/* pillars list (01 Le geste) */
.list-pillars {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--rule);
  margin-top: 12px;
}
@media (min-width: 720px) {
  .list-pillars { grid-template-columns: 1fr 1fr; }
}
.list-pillars li {
  display: flex; gap: 16px; align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
  font-size: clamp(14px, 1.1vw, 16px);
  color: var(--ink-2);
}
.list-num {
  font-family: "Geist Mono", monospace;
  font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--ink-4);
  min-width: 24px;
}

/* steps (02 La descente) */
.steps {
  list-style: none;
  border-top: 1px solid rgba(255,255,255,0.12);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.steps li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 28px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  transition: transform .6s cubic-bezier(.22,1,.36,1);
}
.steps li:first-child { border-top: 0; }
.steps li:hover { transform: translateX(8px); }
@media (min-width: 720px) {
  .steps li { grid-template-columns: 90px 1fr; gap: 18px; }
}
.steps-num {
  font-family: "Geist Mono", monospace;
  font-size: 11px; letter-spacing: 0.36em; text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}
.steps li h3 {
  font-weight: 600;
  font-size: clamp(22px, 2vw, 28px);
  letter-spacing: -0.04em;
  margin-bottom: 8px;
}
.steps li p {
  max-width: 56ch;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  font-size: clamp(15px, 1.1vw, 17px);
}

/* plain bulletless list (03 Pour qui) */
.list-plain {
  list-style: none;
  margin-top: 6px;
}
.list-plain li {
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
  font-size: clamp(15px, 1.15vw, 17px);
  color: var(--ink-2);
  line-height: 1.7;
}
.pullquote {
  margin-top: 22px;
  padding: 0 0 0 22px;
  border-left: 1px solid var(--ink);
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.7;
  color: var(--ink-2);
  font-style: normal;
  max-width: 56ch;
}

/* info table (04) */
.info-table {
  display: grid; gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-top: 4px;
}
.info-table > div {
  display: grid; gap: 4px;
  grid-template-columns: 1fr;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}
.info-table > div:last-child { border-bottom: 0; }
@media (min-width: 720px) {
  .info-table > div { grid-template-columns: 200px 1fr; gap: 24px; align-items: baseline; }
}
.info-table dt {
  font-family: "Geist Mono", monospace;
  font-size: 10px; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--ink-4);
  font-weight: 500;
}
.info-table dd {
  color: var(--ink-2);
  font-size: clamp(15px, 1.1vw, 17px);
}

/* trace cards (05 Flora) */
.trace-grid {
  display: grid; gap: 14px;
  grid-template-columns: 1fr;
  margin-top: 8px;
}
@media (min-width: 720px) {
  .trace-grid { grid-template-columns: repeat(3, 1fr); }
}
.trace-card {
  display: grid; place-items: center;
  border: 1px solid var(--rule);
  background: rgba(255,255,255,0.55);
  padding: 44px 22px;
  text-align: center;
  transition: background .25s ease, transform .35s ease;
}
.trace-card:hover { background: var(--paper-2); transform: translateY(-2px); }
.trace-word {
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -0.04em;
}

/* FAQ (06) */
.faq {
  border-top: 1px solid rgba(255,255,255,0.12);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.faq-item { border-top: 1px solid rgba(255,255,255,0.08); }
.faq-item:first-child { border-top: 0; }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 28px 0;
  font-size: clamp(17px, 1.4vw, 20px);
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--white);
  transition: opacity .25s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: "Geist Mono", monospace;
  font-size: 18px;
  color: rgba(255,255,255,0.45);
  transition: transform .35s ease;
  font-weight: 400;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item summary:hover { opacity: 0.78; }
.faq-item p {
  padding: 0 0 28px;
  max-width: 64ch;
  color: rgba(255,255,255,0.62);
  line-height: 1.75;
  font-size: clamp(15px, 1.1vw, 16px);
}

/* form (07) */
.section--form .section-body { gap: 28px; }
.form { display: grid; gap: 22px; max-width: 640px; margin-top: 12px; }
.form-row {
  display: grid; gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .form-row { grid-template-columns: 1fr 1fr; gap: 22px; }
}
.field { display: grid; gap: 10px; }
.field-k {
  font-family: "Geist Mono", monospace;
  font-size: 10px; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--ink-4);
  font-weight: 600;
}
.field input {
  background: transparent; border: 0;
  border-bottom: 1px solid var(--rule-2);
  padding: 14px 0;
  font: inherit; font-size: 16px;
  color: var(--ink); width: 100%;
  transition: border-color .2s ease;
}
.field input::placeholder { color: var(--ink-4); }
.field input:focus { outline: none; border-bottom-color: var(--ink); }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form .btn { width: 100%; }
.form-status {
  font-size: 13px; line-height: 1.55;
  color: var(--ink-3);
  min-height: 1.5em;
}
.form-status[data-status="ok"]    { color: var(--ink); }
.form-status[data-status="error"] { color: #b22; }
.form-reassure {
  margin-top: 6px;
  font-family: "Geist Mono", monospace;
  font-size: 10px; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--ink-4);
}

/* ──────────── footer ──────────── */
.footer {
  border-top: 1px solid var(--rule);
  padding: 26px 28px;
  display: flex; flex-direction: column; gap: 6px;
  font-family: "Geist Mono", monospace;
  font-size: 10px; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--ink-4);
  background: var(--paper);
}
@media (min-width: 720px) {
  .footer { flex-direction: row; justify-content: space-between; align-items: center; padding: 26px 36px; }
}

/* ──────────── sticky mobile CTA ────────────
   Always visible on mobile — the form is the whole point of the page,
   so the bar is the user's safety net at any scroll position.
   Tap → smooth-scrolls to #inscription, app.js focuses + flashes the form.
   Honors iOS safe-area-inset so it sits cleanly above the home indicator.
*/
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  padding:
    12px
    max(12px, env(safe-area-inset-right))
    calc(12px + env(safe-area-inset-bottom))
    max(12px, env(safe-area-inset-left));
  background: rgba(247, 246, 242, 0.94);
  border-top: 1px solid var(--rule);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.sticky-cta .btn { padding: 16px 18px; font-size: 11px; }
.sticky-cta .btn:active { transform: scale(0.985); }
@media (min-width: 880px) { .sticky-cta { display: none; } }

/* Form flash — a quick highlight when the user taps an "S'inscrire" CTA. */
.form--flash .field input { animation: fieldFlash .9s cubic-bezier(.22,1,.36,1); }
@keyframes fieldFlash {
  0%   { box-shadow: 0 1px 0 0 var(--ink), 0 0 0 0 rgba(10,10,10,0); border-bottom-color: var(--ink); }
  35%  { box-shadow: 0 1px 0 0 var(--ink), 0 0 0 6px rgba(10,10,10,0.08); }
  100% { box-shadow: 0 1px 0 0 var(--rule-2), 0 0 0 0 rgba(10,10,10,0); }
}

/* ──────────── ambient motion: smoke + grain ──────────── */
.smoke {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
  z-index: 1; opacity: 0.65;
}
.smoke--dark { opacity: 0.4; }
.smoke span {
  position: absolute;
  width: 60vw; height: 60vw;
  border-radius: 50%;
  filter: blur(54px);
  background: radial-gradient(circle, rgba(0,0,0,0.09), rgba(0,0,0,0.035) 38%, transparent 66%);
  transform: translate3d(0,0,0);
  will-change: transform;
}
.smoke--dark span {
  background: radial-gradient(circle, rgba(255,255,255,0.07), rgba(255,255,255,0.025) 38%, transparent 66%);
}
.smoke-a { left: -18vw; top: 10%; animation: driftA 28s ease-in-out infinite; }
.smoke-b { right: -22vw; top: 28%; animation: driftB 34s ease-in-out infinite; }
.smoke-c { left: 24vw; bottom: -28vw; width: 48vw !important; height: 48vw !important; animation: driftC 31s ease-in-out infinite; }

@keyframes driftA {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.55; }
  50%      { transform: translate(14vw, 8vh) scale(1.18); opacity: 0.28; }
}
@keyframes driftB {
  0%, 100% { transform: translate(0, 0) scale(1.1); opacity: 0.35; }
  50%      { transform: translate(-12vw, -7vh) scale(0.96); opacity: 0.58; }
}
@keyframes driftC {
  0%, 100% { transform: translate(0, 0) scale(0.95); opacity: 0.3; }
  50%      { transform: translate(-7vw, -8vh) scale(1.15); opacity: 0.5; }
}

/* ──────────── reveal on scroll ──────────── */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  filter: blur(6px);
  transition:
    opacity 1.05s cubic-bezier(.22,1,.36,1),
    transform 1.05s cubic-bezier(.22,1,.36,1),
    filter 1.05s cubic-bezier(.22,1,.36,1);
}
.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

/* ──────────── reduced motion ──────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-video { display: none; }
  .hero-poster { opacity: 1; }
  [data-reveal] { opacity: 1 !important; transform: none !important; filter: none !important; }
}

/* ──────────── small screens ──────────── */
@media (max-width: 879px) {
  .hero { aspect-ratio: auto; min-height: 88svh; }
  .hero-content { padding: 110px 20px 90px; }
  .section { padding: 72px 20px; }
  .footer { padding: 22px 20px calc(108px + env(safe-area-inset-bottom)); } /* clears sticky CTA + iOS safe-area */
  .sticky-cta { padding: 10px max(10px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left)); }
}
