/* =========================================================================
   Quantify Xperts — V6 WOW PREMIUM IMMERSIVE
   Palette : sable #F4EFE6 · nuit #0E121A · safran #D4943A · cuivre #8B6F47
   Typo    : Fraunces italic 300 · Inter 400 · JetBrains Mono 300
   Refs    : Igloo Inc · Lusion.co · Aman · Bind · Active Theory
   ========================================================================= */

/* ----------------------------------------------------------------
   0. Tokens V6
   ---------------------------------------------------------------- */
:root {
  /* Palette V6 — 4 couleurs */
  --sable      : #F4EFE6;
  --nuit       : #0E121A;     /* plus dark que V5 (#1A1F2A → #0E121A) */
  --safran     : #D4943A;     /* CTA + accents typo + dots actifs */
  --cuivre     : #8B6F47;     /* filets + signatures + hover secondaire */

  /* Variantes alpha sable */
  --sable-90   : rgba(244, 239, 230, 0.90);
  --sable-78   : rgba(244, 239, 230, 0.78);
  --sable-60   : rgba(244, 239, 230, 0.60);
  --sable-40   : rgba(244, 239, 230, 0.40);
  --sable-20   : rgba(244, 239, 230, 0.20);
  --sable-12   : rgba(244, 239, 230, 0.12);

  /* Variantes alpha nuit */
  --nuit-92    : rgba(14, 18, 26, 0.92);
  --nuit-88    : rgba(14, 18, 26, 0.88);
  --nuit-80    : rgba(14, 18, 26, 0.80);
  --nuit-60    : rgba(14, 18, 26, 0.60);
  --nuit-40    : rgba(14, 18, 26, 0.40);
  --nuit-20    : rgba(14, 18, 26, 0.20);
  --nuit-12    : rgba(14, 18, 26, 0.12);
  --nuit-06    : rgba(14, 18, 26, 0.06);

  /* Variantes alpha safran */
  --safran-90  : rgba(212, 148, 58, 0.90);
  --safran-60  : rgba(212, 148, 58, 0.60);
  --safran-40  : rgba(212, 148, 58, 0.40);
  --safran-20  : rgba(212, 148, 58, 0.20);

  /* Variantes alpha cuivre */
  --cuivre-90  : rgba(139, 111, 71, 0.90);
  --cuivre-60  : rgba(139, 111, 71, 0.60);
  --cuivre-40  : rgba(139, 111, 71, 0.40);
  --cuivre-20  : rgba(139, 111, 71, 0.20);

  /* Typo */
  --font-display : 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body    : 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono    : 'JetBrains Mono', 'SF Mono', Menlo, monospace;

  /* Layout */
  --container        : 1280px;
  --container-narrow : 980px;
  --gutter           : clamp(1.25rem, 4vw, 3rem);
  --section-py       : clamp(5rem, 12vw, 10rem);
  --rule             : 1px solid var(--nuit-12);
  --rule-dark        : 1px solid var(--sable-20);
  --rule-cuivre      : 1px solid var(--cuivre-40);
  --rule-safran      : 1px solid var(--safran-40);

  /* Transitions */
  --ease-out    : cubic-bezier(0.16, 1, 0.3, 1);
  --ease-curtain: cubic-bezier(0.7, 0, 0.3, 1);
  --ease-word   : cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast      : 240ms var(--ease-out);
  --t-mid       : 480ms var(--ease-out);
  --t-slow      : 900ms var(--ease-out);
}

/* ----------------------------------------------------------------
   1. Reset & base
   ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: auto;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  color: var(--nuit);
  background: var(--sable);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

img {
  filter: contrast(1.04) saturate(0.96);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t-fast), opacity var(--t-fast);
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

code {
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: 0.92em;
  background: var(--nuit-06);
  padding: 0.08em 0.32em;
  border-radius: 2px;
}

ul, ol { list-style: none; padding: 0; margin: 0; }

::selection { background: var(--safran); color: var(--nuit); }

.font-mono {
  font-family: var(--font-mono);
  font-weight: 300;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--nuit);
  color: var(--sable);
  padding: 0.75rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  z-index: 9999;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Focus visible (accessibility) */
:focus-visible {
  outline: 2px solid var(--safran);
  outline-offset: 3px;
}

/* ----------------------------------------------------------------
   1bis. Custom cursor magnétique (desktop only)
   ---------------------------------------------------------------- */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  pointer-events: none;
  z-index: 1000;
  transform: translate3d(-100px, -100px, 0) translate(-50%, -50%);
  display: none;
  will-change: transform;
}

@media (hover: hover) and (pointer: fine) {
  .custom-cursor { display: block; }
  body { cursor: none; }
  a, button, input, textarea, .cta, .pieces-track { cursor: none; }
  input, textarea { cursor: text !important; }
}

.cursor-ring {
  position: absolute;
  inset: 0;
  border: 1px solid var(--sable);
  border-radius: 50%;
  transition: transform 0.35s var(--ease-out), border-color 0.3s, opacity 0.3s, background 0.3s;
  opacity: 0.85;
}
.cursor-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  background: var(--safran);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s, transform 0.3s;
}

