/* ============================================================
   PERFIMMO — Performance commerciale pour agences immobilières
   Édition « Ivoire éditorial » — fond clair, encre espresso, accent Sienne
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;0,700;0,800;1,500;1,600&family=Inter:wght@300;400;500;600;700&display=swap');

/* ---------- Design tokens ---------- */
:root {
  /* surfaces (light) */
  --ivory: #F4F0E8;
  --surface: #FBF9F3;
  --surface-2: #EFE9DD;
  --white: #FFFFFF;

  /* dark bands (espresso) */
  --espresso: #1E1810;
  --espresso-2: #18120B;

  /* text */
  --ink: #221C14;
  --muted: #6B6256;
  --muted-dim: #968C7D;

  --on-dark: #F1EBE0;
  --on-dark-muted: rgba(241, 235, 224, 0.62);
  --on-dark-dim: rgba(241, 235, 224, 0.40);

  /* accent — terre de Sienne */
  --sienna: #B0552E;
  --sienna-bright: #D9885A;
  --sienna-deep: #9A4A28;
  --sienna-soft: rgba(176, 85, 46, 0.10);
  --on-sienna: #FBF9F3;

  /* lines */
  --line: rgba(34, 28, 20, 0.12);
  --line-strong: rgba(34, 28, 20, 0.22);
  --line-dark: rgba(241, 235, 224, 0.14);

  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;

  --maxw: 1240px;
  --pad: clamp(22px, 5.5vw, 88px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-card: 0 34px 70px -34px rgba(74, 52, 30, 0.30);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
body {
  font-family: var(--sans);
  background: var(--ivory);
  color: var(--ink);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
::selection { background: var(--sienna); color: var(--on-sienna); }

/* hide native cursor only when custom cursor active */
body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: none; }

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }
.section { position: relative; padding-block: clamp(90px, 13vw, 180px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--sienna);
}
.eyebrow::before { content: ""; width: 30px; height: 1px; background: var(--sienna); opacity: 0.7; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; letter-spacing: -0.015em; }
.h-section { font-size: clamp(2.1rem, 4.4vw, 3.6rem); text-wrap: balance; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.24rem); color: var(--muted); max-width: 56ch; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 30px; border-radius: 3px;
  font-size: 0.92rem; font-weight: 600; letter-spacing: 0.01em;
  transition: transform .5s var(--ease), background .35s var(--ease), color .35s var(--ease), box-shadow .5s var(--ease);
  will-change: transform; overflow: hidden;
}
.btn > * { position: relative; z-index: 1; }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-gold { background: var(--sienna); color: var(--on-sienna); box-shadow: 0 14px 32px -16px rgba(176, 85, 46, 0.55); }
.btn-gold::before {
  content: ""; position: absolute; inset: 0; z-index: 0; background: var(--sienna-deep);
  transform: translateY(101%); transition: transform .5s var(--ease-out-expo);
}
.btn-gold:hover { box-shadow: 0 22px 44px -18px rgba(176, 85, 46, 0.6); }
.btn-gold:hover::before { transform: translateY(0); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn-ghost::before {
  content: ""; position: absolute; inset: 0; z-index: 0; background: var(--ink);
  transform: translateY(101%); transition: transform .5s var(--ease-out-expo);
}
.btn-ghost:hover { color: var(--ivory); box-shadow: inset 0 0 0 1px var(--ink); }
.btn-ghost:hover::before { transform: translateY(0); }
.btn .arrow { transition: transform .4s var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }
.btn-block { width: 100%; }
.btn-lg { padding: 19px 36px; font-size: 1rem; }

/* ghost button on dark bands */
.on-dark .btn-ghost, .footer .btn-ghost { color: var(--on-dark); box-shadow: inset 0 0 0 1px var(--line-dark); }
.on-dark .btn-ghost:hover, .footer .btn-ghost:hover { color: var(--espresso); box-shadow: inset 0 0 0 1px var(--on-dark); }
.on-dark .btn-ghost::before, .footer .btn-ghost::before { background: var(--on-dark); }

/* ============================================================
   GRAIN + CURSOR
   ============================================================ */
.grain {
  position: fixed; inset: -50%; z-index: 9000; pointer-events: none; opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainShift 8s steps(6) infinite;
}
@keyframes grainShift {
  0%,100% { transform: translate(0,0); }
  20% { transform: translate(-6%, 3%); }
  40% { transform: translate(4%, -5%); }
  60% { transform: translate(-3%, 6%); }
  80% { transform: translate(5%, 2%); }
}

.cursor { position: fixed; top: 0; left: 0; z-index: 9500; pointer-events: none; display: none; }
.cursor-dot {
  position: fixed; top: 0; left: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--sienna);
  transform: translate(-50%, -50%);
}
.cursor-ring {
  position: fixed; top: 0; left: 0; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(176, 85, 46, 0.6); transform: translate(-50%, -50%);
  transition: width .3s var(--ease), height .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease);
}
.cursor.hovering .cursor-ring { width: 58px; height: 58px; background: rgba(176, 85, 46, 0.10); border-color: transparent; }
.cursor.hovering .cursor-dot { opacity: 0; }

