/* ============================================================
   OUTILAB — base.css  (version originale restaurée)
   Noir profond · violet néon · cyan lumineux · bleu électrique
   Space Grotesk + Hanken Grotesk + JetBrains Mono
   ============================================================ */

:root {
  --bg:      #05060d;
  --bg-2:    #0a0c17;
  --bg-3:    #10131f;
  --surface:   rgba(255, 255, 255, 0.03);
  --surface-2: rgba(255, 255, 255, 0.055);
  --line:    rgba(255, 255, 255, 0.08);
  --line-2:  rgba(255, 255, 255, 0.14);
  --ink:   #f1f2f8;
  --muted: #a0a6bd;
  --faint: #6b7188;

  --accent:      #8e5cff;
  --accent-2:    #2bd9e8;
  --accent-3:    #3e6bff;
  --accent-soft:  rgba(142, 92, 255, 0.14);
  --accent2-soft: rgba(43, 217, 232, 0.12);
  --grad-accent: linear-gradient(100deg, var(--accent-3) 0%, var(--accent) 45%, var(--accent-2) 100%);

  --radius:    16px;
  --radius-lg: 24px;
  --motion: 1;

  --font-display: "Space Grotesk", "Helvetica Neue", sans-serif;
  --font-body:    "Hanken Grotesk", "Helvetica Neue", sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;
  --font-serif:   "Space Grotesk", sans-serif;

  --maxw: 1200px;
}

/* Directions typographiques (Tweaks) */
html[data-typo="neo"] {
  --font-display: "Hanken Grotesk", "Helvetica Neue", sans-serif;
  --font-body:    "Hanken Grotesk", "Helvetica Neue", sans-serif;
}
html[data-typo="display"] {
  --font-display: "Unbounded", "Space Grotesk", sans-serif;
}
html[data-typo="display"] .h-xl { font-size: clamp(36px, 4.6vw, 64px); letter-spacing: -0.01em; }
html[data-typo="neo"] .h-xl { letter-spacing: -0.045em; }