.custom-cursor.is-on-light .cursor-ring {
  border-color: var(--nuit);
}
.custom-cursor.is-on-light .cursor-dot {
  background: var(--safran);
}

.custom-cursor.is-hover .cursor-ring {
  transform: scale(1.75);
  border-color: var(--safran);
  background: rgba(212, 148, 58, 0.08);
}
.custom-cursor.is-hover .cursor-dot {
  opacity: 0;
}

.custom-cursor.is-drag .cursor-ring {
  transform: scale(0.7);
  background: var(--safran);
  border-color: var(--safran);
}
.custom-cursor.is-drag .cursor-dot {
  background: var(--sable);
  opacity: 1;
}

/* ----------------------------------------------------------------
   2. NAV — fixe V6, wordmark + 6 liens + CTA safran
   ---------------------------------------------------------------- */
.nav-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--gutter);
  background: transparent;
  transition: background var(--t-mid), color var(--t-mid), border-color var(--t-mid), backdrop-filter var(--t-mid);
  color: var(--sable);
  border-bottom: 1px solid transparent;
}

/* Nav state on light sections — sable transluide blur */
.nav-fixed.is-on-light {
  background: rgba(244, 239, 230, 0.85);
  -webkit-backdrop-filter: blur(14px) saturate(1.05);
  backdrop-filter: blur(14px) saturate(1.05);
  color: var(--nuit);
  border-bottom-color: var(--nuit-12);
}
/* Nav state on dark sections — nuit transluide blur */
.nav-fixed.is-scrolled:not(.is-on-light) {
  background: rgba(14, 18, 26, 0.78);
  -webkit-backdrop-filter: blur(14px) saturate(1.05);
  backdrop-filter: blur(14px) saturate(1.05);
  border-bottom-color: var(--sable-12);
}

.nav-wordmark {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
  letter-spacing: -0.01em;
}
.nav-wordmark-main {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 1.3rem;
}
.nav-wordmark-sub {
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-top: 0.35rem;
  opacity: 0.6;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1.8rem;
}

.nav-links a {
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  position: relative;
  padding: 0.5rem 0;
  opacity: 0.72;
  transition: opacity var(--t-fast), color var(--t-fast);
}
.nav-links a:hover,
.nav-links a.is-active {
  opacity: 1;
}
.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--safran);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-mid);
}
.nav-links a:not(.nav-cta):hover::after,
.nav-links a.is-active::after { transform: scaleX(1); }

.nav-cta {
  padding: 0.78rem 1.3rem !important;
  background: var(--safran);
  color: var(--nuit) !important;
  border: 1px solid var(--safran);
  opacity: 1 !important;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
  letter-spacing: 0.16em !important;
}
.nav-cta::after { display: none; }
.nav-cta:hover {
  background: var(--nuit);
  color: var(--sable) !important;
  border-color: var(--nuit);
  transform: translateY(-1px);
}
.nav-fixed.is-on-light .nav-cta:hover {
  background: var(--nuit);
  color: var(--sable) !important;
  border-color: var(--nuit);
}

/* Hamburger mobile */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  gap: 6px;
  position: relative;
  z-index: 210;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: currentColor;
  transition: transform var(--t-mid), opacity var(--t-mid);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

@media (min-width: 1100px) {
  .nav-toggle { display: none; }
  .nav-links { display: flex; }
}

@media (max-width: 1099px) {
  .nav-links {
    position: fixed;
    inset: 0;
    background: var(--nuit);
    color: var(--sable);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.2rem;
    padding: 2rem;
    transform: translateY(-100%);
    transition: transform 0.5s var(--ease-curtain);
    z-index: 205;
  }
  .nav-links.is-open {
    display: flex;
    transform: translateY(0);
  }
  .nav-links a {
    font-size: 0.95rem;
    letter-spacing: 0.16em;
  }
  .nav-links .nav-cta {
    margin-top: 1rem;
    padding: 1rem 1.6rem !important;
  }
}

/* ----------------------------------------------------------------
   3. Sections — base + parallax backgrounds
   ---------------------------------------------------------------- */
.section {
  position: relative;
  padding: var(--section-py) var(--gutter);
  overflow: hidden;
  isolation: isolate;
}

/* Parallax background photo (sections 2-7 sauf hero) */
.section-bg {
  position: absolute;
  inset: -12% -5% -12% -5%;
  background-size: cover;
  background-position: center;
  z-index: 0;
  will-change: transform;
}
.section-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.section-bg-overlay-light {
  background: rgba(244, 239, 230, 0.93);
}
.section-bg-overlay-dark {
  background: rgba(14, 18, 26, 0.88);
}

.section-content {
  position: relative;
  z-index: 2;
}

.section-head {
  max-width: var(--container);
  margin: 0 auto 4rem;
}

.section-label {
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cuivre);
  margin: 0 0 1.5rem;
  position: relative;
  padding-left: 3rem;
}
.section-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 2rem;
  height: 1px;
  background: var(--cuivre);
}

.section-h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2.6rem, 7vw, 6.4rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 0 0 1.8rem;
  color: var(--nuit);
}
.section-h2 em {
  font-style: italic;
  color: var(--safran);
}