/* ============================================================
   PRELOADER
   ============================================================ */
.preloader {
  position: fixed; inset: 0; z-index: 9999; background: var(--ivory);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .8s var(--ease), visibility .8s;
}
.preloader.done { opacity: 0; visibility: hidden; }
.pl-inner { display: flex; flex-direction: column; align-items: center; gap: 26px; width: min(80vw, 320px); }
.pl-logo { display: flex; align-items: center; gap: 14px; font-family: var(--serif); font-size: 1.9rem; font-weight: 700; color: var(--ink); opacity: 0; transform: translateY(10px); animation: plLogoIn .9s var(--ease) .1s forwards; }
.pl-logo b { color: var(--sienna); }
.pl-mark { width: 40px; height: 40px; }
.pl-mark svg { width: 100%; height: 100%; }
.pl-rect { opacity: 0; transform: scale(.85); transform-box: fill-box; transform-origin: center; animation: plTileIn .7s var(--ease) .15s forwards; }
.pl-p { opacity: 0; animation: plFade .6s var(--ease) .65s forwards; }
@keyframes plTileIn { to { opacity: 1; transform: none; } }
@keyframes plFade { to { opacity: 1; } }
@keyframes plLogoIn { to { opacity: 1; transform: none; } }
.pl-bar { width: 100%; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.pl-fill { position: absolute; inset: 0; width: 0; background: linear-gradient(90deg, var(--sienna), var(--sienna-bright)); }
.pl-count { font-size: 0.78rem; letter-spacing: 0.18em; color: var(--muted-dim); font-variant-numeric: tabular-nums; }
.pl-pct { margin-left: 1px; }

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .5s var(--ease), backdrop-filter .5s var(--ease), box-shadow .5s var(--ease), padding .5s var(--ease), transform .5s var(--ease);
  padding-block: 28px;
}
.nav.scrolled { background: rgba(251, 249, 243, 0.82); backdrop-filter: blur(16px) saturate(140%); box-shadow: 0 1px 0 var(--line), 0 12px 30px -24px rgba(74, 52, 30, 0.4); padding-block: 16px; }
.nav.hidden { transform: translateY(-110%); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.logo { display: inline-flex; align-items: center; gap: 11px; font-family: var(--serif); font-size: 1.42rem; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
.logo .mark { width: 30px; height: 30px; flex: none; }
.logo .mark svg { width: 100%; height: 100%; display: block; }
.logo b { color: var(--sienna); font-weight: 700; }

.nav-links { display: flex; align-items: center; gap: 42px; }
.nav-links a.link { font-size: 0.92rem; font-weight: 500; color: var(--muted); position: relative; padding-block: 4px; transition: color .35s var(--ease); }
.nav-links a.link::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0; background: var(--sienna); transition: width .4s var(--ease-out-expo); }
.nav-links a.link:hover { color: var(--ink); }
.nav-links a.link:hover::after { width: 100%; }

.nav-cta { display: inline-flex; }

.burger { display: none; width: 42px; height: 42px; flex-direction: column; justify-content: center; align-items: center; gap: 6px; }
.burger span { width: 24px; height: 1.5px; background: var(--ink); transition: transform .35s var(--ease), opacity .25s; }
.burger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 99; background: var(--ivory);
  display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: var(--pad);
  transform: translateX(100%); transition: transform .6s var(--ease-out-expo);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a { font-family: var(--serif); font-size: 2rem; color: var(--ink); padding-block: 12px; border-bottom: 1px solid var(--line); }
.mobile-menu a:last-of-type { border: none; }
.mobile-menu .btn { margin-top: 24px; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; background: var(--ivory); }
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 72% 60% at 50% 42%, transparent 42%, rgba(244,240,232,0.55) 100%),
    linear-gradient(180deg, rgba(244,240,232,0.55) 0%, transparent 26%, transparent 60%, var(--ivory) 100%);
}
.hero-content { position: relative; z-index: 2; width: 100%; text-align: center; padding-top: 70px; }
.hero-eyebrow { font-size: 0.74rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--sienna); margin-bottom: 30px; }
.hero-title {
  font-size: clamp(2.7rem, 7.4vw, 5.8rem); line-height: 1.02; margin-bottom: 30px; letter-spacing: -0.02em; color: var(--ink);
}
.hero-title .ln { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero-title .ln-in { display: block; transform: translateY(110%); }
.hero-title .accent { color: var(--sienna); font-style: italic; }
.hero .sub { font-size: clamp(1.05rem, 1.7vw, 1.3rem); color: var(--muted); max-width: 46ch; margin: 0 auto 42px; line-height: 1.55; }
.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* hero entrance — content is ALWAYS visible (no hide-then-reveal) so it renders
   correctly in every context. Lines get a subtle non-hiding settle on load. */
.anim-fade { opacity: 1; transform: none; }
.hero-title .ln-in { transform: translateY(0); }
body.loaded .hero-title .ln-in { animation: lnSettle 1.1s var(--ease-out-expo); }
body.loaded .hero-title .ln:nth-child(2) .ln-in { animation-delay: .1s; }
@keyframes lnSettle { from { transform: translateY(38%); } to { transform: translateY(0); } }

.scroll-hint { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted-dim); opacity: 0; transition: opacity 1s var(--ease) 1.1s; }
body.loaded .scroll-hint { opacity: 1; }
.scroll-hint .line { width: 1px; height: 46px; background: linear-gradient(var(--sienna), transparent); position: relative; overflow: hidden; }
.scroll-hint .line::after { content: ""; position: absolute; top: -50%; left: 0; width: 100%; height: 50%; background: var(--sienna); animation: scrollDot 2.2s var(--ease) infinite; }
@keyframes scrollDot { 0% { top: -50%; } 60%,100% { top: 100%; } }