/* ---- Thème clair ---- */
html[data-theme="light"] {
  --bg:        #F7F5F1;
  --bg-2:      #EDE9E1;
  --bg-3:      #FFFFFF;
  --surface:   rgba(13,12,10,0.035);
  --surface-2: rgba(13,12,10,0.065);
  --line:      rgba(13,12,10,0.09);
  --line-2:    rgba(13,12,10,0.18);
  --ink:   #0E0D0B;
  --muted: #504B45;
  --faint: #9A928A;
}
html[data-theme="light"] .nav.scrolled {
  background: rgba(247,245,241,0.82);
  border-bottom-color: var(--line);
}
html[data-theme="light"] .mockup {
  background: linear-gradient(160deg,#fff,#f3f1f8);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,0.18), 0 0 80px -30px rgba(142,92,255,0.25);
}
html[data-theme="light"] .hero-badge {
  background: rgba(255,255,255,0.8);
}
html[data-theme="light"] .svc-card {
  background: linear-gradient(170deg,#fff,#f8f6fc);
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}
html[data-theme="light"] .folio-card {
  background: #fff;
  box-shadow: 0 2px 20px rgba(0,0,0,0.07);
}
html[data-theme="light"] .review-card {
  background: linear-gradient(170deg,#fff,#f8f6fc);
}
html[data-theme="light"] .niche-card {
  background: #fff;
}
html[data-theme="light"] .step-body {
  background: linear-gradient(170deg,#fff,#f8f7fc);
}
html[data-theme="light"] .quiz-shell {
  background: linear-gradient(165deg,#fff,#f5f3fb);
  box-shadow: 0 50px 120px -40px rgba(0,0,0,0.15), 0 0 80px -40px rgba(142,92,255,0.3);
}
html[data-theme="light"] .q-card {
  background: rgba(255,255,255,0.8);
}
html[data-theme="light"] .q-chip {
  background: rgba(255,255,255,0.8);
}
html[data-theme="light"] .footer {
  background: #EDE9E1;
  border-top-color: var(--line);
}
html[data-theme="light"] .footer-cta::before {
  background: radial-gradient(ellipse, rgba(142,92,255,0.12), transparent 70%);
}

/* ---- Brand inline (Outi·Lab dans les textes) ---- */
.brand-inline { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; }
.brand-inline em { font-style: normal; color: var(--accent-2); }

/* ---- Bouton thème (pill switch soleil / lune) ---- */
.theme-toggle {
  width: 60px; height: 28px;
  border-radius: 999px;
  border: 1.5px solid var(--line-2);
  background: var(--surface-2);
  padding: 0;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  display: inline-flex; align-items: center;
  transition: background calc(0.25s * var(--motion)) ease, border-color calc(0.25s * var(--motion)) ease;
}
.theme-toggle .t-ico {
  position: absolute; top: 0; bottom: 0; width: 28px;
  display: grid; place-items: center;
  font-size: 12.5px; line-height: 1;
  z-index: 1; pointer-events: none;
  transition: opacity calc(0.25s * var(--motion)) ease;
}
.theme-toggle .t-sun  { left: 3px; color: #fff; opacity: 1; font-size: 14px; text-shadow: 0 0 6px rgba(0,0,0,0.9), 0 1px 3px rgba(0,0,0,0.7); }
.theme-toggle .t-moon { right: 3px; color: #111; opacity: 1; font-size: 14px; text-shadow: 0 0 6px rgba(255,255,255,0.95), 0 1px 3px rgba(255,255,255,0.8); }
.theme-toggle { background: var(--surface-2); border-color: var(--line-2); }
html[data-theme="light"] .theme-toggle { background: rgba(180,185,210,0.35); border-color: rgba(0,0,0,0.18); }
.toggle-thumb {
  position: absolute;
  top: 2px; left: 2px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 2px 8px -1px rgba(0,0,0,0.45);
  z-index: 2;
  transform: translateX(30px);
  transition: transform calc(0.3s * var(--motion)) cubic-bezier(.2,.8,.2,1), background calc(0.25s * var(--motion)) ease;
}
html[data-theme="light"] .toggle-thumb {
  background: var(--accent);
  transform: translateX(2px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
::selection { background: rgba(142, 92, 255, 0.35); }

/* ---------- Type scale ---------- */
.h-xl { font-size: clamp(40px, 5.4vw, 76px); }
.h-lg { font-size: clamp(30px, 3.6vw, 50px); }
.h-md { font-size: clamp(22px, 2.2vw, 30px); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-2);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--accent-2); opacity: 0.7; }

.lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--muted); max-width: 60ch; }

.grad-text {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
section { position: relative; }
.section-pad { padding: clamp(80px, 10vw, 140px) 0; }
.section-head { display: flex; flex-direction: column; gap: 18px; max-width: 760px; margin-bottom: clamp(40px, 5vw, 72px); }
.section-num { display: none; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition: transform calc(0.25s * var(--motion)) cubic-bezier(.2,.8,.2,1),
              box-shadow  calc(0.25s * var(--motion)) ease,
              background  calc(0.25s * var(--motion)) ease,
              border-color calc(0.25s * var(--motion)) ease;
  position: relative; overflow: hidden;
}
.btn-primary {
  color: #fff;
  background: var(--grad-accent);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08) inset, 0 10px 40px -12px rgba(142,92,255,0.55);
}
.btn-primary::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform calc(0.7s * var(--motion)) ease;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.12) inset, 0 18px 56px -12px rgba(142,92,255,0.75);
}
.btn-primary:hover::after { transform: translateX(120%); }
.btn-ghost {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line-2);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: var(--surface-2);
  border-color: rgba(255,255,255,0.24);
  transform: translateY(-2px);
}
.btn .arr { display: inline-block; transition: transform calc(0.25s * var(--motion)) ease; }
.btn:hover .arr { transform: translateX(4px); }

/* ---------- Nav ---------- */
.ticker-bar { display: none; }
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background calc(0.35s * var(--motion)) ease, border-color calc(0.35s * var(--motion)) ease, backdrop-filter calc(0.35s * var(--motion)) ease;
}
.nav.scrolled {
  background: rgba(5,6,13,0.72);
  backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 16px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand {
  display: inline-flex; align-items: center; gap: 0;
  font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -0.02em;
}
.brand-mark {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: conic-gradient(from 210deg, var(--accent-3), var(--accent), var(--accent-2), var(--accent-3));
  box-shadow: 0 0 24px -4px rgba(142,92,255,0.6);
  display: grid; place-items: center; position: relative;
}
.brand-mark::before {
  content: "";
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 3px solid #05060d;
  background: transparent;
}
.brand b { font-weight: 700; color: var(--ink); }
.brand em { font-style: normal; color: var(--accent-2); font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 9px 15px;
  border-radius: 999px;
  font-size: 15px; font-weight: 500; color: var(--muted);
  transition: color calc(0.2s * var(--motion)) ease, background calc(0.2s * var(--motion)) ease;
}
.nav-links a:hover { color: var(--ink); background: var(--surface-2); }
.nav-cta { padding: 11px 22px; font-size: 15px; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 150px 0 70px;
  overflow: hidden;
}
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-aura {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(900px 520px at 18% -8%, rgba(62,107,255,0.16), transparent 60%),
    radial-gradient(1000px 600px at 85% 18%, rgba(142,92,255,0.17), transparent 62%),
    radial-gradient(700px 500px at 60% 110%, rgba(43,217,232,0.10), transparent 65%);
}
.hero-grid-lines {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 75%);
  display: block;
}
.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,0.95fr);
  gap: clamp(36px,5vw,72px); align-items: center;
}
.hero-copy { display: flex; flex-direction: column; gap: 26px; }
.hero-badge {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  backdrop-filter: blur(10px);
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.08em; color: var(--muted);
}
.hero-badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 12px 2px rgba(43,217,232,0.7);
  animation: pulse calc(2.4s * var(--motion,1)) ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:.35; } }