.section-sub {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.6;
  max-width: 60ch;
  color: var(--nuit-80);
  margin: 0;
}

/* Sections sombres — H2 sable, em safran */
.section-carnet .section-h2 { color: var(--sable); }
.section-carnet .section-h2 em { color: var(--safran); }
.section-carnet .section-sub { color: var(--sable-78); }
.section-carnet .section-label { color: var(--safran); }
.section-carnet .section-label::before { background: var(--safran); }

/* Mask reveal pattern (lines clipped, slide up) */
.mask-line {
  display: block;
  overflow: hidden;
  line-height: 1;
  padding: 0.05em 0;
}
.mask-inner {
  display: block;
  transform: translateY(110%);
  transition: transform 1.05s var(--ease-curtain);
  will-change: transform;
}
.mask-line.is-revealed .mask-inner { transform: translateY(0); }

/* ----------------------------------------------------------------
   4. CTAs V6
   ---------------------------------------------------------------- */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 1.15rem 1.9rem;
  border: 1px solid transparent;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  position: relative;
}

/* CTA primary — safran plein (réintroduit V6) */
.cta-primary {
  background: var(--safran);
  color: var(--nuit);
  border-color: var(--safran);
  box-shadow: 0 8px 24px -10px rgba(212, 148, 58, 0.5);
}
.cta-primary:hover {
  background: var(--nuit);
  color: var(--sable);
  border-color: var(--nuit);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -10px rgba(14, 18, 26, 0.5);
}

/* On hero (sombre), safran reste safran */
.section-arrivee .cta-primary {
  background: var(--safran);
  color: var(--nuit);
}
.section-arrivee .cta-primary:hover {
  background: var(--sable);
  color: var(--nuit);
  border-color: var(--sable);
}

/* CTA secondary — texte uniquement + filet cuivre */
.cta-secondary {
  background: transparent;
  color: var(--sable);
  border-color: transparent;
  padding-left: 0;
  padding-right: 0;
  position: relative;
}
.cta-secondary::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.7rem;
  height: 1px;
  background: var(--cuivre);
  transform: scaleX(0.45);
  transform-origin: left;
  transition: transform var(--t-mid);
}
.cta-secondary:hover::after { transform: scaleX(1); }
.cta-secondary .cta-arrow { transition: transform var(--t-fast); }
.cta-secondary:hover .cta-arrow { transform: translateX(6px); color: var(--safran); }

.cta-full { width: 100%; justify-content: center; padding: 1.25rem 1.6rem; }

/* ----------------------------------------------------------------
   5. SECTION 1 — L'ARRIVÉE (HERO WOW 3 LAYERS)
   ---------------------------------------------------------------- */
.section-arrivee {
  background: var(--nuit);
  color: var(--sable);
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 0;
  overflow: hidden;
}

/* Layer 1 — vidéo */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.82;
  filter: contrast(1.08) saturate(0.92) brightness(0.78);
}

/* Layer 2 — canvas particules ogl */
.hero-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.85;
  mix-blend-mode: screen;
}

/* Layer 3a — vignette */
.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(ellipse 95% 85% at 50% 50%, transparent 28%, rgba(14, 18, 26, 0.55) 100%),
    linear-gradient(180deg,
      rgba(14, 18, 26, 0.65) 0%,
      rgba(14, 18, 26, 0.20) 28%,
      rgba(14, 18, 26, 0.18) 55%,
      rgba(14, 18, 26, 0.85) 100%);
  pointer-events: none;
}

/* Layer 3b — texte */
.hero-content {
  position: relative;
  z-index: 3;
  max-width: var(--container);
  margin: 0 auto;
  padding: 8rem var(--gutter) 6rem;
  width: 100%;
}

.hero-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--safran);
  margin: 0 0 2.5rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--t-mid), transform var(--t-mid);
}
.hero-eyebrow.is-revealed { opacity: 1; transform: translateY(0); }

.hero-h1 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2.8rem, 10.5vw, 12rem);
  line-height: 0.92;
  letter-spacing: -0.028em;
  color: var(--sable);
  margin: 0 0 2.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.3em;
  align-items: baseline;
}
.hero-h1 em {
  font-style: italic;
  color: var(--safran);
}
.hero-h1 .word-mask {
  display: inline-block;
  overflow: hidden;
  line-height: 0.92;
  padding: 0.05em 0;
  vertical-align: bottom;
}
.hero-h1 .word-break {
  flex-basis: 100%;
  width: 100%;
  height: 0;
  display: block;
}
.hero-h1 .word {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1.05s var(--ease-word);
  will-change: transform;
}
.hero-h1 .word-mask.is-revealed .word { transform: translateY(0); }

.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  line-height: 1.6;
  color: var(--sable-90);
  max-width: 58ch;
  margin: 0 0 3rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--t-slow), transform var(--t-slow);
}
.hero-subtitle.is-revealed { opacity: 1; transform: translateY(0); }

.hero-proof-block {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin: 0 0 2.8rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--t-slow), transform var(--t-slow);
}
.hero-proof-block.is-revealed { opacity: 1; transform: translateY(0); }
.hero-proof-rule {
  display: block;
  width: 2.5rem;
  height: 1px;
  background: var(--safran);
  flex-shrink: 0;
}
.hero-proof {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--safran);
  margin: 0;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.2rem;
  align-items: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--t-slow), transform var(--t-slow);
}
.hero-ctas.is-revealed { opacity: 1; transform: translateY(0); }

