/* ============================================================
   NESKAGENCY — DESIGN SYSTEM
   Tokens de marque + composants. Charbon · Crème · Orange brûlé.
   ============================================================ */

/* ---------- 1. TOKENS ---------- */
:root {
  /* Couleurs de marque */
  --ink:          #0F0E0C;   /* charbon */
  --ink-2:        #161310;
  --panel:        #1C1813;   /* surfaces sur fond sombre */
  --panel-2:      #242018;
  --cream:        #F4EFE2;
  --cream-2:      #EAE3D3;
  --orange:       #C84A05;   /* orange brûlé — accent unique */
  --orange-2:     #E85D14;
  --orange-hot:   #FF7A2E;   /* lisible sur charbon */
  --green-ok:     #5DA871;

  /* Typo */
  --serif: 'Newsreader', Georgia, serif;
  --sans:  'Geist', system-ui, -apple-system, sans-serif;
  --mono:  'Geist Mono', ui-monospace, 'Cascadia Mono', monospace;

  /* Motion */
  --ease:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-2: cubic-bezier(0.65, 0, 0.35, 1);

  /* Layout */
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 44px);
  --radius: 14px;
  --radius-sm: 9px;
}

/* Thèmes de section : chaque bande redéfinit les tokens contextuels */
.s-dark {
  --bg: var(--ink);
  --bg-2: var(--ink-2);
  --surface: var(--panel);
  --surface-2: var(--panel-2);
  --fg: var(--cream);
  --fg-soft: #D8D2C2;
  --mute: #8F8676;
  --line: rgba(244, 239, 226, 0.10);
  --line-2: rgba(244, 239, 226, 0.22);
  --accent: var(--orange-hot);
  background: var(--bg);
  color: var(--fg);
}
.s-cream {
  --bg: var(--cream);
  --bg-2: var(--cream-2);
  --surface: #FBF8EF;
  --surface-2: var(--cream-2);
  --fg: var(--ink);
  --fg-soft: #2A2622;
  --mute: #847568;
  --line: rgba(15, 14, 12, 0.14);
  --line-2: rgba(15, 14, 12, 0.30);
  --accent: var(--orange);
  background: var(--bg);
  color: var(--fg);
}

/* ---------- 2. RESET / BASE ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html:not(.lenis) { scroll-behavior: smooth; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
::selection { background: var(--orange); color: var(--cream); }

body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

/* Typo utilitaires */
.display {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-variation-settings: "opsz" 72;
  text-wrap: balance;
}
.display em { font-style: italic; font-weight: 500; color: var(--accent); }
.tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 500;
}
.section-label { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.section-label::before { content: ''; width: 26px; height: 1px; background: var(--accent); }
.section-title { font-size: clamp(34px, 5vw, 62px); margin-bottom: 18px; }
.section-intro { max-width: 560px; font-size: clamp(16px, 1.6vw, 19px); color: var(--mute); }
.section-head { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }

.section { padding: clamp(80px, 11vw, 150px) 0; position: relative; }

/* Étiquette "simulation" — obligatoire sur tout chiffre illustratif */
.sim-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--mute);
  border: 1px solid var(--line); border-radius: 100px;
  padding: 5px 12px;
}
.sim-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--mute); opacity: 0.7; }

/* ---------- 3. BOUTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--sans); font-weight: 600; font-size: 15px;
  padding: 15px 28px; border-radius: 100px;
  background: var(--orange); color: var(--cream);
  text-decoration: none; border: 1px solid transparent;
  transition: transform 0.35s var(--ease), background 0.25s, box-shadow 0.35s var(--ease);
  will-change: transform;
}
.btn:hover { background: var(--orange-2); transform: translateY(-2px); box-shadow: 0 12px 32px -12px rgba(200, 74, 5, 0.55); }
.btn:active { transform: translateY(0); }
.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-outline { background: transparent; color: var(--fg); border-color: var(--line-2); }
.btn-outline:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); box-shadow: none; }
.btn-large { padding: 18px 34px; font-size: 16px; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--orange-2); outline-offset: 3px;
}

/* ---------- 4. NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 16px 0;
  background: rgba(15, 14, 12, 0);
  border-bottom: 1px solid transparent;
  transition: background 0.4s, border-color 0.4s, padding 0.4s var(--ease);
}
.nav.scrolled {
  background: rgba(15, 14, 12, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(244, 239, 226, 0.08);
  padding: 12px 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand svg { width: 30px; height: 30px; }
.brand-text { font-family: var(--serif); font-weight: 700; font-size: 21px; letter-spacing: -0.02em; color: var(--cream); }
.nav-links { display: flex; gap: 30px; list-style: none; }
.nav-links a {
  font-size: 14px; font-weight: 500; text-decoration: none; color: #B8B0A0;
  transition: color 0.25s;
}
.nav-links a:hover { color: var(--cream); }
.nav .btn { padding: 11px 22px; font-size: 14px; }
@media (max-width: 860px) { .nav-links { display: none; } }

/* Barre de progression de scroll */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%;
  background: var(--orange-2); z-index: 1001;
  transform-origin: 0 50%; transform: scaleX(0);
}