/* ============================================================
   CRM MARQUEE
   ============================================================ */
.marquee-sec { background: var(--surface); padding-block: 54px 60px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.marquee-label { text-align: center; font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted-dim); margin-bottom: 34px; }
.marquee { position: relative; width: 100%; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: inline-flex; align-items: center; gap: 38px; white-space: nowrap; animation: marquee 34s linear infinite; will-change: transform; }
.marquee-track span { font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 2.1rem); color: rgba(34, 28, 20, 0.42); font-weight: 500; }
.marquee-track span.sep { color: var(--sienna); opacity: 0.6; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================
   SECTION 2 — PROBLÈME
   ============================================================ */
.problem { background: var(--ivory); }
.problem .stat-headline { font-size: clamp(1.8rem, 3.6vw, 3rem); line-height: 1.18; max-width: 22ch; text-wrap: balance; margin: 20px 0 16px; color: var(--ink); }
.problem .stat-headline .hl { color: var(--sienna); }
.problem .stat-sub { color: var(--muted-dim); font-size: 1.08rem; margin-bottom: 70px; max-width: 52ch; }

.stat-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding: 48px 0; margin-bottom: 70px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat-item .stat-num { font-family: var(--serif); font-size: clamp(2.6rem, 5vw, 4rem); color: var(--sienna-deep); line-height: 1; margin-bottom: 14px; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.stat-item p { color: var(--muted); font-size: 0.98rem; max-width: 28ch; line-height: 1.5; }

.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pain-card {
  position: relative; padding: 42px 34px 44px; border-radius: 5px;
  background: var(--white);
  border: 1px solid var(--line); overflow: hidden;
  transition: transform .6s var(--ease), border-color .6s var(--ease), box-shadow .6s var(--ease);
}
.pain-card::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: linear-gradient(90deg, var(--sienna), transparent); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.pain-card:hover { transform: translateY(-7px); border-color: rgba(176, 85, 46, 0.34); box-shadow: var(--shadow-card); }
.pain-card:hover::before { transform: scaleX(1); }
.pain-num { font-family: var(--serif); font-size: 2.8rem; color: var(--sienna); opacity: 0.32; line-height: 1; margin-bottom: 20px; }
.pain-title { font-size: 1.34rem; color: var(--ink); margin-bottom: 12px; letter-spacing: -0.005em; }
.pain-card p { font-size: 1rem; color: var(--muted); line-height: 1.55; }

.transition-line { margin-top: 64px; text-align: center; font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 2.5vw, 1.85rem); color: var(--ink); text-wrap: balance; }
.transition-line span { color: var(--sienna); font-style: normal; }

/* ============================================================
   SECTION 3 — MÉTHODE
   ============================================================ */
.method { background: var(--surface); }
.method-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; flex-wrap: wrap; margin-bottom: 80px; }
.method-head .lead { margin-top: 18px; }