/* Scroll cue — 3 traits cuivre cascade */
.hero-scroll-cue {
  position: absolute;
  bottom: 2.6rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  opacity: 0;
  transition: opacity 0.8s var(--ease-out);
}
.hero-scroll-cue.is-revealed { opacity: 0.7; }
.cue-label {
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sable);
  opacity: 0.7;
}
.cue-lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}
.cue-line {
  display: block;
  width: 1px;
  height: 12px;
  background: var(--safran);
  opacity: 0.35;
  animation: cue-cascade 2s var(--ease-out) infinite;
}
.cue-line:nth-child(2) { animation-delay: 0.2s; }
.cue-line:nth-child(3) { animation-delay: 0.4s; height: 24px; }

@keyframes cue-cascade {
  0%, 100% { opacity: 0.25; transform: translateY(0); }
  50%      { opacity: 1;    transform: translateY(4px); }
}

@media (max-width: 640px) {
  .hero-content { padding-top: 7rem; padding-bottom: 5rem; }
  .hero-h1 {
    font-size: clamp(2.6rem, 13vw, 4.5rem);
    gap: 0 0.22em;
  }
  .hero-ctas { flex-direction: column; align-items: flex-start; gap: 1.2rem; }
  .cta { width: 100%; justify-content: center; }
  .cta-secondary { justify-content: flex-start; width: auto; padding: 0; }
  .hero-scroll-cue { display: none; }
}

/* ----------------------------------------------------------------
   6. SECTION 2 — LE COMPTE (4 chiffres KPI + parallax marbre)
   ---------------------------------------------------------------- */
.section-compte {
  color: var(--nuit);
}

.compte-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  border-top: var(--rule-cuivre);
  border-bottom: var(--rule-cuivre);
}

@media (min-width: 640px) {
  .compte-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .compte-grid { grid-template-columns: repeat(4, 1fr); }
}

.compte-cell {
  padding: 3rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-bottom: var(--rule-cuivre);
  position: relative;
  transition: background var(--t-fast);
}
.compte-grid > .compte-cell:last-child { border-bottom: 0; }
.compte-cell:hover { background: rgba(212, 148, 58, 0.04); }

@media (min-width: 640px) {
  .compte-cell { padding: 3.5rem 2rem; border-bottom: 0; border-right: var(--rule-cuivre); }
  .compte-grid > .compte-cell:nth-child(2n) { border-right: 0; }
  .compte-grid > .compte-cell:nth-child(-n+2) { border-bottom: var(--rule-cuivre); }
}
@media (min-width: 1024px) {
  .compte-cell {
    padding: 4rem 2rem;
    border-bottom: 0 !important;
    border-right: var(--rule-cuivre) !important;
  }
  .compte-grid > .compte-cell:last-child { border-right: 0 !important; }
}

.compte-val {
  font-size: clamp(3.4rem, 8vw, 6.4rem);
  font-weight: 300;
  line-height: 0.95;
  color: var(--nuit);
  letter-spacing: -0.02em;
}

.compte-lab {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--nuit);
  opacity: 0.78;
}

.compte-src {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--nuit-60);
  font-style: italic;
  margin-top: 0.3rem;
}

.compte-foot {
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--nuit-60);
  font-style: italic;
  margin: 2.5rem auto 0;
  max-width: var(--container);
}

/* ----------------------------------------------------------------
   7. SECTION 3 — LA RÉFÉRENCE (Maison Cypra)
   ---------------------------------------------------------------- */
.section-reference {
  color: var(--nuit);
}

.reference-head { margin-bottom: 5rem; max-width: var(--container); margin-left: auto; margin-right: auto; }

.reference-nda {
  margin-top: 1.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cuivre);
  font-style: italic;
  max-width: 64ch;
  line-height: 1.6;
  opacity: 0.85;
}

.reference-block {
  max-width: var(--container);
  margin: 0 auto;
  padding: 4rem 0;
  border-top: 1px solid var(--cuivre-40);
}
.reference-block:first-of-type { border-top: 0; padding-top: 0; }

.reference-h3 {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cuivre);
  margin: 0 0 3rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--cuivre-20);
}

/* 3.2 — Contexte */
.reference-context {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}
@media (min-width: 900px) {
  .reference-context { grid-template-columns: 1.4fr 1fr; gap: 4rem; }
}

.reference-text p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--nuit);
  max-width: 60ch;
  margin: 0 0 1.4rem;
}
.reference-text p:last-child { margin-bottom: 0; }

.reference-figure { margin: 0; position: relative; }
.reference-figure img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.reference-figure figcaption {
  margin-top: 1rem;
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cuivre);
}

/* 3.3 — Diagnostic */
.diag-list { display: grid; gap: 0; }
.diag-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  padding: 2rem 0;
  border-top: 1px solid var(--nuit-12);
}
.diag-item:first-child { border-top: 0; padding-top: 0; }
.diag-item:last-child { padding-bottom: 0; }