/* ---------- 5. HERO ---------- */
.hero { position: relative; overflow: clip; }
.hero-stage {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px 0 60px;
  position: relative;
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 45% at 75% 20%, rgba(200, 74, 5, 0.13), transparent 65%),
    radial-gradient(ellipse 50% 40% at 15% 85%, rgba(200, 74, 5, 0.07), transparent 60%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; position: relative; }
.hero-tagline { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 26px; }
.hero-tagline .pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange-hot); }
.anim .hero-tagline .pulse-dot { animation: pulse 2.2s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 122, 46, 0.45); } 55% { box-shadow: 0 0 0 8px rgba(255, 122, 46, 0); } }
.hero h1 { font-size: clamp(38px, 5.2vw, 72px); margin-bottom: 24px; }
.hero h1 .h-line { display: block; overflow: hidden; }
.hero h1 .h-line > span { display: inline-block; }
.hero-sub { font-size: clamp(16px, 1.7vw, 19px); color: var(--mute); max-width: 520px; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--mute);
}
.scroll-hint-line { width: 1px; height: 38px; background: var(--line-2); position: relative; overflow: hidden; }
.anim .scroll-hint-line::after {
  content: ''; position: absolute; top: -40%; left: 0; width: 100%; height: 40%;
  background: var(--orange-hot); animation: hintDrop 1.8s var(--ease-2) infinite;
}
@keyframes hintDrop { to { top: 110%; } }

/* ---------- 6. DASHBOARD (hero + section business) ---------- */
.dash {
  background: linear-gradient(160deg, var(--panel) 0%, var(--ink-2) 100%);
  border: 1px solid rgba(244, 239, 226, 0.10);
  border-radius: var(--radius);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(244, 239, 226, 0.05);
  overflow: hidden;
}
.dash-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 18px; border-bottom: 1px solid rgba(244, 239, 226, 0.08);
}
.dash-head-left { display: flex; align-items: center; gap: 10px; }
.dash-dots { display: flex; gap: 5px; }
.dash-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(244, 239, 226, 0.14); }
.dash-title { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: #8F8676; }
.dash-status {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--green-ok);
}
.dash-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.dash-status.idle { color: var(--mute); }
.dash-body { padding: 18px; display: grid; gap: 12px; }