.timeline { position: relative; }
.timeline::before { content: ""; position: absolute; left: 28px; top: 10px; bottom: 10px; width: 1px; background: var(--line); }
.timeline .progress-track { position: absolute; left: 28px; top: 10px; width: 1px; height: 0; background: linear-gradient(var(--sienna), var(--sienna-bright)); box-shadow: 0 0 14px rgba(176, 85, 46, 0.45); transition: height .2s linear; z-index: 1; }
.step { position: relative; display: grid; grid-template-columns: 58px 1fr; gap: 34px; align-items: start; padding-block: 30px; }
.step .dot { position: relative; z-index: 2; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--white); border: 1px solid var(--line); font-family: var(--serif); font-size: 1.2rem; color: var(--muted-dim); transition: all .6s var(--ease); overflow: hidden; }
.step .dot span { transition: color .5s var(--ease), transform .5s var(--ease); }
.step.active .dot { background: var(--sienna); color: var(--on-sienna); border-color: var(--sienna); box-shadow: 0 0 0 6px var(--sienna-soft), 0 0 30px -6px rgba(176, 85, 46, 0.55); transform: scale(1.05); }
.step .body { padding-top: 6px; }
.step .body .ph-label { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sienna); opacity: 0; transform: translateY(6px); transition: opacity .5s, transform .5s; }
.step.active .body .ph-label { opacity: 1; transform: none; }
.step h3 { font-size: clamp(1.5rem, 2.7vw, 2.1rem); margin: 6px 0 12px; transition: color .5s; color: var(--muted-dim); }
.step.active h3 { color: var(--ink); }
.step p { color: var(--muted); max-width: 58ch; font-size: 1.06rem; line-height: 1.6; transition: color .5s; }
.step .body .meta { display: inline-block; margin-top: 16px; font-size: 0.82rem; letter-spacing: 0.04em; color: var(--muted-dim); padding: 5px 12px; border: 1px solid var(--line); border-radius: 100px; }

/* ============================================================
   SECTION 4 — OFFRES
   ============================================================ */