.diag-num {
  font-size: 0.92rem;
  letter-spacing: 0.16em;
  color: var(--safran);
  padding-top: 0.6rem;
  min-width: 2.5rem;
}

.diag-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  margin: 0 0 0.8rem;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.diag-body p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--nuit-80);
  max-width: 64ch;
}
.diag-strong { color: var(--safran); font-weight: 400; }

/* 3.4 — Plan */
.plan-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 768px) {
  .plan-grid { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
}
.plan-axe {
  padding-top: 1.5rem;
  border-top: 1px solid var(--cuivre-40);
  transition: transform var(--t-mid);
}
.plan-axe:hover { transform: translateY(-3px); }
.plan-num {
  display: block;
  font-size: 2.4rem;
  font-weight: 300;
  line-height: 1;
  color: var(--safran);
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
.plan-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.plan-axe p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--nuit-80);
}

/* 3.5 — Bâti (timeline) */
.bati-timeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.bati-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--nuit-12);
  align-items: baseline;
}
.bati-step:first-child { border-top: 0; }

@media (min-width: 900px) {
  .bati-step {
    grid-template-columns: 80px 240px 1fr;
    gap: 2rem;
    padding: 1.6rem 0;
  }
}

.bati-day {
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  color: var(--safran);
  font-weight: 300;
}

.bati-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 1.15rem;
  margin: 0;
  letter-spacing: -0.005em;
}

.bati-step p {
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0;
  color: var(--nuit-80);
  max-width: 60ch;
  grid-column: 2;
}
@media (min-width: 900px) {
  .bati-step p { grid-column: 3; }
}

/* 3.7 — Témoignage */
.reference-temoignage { padding-top: 5rem; padding-bottom: 5rem; }
.temoignage {
  max-width: 56ch;
  margin: 0 auto;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  line-height: 1.55;
  color: var(--nuit);
  text-align: left;
  padding: 2.5rem 0;
  border-top: 1px solid var(--cuivre-40);
  border-bottom: 1px solid var(--cuivre-40);
}
.temoignage p { margin: 0 0 1rem; }
.temoignage p:last-child { margin-bottom: 0; }

.temoignage-attr {
  max-width: 56ch;
  margin: 1.5rem auto 0;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cuivre);
}
.temoignage-nda {
  max-width: 56ch;
  margin: 0.6rem auto 0;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--nuit-60);
  font-style: italic;
}

/* 3.8 — DIPTYQUE (le moment WOW interne) */
.reference-diptyque { padding-top: 5rem; padding-bottom: 0; }

.diptyque {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 1.5rem;
}
@media (min-width: 1024px) {
  .diptyque {
    grid-template-columns: 1fr 0.65fr 1fr;
    gap: 2.5rem;
  }
}

.diptyque-side {
  margin: 0;
  position: relative;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
.diptyque-side.is-revealed { opacity: 1; transform: translateY(0); }
.diptyque-after { transition-delay: 200ms; }

.diptyque-side > img,
.diptyque-side .fake-wp {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--cuivre-40);
  background: var(--sable);
}

.diptyque-side figcaption {
  margin-top: 1rem;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cuivre);
  line-height: 1.6;
}

/* Fake WordPress 2018 — pure CSS mockup */
.fake-wp {
  display: flex;
  flex-direction: column;
  padding: 14px;
  background: #e8e6e3;
  position: relative;
  overflow: hidden;
}
.fake-wp::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.05) 100%);
  pointer-events: none;
}