.hero h1 { max-width: 14ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 4px; }
.hero-stats {
  display: flex; flex-wrap: wrap;
  gap: clamp(24px,3.4vw,52px);
  margin-top: 28px; padding-top: 28px;
  border-top: 1px solid var(--line);
}
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-num { font-family: var(--font-display); font-size: clamp(26px,2.4vw,34px); font-weight: 700; letter-spacing: -0.02em; }
.stat-num em { font-style: normal; color: var(--accent-2); }
.stat-label { font-size: 13.5px; color: var(--faint); }
.hero-trust { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 10px; }
.hero-trust .t-label { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.trust-chip {
  font-family: var(--font-mono); font-size: 12.5px; color: var(--muted);
  padding: 6px 13px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
}

/* ---------- Mockup hero ---------- */
.hero-visual { position: relative; perspective: 1400px; min-height: 480px; }
.hero-visual::before { display: none; }
.mockup {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-2);
  background: linear-gradient(160deg, rgba(22,25,41,0.9), rgba(10,12,23,0.92));
  backdrop-filter: blur(14px);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04) inset,
    0 40px 90px -30px rgba(0,0,0,0.8),
    0 0 80px -30px rgba(142,92,255,0.45);
  transform: rotateY(-9deg) rotateX(4deg);
  transform-style: preserve-3d;
  transition: transform calc(0.5s * var(--motion)) cubic-bezier(.2,.8,.2,1);
  overflow: hidden;
}
.hero-visual:hover .mockup { transform: rotateY(-4deg) rotateX(2deg); }
.mockup-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 18px; border-bottom: 1px solid var(--line);
}
.mockup-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.14); }
.mockup-bar i:first-child { background: rgba(255,95,87,0.7); }
.mockup-bar i:nth-child(2) { background: rgba(254,188,46,0.7); }
.mockup-bar i:nth-child(3) { background: rgba(40,200,64,0.7); }
.mockup-url {
  margin-left: 10px; flex: 1;
  font-family: var(--font-mono); font-size: 11.5px; color: var(--faint);
  background: rgba(255,255,255,0.04); border: 1px solid var(--line);
  border-radius: 8px; padding: 5px 12px;
}
.mockup-body { display: grid; grid-template-columns: 64px 1fr; min-height: 360px; }
.mockup-side { border-right: 1px solid var(--line); padding: 16px 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.mockup-side i { width: 30px; height: 30px; border-radius: 9px; background: rgba(255,255,255,0.05); border: 1px solid var(--line); }
.mockup-side i.on { background: var(--accent-soft); border-color: rgba(142,92,255,0.5); box-shadow: 0 0 16px -4px rgba(142,92,255,0.6); }
.mockup-main { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.mockup-kpis { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.kpi {
  border: 1px solid var(--line); border-radius: 12px;
  background: rgba(255,255,255,0.025); padding: 12px 14px;
  display: flex; flex-direction: column; gap: 4px;
}
.kpi .k-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.kpi .k-val { font-family: var(--font-display); font-size: 19px; font-weight: 700; }
.kpi .k-delta { font-family: var(--font-mono); font-size: 10.5px; color: #3ddc97; }
.mockup-chart {
  flex: 1; border: 1px solid var(--line); border-radius: 12px;
  background: rgba(255,255,255,0.02); padding: 16px;
  display: flex; align-items: flex-end; gap: 8px; min-height: 130px;
}
.mockup-chart b {
  flex: 1; border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, rgba(142,92,255,0.85), rgba(62,107,255,0.25));
  height: calc(var(--h) * 1%); min-height: 8px;
  transform-origin: bottom;
  animation: barUp calc(1s * var(--motion,1)) cubic-bezier(.2,.8,.2,1) backwards;
  animation-delay: calc(var(--i) * 70ms * var(--motion,1));
}
.mockup-chart b.hot { background: linear-gradient(180deg, rgba(43,217,232,0.9), rgba(43,217,232,0.2)); }
@keyframes barUp { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.mockup-rows { display: flex; flex-direction: column; gap: 8px; }
.mockup-rows i { height: 9px; border-radius: 4px; background: rgba(255,255,255,0.06); }
.mockup-rows i:nth-child(1) { width: 78%; }
.mockup-rows i:nth-child(2) { width: 56%; }

/* Float cards */
.float-card {
  position: absolute; z-index: 3;
  border-radius: 14px; border: 1px solid var(--line-2);
  background: rgba(16,19,33,0.78); backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.7), 0 0 40px -18px rgba(43,217,232,0.5);
  padding: 13px 16px; display: flex; align-items: center; gap: 12px;
  animation: floaty calc(6s * var(--motion,1)) ease-in-out infinite;
}
.float-card .fc-icon {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center; flex-shrink: 0;
}
.fc-icon.violet { background: var(--accent-soft); }
.fc-icon.cyan   { background: var(--accent2-soft); }
.fc-icon i { width: 12px; height: 12px; border-radius: 50%; }
.fc-icon.violet i { background: var(--accent); box-shadow: 0 0 12px 2px rgba(142,92,255,0.6); }
.fc-icon.cyan   i { background: var(--accent-2); box-shadow: 0 0 12px 2px rgba(43,217,232,0.6); }
.float-card .fc-icon::before { display: none; }
.float-card .fc-title { font-size: 13.5px; font-weight: 600; line-height: 1.25; }
.float-card .fc-sub   { font-family: var(--font-mono); font-size: 11px; color: var(--faint); }
.float-1 { top: 6%; right: -4%; animation-delay: 0s; }
.float-2 { bottom: 9%; left: -7%; animation-delay: -3s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ---------- Reveal on scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rv {
    opacity: 0; transform: translateY(26px);
    transition: opacity calc(0.7s * var(--motion)) ease, transform calc(0.7s * var(--motion)) cubic-bezier(.2,.8,.2,1);
    transition-delay: calc(var(--d, 0) * 1ms * var(--motion));
  }
  .rv.in-view { opacity: 1; transform: none; }
  html[data-motion="off"] .rv { opacity: 1; transform: none; transition: none; }
}
html[data-motion="off"] *, html[data-motion="off"] *::before, html[data-motion="off"] *::after {
  animation: none !important; transition: none !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { min-height: 0; margin-top: 12px; }
  .mockup { transform: none; }
  .float-1 { right: 2%; } .float-2 { left: 2%; }
  .nav-links { display: none; }
  .nav { top: 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .hero { padding-top: 120px; }
  .mockup-kpis { grid-template-columns: repeat(2,1fr); }
  .mockup-body { grid-template-columns: 1fr; }
  .mockup-side { display: none; }
}