.offers { background: var(--ivory); }
.offers-head { text-align: center; margin-bottom: 78px; }
.offers-head .lead { margin: 18px auto 0; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: stretch; perspective: 1700px; }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line); border-radius: 7px; padding: 44px 36px 40px;
  transition: transform .18s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
  transform-style: preserve-3d; will-change: transform;
}
.card::after { content: ""; position: absolute; inset: 0; border-radius: 7px; pointer-events: none; background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%), rgba(176, 85, 46, 0.08), transparent 42%); opacity: 0; transition: opacity .4s; }
.card:hover::after { opacity: 1; }
.card:hover { box-shadow: var(--shadow-card); border-color: rgba(176, 85, 46, 0.28); }
.card .c-name { font-family: var(--serif); font-size: 1.55rem; margin-bottom: 6px; line-height: 1.15; color: var(--ink); }
.card .c-tagline { font-size: 0.88rem; color: var(--muted-dim); min-height: 20px; }
.card .c-price { display: flex; align-items: baseline; gap: 8px; margin: 28px 0 4px; }
.card .c-price .amt { font-family: var(--serif); font-size: 3rem; color: var(--sienna-deep); line-height: 1; white-space: nowrap; }
.card .c-price .unit { font-size: 0.92rem; color: var(--muted-dim); }
.card .c-dur { font-size: 0.9rem; color: var(--muted); margin-bottom: 28px; }
.card .c-divider { height: 1px; background: var(--line); margin-bottom: 26px; }
.card ul.feats { display: flex; flex-direction: column; gap: 15px; margin-bottom: 34px; flex: 1; }
.card ul.feats li { display: flex; gap: 12px; font-size: 0.96rem; color: var(--muted); line-height: 1.45; }
.card ul.feats li svg { flex: none; margin-top: 3px; color: var(--sienna); }
.card .btn { margin-top: auto; }

/* featured card — dark espresso so it pops among the white cards */
.card.featured { background: linear-gradient(170deg, #241B12, #18120B); border-color: rgba(176, 85, 46, 0.5); color: var(--on-dark); box-shadow: 0 40px 84px -30px rgba(40, 26, 12, 0.55), inset 0 0 0 1px rgba(176, 85, 46, 0.16); }
.card.featured::before { content: "★ Le plus choisi"; position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); background: var(--sienna); color: var(--on-sienna); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 8px 18px; border-radius: 100px; white-space: nowrap; box-shadow: 0 12px 26px -10px rgba(176, 85, 46, 0.7); }
.card.featured:hover { border-color: rgba(176, 85, 46, 0.7); }
.card.featured .c-name { color: var(--on-dark); }
.card.featured .c-tagline { color: var(--on-dark-muted); }
.card.featured .c-price .amt { color: var(--sienna-bright); }
.card.featured .c-price .unit, .card.featured .c-dur { color: var(--on-dark-muted); }
.card.featured .c-divider { background: var(--line-dark); }
.card.featured ul.feats li { color: var(--on-dark-muted); }
.card.featured ul.feats li svg { color: var(--sienna-bright); }

.transformation-note { text-align: center; margin-top: 38px; font-size: 0.86rem; color: var(--muted-dim); }
.transformation-note b { color: var(--ink); font-weight: 600; }

/* ============================================================
   SECTION 5 — POURQUOI  (bande sombre)
   ============================================================ */
.why { background: var(--espresso); color: var(--on-dark); }
.why-grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: clamp(44px, 6vw, 100px); align-items: center; }
.why .eyebrow { color: var(--sienna-bright); }
.why .eyebrow::before { background: var(--sienna-bright); }
.why ul { display: flex; flex-direction: column; gap: 24px; margin-top: 8px; }
.why li { display: flex; gap: 16px; align-items: flex-start; }
.why li .ic { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--sienna); color: var(--on-sienna); }
.why li p { font-size: 1.06rem; color: var(--on-dark-muted); line-height: 1.5; }
.why li p b { color: var(--on-dark); font-weight: 600; }