.fake-wp-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid #cfccc7;
  margin-bottom: 12px;
  flex-shrink: 0;
}
.fake-wp-logo { width: 70px; height: 14px; background: #888; border-radius: 2px; }
.fake-wp-menu { display: flex; gap: 10px; }
.fake-wp-menu li { width: 36px; height: 8px; background: #aaa; border-radius: 2px; list-style: none; }

.fake-wp-hero {
  flex: 0 0 auto;
  background: #d4d2cd;
  padding: 14px;
  margin-bottom: 12px;
  position: relative;
  min-height: 90px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  box-shadow: inset 0 0 0 1px #c4c2bd;
}
.fake-wp-hero-img { position: absolute; inset: 0; background: repeating-linear-gradient(45deg, #b8b6b1 0 6px, #c0beb9 6px 12px); opacity: 0.4; }
.fake-wp-hero-title { position: relative; width: 60%; height: 16px; background: #777; border-radius: 1px; }
.fake-wp-hero-sub { position: relative; width: 40%; height: 8px; background: #999; border-radius: 1px; }

.fake-wp-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  flex: 1;
  margin-bottom: 12px;
}
.fake-wp-card {
  background: #f0eeeb;
  padding: 8px;
  border: 1px solid #cfccc7;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fake-wp-card-img { width: 100%; aspect-ratio: 16 / 10; background: #c2c0bb; }
.fake-wp-card-line { height: 6px; background: #999; border-radius: 1px; }
.fake-wp-card-line.short { width: 60%; background: #b3b1ac; }

.fake-wp-foot { background: #666; padding: 10px 12px; display: flex; gap: 8px; flex-shrink: 0; }
.fake-wp-foot span { flex: 1; height: 6px; background: #888; border-radius: 1px; }

/* Diptyque center — KPI stack */
.diptyque-center {
  display: flex;
  align-items: center;
  justify-content: center;
}
.diptyque-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 1.5rem;
  width: 100%;
}
@media (min-width: 1024px) {
  .diptyque-kpis { grid-template-columns: 1fr; gap: 1.8rem; }
}

.dkpi {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.4rem;
}
.dkpi-val {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 300;
  line-height: 1;
  color: var(--nuit);
  letter-spacing: -0.02em;
}
.dkpi-lab {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cuivre);
}

.diptyque-foot {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--nuit-60);
  font-style: italic;
}

/* ----------------------------------------------------------------
   8. SECTION 4 — LES PIÈCES (CAROUSEL HORIZONTAL — MOMENT WOW #2)
   ---------------------------------------------------------------- */
.section-pieces {
  color: var(--nuit);
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

.section-pieces .section-head {
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.pieces-viewport {
  position: relative;
  width: 100%;
  margin-top: 1rem;
}

.pieces-track {
  display: flex;
  gap: 0;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.pieces-track::-webkit-scrollbar { display: none; }
.pieces-track:active,
.pieces-track.is-dragging { cursor: grabbing; }
.pieces-track.is-dragging { scroll-behavior: auto; }

.piece-card {
  flex: 0 0 100%;
  scroll-snap-align: center;
  padding: 2rem clamp(1rem, 4vw, 6rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  user-select: none;
}

.piece-mockup {
  position: relative;
  width: min(100%, 980px);
  aspect-ratio: 1200/760;
  filter: drop-shadow(0 30px 60px rgba(14, 18, 26, 0.35));
  transform: translateY(36px) scale(0.95);
  opacity: 0;
  transition: transform 1s var(--ease-word), opacity 1s var(--ease-out);
}
.piece-card.is-in .piece-mockup {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.device-frame {
  width: 100%;
  height: 100%;
  display: block;
}
.piece-screen {
  position: absolute;
  top: 4.2%;
  left: 2.7%;
  right: 2.7%;
  bottom: 11%;
  overflow: hidden;
  border-radius: 6px;
  background: var(--sable);
}
/* V6.1 — Auto-scroll permanent : image full-page qui défile haut↔bas en boucle */
.piece-screen img {
  width: 100%;
  height: auto;
  display: block;
  filter: contrast(1.02) saturate(0.98);
  /* L'animation est déclenchée par .is-scrolling (ajout JS au load) */
  will-change: transform;
}
.piece-screen img.is-scrolling {
  animation: pieceAutoScroll var(--piece-scroll-duration, 28s) linear infinite alternate;
  animation-delay: var(--piece-scroll-delay, 0s);
}
@keyframes pieceAutoScroll {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(0, var(--piece-scroll-y, -1000px), 0); }
}
@media (prefers-reduced-motion: reduce) {
  .piece-screen img.is-scrolling { animation: none !important; }
}

.piece-meta {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}
.piece-num {
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  color: var(--cuivre);
  text-transform: uppercase;
}
.piece-name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  font-style: italic;
  color: var(--nuit);
  margin: 0;
  letter-spacing: -0.015em;
  line-height: 1;
}
.piece-name em {
  color: var(--safran);
  font-style: italic;
}
.piece-context {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--nuit-60);
  text-transform: uppercase;
  margin: 0.4rem 0 0;
}

/* Flèches */
.pieces-arrow {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  z-index: 5;
  width: 56px;
  height: 56px;
  border: 1px solid var(--cuivre-60);
  border-radius: 50%;
  background: rgba(244, 239, 230, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--nuit);
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast), color var(--t-fast);
}
.pieces-arrow:hover {
  background: var(--safran);
  border-color: var(--safran);
  color: var(--nuit);
  transform: translateY(-50%) scale(1.06);
}
.pieces-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}
.pieces-arrow-prev { left: clamp(0.5rem, 2vw, 2rem); }
.pieces-arrow-next { right: clamp(0.5rem, 2vw, 2rem); }
.pieces-arrow span { transform: translateY(-2px); }

/* Dots */
.pieces-dots {
  display: flex;
  gap: 0.55rem;
  justify-content: center;
  margin-top: 1.5rem;
  z-index: 5;
}
.pieces-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--cuivre-60);
  cursor: pointer;
  padding: 0;
  transition: all 0.4s var(--ease-out);
}
.pieces-dots .dot:hover { border-color: var(--safran); }
.pieces-dots .dot.is-active {
  background: var(--safran);
  border-color: var(--safran);
  width: 28px;
  border-radius: 4px;
}

@media (max-width: 720px) {
  .pieces-arrow { display: none; }
  .piece-card { padding: 1rem clamp(0.5rem, 4vw, 1.5rem); gap: 1.5rem; }
}

/* ----------------------------------------------------------------
   9. SECTION 5 — LA MÉTHODE (4 phases + parallax esquisse)
   ---------------------------------------------------------------- */
.section-methode {
  color: var(--nuit);
}

.methode-list {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  gap: 0;
}

.methode-phase {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  padding: 3rem 0;
  border-top: 1px solid var(--cuivre-40);
  align-items: start;
  transition: background var(--t-fast);
}
.methode-phase:last-child { border-bottom: 1px solid var(--cuivre-40); }
.methode-phase:hover { background: rgba(212, 148, 58, 0.04); }

@media (min-width: 768px) {
  .methode-phase {
    grid-template-columns: 110px 1fr;
    gap: 3rem;
    padding: 4rem 0;
  }
}

.methode-num {
  font-size: 2.4rem;
  font-weight: 300;
  line-height: 1;
  color: var(--safran);
  letter-spacing: -0.02em;
}
@media (min-width: 768px) {
  .methode-num { font-size: 3rem; }
}

.methode-head {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
}
@media (min-width: 768px) {
  .methode-head {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 2rem;
  }
}

.methode-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  margin: 0;
  letter-spacing: -0.015em;
  line-height: 1.1;
}

.methode-dates {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cuivre);
  flex-shrink: 0;
}

.methode-body p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--nuit-80);
  max-width: 68ch;
}

/* ----------------------------------------------------------------
   10. SECTION 6 — LE CARNET (3 references + parallax sombre)
   ---------------------------------------------------------------- */
.section-carnet {
  color: var(--sable);
}

.carnet-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem 2.5rem;
}
@media (min-width: 768px) {
  .carnet-grid { grid-template-columns: repeat(3, 1fr); gap: 3rem 2rem; }
}