.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.kpi {
  background: rgba(244, 239, 226, 0.035);
  border: 1px solid rgba(244, 239, 226, 0.08);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
}
.kpi-label { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: #8F8676; margin-bottom: 7px; }
.kpi-value { font-family: var(--mono); font-size: clamp(19px, 1.8vw, 25px); font-weight: 500; color: var(--cream); line-height: 1; }
.kpi-value .unit { font-size: 0.62em; color: #8F8676; margin-left: 2px; }
.kpi-delta { font-family: var(--mono); font-size: 10px; color: var(--green-ok); margin-top: 6px; }
.kpi-delta.warn { color: var(--orange-hot); }
.kpi.kpi-accent { border-color: rgba(255, 122, 46, 0.35); background: rgba(200, 74, 5, 0.10); }
.kpi.kpi-accent .kpi-value { color: var(--orange-hot); }

/* Sources : barres horizontales */
.dash-sources { display: grid; gap: 9px; padding: 4px 2px; }
.src { display: grid; grid-template-columns: 110px 1fr 38px; align-items: center; gap: 10px; }
.src-name { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; color: #B8B0A0; }
.src-track { height: 6px; background: rgba(244, 239, 226, 0.07); border-radius: 4px; overflow: hidden; }
.src-fill { height: 100%; width: var(--w, 50%); background: linear-gradient(90deg, var(--orange), var(--orange-hot)); border-radius: 4px; transform-origin: 0 50%; }
.src-pct { font-family: var(--mono); font-size: 10.5px; color: #8F8676; text-align: right; }

/* Flux CRM */
.crm-feed { display: grid; gap: 7px; }
.crm-row {
  display: flex; align-items: center; gap: 10px;
  background: rgba(244, 239, 226, 0.03);
  border: 1px solid rgba(244, 239, 226, 0.07);
  border-radius: var(--radius-sm);
  padding: 10px 13px;
  font-family: var(--mono); font-size: 11.5px; color: #C9C2B2;
}
.crm-ico { width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; flex-shrink: 0; background: rgba(200, 74, 5, 0.16); color: var(--orange-hot); font-size: 11px; }
.crm-row .crm-meta { margin-left: auto; color: #6E665A; font-size: 10px; white-space: nowrap; }
.crm-row .st { padding: 2px 8px; border-radius: 100px; font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; }
.st-new { background: rgba(200, 74, 5, 0.18); color: var(--orange-hot); }
.st-ok { background: rgba(93, 168, 113, 0.16); color: var(--green-ok); }
.st-wait { background: rgba(244, 239, 226, 0.08); color: #B8B0A0; }

.dash-foot { padding: 10px 18px; border-top: 1px solid rgba(244, 239, 226, 0.07); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.dash-foot .sim-badge { border-color: rgba(244, 239, 226, 0.12); color: #8F8676; }

/* Hero : variante compacte */
.hero-dash { position: relative; }
.hero-dash .kpi-row { grid-template-columns: repeat(2, 1fr); }
.hero-dash-glow {
  position: absolute; inset: -8%; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 70% 60% at 50% 45%, rgba(200, 74, 5, 0.18), transparent 70%);
  filter: blur(8px);
}

/* ---------- 7. MARQUEE ---------- */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 17px 0; overflow: hidden; position: relative; }
.marquee-track { display: flex; gap: 48px; width: max-content; white-space: nowrap; }
.anim .marquee-track { animation: marquee 30s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-item { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); display: inline-flex; align-items: center; gap: 48px; }
.marquee-item::after { content: '·'; color: var(--accent); }

/* ---------- 8. PROBLÈME — séquence cinéma ---------- */
.problem-frames { position: relative; }
/* Sans JS / mobile : liste verticale lisible */
.pframe {
  display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start;
  padding: 26px 0; border-bottom: 1px solid var(--line);
}
.pframe-idx { font-family: var(--mono); font-size: 12px; color: var(--accent); padding-top: 6px; min-width: 44px; }
.pframe-txt { font-family: var(--serif); font-size: clamp(20px, 2.6vw, 30px); line-height: 1.25; letter-spacing: -0.01em; font-weight: 500; max-width: 21em; }
.pframe-txt strong { color: var(--accent); font-weight: 600; }
.pframe-meta { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute); margin-top: 10px; }
.problem-out {
  margin-top: clamp(40px, 6vw, 70px);
  font-family: var(--serif); font-weight: 600; font-style: italic;
  font-size: clamp(26px, 4vw, 48px); letter-spacing: -0.02em; line-height: 1.1;
  color: var(--accent); max-width: 16em;
}

/* Avec JS desktop : frames empilées, pilotées par la timeline */
.stage-on { padding: 104px 0 60px; } /* dégage la nav fixe pendant le pin */
.stage-on .problem-frames { min-height: 42vh; position: relative; }
.stage-on .pframe {
  position: absolute; inset: 0;
  border: none; padding: 0;
  display: grid; grid-template-columns: auto 1fr; align-content: center;
  opacity: 0; visibility: hidden;
}
.stage-on .pframe:first-child { opacity: 1; visibility: visible; }
.stage-on .pframe-txt { font-size: clamp(28px, 4vw, 52px); max-width: 18em; }
.stage-on .problem-out {
  position: absolute; inset: 0; margin: 0;
  display: grid; align-content: center;
  opacity: 0; visibility: hidden;
}
.problem-progress { display: none; }
.stage-on .problem-progress {
  display: flex; gap: 8px; margin-bottom: clamp(28px, 4vw, 48px);
}
.problem-progress span { width: 34px; height: 2px; background: var(--line); transition: background 0.3s; }
.problem-progress span.on { background: var(--accent); }

/* ---------- 9. MANIFESTO ---------- */
.manifesto { padding: clamp(90px, 13vw, 170px) 0; }
.manifesto-text {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(28px, 4.4vw, 58px); line-height: 1.16; letter-spacing: -0.02em;
  max-width: 17em;
}
.manifesto-text em { font-style: italic; color: var(--accent); }
.manifesto-text .word { opacity: 0.18; transition: opacity 0.3s; }
.manifesto-text .word.lit { opacity: 1; }
html:not(.anim) .manifesto-text .word { opacity: 1; }

/* ---------- 10. SYSTÈME — flux animé ---------- */
.flow-section { overflow: clip; }
.flow-pin { position: relative; }
/* Par défaut (mobile / sans JS) : grille verticale lisible */
.flow-track {
  position: relative;
  display: flex; flex-wrap: wrap; gap: 14px;
  max-width: var(--container); margin: 0 auto;
  padding: 0 var(--gutter);
  counter-reset: node;
}
/* Mode cinéma (activé par JS desktop) : rail horizontal scrubbed */
.flow-on .flow-track {
  flex-wrap: nowrap; max-width: none; width: max-content;
  padding: 40px max(var(--gutter), calc((100vw - var(--container)) / 2));
  align-items: stretch;
}
.flow-on .fnode { flex: 0 0 290px; }
/* Le fil orange qui connecte les modules */
.flow-line { display: none; }
.flow-on .flow-line {
  display: block; position: absolute;
  left: 0; right: 0; top: 50%; height: 2px;
  background: rgba(244, 239, 226, 0.09);
  z-index: 0;
}
.flow-line-fill {
  height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--orange), var(--orange-hot));
  transform-origin: 0 50%; transform: scaleX(0);
  box-shadow: 0 0 14px rgba(255, 122, 46, 0.5);
}
.fnode {
  flex: 1 1 280px;
  z-index: 1;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  position: relative;
  transition: border-color 0.4s, box-shadow 0.4s, transform 0.4s var(--ease);
}
.fnode::before {
  counter-increment: node; content: '0' counter(node);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; color: var(--mute);
  position: absolute; top: 16px; right: 18px;
}
.fnode.lit { border-color: rgba(255, 122, 46, 0.5); box-shadow: 0 0 0 1px rgba(255, 122, 46, 0.25), 0 18px 40px -24px rgba(200, 74, 5, 0.5); }
.fnode.lit .fnode-ico { background: rgba(200, 74, 5, 0.2); color: var(--orange-hot); }
.fnode-ico {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(244, 239, 226, 0.06); color: var(--mute);
  margin-bottom: 14px; transition: background 0.4s, color 0.4s;
}
.fnode h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.fnode p { font-size: 13.5px; color: var(--mute); line-height: 1.5; }
.flow-keyline {
  margin-top: clamp(36px, 5vw, 56px);
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(20px, 2.6vw, 30px); color: var(--fg-soft);
}
.flow-keyline strong { color: var(--accent); font-weight: 600; font-style: normal; }

/* ---------- 11. SECTION DASHBOARD BUSINESS ---------- */
.bizdash .kpi-row { grid-template-columns: repeat(4, 1fr); }
.bizdash .kpi { padding: 18px; }
.bizdash .kpi-value { font-size: clamp(24px, 2.4vw, 34px); }
.bizdash-note { margin-top: 26px; font-size: 14.5px; color: var(--mute); max-width: 560px; }
.chart { display: flex; align-items: flex-end; gap: 7px; height: 110px; padding: 6px 2px 0; }
.chart .bar {
  flex: 1; border-radius: 4px 4px 0 0;
  background: rgba(244, 239, 226, 0.10);
  height: var(--h, 40%);
  transform-origin: 50% 100%;
  position: relative;
}
.chart .bar.hot { background: linear-gradient(180deg, var(--orange-hot), var(--orange)); }
.chart-cap { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 9.5px; color: #6E665A; padding-top: 8px; border-top: 1px solid rgba(244, 239, 226, 0.07); }

/* ---------- 12. MÉTIERS ---------- */
.jobs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.job {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 32px);
  display: flex; flex-direction: column; gap: 18px;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.3s;
}
.job:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: 0 24px 48px -28px rgba(15, 14, 12, 0.25); }
.job-head { display: flex; align-items: center; gap: 13px; }
.job-ico { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: rgba(200, 74, 5, 0.10); color: var(--orange); flex-shrink: 0; }
.job-head h3 { font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.job-head .tag { display: block; margin-top: 2px; }
.job-points { list-style: none; display: grid; gap: 8px; }
.job-points li { display: flex; gap: 10px; font-size: 14.5px; color: var(--fg-soft); }
.job-points li::before { content: '→'; color: var(--orange); flex-shrink: 0; }
/* mini-dashboard métier (style terminal sombre, même sur fond crème) */
.job-mini {
  background: var(--ink);
  border: 1px solid rgba(244, 239, 226, 0.1);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  display: grid; gap: 7px;
  margin-top: auto;
}
.job-mini-head { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: #8F8676; padding-bottom: 8px; border-bottom: 1px solid rgba(244, 239, 226, 0.08); }
.job-mini-head .live { color: var(--green-ok); display: inline-flex; align-items: center; gap: 5px; }
.job-mini-head .live::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.job-mini-row { display: flex; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 11.5px; color: #C9C2B2; }
.job-mini-row .val { color: var(--orange-hot); white-space: nowrap; }
.jobs-foot { margin-top: 28px; font-size: 14.5px; color: var(--mute); }

/* ---------- 13. PRICING ---------- */
.pricing { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.price {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex; flex-direction: column; gap: 0;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.price:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -28px rgba(15, 14, 12, 0.22); }
.price-tag { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); margin-bottom: 18px; }
.price-tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.price-name { font-family: var(--serif); font-size: 24px; font-weight: 600; letter-spacing: -0.01em; }
.price-sub { font-size: 13px; color: var(--mute); margin-bottom: 20px; }
.price-amount { font-family: var(--mono); font-size: 42px; font-weight: 500; line-height: 1; letter-spacing: -0.02em; }
.price-amount .currency { font-size: 0.55em; color: var(--mute); margin-left: 2px; }
.price-period { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); margin: 8px 0 22px; }
.price-features { list-style: none; display: grid; gap: 9px; margin-bottom: 26px; }
.price-features li { display: flex; gap: 9px; font-size: 13.5px; color: var(--fg-soft); line-height: 1.45; }
.price-features li::before { content: '✓'; color: var(--orange); font-weight: 700; flex-shrink: 0; }
.price .btn { margin-top: auto; width: 100%; }
/* Carte vedette : charbon sur crème */
.price.featured {
  background: var(--ink); color: var(--cream);
  border-color: var(--ink);
  box-shadow: 0 32px 64px -32px rgba(15, 14, 12, 0.55);
  position: relative;
}
.price.featured .price-sub, .price.featured .price-period { color: #8F8676; }
.price.featured .price-features li { color: #D8D2C2; }
.price.featured .price-features li::before { color: var(--orange-hot); }
.price.featured .price-tag { color: var(--orange-hot); }
.price.featured:hover { transform: translateY(-6px); }
.pricing-foot { margin-top: 30px; text-align: center; font-family: var(--serif); font-style: italic; font-size: clamp(18px, 2vw, 24px); color: var(--mute); }
.pricing-foot strong { color: var(--fg); font-style: normal; }

/* ---------- 14. PROCESS ---------- */
.process-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(36px, 6vw, 90px); }
.process-aside { position: sticky; top: 110px; align-self: start; }
.process-steps { position: relative; padding-left: 38px; }
.process-line { position: absolute; left: 8px; top: 12px; bottom: 12px; width: 2px; background: var(--line); }
.process-line-fill { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: var(--accent); transform-origin: 50% 0; transform: scaleY(0); }
html:not(.anim) .process-line-fill { transform: scaleY(1); }
.pstep { position: relative; padding: 26px 0; border-bottom: 1px solid var(--line); }
.pstep:last-child { border-bottom: none; }
.pstep::before {
  content: ''; position: absolute; left: -36px; top: 36px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--line-2);
  transition: border-color 0.35s, background 0.35s, box-shadow 0.35s;
}
.pstep.active::before { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 5px rgba(255, 122, 46, 0.15); }
.pstep-tag { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.pstep h3 { font-family: var(--serif); font-size: clamp(20px, 2.2vw, 26px); font-weight: 600; margin-bottom: 8px; transition: color 0.35s; }
.pstep p { font-size: 14.5px; color: var(--mute); max-width: 46em; }
.pstep { opacity: 0.45; transition: opacity 0.4s; }
.pstep.active { opacity: 1; }
html:not(.anim) .pstep { opacity: 1; }

/* ---------- 15. AUDIT / FORM ---------- */
.audit { position: relative; overflow: clip; }
.audit-bg { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 55% 50% at 50% 0%, rgba(200, 74, 5, 0.12), transparent 70%); }
.audit-head { text-align: center; max-width: 640px; margin: 0 auto clamp(36px, 5vw, 56px); position: relative; }
.audit-head .section-label { justify-content: center; }
.audit-head .section-intro { margin: 0 auto; }
.audit-form {
  position: relative;
  max-width: 760px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px);
}
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 15px; color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 13px 15px;
  transition: border-color 0.25s, box-shadow 0.25s;
  width: 100%;
}
.field input::placeholder, .field textarea::placeholder { color: var(--mute); opacity: 0.7; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(232, 93, 20, 0.14); }
.field textarea { min-height: 110px; resize: vertical; }
.audit-submit { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 4px; }
.audit-disclaimer { font-size: 12.5px; color: var(--mute); max-width: 320px; }
.form-status { grid-column: 1 / -1; font-family: var(--mono); font-size: 13px; display: none; }
.form-status.ok { display: block; color: var(--green-ok); }
.form-status.err { display: block; color: var(--orange-hot); }
.audit-alt { text-align: center; margin-top: 22px; font-size: 14px; color: var(--mute); position: relative; }
.audit-alt a { color: var(--fg); font-weight: 600; }
/* Honeypot anti-spam */
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- 16. FOOTER ---------- */
.footer { border-top: 1px solid rgba(244, 239, 226, 0.08); padding: clamp(50px, 7vw, 80px) 0 32px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 48px; }
.footer-brand p { font-size: 14px; color: var(--mute); max-width: 320px; margin-top: 14px; }
.footer-contacts { display: grid; gap: 6px; margin-top: 18px; }
.footer-contacts a { font-family: var(--mono); font-size: 13px; color: #C9C2B2; text-decoration: none; }
.footer-contacts a:hover { color: var(--orange-hot); }
.footer-col h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: #8F8676; margin-bottom: 16px; font-weight: 500; }
.footer-col ul { list-style: none; display: grid; gap: 9px; }
.footer-col a, .footer-col span { font-size: 14px; color: #B8B0A0; text-decoration: none; }
.footer-col a:hover { color: var(--cream); }
.footer-legal { border-top: 1px solid rgba(244, 239, 226, 0.07); padding-top: 22px; display: grid; gap: 8px; }
.footer-legal p { font-size: 12px; color: #6E665A; }
.footer-legal a { color: #8F8676; text-underline-offset: 2px; }
.footer-legal a:hover { color: var(--cream); }

/* WhatsApp flottant */
.floating-wa {
  position: fixed; bottom: 20px; right: 20px; z-index: 900;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: var(--cream);
  border: 1px solid rgba(244, 239, 226, 0.18);
  font-size: 13px; font-weight: 600; text-decoration: none;
  padding: 12px 18px; border-radius: 100px;
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s var(--ease), background 0.25s;
}
.floating-wa:hover { transform: translateY(-3px); background: #25D366; color: #fff; border-color: transparent; }

/* ---------- 17. ANIMATIONS / REVEALS ---------- */
/* Les états initiaux ne s'appliquent QUE si html.anim (JS actif + motion OK) */
.anim [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.9s var(--ease); }
.anim [data-reveal].in { opacity: 1; transform: none; }
.anim [data-reveal-delay="1"].in { transition-delay: 0.08s; }
.anim [data-reveal-delay="2"].in { transition-delay: 0.16s; }
.anim [data-reveal-delay="3"].in { transition-delay: 0.24s; }

/* ---------- 18. RESPONSIVE ---------- */
@media (max-width: 1020px) {
  .pricing { grid-template-columns: repeat(2, 1fr); }
  .section-head { grid-template-columns: 1fr; align-items: start; gap: 18px; }
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stage { padding-top: 104px; min-height: auto; }
  .scroll-hint { display: none; }
  .kpi-row, .bizdash .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .jobs { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .process-aside { position: static; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .audit-form { grid-template-columns: 1fr; }
  .src { grid-template-columns: 86px 1fr 38px; }
}
@media (max-width: 520px) {
  .pricing { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .floating-wa span.wa-label { display: none; }
}

/* ---------- 19. REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