.why-quote { position: relative; font-family: var(--serif); font-weight: 500; font-size: clamp(1.55rem, 3.1vw, 2.5rem); line-height: 1.24; color: var(--on-dark); margin: 22px 0 42px; padding-top: 16px; text-wrap: balance; }
.why-quote em { color: var(--sienna-bright); font-style: italic; }
.why-quote .qmark { position: absolute; top: -30px; left: -6px; font-family: var(--serif); font-size: 5.5rem; line-height: 1; color: var(--sienna-bright); opacity: 0.3; }

.why-visual { position: relative; aspect-ratio: 4 / 5; border-radius: 9px; overflow: hidden; background: var(--espresso-2); box-shadow: 0 50px 90px -34px rgba(0, 0, 0, 0.5); border: 1px solid var(--line-dark); }
.why-visual canvas { width: 100%; height: 100%; display: block; }
.why-visual .vlabel { position: absolute; bottom: 18px; left: 20px; font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-dark-dim); }

/* ============================================================
   FAQ
   ============================================================ */
.faq { background: var(--ivory); }
.faq-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.faq-aside .h-section { margin: 18px 0 22px; }
.faq-aside { position: sticky; top: 120px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 0; text-align: left; font-family: var(--serif); font-size: clamp(1.1rem, 1.9vw, 1.4rem); color: var(--muted); transition: color .4s var(--ease); }
.faq-q:hover { color: var(--ink); }
.faq-item.open .faq-q { color: var(--sienna-deep); }
.faq-icon { position: relative; flex: none; width: 20px; height: 20px; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; top: 50%; left: 50%; background: var(--sienna); transition: transform .4s var(--ease), opacity .4s; }
.faq-icon::before { width: 16px; height: 1.5px; transform: translate(-50%, -50%); }
.faq-icon::after { width: 1.5px; height: 16px; transform: translate(-50%, -50%); }
.faq-item.open .faq-icon::after { transform: translate(-50%, -50%) scaleY(0); opacity: 0; }
.faq-a { overflow: hidden; max-height: 0; transition: max-height .55s var(--ease); }
.faq-a p { padding: 0 0 30px; color: var(--muted); font-size: 1.04rem; line-height: 1.65; max-width: 56ch; }

/* ============================================================
   SECTION 6 — CONTACT
   ============================================================ */