.carnet-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform var(--t-mid);
}
.carnet-card:hover { transform: translateY(-4px); }

.carnet-figure {
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--sable-12);
  position: relative;
}
.carnet-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease-out);
}
.carnet-card:hover .carnet-figure img { transform: scale(1.06); }

.carnet-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  margin: 0.5rem 0 0;
  letter-spacing: -0.01em;
  color: var(--sable);
}
.carnet-title em {
  color: var(--safran);
  font-style: italic;
}

.carnet-meta {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--safran);
  margin: 0;
  line-height: 1.6;
}

.carnet-edito {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--sable-78);
  margin: 0.5rem 0;
}

.carnet-kpi {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--safran);
  margin: 0;
  padding-top: 0.8rem;
  border-top: 1px solid var(--sable-20);
}

.carnet-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sable);
  margin-top: 0.5rem;
  padding-bottom: 0.4rem;
  position: relative;
  align-self: flex-start;
}
.carnet-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--safran);
  transform: scaleX(0.35);
  transform-origin: left;
  transition: transform var(--t-mid);
}
.carnet-link:hover::after { transform: scaleX(1); }
.carnet-link.is-disabled {
  color: var(--sable-60);
  cursor: default;
  pointer-events: none;
}
.carnet-link.is-disabled::after { background: var(--sable-20); transform: scaleX(0.35); }

/* ----------------------------------------------------------------
   11. SECTION 7 — L'ADRESSE (photo fondateur + form + parallax)
   ---------------------------------------------------------------- */
.section-adresse {
  color: var(--nuit);
}

.adresse-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}
@media (min-width: 900px) {
  .adresse-grid { grid-template-columns: 1fr 1fr; gap: 5rem; }
}

.adresse-h2 { margin-bottom: 3rem; }

.founder-photo-placeholder {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 0 1rem;
  border: 1px solid var(--nuit-12);
}
.founder-photo-placeholder svg {
  width: 100%;
  height: 100%;
}

.founder-meta {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--nuit-60);
  font-style: italic;
  margin: 0 0 3rem;
}

.adresse-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cuivre);
  margin: 0 0 1.2rem;
  position: relative;
  padding-left: 3rem;
}
.adresse-eyebrow::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 2rem;
  height: 1px;
  background: var(--cuivre);
}

.adresse-pitch {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--nuit);
  max-width: 56ch;
  margin: 0 0 2.5rem;
}

.adresse-coord {
  padding-top: 2rem;
  border-top: 1px solid var(--cuivre-40);
}

.adresse-coord-line {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--cuivre);
  margin: 0;
  line-height: 1.8;
}

.adresse-coord-mail {
  margin: 0.8rem 0 0.4rem;
  font-size: 1.05rem;
}
.adresse-coord-mail a {
  color: var(--nuit);
  border-bottom: 1px solid var(--safran);
  padding-bottom: 0.1rem;
}
.adresse-coord-mail a:hover { color: var(--safran); }

.adresse-coord-note {
  font-size: 0.92rem;
  color: var(--nuit-60);
  font-style: italic;
  margin: 0.2rem 0 0;
}

/* Form */
.adresse-right { position: relative; }

.form-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cuivre);
  margin: 0 0 1.2rem;
}

.form-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.form-title em {
  color: var(--safran);
  font-style: italic;
}

.form-sub {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--nuit-80);
  margin: 0 0 2.5rem;
  max-width: 52ch;
}

.adresse-form {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.field-label {
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--nuit);
  opacity: 0.85;
}
.field-opt {
  text-transform: none;
  letter-spacing: 0;
  font-style: italic;
  opacity: 0.7;
  margin-left: 0.5rem;
}

.field input,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--nuit);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--nuit-20);
  padding: 0.7rem 0;
  width: 100%;
  border-radius: 0;
  transition: border-color var(--t-fast);
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--safran);
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--nuit-40);
  font-style: italic;
  font-size: 0.9rem;
}

.form-foot,
.form-deliv {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--nuit-60);
  font-style: italic;
  line-height: 1.6;
  margin: 0;
}
.form-foot { margin-top: 0.5rem; }

.form-success {
  padding: 3rem 0;
  text-align: left;
  border-top: 1px solid var(--cuivre-40);
  border-bottom: 1px solid var(--cuivre-40);
}
.success-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  margin: 0 0 1rem;
  color: var(--nuit);
  letter-spacing: -0.01em;
}
.form-success p {
  margin: 0;
  color: var(--nuit-80);
  font-size: 1rem;
  line-height: 1.6;
}
.form-success a {
  color: var(--safran);
  border-bottom: 1px solid var(--safran);
}

/* ----------------------------------------------------------------
   12. FOOTER
   ---------------------------------------------------------------- */
.footer-final {
  background: var(--nuit);
  color: var(--sable);
  padding: 5rem var(--gutter) 2rem;
}

.footer-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 4rem; }
}

.footer-wordmark {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 2.2rem;
  letter-spacing: -0.01em;
  margin: 0 0 0.5rem;
  color: var(--sable);
}
.footer-wordmark em {
  color: var(--safran);
  font-style: italic;
}

.footer-tagline {
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sable-60);
  margin: 0;
}

.footer-label {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--safran);
  margin: 0 0 1.2rem;
}

.footer-line {
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.85;
  margin: 0;
  color: var(--sable-78);
}
.footer-line a {
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-fast), color var(--t-fast);
}
.footer-line a:hover {
  color: var(--sable);
  border-bottom-color: var(--safran);
}

.footer-bottom {
  max-width: var(--container);
  margin: 4rem auto 0;
  padding-top: 1.6rem;
  border-top: 1px solid var(--cuivre-40);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: flex-start;
}
@media (min-width: 768px) {
  .footer-bottom { flex-direction: row; align-items: center; }
}

.footer-legal {
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sable-60);
  margin: 0;
  line-height: 1.6;
}

.footer-signature {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
}
@media (min-width: 768px) {
  .footer-signature { align-items: flex-end; }
}
.signature-placeholder {
  width: 110px;
  height: 36px;
  display: block;
}
.signature-caption {
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sable-60);
  font-style: italic;
}

/* ----------------------------------------------------------------
   13. Reveal au scroll (paragraphes, figures, blocs)
   ---------------------------------------------------------------- */
.reveal-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal-up.is-revealed { opacity: 1; transform: translateY(0); }

/* ----------------------------------------------------------------
   13bis. SECTION SIGNAL — scène 3D ogl signature
   Transition cinématique entre "Le bureau" et "La référence"
   ---------------------------------------------------------------- */
.section-signal {
  position: relative;
  min-height: 70vh;
  background: var(--nuit);
  color: var(--sable);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: clamp(5rem, 10vw, 8rem) 2rem;
  isolation: isolate;
}
#signal-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.signal-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.signal-label {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  color: var(--safran);
  text-transform: uppercase;
  margin: 0 0 2.2rem;
}
.signal-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2.3rem, 5.8vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--sable);
  margin: 0;
}
.signal-quote .mask-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.1em;
}
.signal-quote .mask-inner {
  display: block;
  transform: translateY(110%);
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.signal-quote .mask-line.is-revealed .mask-inner { transform: translateY(0); }
.signal-quote em {
  font-style: italic;
  color: var(--safran);
}
.signal-sub {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--sable-60);
  margin: 2rem auto 0;
  max-width: 56ch;
}

/* ----------------------------------------------------------------
   13ter. Diptyque — mode mots (au lieu des KPI chiffrés inventés)
   ---------------------------------------------------------------- */
.diptyque-kpis-words .dkpi {
  gap: 0.55rem;
}
.dkpi-val-word {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  line-height: 1;
  color: var(--nuit);
  letter-spacing: -0.01em;
  text-align: center;
}

/* Reference text en mode "solo" (1 paragraphe centré, sans figure) */
.reference-text-solo {
  max-width: 64ch;
  margin: 0 auto;
}
.reference-text-solo p {
  font-size: clamp(1.05rem, 1.5vw, 1.18rem);
  line-height: 1.65;
}
.reference-context:has(.reference-text-solo) {
  display: block;
  text-align: left;
}

/* ----------------------------------------------------------------
   14. Reduced motion
   ---------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .mask-inner { transform: translateY(0) !important; }
  .hero-h1 .word { transform: translateY(0) !important; }
  .hero-eyebrow,
  .hero-subtitle,
  .hero-proof-block,
  .hero-ctas,
  .hero-scroll-cue,
  .reveal-up {
    opacity: 1 !important;
    transform: none !important;
  }
  .diptyque-side { opacity: 1 !important; transform: none !important; }
  .piece-mockup { opacity: 1 !important; transform: none !important; }
  .custom-cursor { display: none !important; }
  body, a, button { cursor: auto !important; }
  .hero-particles { display: none !important; }
  #signal-canvas { display: none !important; }
  .section-bg { transform: none !important; }
}