.contact { background: var(--surface); position: relative; }
.contact-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 30px; align-items: stretch; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 9px; padding: clamp(34px, 4vw, 54px); box-shadow: var(--shadow-card); display: flex; flex-direction: column; }
.contact .panel > form { display: flex; flex-direction: column; flex: 1; }
.contact .panel > form .btn-gold { margin-top: auto; }
.panel h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 10px; color: var(--ink); }
.panel .p-sub { color: var(--muted-dim); margin-bottom: 36px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.78rem; letter-spacing: 0.04em; color: var(--muted-dim); margin-bottom: 8px; font-weight: 500; }
.field label .req { color: var(--sienna); }
.field input, .field select, .field textarea { width: 100%; padding: 14px 16px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 4px; font-family: var(--sans); font-size: 0.95rem; transition: border-color .3s, box-shadow .3s, background .3s; }
.field textarea { resize: vertical; min-height: 100px; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-dim); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sienna); background: var(--white); box-shadow: 0 0 0 3px var(--sienna-soft); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23B0552E' d='M6 8L0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field.invalid input, .field.invalid select { border-color: #c4502f; box-shadow: 0 0 0 3px rgba(196, 80, 47, 0.12); }
.field .err { font-size: 0.75rem; color: #c4502f; margin-top: 6px; display: none; }
.field.invalid .err { display: block; }
.form-note { margin-top: 16px; font-size: 0.82rem; color: var(--muted-dim); text-align: center; }
.form-success { display: none; text-align: center; padding: 30px 0; }
.form-success.show { display: block; animation: fadeUp .6s var(--ease); }
.form-success .check { width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%; background: var(--sienna); color: var(--on-sienna); display: grid; place-items: center; }
.form-success h3 { font-size: 1.5rem; margin-bottom: 8px; color: var(--ink); }
.form-success p { color: var(--muted); }

.panel.calendly-panel { display: flex; flex-direction: column; }
.cal-features { display: flex; flex-direction: column; gap: 16px; margin: 30px 0 36px; }
.cal-features li { display: flex; gap: 12px; align-items: center; color: var(--muted); font-size: 0.98rem; }
.cal-features li svg { color: var(--sienna); flex: none; }
.cal-visual { margin: 8px 0 32px; padding: 26px; border-radius: 7px; background: var(--surface-2); border: 1px solid var(--line); display: flex; align-items: center; gap: 20px; }
.cal-visual .cal-date { text-align: center; background: var(--sienna); color: var(--on-sienna); border-radius: 7px; padding: 10px 16px; flex: none; }
.cal-visual .cal-date .d { font-family: var(--serif); font-size: 1.8rem; line-height: 1; font-weight: 700; }
.cal-visual .cal-date .m { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; }
.cal-visual .cal-text strong { display: block; color: var(--ink); margin-bottom: 4px; }
.cal-visual .cal-text span { font-size: 0.88rem; color: var(--muted-dim); }

/* ============================================================
   FOOTER  (bande sombre)
   ============================================================ */
.footer { background: var(--espresso); color: var(--on-dark); padding-block: 0 38px; border-top: 1px solid var(--line); }
.footer-cta { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-block: clamp(60px, 8vw, 96px); border-bottom: 1px solid var(--line-dark); }
.footer-cta h2 { font-size: clamp(1.9rem, 4.5vw, 3.4rem); letter-spacing: -0.02em; color: var(--on-dark); }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 44px; padding-block: 60px 50px; border-bottom: 1px solid var(--line-dark); }
.footer .logo { font-size: 1.6rem; margin-bottom: 16px; color: var(--on-dark); }
.footer .logo b { color: var(--sienna-bright); }
.footer-blurb { color: var(--on-dark-muted); max-width: 36ch; font-size: 0.95rem; }
.footer-col h4 { font-family: var(--sans); font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sienna-bright); margin-bottom: 18px; font-weight: 600; }
.footer-col a, .footer-col p { display: block; color: var(--on-dark-muted); font-size: 0.95rem; margin-bottom: 12px; transition: color .3s; }
.footer-col a:hover { color: var(--sienna-bright); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 28px; flex-wrap: wrap; }
.footer-bottom p { font-size: 0.82rem; color: var(--on-dark-dim); }
.footer-bottom a { color: var(--on-dark-dim); }
.footer-bottom a:hover { color: var(--sienna-bright); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease-out-expo), transform 1s var(--ease-out-expo); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; }
.reveal.d2 { transition-delay: .2s; }
.reveal.d3 { transition-delay: .3s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal, .anim-fade { opacity: 1 !important; transform: none !important; }
  .hero-title .ln-in { transform: none !important; }
  .marquee-track { animation: none !important; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .why-grid { grid-template-columns: 1fr; }
  .why-visual { max-width: 440px; aspect-ratio: 5/4; order: 2; }
  .why-text { order: 1; }
  .contact-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .faq-aside { position: static; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 840px) {
  .nav-links, .nav .nav-cta { display: none; }
  .burger { display: flex; }
  .stat-band { grid-template-columns: 1fr; gap: 32px; }
  .pain-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; }
  .card.featured { order: -1; }
  .card.featured::before { top: -1px; }
  .cursor { display: none !important; }
  body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: auto; }
}
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom, .footer-cta { flex-direction: column; align-items: flex-start; }
  .step { grid-template-columns: 48px 1fr; gap: 22px; }
  .timeline::before, .timeline .progress-track { left: 23px; }
  .step .dot { width: 48px; height: 48px; }
  .cal-visual { flex-direction: column; text-align: center; }
}
