/* ============================================
   UMOPIA
   Design tokens + base styles
   ============================================ */

:root {
  /* Surfaces */
  --bg: #0A0A0B;
  --bg-elev: #111114;
  --bg-elev-2: #16161A;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);

  /* Text */
  --fg: #FAFAFA;
  --fg-muted: #A3A3AB;
  --fg-dim: #6B6B73;
  --fg-faint: #3D3D44;

  /* Accent: electric blue by default */
  --accent: oklch(0.72 0.16 250);
  --accent-2: oklch(0.62 0.22 280);
  --accent-soft: oklch(0.72 0.16 250 / 0.12);
  --accent-glow: oklch(0.72 0.16 250 / 0.22);

  /* Type */
  --font-display: "Geist", "Geist Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Geist", "Geist Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  --font-serif: "Instrument Serif", "Times New Roman", serif;

  /* Rhythm */
  --max-w: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
}

/* Light theme variant */
[data-theme="light"] {
  --bg: #FAFAF8;
  --bg-elev: #FFFFFF;
  --bg-elev-2: #F2F2EF;
  --line: rgba(0, 0, 0, 0.08);
  --line-strong: rgba(0, 0, 0, 0.14);
  --fg: #0A0A0B;
  --fg-muted: #4A4A52;
  --fg-dim: #76767D;
  --fg-faint: #C8C8CC;
  --accent-soft: oklch(0.72 0.16 250 / 0.10);
}

/* Accent variants */
[data-accent="purple"] {
  --accent: oklch(0.68 0.18 295);
  --accent-2: oklch(0.6 0.22 270);
  --accent-soft: oklch(0.68 0.18 295 / 0.12);
  --accent-glow: oklch(0.68 0.18 295 / 0.22);
}
[data-accent="emerald"] {
  --accent: oklch(0.74 0.15 165);
  --accent-2: oklch(0.62 0.18 195);
  --accent-soft: oklch(0.74 0.15 165 / 0.12);
  --accent-glow: oklch(0.74 0.15 165 / 0.22);
}

/* ============================================
   Reset + base
   ============================================ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  font-feature-settings: "ss01", "ss02", "cv11";
  overflow-x: hidden;
  letter-spacing: -0.005em;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; padding: 0; }
a { color: inherit; text-decoration: none; }

/* ============================================
   Layout primitives
   ============================================ */
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section {
  position: relative;
  padding: clamp(80px, 12vw, 160px) 0;
}
.section--tight { padding: clamp(60px, 8vw, 100px) 0; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-dim);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.h-display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.95;
  margin: 0;
}
.h-display .ital {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.02em;
}
.h-section {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: -0.03em;
  line-height: 1.0;
  margin: 0;
}
.h-section .ital {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
}
.muted { color: var(--fg-muted); }

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: transform .25s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
  position: relative;
  border: 1px solid transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--fg);
  color: var(--bg);
  box-shadow: 0 0 0 1px var(--fg), 0 10px 30px -10px rgba(255,255,255,0.25);
}
.btn--primary:hover {
  box-shadow: 0 0 0 1px var(--fg), 0 14px 40px -10px rgba(255,255,255,0.35);
}
.btn--ghost {
  color: var(--fg);
  border-color: var(--line-strong);
  background: transparent;
}
.btn--ghost:hover { background: rgba(255,255,255,0.04); border-color: var(--fg-muted); }
[data-theme="light"] .btn--ghost:hover { background: rgba(0,0,0,0.04); }

.btn--accent {
  background: var(--accent);
  color: #0A0A0B;
  box-shadow: 0 10px 30px -10px var(--accent-glow);
}
.btn .arrow { transition: transform .25s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ============================================
   Nav
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: backdrop-filter .3s, background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav--scrolled {
  background: color-mix(in oklab, var(--bg) 70%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: var(--line);
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.nav__brand-mark {
  width: 22px; height: 22px;
  position: relative;
}
.nav__links {
  display: flex;
  gap: 4px;
  background: color-mix(in oklab, var(--bg-elev) 60%, transparent);
  border: 1px solid var(--line);
  padding: 5px;
  border-radius: 999px;
  backdrop-filter: blur(20px);
}
.nav__links a {
  padding: 8px 16px;
  font-size: 13.5px;
  color: var(--fg-muted);
  border-radius: 999px;
  transition: color .2s, background .2s;
}
.nav__links a:hover { color: var(--fg); background: rgba(255,255,255,0.05); }
[data-theme="light"] .nav__links a:hover { background: rgba(0,0,0,0.04); }
.nav__cta { display: flex; gap: 10px; align-items: center; }
.nav__cta .btn { height: 38px; padding: 0 16px; font-size: 13.5px; }

@media (max-width: 820px) {
  .nav__links { display: none; }
}

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  padding: 180px 0 100px;
  overflow: hidden;
}
.hero__inner {
  position: relative;
  z-index: 2;
}
.hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 32px;
  padding: 0 14px 0 6px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--bg-elev) 80%, transparent);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--fg-muted);
  margin-bottom: 40px;
}
.hero__pill-tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hero__title {
  font-size: clamp(52px, 9vw, 132px);
  max-width: 14ch;
}
.hero__sub {
  max-width: 54ch;
  margin: 36px 0 0;
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--fg-muted);
  line-height: 1.5;
}
.hero__ctas {
  margin-top: 44px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Hero background art */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 1;
}
.hero__grid {
  position: absolute;
  inset: -1px;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 60% at 70% 40%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 70% 40%, black 30%, transparent 80%);
}
.hero__glow {
  position: absolute;
  right: -10%;
  top: -10%;
  width: 65%;
  aspect-ratio: 1;
  background: radial-gradient(circle at center, var(--accent-glow) 0%, transparent 60%);
  filter: blur(40px);
  opacity: 0.7;
}
.hero__glow-2 {
  position: absolute;
  left: -20%;
  bottom: -30%;
  width: 60%;
  aspect-ratio: 1;
  background: radial-gradient(circle at center, oklch(0.62 0.22 280 / 0.18) 0%, transparent 65%);
  filter: blur(40px);
}
[data-theme="light"] .hero__glow,
[data-theme="light"] .hero__glow-2 { opacity: 0.4; }

/* Floating telemetry chip in hero */
.hero__tele {
  position: absolute;
  z-index: 2;
  right: var(--gutter);
  bottom: 80px;
  width: 320px;
  background: color-mix(in oklab, var(--bg-elev) 85%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.5);
}
.hero__tele-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.hero__tele-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: oklch(0.78 0.18 145);
  box-shadow: 0 0 10px oklch(0.78 0.18 145 / 0.6);
  display: inline-block;
  margin-right: 6px;
}
.hero__tele-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 13px;
}
.hero__tele-row + .hero__tele-row { border-top: 1px solid var(--line); }
.hero__tele-row .l { color: var(--fg-muted); }
.hero__tele-row .v { font-variant-numeric: tabular-nums; font-weight: 500; }
.hero__tele-row .up { color: oklch(0.78 0.18 145); }

@media (max-width: 900px) {
  .hero__tele { display: none; }
}

/* ============================================
   Marquee (logos / trust strip)
   ============================================ */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
  overflow: hidden;
  position: relative;
}
.marquee::before, .marquee::after {
  content: "";
  position: absolute; top: 0; bottom: 0;
  width: 120px; z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(to right, var(--bg), transparent); }
.marquee::after { right: 0; background: linear-gradient(to left, var(--bg), transparent); }

.marquee__track {
  display: flex;
  gap: 80px;
  width: max-content;
  animation: scroll 50s linear infinite;
  align-items: center;
}
.marquee__item {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--fg-dim);
  white-space: nowrap;
  display: flex; align-items: center; gap: 10px;
}
.marquee__item svg { opacity: 0.7; }
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================
   Pillars (Trust / Positioning)
   ============================================ */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.pillar {
  background: var(--bg);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 240px;
  position: relative;
  transition: background .25s;
}
.pillar:hover { background: var(--bg-elev); }
.pillar__num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: 0.08em;
}
.pillar__icon {
  width: 36px; height: 36px;
  color: var(--fg);
}
.pillar__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.02em;
  margin: 0;
}
.pillar__desc {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.55;
  margin: 0;
}
@media (max-width: 900px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .pillars { grid-template-columns: 1fr; }
}

/* ============================================
   Section heading row
   ============================================ */
.sec-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 64px;
}
.sec-head__intro { max-width: 48ch; color: var(--fg-muted); font-size: 16.5px; line-height: 1.55; }
@media (max-width: 720px) {
  .sec-head { grid-template-columns: 1fr; gap: 24px; }
}

/* ============================================
   Services
   ============================================ */
.services {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.service {
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: border-color .25s, transform .35s ease;
}
.service:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.service--lg { grid-column: span 7; min-height: 440px; }
.service--md { grid-column: span 5; }
.service--full { grid-column: span 12; min-height: 280px; flex-direction: row; gap: 36px; align-items: center; }
.service__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 28px;
}
.service__num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: 0.1em;
}
.service__tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--accent-soft);
  background: var(--accent-soft);
}
.service__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 30px;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0 0 16px;
}
.service__desc {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.55;
  margin: 0;
  max-width: 42ch;
}
.service__list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 8px;
}
.service__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--fg-muted);
}
.service__list li::before {
  content: "";
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

.service__art {
  margin-top: 20px;
  flex: 1;
  display: flex;
  align-items: flex-end;
  min-height: 120px;
}
.service--full .service__art { flex: 0 0 50%; margin-top: 0; min-height: 180px; }

@media (max-width: 900px) {
  .service--lg, .service--md { grid-column: span 12; }
  .service--full { flex-direction: column; align-items: stretch; }
  .service--full .service__art { flex: 1; }
}

/* ============================================
   Results / Metrics
   ============================================ */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.metric {
  background: var(--bg);
  padding: 36px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.metric__value {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 5vw, 64px);
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.metric__suffix { font-size: 0.55em; color: var(--fg-muted); margin-left: 2px; }
.metric__label {
  font-size: 14px;
  color: var(--fg-muted);
  margin-top: 8px;
  line-height: 1.4;
}
.metric__bar {
  height: 3px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 16px;
}
.metric__bar > span {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
  transition: width 1.4s cubic-bezier(.2,.7,.2,1);
}
@media (max-width: 900px) { .metrics { grid-template-columns: repeat(2, 1fr); } }

/* Dashboard mock */
.dashboard {
  margin-top: 64px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}
.dashboard__chrome {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-elev-2);
}
.dashboard__dots { display: flex; gap: 6px; }
.dashboard__dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--line-strong);
}
.dashboard__title {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--fg-dim);
}
.dashboard__body {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1px;
  background: var(--line);
  min-height: 320px;
}
.dashboard__panel {
  background: var(--bg-elev);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.dashboard__panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.dashboard__panel-head .pulse {
  display: inline-flex; align-items: center; gap: 6px;
}
.dashboard__panel-head .pulse::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: oklch(0.78 0.18 145);
  box-shadow: 0 0 8px oklch(0.78 0.18 145 / 0.6);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Sparkline chart */
.spark {
  flex: 1;
  position: relative;
  min-height: 130px;
}
.spark svg { width: 100%; height: 100%; }
.spark__legend {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--fg-dim);
  letter-spacing: 0.06em;
}

/* Workflow nodes */
.flow {
  flex: 1;
  display: grid;
  gap: 8px;
}
.flow__node {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 12.5px;
  background: var(--bg);
  position: relative;
}
.flow__node-l { display: flex; align-items: center; gap: 10px; }
.flow__node-icon {
  width: 24px; height: 24px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
}
.flow__node-status {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--fg-dim);
  text-transform: uppercase;
}
.flow__node-status--ok { color: oklch(0.78 0.18 145); }

/* Stat row */
.stat-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat-row__big {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 38px;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.stat-row__delta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: oklch(0.78 0.18 145);
  letter-spacing: 0.04em;
}
.stat-row__label {
  font-size: 13px;
  color: var(--fg-muted);
}

@media (max-width: 900px) {
  .dashboard__body { grid-template-columns: 1fr; }
}

/* ============================================
   Process timeline
   ============================================ */
.process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.process__step {
  background: var(--bg);
  padding: 48px 32px 56px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.process__step-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.process__step-num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 56px;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--fg);
  margin-top: 8px;
}
.process__step-num .light { color: var(--fg-faint); }
.process__step-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: -0.025em;
  margin: 0;
}
.process__step-desc {
  font-size: 14.5px;
  color: var(--fg-muted);
  line-height: 1.55;
  margin: 0;
  max-width: 32ch;
}
.process__step-meta {
  margin-top: auto;
  display: flex;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.process__step-meta span strong {
  display: block;
  color: var(--fg);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.01em;
  text-transform: none;
  margin-top: 4px;
}
@media (max-width: 900px) { .process { grid-template-columns: 1fr; } }

/* ============================================
   Case study (Before / After)
   ============================================ */
.case {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-elev);
}
.case__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 28px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-elev-2);
}
.case__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 10px;
}
.case__title .sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.case__toggle {
  display: flex;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  gap: 2px;
}
.case__toggle button {
  padding: 7px 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-dim);
  border-radius: 999px;
  transition: background .2s, color .2s;
}
.case__toggle button.active {
  background: var(--fg);
  color: var(--bg);
}

.case__viewport {
  position: relative;
  height: 540px;
  overflow: hidden;
}
.case__slide {
  position: absolute;
  inset: 0;
  padding: 36px;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 28px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .45s ease, transform .45s ease;
  pointer-events: none;
}
.case__slide.active { opacity: 1; transform: translateY(0); pointer-events: auto; }
.case__copy { display: flex; flex-direction: column; gap: 18px; padding-top: 12px; }
.case__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.case__label--after { color: var(--accent); }
.case__label::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
}
.case__h {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0;
}
.case__pts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.case__pts li {
  display: flex;
  gap: 12px;
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.5;
}
.case__pts li svg { flex: 0 0 16px; margin-top: 3px; color: var(--fg-faint); }
.case__slide--after .case__pts li svg { color: var(--accent); }

/* Workflow visualization for case study */
.case__art {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  position: relative;
  overflow: hidden;
}
.case__art-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 18px;
}

/* Before: tangled tasks */
.tangle {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  position: relative;
}
.tangle__task {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
  background: var(--bg-elev-2);
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
}
.tangle__task .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: oklch(0.65 0.18 30);
  box-shadow: 0 0 8px oklch(0.65 0.18 30 / 0.5);
  flex-shrink: 0;
}
.tangle__task--queued .dot { background: oklch(0.78 0.15 80); box-shadow: 0 0 8px oklch(0.78 0.15 80 / 0.5); }
.tangle__lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* After: clean pipeline */
.pipe {
  display: grid;
  gap: 10px;
}
.pipe__row {
  display: grid;
  grid-template-columns: 110px 1fr 70px;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  background: var(--bg-elev-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
}
.pipe__row-label { font-family: var(--font-mono); color: var(--fg-dim); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; }
.pipe__row-bar {
  height: 6px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.pipe__row-bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 999px;
  animation: fill 1.2s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes fill { from { width: 0; } }
.pipe__row-val {
  font-variant-numeric: tabular-nums;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg);
}

.case__results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
}
.case__result {
  background: var(--bg-elev);
  padding: 20px 24px;
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.case__result-val {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 32px;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}
.case__result-lbl {
  font-size: 13px;
  color: var(--fg-muted);
}

@media (max-width: 900px) {
  .case__slide { grid-template-columns: 1fr; }
  .case__viewport { height: auto; min-height: 520px; }
  .case__slide { position: relative; }
  .case__slide:not(.active) { display: none; }
  .case__results { grid-template-columns: 1fr; }
}

/* ============================================
   Final CTA
   ============================================ */
.finalcta {
  position: relative;
  text-align: center;
  padding: clamp(80px, 14vw, 180px) 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
}
.finalcta__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.finalcta__bg-glow {
  position: absolute;
  left: 50%;
  top: 60%;
  transform: translate(-50%, -50%);
  width: 90%;
  aspect-ratio: 2 / 1;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 60%);
  filter: blur(40px);
}
.finalcta__inner { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; padding: 0 var(--gutter); }
.finalcta__h {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 7vw, 92px);
  letter-spacing: -0.035em;
  line-height: 0.98;
  margin: 0;
}
.finalcta__h .ital { font-family: var(--font-serif); font-weight: 400; font-style: italic; }
.finalcta__sub {
  margin: 28px auto 40px;
  max-width: 50ch;
  color: var(--fg-muted);
  font-size: 17px;
  line-height: 1.55;
}
.finalcta__row { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ============================================
   Footer
   ============================================ */
.footer {
  border-top: 1px solid var(--line);
  padding: 80px 0 40px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--line);
}
.footer__brand-row { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 20px; }
.footer__tagline {
  color: var(--fg-muted);
  font-size: 15px;
  line-height: 1.55;
  max-width: 36ch;
  margin: 18px 0 26px;
}
.footer__col-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin: 0 0 18px;
}
.footer__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer__col a { color: var(--fg-muted); font-size: 14.5px; transition: color .2s; }
.footer__col a:hover { color: var(--fg); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--fg-dim);
}
.footer__bottom-right { display: flex; gap: 22px; }
.footer__bottom a:hover { color: var(--fg); }

@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__bottom { flex-direction: column; gap: 14px; align-items: flex-start; }
}

/* ============================================
   Reveal on scroll
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

/* ============================================
   Cursor flow lines (decorative svg)
   ============================================ */
.svg-flow path {
  stroke: var(--line-strong);
  fill: none;
  stroke-width: 1;
}
.svg-flow .accent {
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
  animation: dash 14s linear infinite;
}
@keyframes dash {
  to { stroke-dashoffset: -200; }
}

[hidden] { display: none !important; }

/* ============================================
   Polices hébergées sur le site (pas d'appel à Google)
   ============================================ */
@font-face { font-family: "Geist"; src: url("fonts/geist.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/geist-mono.woff2") format("woff2"); font-weight: 400 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("fonts/instrument-serif.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("fonts/instrument-serif-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

/* ============================================
   Accueil
   ============================================ */
.hero__title { max-width: 16ch; font-size: clamp(46px, 8vw, 116px); }
.hero__pill { height: auto; min-height: 32px; padding-block: 5px; flex-wrap: wrap; max-width: 100%; }
.hero__pill-tag { white-space: nowrap; }

.hero__tele { width: 340px; box-shadow: 0 30px 80px -30px rgba(0,0,0,0.18); }
.hero__tele-row { align-items: baseline; gap: 16px; }
.hero__tele-row .l { color: var(--fg); }
.hero__tele-row .v { font-family: var(--font-mono); font-size: 10.5px; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-dim); text-align: right; white-space: nowrap; }
.btn--primary, .btn--primary:hover { box-shadow: 0 0 0 1px var(--fg), 0 10px 30px -12px rgba(0,0,0,0.3); }

.marquee { padding: 26px 0 30px; }
.marquee__label { text-align: center; font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-dim); margin: 0 0 22px; }
.sectors { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 36px; padding: 0 var(--gutter); }
.sectors span { font-family: var(--font-display); font-weight: 500; font-size: 19px; letter-spacing: -.01em; color: var(--fg-dim); }

.pillars--3 { grid-template-columns: repeat(3, 1fr); }
.pillars--3 .pillar { min-height: 300px; }
.pillar__title { font-size: 21px; line-height: 1.2; }
.pillar__fix { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--fg-muted); line-height: 1.5; }
.pillar__fix b { display: block; font-family: var(--font-mono); font-weight: 400; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.pillar__more { font-size: 13.5px; font-weight: 500; color: var(--fg); display: inline-flex; align-items: center; gap: 8px; }
a.pillar:hover .arrow { transform: translateX(3px); }
.pillar .arrow { transition: transform .25s ease; }
@media (max-width: 900px) { .pillars--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pillars--3 { grid-template-columns: 1fr; } }

.stance { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 64px; }
.stance__card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; background: var(--bg-elev); }
.stance__card--us { border-color: color-mix(in oklab, var(--accent) 45%, transparent); background: linear-gradient(160deg, var(--accent-soft), var(--bg-elev) 60%); }
.stance__who { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-dim); }
.stance__card--us .stance__who { color: var(--accent); }
.stance__h { font-family: var(--font-display); font-weight: 500; font-size: 22px; letter-spacing: -.02em; line-height: 1.2; margin: 14px 0 0; }
.stance__p { color: var(--fg-muted); font-size: 14.5px; line-height: 1.55; margin: 12px 0 0; }
@media (max-width: 900px) { .stance { grid-template-columns: 1fr; } }

.process__step-desc { max-width: 38ch; }
.process__step-meta { flex-wrap: wrap; }

.work { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.work__card { position: relative; background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; display: flex; flex-direction: column; gap: 14px; transition: border-color .25s, transform .35s ease; }
.work__card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.work__card--wide { grid-column: span 2; }
.work__sector { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-dim); }
.work__name { font-family: var(--font-display); font-weight: 500; font-size: 26px; letter-spacing: -.025em; line-height: 1.1; margin: 0; }
.work__need { color: var(--fg-muted); font-size: 14.5px; line-height: 1.55; margin: 0; }
.work__tags { list-style: none; padding: 10px 0 0; margin: auto 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.work__tags li { font-size: 12.5px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--fg); }
.work__tags li.k { border-color: var(--accent-soft); background: var(--accent-soft); color: var(--accent); }
.work__foot { display: flex; justify-content: center; margin-top: 36px; }
@media (max-width: 900px) { .work { grid-template-columns: 1fr; } .work__card--wide { grid-column: auto; } }

.case__viewport { height: 460px; }
.case__art-foot { margin-top: 14px; padding: 10px 14px; border-radius: 8px; font-size: 12px; font-family: var(--font-mono); letter-spacing: .04em; display: flex; justify-content: space-between; gap: 12px; }
.case__art-foot--bad { background: oklch(0.65 0.18 30 / 0.08); border: 1px solid oklch(0.65 0.18 30 / 0.25); color: oklch(0.52 0.16 30); }
.case__art-foot--ok { background: oklch(0.78 0.18 145 / 0.10); border: 1px solid oklch(0.62 0.13 145 / 0.30); color: oklch(0.48 0.13 145); }
.case__ok { color: oklch(0.5 0.13 145); }
.case__result-val { font-size: 26px; }
@media (max-width: 560px) { .case__head { flex-direction: column; align-items: flex-start; gap: 12px; } .case__slide { padding: 22px; } }

/* ============================================
   Navigation : menu mobile
   ============================================ */
.nav__links a[aria-current="page"] { color: var(--fg); background: rgba(0,0,0,0.05); }
.nav__cta .btn--ghost { display: none; }
@media (min-width: 1320px) { .nav__cta .btn--ghost { display: inline-flex; } }
.nav__burger { display: none; width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--line-strong); align-items: center; justify-content: center; }
.nav__burger span, .nav__burger span::before, .nav__burger span::after { display: block; width: 14px; height: 1.4px; background: var(--fg); position: relative; transition: transform .25s, background .25s; }
.nav__burger span::before, .nav__burger span::after { content: ""; position: absolute; left: 0; }
.nav__burger span::before { top: -5px; }
.nav__burger span::after { top: 5px; }
.nav--open .nav__burger span { background: transparent; }
.nav--open .nav__burger span::before { transform: translateY(5px) rotate(45deg); }
.nav--open .nav__burger span::after { transform: translateY(-5px) rotate(-45deg); }
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__burger { display: inline-flex; }
  .nav--open { background: var(--bg); border-bottom-color: var(--line); }
  .nav--open .nav__links { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; border-radius: 0; border: 0; border-bottom: 1px solid var(--line); background: var(--bg); padding: 12px var(--gutter) 20px; gap: 2px; }
  .nav--open .nav__links a { padding: 12px 4px; font-size: 16px; border-radius: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 480px) { .nav__cta .btn--primary .lg { display: none; } }

/* ============================================
   Pages intérieures
   ============================================ */
.page-hero { position: relative; padding: 160px 0 72px; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero .hero__grid { mask-image: radial-gradient(ellipse 70% 80% at 80% 20%, black 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 80% at 80% 20%, black 20%, transparent 75%); }
.page-hero__inner { position: relative; z-index: 2; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-dim); margin-bottom: 28px; }
.crumbs a:hover { color: var(--fg); }
.page-hero h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(40px, 6.4vw, 88px); letter-spacing: -.035em; line-height: .98; margin: 0; max-width: 18ch; }
.page-hero h1 .ital { font-family: var(--font-serif); font-weight: 400; font-style: italic; }
.page-hero__lead { max-width: 60ch; margin: 28px 0 0; font-size: clamp(17px, 1.5vw, 19px); color: var(--fg-muted); line-height: 1.55; }
.page-hero .hero__ctas { margin-top: 36px; }

.split { display: grid; grid-template-columns: 1fr 1.5fr; gap: 64px; align-items: start; }
.split__aside { position: sticky; top: 110px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 28px; } .split__aside { position: static; } }

.h-sub { font-family: var(--font-display); font-weight: 500; font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -.03em; line-height: 1.05; margin: 16px 0 0; }
.h-sub .ital { font-family: var(--font-serif); font-weight: 400; font-style: italic; }
.prose { color: var(--fg-muted); font-size: 16.5px; line-height: 1.65; max-width: 68ch; }
.prose p { margin: 0 0 16px; }
.prose h2 { font-family: var(--font-display); font-weight: 500; color: var(--fg); font-size: 24px; letter-spacing: -.02em; margin: 44px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 20px; margin: 0 0 16px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--fg); font-weight: 500; }

.signs { list-style: none; padding: 0; margin: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.signs li { background: var(--bg-elev); padding: 20px 24px; display: flex; gap: 14px; font-size: 15.5px; line-height: 1.5; }
.signs li svg { flex: 0 0 16px; margin-top: 4px; color: oklch(0.6 0.16 30); }

.fixes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.fix { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.fix__n { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; color: var(--accent); }
.fix h3 { font-family: var(--font-display); font-weight: 500; font-size: 21px; letter-spacing: -.02em; line-height: 1.2; margin: 12px 0 10px; }
.fix p { color: var(--fg-muted); font-size: 14.5px; line-height: 1.55; margin: 0; }
@media (max-width: 720px) { .fixes { grid-template-columns: 1fr; } }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; font-family: var(--font-display); font-weight: 500; font-size: 18.5px; letter-spacing: -.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-family: var(--font-mono); font-size: 20px; color: var(--fg-dim); transition: transform .25s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 22px; color: var(--fg-muted); font-size: 15.5px; line-height: 1.6; max-width: 70ch; }

.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related a { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: var(--bg-elev); display: flex; flex-direction: column; gap: 10px; transition: border-color .25s, transform .3s; }
.related a:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.related b { font-family: var(--font-display); font-weight: 500; font-size: 17px; letter-spacing: -.01em; line-height: 1.25; }
.related span { font-size: 13.5px; color: var(--fg-muted); line-height: 1.5; }
@media (max-width: 900px) { .related { grid-template-columns: 1fr; } }

.band { background: var(--bg-elev-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Réalisations détaillées */
.cases { display: grid; gap: 20px; }
.casecard { display: grid; grid-template-columns: 1fr 1.3fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-elev); overflow: hidden; scroll-margin-top: 100px; }
.casecard__id { padding: 34px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; background: var(--bg-elev-2); }
.casecard__body { padding: 34px; display: grid; gap: 22px; }
.casecard__lbl { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-dim); margin: 0 0 8px; }
.casecard__body p { margin: 0; color: var(--fg-muted); font-size: 15px; line-height: 1.6; }
.casecard__body ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.casecard__body li { display: flex; gap: 10px; font-size: 15px; line-height: 1.5; }
.casecard__body li svg { flex: 0 0 16px; margin-top: 3px; color: var(--accent); }
.casecard__links { display: flex; flex-wrap: wrap; gap: 8px; }
.casecard__links a { font-size: 13px; color: var(--fg); border-bottom: 1px solid var(--line-strong); }
.casecard__links a:hover { border-color: var(--fg); }
@media (max-width: 820px) { .casecard { grid-template-columns: 1fr; } .casecard__id { border-right: 0; border-bottom: 1px solid var(--line); } }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 13.5px; color: var(--fg-muted); transition: background .2s, color .2s, border-color .2s; }
.filters button[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* À propos */
.timeline { display: grid; gap: 0; border-left: 1px solid var(--line-strong); margin-left: 6px; }
.timeline__step { position: relative; padding: 0 0 40px 34px; }
.timeline__step:last-child { padding-bottom: 0; }
.timeline__step::before { content: ""; position: absolute; left: -6px; top: 6px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--fg-dim); }
.timeline__step--now::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 12px var(--accent-glow); }
.timeline__k { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-dim); }
.timeline__step--now .timeline__k { color: var(--accent); }
.timeline__step h3 { font-family: var(--font-display); font-weight: 500; font-size: 24px; letter-spacing: -.02em; margin: 8px 0 8px; }
.timeline__step p { margin: 0; color: var(--fg-muted); font-size: 15.5px; line-height: 1.6; max-width: 60ch; }

.founder { display: grid; grid-template-columns: 220px 1fr; gap: 36px; align-items: center; }
.founder__photo { aspect-ratio: 4 / 5; max-width: 100%; border-radius: var(--radius-lg); border: 1px dashed var(--line-strong); background: var(--bg-elev-2); display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-dim); }
@media (max-width: 720px) { .founder { grid-template-columns: 1fr; } .founder__photo { max-width: 220px; } }

/* Contact */
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; }
.field label { font-size: 13.5px; font-weight: 500; }
.field label small { font-weight: 400; color: var(--fg-dim); }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 15px; color: var(--fg); background: var(--bg-elev); border: 1px solid var(--line-strong); border-radius: 12px; padding: 13px 14px; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.form__note { font-size: 13px; color: var(--fg-dim); line-height: 1.5; margin: 0; }
.form__note a { text-decoration: underline; }
.form__ok { display: none; padding: 16px 18px; border-radius: 12px; background: oklch(0.78 0.18 145 / 0.10); border: 1px solid oklch(0.62 0.13 145 / 0.30); color: oklch(0.42 0.12 145); font-size: 14.5px; }
.form__ok.show { display: block; }
.steps3 { display: grid; gap: 14px; counter-reset: s; }
.steps3 li { list-style: none; counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 14px; font-size: 15px; color: var(--fg-muted); line-height: 1.55; }
.steps3 li::before { content: counter(s); width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-strong); display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 12px; color: var(--fg); }
.steps3 li b { display: block; color: var(--fg); font-weight: 500; }
.steps3 { padding: 0; margin: 0; }
.contact-card { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-elev); padding: 30px; display: grid; gap: 26px; }

/* À compléter avant mise en ligne */
.todo { background: oklch(0.93 0.1 95); color: #3a2f00; padding: 1px 6px; border-radius: 4px; font-family: var(--font-mono); font-size: .88em; }

/* 404 */
.nf { min-height: 80vh; display: flex; align-items: center; }

@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .marquee__track { animation: none; } html { scroll-behavior: auto; } }

/* Corrections mobile */
.split--contact { grid-template-columns: 1.5fr 1fr; }
@media (max-width: 900px) { .split--contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; gap: 36px; }
  .tangle { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tangle__task { min-width: 0; }
  .tangle__task span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .pipe__row { grid-template-columns: 80px minmax(0, 1fr) 64px; }
  .contact-card { padding: 22px; }
  .h-sub { overflow-wrap: anywhere; }
}

/* ============================================
   Formulaire en étapes
   ============================================ */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.page-hero--compact { padding-bottom: 48px; }
.wiz { position: relative; background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 40px 90px -50px rgba(10, 10, 30, 0.25); overflow: hidden; }
.wiz__form { padding: 34px 38px 30px; display: flex; flex-direction: column; min-height: 600px; }
.wiz__top { margin-bottom: 34px; }
.wiz__meta { display: flex; justify-content: space-between; gap: 12px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-dim); margin-bottom: 12px; }
.wiz__meta span:first-child { color: var(--fg); }
.wiz__bar { height: 6px; border-radius: 999px; background: var(--bg-elev-2); overflow: hidden; }
.wiz__bar span { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); box-shadow: 0 0 14px var(--accent-glow); transition: width .55s cubic-bezier(.2,.7,.2,1); }

.wiz__stage { flex: 1; position: relative; }
.wiz__step { border: 0; margin: 0; padding: 0; min-width: 0; display: none; }
.wiz__step.is-active { display: block; animation: wizIn .45s cubic-bezier(.2,.7,.2,1) both; }
.wiz__step.is-back { animation-name: wizBack; }
@keyframes wizIn { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes wizBack { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
.wiz__q { font-family: var(--font-display); font-weight: 500; font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -.025em; line-height: 1.15; margin: 0; padding: 0; outline: none; }
.wiz__hint { margin: 10px 0 26px; color: var(--fg-muted); font-size: 15px; line-height: 1.5; }

.wiz__opts { display: grid; gap: 10px; }
.wiz__opts--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 620px) { .wiz__opts--2 { grid-template-columns: 1fr; } }
.opt { position: relative; display: grid; grid-template-columns: 30px 1fr 20px; align-items: center; gap: 14px; padding: 15px 16px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--bg); cursor: pointer; transition: border-color .2s, background .2s, transform .2s, box-shadow .2s; }
.opt:hover { border-color: var(--fg-dim); transform: translateY(-1px); box-shadow: 0 10px 24px -18px rgba(0,0,0,.35); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt__k { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line-strong); display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 12px; color: var(--fg-dim); transition: all .2s; }
.opt__t { display: grid; gap: 2px; min-width: 0; }
.opt__t b { font-weight: 500; font-size: 15px; letter-spacing: -.01em; }
.opt__t small { font-size: 12.5px; color: var(--fg-dim); line-height: 1.4; }
.opt__c { width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line-strong); display: flex; align-items: center; justify-content: center; color: #fff; transition: all .2s; }
.opt__c svg { width: 12px; height: 12px; opacity: 0; transform: scale(.5); transition: all .2s; }
.opt:has(input:focus-visible) { box-shadow: 0 0 0 4px var(--accent-soft); border-color: var(--accent); }
.opt:has(input:checked) { border-color: var(--accent); background: linear-gradient(135deg, var(--accent-soft), var(--bg) 70%); }
.opt:has(input:checked) .opt__k { background: var(--accent); border-color: var(--accent); color: #fff; }
.opt:has(input:checked) .opt__c { background: var(--accent); border-color: var(--accent); }
.opt:has(input:checked) .opt__c svg { opacity: 1; transform: none; }
.opt.pulse { animation: optPulse .35s ease; }
@keyframes optPulse { 50% { transform: scale(.985); } }

.wiz textarea { min-height: 170px; }
.wiz__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.wiz__chips button { font-size: 13px; padding: 7px 13px; border-radius: 999px; border: 1px dashed var(--line-strong); color: var(--fg-muted); transition: all .2s; }
.wiz__chips button:hover { border-style: solid; color: var(--fg); border-color: var(--fg-dim); }
.wiz .form__row { margin-bottom: 16px; }
.wiz .field + .consent, .wiz .form__row + .field { margin-top: 0; }
.consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; font-size: 13.5px; color: var(--fg-muted); line-height: 1.5; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--accent); flex-shrink: 0; }
.consent a { color: var(--fg); text-decoration: underline; text-underline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.wiz__error { margin: 18px 0 0; padding: 12px 14px; border-radius: 12px; font-size: 14px; background: oklch(0.65 0.18 30 / 0.08); border: 1px solid oklch(0.65 0.18 30 / 0.25); color: oklch(0.45 0.15 30); }
.wiz__error a { text-decoration: underline; }
.wiz__nav { display: flex; align-items: center; gap: 12px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.wiz__next, .wiz__submit { margin-left: auto; }
.wiz__next[disabled] { opacity: .35; pointer-events: none; }
.wiz__submit.is-loading { opacity: .7; pointer-events: none; }
.wiz__kbd { font-size: 12.5px; color: var(--fg-dim); }
.wiz__kbd kbd { font-family: var(--font-mono); font-size: 11px; padding: 1px 6px; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 5px; background: var(--bg); color: var(--fg-muted); }
@media (max-width: 720px) { .wiz__kbd { display: none; } .wiz__form { padding: 24px 20px; min-height: 0; } }

.wiz__done { padding: 48px 38px; outline: none; animation: wizIn .5s cubic-bezier(.2,.7,.2,1) both; }
.wiz__done-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; margin-bottom: 26px; box-shadow: 0 12px 34px -10px var(--accent-glow); }
.wiz__done-icon svg { width: 26px; height: 26px; }
.wiz__recap { display: grid; grid-template-columns: max-content 1fr; gap: 10px 22px; margin: 0 0 30px; padding: 20px 22px; border-radius: 14px; background: var(--bg-elev-2); font-size: 14.5px; }
.wiz__recap dt { color: var(--fg-dim); }
.wiz__recap dd { margin: 0; }
@media (max-width: 560px) { .wiz__recap { grid-template-columns: 1fr; gap: 2px; } .wiz__recap dd { margin-bottom: 10px; } .wiz__done { padding: 32px 20px; } }
@media (max-width: 620px) {
  .opt { grid-template-columns: 1fr 20px; padding: 12px 14px; gap: 10px; }
  .opt__k, .opt__t small { display: none; }
  .wiz__hint { margin-bottom: 18px; }
  .wiz__top { margin-bottom: 24px; }
  .wiz__nav { position: sticky; bottom: 0; background: var(--bg-elev); margin-inline: -20px; padding: 14px 20px; }
}

/* ============================================
   Outils gratuits
   ============================================ */
:root { --ok: oklch(0.56 0.13 150); --warn: oklch(0.68 0.15 70); --bad: oklch(0.58 0.19 28); --ok-soft: oklch(0.56 0.13 150 / 0.10); --warn-soft: oklch(0.72 0.15 75 / 0.14); --bad-soft: oklch(0.58 0.19 28 / 0.10); }
.tool-hero { padding-bottom: 56px; }
.tool-form { margin-top: 36px; display: flex; gap: 10px; max-width: 720px; padding: 8px; border-radius: 999px; background: var(--bg-elev); border: 1px solid var(--line-strong); box-shadow: 0 24px 60px -30px rgba(10,10,30,.28); transition: border-color .2s, box-shadow .2s; }
.tool-form:focus-within { border-color: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft), 0 24px 60px -30px rgba(10,10,30,.28); }
.tool-form input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 17px; padding: 0 18px; color: var(--fg); outline: none; }
.tool-form .btn { height: 52px; padding: 0 26px; }
.tool-form .btn.is-loading { opacity: .6; }
.tool-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 16px; font-size: 13.5px; color: var(--fg-dim); }
.tool-meta span::before { content: "\2713  "; color: var(--ok); }
.tool-examples { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; font-size: 13px; color: var(--fg-dim); }
.tool-examples button { font-size: 13px; padding: 5px 12px; border-radius: 999px; border: 1px dashed var(--line-strong); color: var(--fg-muted); }
.tool-examples button:hover { border-style: solid; color: var(--fg); }
@media (max-width: 560px) {
  .tool-form { flex-direction: column; border-radius: 18px; }
  .tool-form input { padding: 12px 12px; }
  .tool-form .btn { width: 100%; justify-content: center; }
}
.tool-result { scroll-margin-top: 90px; }
.tool-result:empty { display: none; }
.tool-result:not(:empty) { padding-block: 48px 8px; }

.res-loading { max-width: 560px; margin: 0 auto; text-align: center; padding: 40px 0; }
.res-loading__spin { width: 46px; height: 46px; margin: 0 auto 22px; border-radius: 50%; border: 3px solid var(--line-strong); border-top-color: var(--accent); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.res-loading__msg { font-family: var(--font-display); font-size: 20px; letter-spacing: -.01em; margin: 0 0 22px; }
.res-loading__msg.is-in { animation: resIn .4s ease both; }
.res-loading__bar { height: 4px; border-radius: 999px; background: var(--bg-elev-2); overflow: hidden; }
.res-loading__bar span { display: block; height: 100%; width: 40%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); animation: slide 1.6s ease-in-out infinite; }
@keyframes slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }

.res-error { max-width: 640px; margin: 0 auto; padding: 20px 22px; border-radius: 14px; background: var(--bad-soft); border: 1px solid color-mix(in oklab, var(--bad) 35%, transparent); }
.res-error b { display: block; margin-bottom: 4px; }
.res-error p { margin: 0; color: var(--fg-muted); }

.res { display: grid; gap: 26px; animation: resIn .5s ease both; }
@keyframes resIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.res-head { display: flex; gap: 32px; align-items: center; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-elev); }
.res-head__h { font-family: var(--font-display); font-weight: 500; font-size: clamp(26px, 3vw, 36px); letter-spacing: -.03em; line-height: 1.1; margin: 10px 0 6px; outline: none; }
.res-head__url { margin: 0; font-family: var(--font-mono); font-size: 12.5px; color: var(--fg-dim); word-break: break-all; }
.res-head__sub { margin: 10px 0 0; color: var(--fg-muted); font-size: 15px; }
@media (max-width: 620px) { .res-head { flex-direction: column; align-items: flex-start; padding: 22px; gap: 18px; } }

.res-gauge { position: relative; width: 132px; height: 132px; flex-shrink: 0; }
.res-gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.res-gauge__bg { fill: none; stroke: var(--bg-elev-2); stroke-width: 10; }
.res-gauge__arc { fill: none; stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset 1s cubic-bezier(.2,.7,.2,1); }
.res-gauge--ok .res-gauge__arc { stroke: var(--ok); }
.res-gauge--attention .res-gauge__arc { stroke: var(--warn); }
.res-gauge--critique .res-gauge__arc { stroke: var(--bad); }
.res-gauge__val { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.res-gauge__val b { font-family: var(--font-display); font-weight: 500; font-size: 40px; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.res-gauge__val span { font-family: var(--font-mono); font-size: 11px; color: var(--fg-dim); }

.res-counts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.res-count { font-size: 13px; padding: 5px 12px; border-radius: 999px; }
.res-count b { font-weight: 600; }
.res-count--critique { background: var(--bad-soft); color: color-mix(in oklab, var(--bad) 80%, var(--fg)); }
.res-count--attention { background: var(--warn-soft); color: color-mix(in oklab, var(--warn) 55%, var(--fg)); }
.res-count--ok { background: var(--ok-soft); color: color-mix(in oklab, var(--ok) 75%, var(--fg)); }

.res-tabs { display: inline-flex; margin-top: 16px; padding: 4px; border-radius: 999px; background: var(--bg-elev-2); border: 1px solid var(--line); }
.res-tab { padding: 8px 18px; border-radius: 999px; font-size: 13.5px; color: var(--fg-muted); }
.res-tab.is-on { background: var(--fg); color: var(--bg); }

.res-toggle { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--fg-muted); cursor: pointer; justify-self: start; }
.res-toggle input { width: 17px; height: 17px; accent-color: var(--accent); }
.res:not(.res--tout) .res-row--ok { display: none; }

.res-group { display: grid; gap: 8px; }
.res-group__h { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; font-family: var(--font-display); font-weight: 500; font-size: 21px; letter-spacing: -.02em; margin: 0 0 6px; }
.res-group__n { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-dim); font-weight: 400; }
.res-row { display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-elev); }
.res-row--critique { border-color: color-mix(in oklab, var(--bad) 30%, var(--line)); }
.res-row__body { min-width: 0; }
.res-row__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.res-row__top b { font-weight: 500; font-size: 15.5px; }
.res-row__body p { margin: 6px 0 0; color: var(--fg-muted); font-size: 14.5px; line-height: 1.55; overflow-wrap: anywhere; }
.res-row__body .res-row__fix { color: var(--fg); padding-left: 12px; border-left: 2px solid var(--accent); }
.res-row__val { font-family: var(--font-mono); font-size: 12px; color: var(--fg-dim); white-space: nowrap; }
.res-gain { font-family: var(--font-mono); font-size: 12px; white-space: nowrap; padding: 3px 9px; border-radius: 999px; background: var(--warn-soft); color: color-mix(in oklab, var(--warn) 55%, var(--fg)); }
.res-ico { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: #fff; flex-shrink: 0; }
.res-ico--ok { background: var(--ok); }
.res-ico--attention { background: var(--warn); }
.res-ico--critique { background: var(--bad); }
.res-ico--info { background: var(--fg-dim); font-family: var(--font-serif); font-style: italic; font-weight: 400; }
.res-pill { flex-shrink: 0; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.res-pill--ok { background: var(--ok-soft); color: color-mix(in oklab, var(--ok) 75%, var(--fg)); }
.res-pill--attention { background: var(--warn-soft); color: color-mix(in oklab, var(--warn) 55%, var(--fg)); }
.res-pill--critique { background: var(--bad-soft); color: color-mix(in oklab, var(--bad) 80%, var(--fg)); }
.res-pill--info { background: var(--bg-elev-2); color: var(--fg-dim); }
@media (max-width: 560px) { .res-row__top { flex-direction: column; gap: 6px; } .res-row__val, .res-gain { white-space: normal; } }

.res-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.res-metric { padding: 18px; border-radius: 14px; background: var(--bg-elev); border: 1px solid var(--line); border-top: 3px solid var(--fg-faint); display: grid; gap: 6px; align-content: start; }
.res-metric--ok { border-top-color: var(--ok); }
.res-metric--attention { border-top-color: var(--warn); }
.res-metric--critique { border-top-color: var(--bad); }
.res-metric__nom { font-size: 13px; color: var(--fg-muted); }
.res-metric__val { font-family: var(--font-display); font-weight: 500; font-size: 30px; letter-spacing: -.03em; }
.res-metric p { margin: 0; font-size: 13px; color: var(--fg-dim); line-height: 1.45; }
.res-metric .res-pill { justify-self: start; }
.res-empty { margin: 0; color: var(--fg-dim); font-size: 14.5px; }

.res-verdict { display: grid; grid-template-columns: 64px 1fr; gap: 24px; align-items: start; padding: 30px; border-radius: var(--radius-lg); border: 1px solid var(--line); }
.res-verdict--critique { background: linear-gradient(135deg, var(--bad-soft), var(--bg-elev) 70%); border-color: color-mix(in oklab, var(--bad) 30%, var(--line)); }
.res-verdict--attention { background: linear-gradient(135deg, var(--warn-soft), var(--bg-elev) 70%); }
.res-verdict--ok { background: linear-gradient(135deg, var(--ok-soft), var(--bg-elev) 70%); }
.res-verdict__ico { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 700; color: #fff; }
.res-verdict--critique .res-verdict__ico { background: var(--bad); }
.res-verdict--attention .res-verdict__ico { background: var(--warn); }
.res-verdict--ok .res-verdict__ico { background: var(--ok); }
@media (max-width: 560px) { .res-verdict { grid-template-columns: 1fr; padding: 22px; } }

.res-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 720px) { .res-cards { grid-template-columns: 1fr; } }
.res-card { padding: 22px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-elev); display: grid; gap: 12px; align-content: start; min-width: 0; }
.res-card h4 { margin: 0 0 2px; font-family: var(--font-mono); font-weight: 400; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-dim); }
.res-li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; }
.res-li div { display: grid; gap: 2px; min-width: 0; }
.res-li b { font-weight: 500; font-size: 14.5px; }
.res-li span, .res-li a { font-size: 13.5px; color: var(--fg-muted); overflow-wrap: anywhere; }
.res-li a { text-decoration: underline; text-underline-offset: 2px; }

.res-note { margin: 0; padding: 14px 18px; border-radius: 12px; background: var(--bg-elev-2); color: var(--fg-muted); font-size: 13.5px; line-height: 1.55; }
.res-cta { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 30px; border-radius: var(--radius-lg); background: var(--fg); color: var(--bg); }
.res-cta h3 { margin: 0 0 6px; font-family: var(--font-display); font-weight: 500; font-size: 24px; letter-spacing: -.02em; }
.res-cta p { margin: 0; color: color-mix(in oklab, var(--bg) 72%, var(--fg)); font-size: 15px; max-width: 56ch; }
.res-cta .btn--primary, .res-cta .btn--primary:hover { background: var(--bg); color: var(--fg); box-shadow: none; flex-shrink: 0; }
@media (max-width: 720px) { .res-cta { flex-direction: column; align-items: flex-start; padding: 24px; } }

.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.check { padding: 22px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-elev); }
.check h3 { margin: 0 0 10px; font-family: var(--font-display); font-weight: 500; font-size: 18px; letter-spacing: -.01em; }
.check ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.check li { font-size: 14px; color: var(--fg-muted); padding-left: 16px; position: relative; }
.check li::before { content: ""; position: absolute; left: 0; top: .6em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

.tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tool-card { display: flex; flex-direction: column; gap: 12px; padding: 30px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--bg-elev); transition: border-color .25s, transform .35s; }
.tool-card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.tool-card__ico { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent); }
.tool-card h3 { margin: 6px 0 0; font-family: var(--font-display); font-weight: 500; font-size: 24px; letter-spacing: -.02em; }
.tool-card p { margin: 0; color: var(--fg-muted); font-size: 15px; line-height: 1.55; }
.tool-card .pillar__more { margin-top: auto; padding-top: 10px; }
@media (max-width: 900px) { .tools-grid { grid-template-columns: 1fr; } }

.res, .res-group, .res-card { grid-template-columns: minmax(0, 1fr); }
.res-head__txt { min-width: 0; }

/* ============================================
   Page liste des outils
   ============================================ */
.hub-answer { padding: 30px 34px; border-radius: var(--radius-lg); border: 1px solid var(--line); border-left: 4px solid var(--accent); background: var(--bg-elev); }
.hub-answer .eyebrow { margin: 0 0 12px; }
.hub-answer__txt { margin: 0; font-size: clamp(17px, 1.6vw, 19px); line-height: 1.6; color: var(--fg-muted); max-width: 80ch; }
.hub-answer__txt strong { color: var(--fg); font-weight: 500; }
.hub-answer__maj { margin: 14px 0 0; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-dim); }
.hub-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.hub-toc a { font-size: 13.5px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--fg-muted); transition: all .2s; }
.hub-toc a:hover { color: var(--fg); border-color: var(--fg-dim); }
section[id], article[id], .hub-term[id] { scroll-margin-top: 96px; }

.hub-tools { display: grid; gap: 16px; }
.hub-tool { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-elev); overflow: hidden; }
.hub-tool__id { padding: 34px; background: var(--bg-elev-2); border-right: 1px solid var(--line); display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.hub-tool__n { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-dim); margin-top: 6px; }
.hub-tool__h { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 30px; letter-spacing: -.025em; }
.hub-tool__q { margin: 0 0 12px; font-family: var(--font-serif); font-style: italic; font-size: 21px; line-height: 1.3; color: var(--fg-muted); }
.hub-tool__id .btn { margin-top: auto; }
.hub-tool__body { padding: 34px; display: grid; gap: 22px; align-content: start; }
.hub-tool__lead { margin: 0; font-size: 16px; line-height: 1.6; color: var(--fg-muted); }
.hub-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; }
.hub-list li { display: flex; gap: 10px; font-size: 14.5px; line-height: 1.45; }
.hub-list li svg { flex: 0 0 16px; margin-top: 2px; color: var(--accent); }
.hub-facts { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.hub-facts div { background: var(--bg-elev); padding: 14px 16px; }
.hub-facts dt { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-dim); margin-bottom: 4px; }
.hub-facts dd { margin: 0; font-size: 13.5px; line-height: 1.45; }
@media (max-width: 900px) {
  .hub-tool { grid-template-columns: minmax(0, 1fr); }
  .hub-tool__id { border-right: 0; border-bottom: 1px solid var(--line); }
  .hub-tool__id .btn { margin-top: 4px; }
}
@media (max-width: 620px) {
  .hub-tool__id, .hub-tool__body { padding: 24px; }
  .hub-list, .hub-facts { grid-template-columns: minmax(0, 1fr); }
}

.hub-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-elev); }
.hub-table-wrap:focus-visible { outline: 3px solid var(--accent-soft); }
.hub-table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 14.5px; }
.hub-table th, .hub-table td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.5; }
.hub-table thead th { font-family: var(--font-mono); font-weight: 400; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-dim); background: var(--bg-elev-2); }
.hub-table tbody tr:last-child th, .hub-table tbody tr:last-child td { border-bottom: 0; }
.hub-table tbody th { font-weight: 500; white-space: nowrap; }
.hub-table tbody th a { text-decoration: underline; text-underline-offset: 3px; }
.hub-table td { color: var(--fg-muted); }

.hub-sits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.hub-sit { display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-elev); transition: border-color .25s, transform .3s; }
.hub-sit:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.hub-sit b { font-family: var(--font-display); font-weight: 500; font-size: 18px; letter-spacing: -.01em; line-height: 1.25; }
.hub-sit span { font-size: 14px; color: var(--fg-muted); line-height: 1.5; }
.hub-sit em { margin-top: auto; padding-top: 8px; font-style: normal; font-size: 13.5px; font-weight: 500; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 900px) { .hub-sits { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .hub-sits { grid-template-columns: minmax(0, 1fr); } }

.hub-gloss { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.hub-term { background: var(--bg-elev); padding: 20px 24px; }
.hub-term dt { font-family: var(--font-display); font-weight: 500; font-size: 17px; margin-bottom: 6px; }
.hub-term dd { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--fg-muted); }
@media (max-width: 720px) { .hub-gloss { grid-template-columns: minmax(0, 1fr); } }

.prose h3 { font-family: var(--font-display); font-weight: 500; color: var(--fg); font-size: 21px; letter-spacing: -.02em; margin: 32px 0 10px; }

/* ============================================
   Pied de page organisé
   ============================================ */
.ft { padding: 72px 0 32px; background: var(--bg-elev); }
.ft-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 3fr); gap: 56px; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.ft-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.ft-logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: -.01em; }
.ft-tagline { margin: 0; color: var(--fg-muted); font-size: 14.5px; line-height: 1.6; max-width: 34ch; }
.ft-brand .btn { height: 42px; padding: 0 18px; font-size: 14px; }
.ft-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 14px; color: var(--fg-muted); }
.ft-contact a { color: var(--fg); }
.ft-contact a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ft-badges { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ft-badges li { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--fg-muted); }
.ft-badge__dot { width: 6px; height: 6px; border-radius: 50%; background: oklch(0.56 0.13 150); }

.ft-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.ft-col__t { margin: 0 0 16px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--fg); }
.ft-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ft-col a { font-size: 14px; line-height: 1.4; color: var(--fg-muted); transition: color .2s; }
.ft-col a:hover { color: var(--fg); }
.ft-col a.ft-all { color: var(--fg); font-weight: 500; }

.ft-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 24px; padding-top: 24px; font-size: 13px; color: var(--fg-dim); }
.ft-bottom__links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.ft-bottom__links a:hover { color: var(--fg); }

@media (max-width: 1100px) {
  .ft-top { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .ft-tagline { max-width: 60ch; }
}
@media (max-width: 760px) {
  .ft-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
}
@media (max-width: 480px) {
  .ft { padding-top: 56px; }
  .ft-cols { gap: 28px 16px; }
  .ft-col a { font-size: 13.5px; }
  .ft-badges li { font-size: 11.5px; }
}

/* ============================================
   Logos clients
   ============================================ */
.logo-client { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.logo-client img { display: block; width: auto; height: 100%; max-width: 100%; object-fit: contain; }
.logo-client--embleme { padding: 0; }
.logo-client--embleme img { width: 100%; height: 100%; object-fit: cover; }
.logo-client--carte.logo-client--embleme { width: 44px; height: 44px; }
.logo-client--carte.logo-client--complet { height: 44px; padding: 8px 12px; max-width: 150px; }
.logo-client--grand.logo-client--embleme { width: 64px; height: 64px; border-radius: 16px; }
.logo-client--grand.logo-client--complet { height: 64px; padding: 12px 16px; max-width: 220px; border-radius: 16px; }

.work__top { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; }
.work__top .work__sector { flex: 1 1 140px; }
.casecard__id .logo-client { margin-bottom: 4px; }

/* Bandeau : logos en gris, couleurs au survol */
.marquee__track { gap: 64px; }
.marquee__item { gap: 12px; }
.marquee__item img { height: 36px; width: auto; filter: grayscale(1); opacity: .7; transition: filter .3s, opacity .3s; }
.marquee__item--embleme img { height: 38px; border-radius: 10px; }
.marquee__item--complet img { height: 34px; }
.marquee__item:hover img { filter: none; opacity: 1; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@media (max-width: 560px) {
  .marquee__track { gap: 40px; }
  .marquee__item img { height: 28px; }
}

/* ============================================
   Vitrine des réalisations : carrousel (v2) et panneaux extensibles (v5)
   ============================================ */
/* Pièces communes */
.rv2__fleche { width: 48px; height: 48px; flex-shrink: 0; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--bg-elev); display: inline-flex; align-items: center; justify-content: center; color: var(--fg); transition: background .2s, color .2s, border-color .2s, transform .2s; }
.rv2__fleche:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.rv2__fleche:active { transform: scale(.94); }
.rv2__fleche:disabled { opacity: .35; pointer-events: none; }
.rv2__lbl { margin: 0 0 10px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-dim); }
.rv2__actions { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.rv2__actions li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 15px; line-height: 1.45; }
.rv2__actions li svg { width: 22px; height: 22px; padding: 4px; border-radius: 50%; color: #fff; background: var(--c2, var(--accent)); }

/* ── Version 2 : carrousel vedette ─────────────────────────────────────── */
.rv2 { position: relative; outline: none; }
.rv2:focus-visible .rv2__scene { box-shadow: 0 0 0 4px var(--accent-soft); }
.rv2__scene { position: relative; display: grid; border-radius: 28px; border: 1px solid var(--line); background: var(--bg-elev); overflow: hidden; box-shadow: 0 40px 90px -60px rgba(10,10,30,.45); touch-action: pan-y; }
.rv2__slide { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 520px; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility 0s linear .6s; }
.rv2__slide.is-on { opacity: 1; visibility: visible; transition: opacity .6s ease; }
.rv2__visuel { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 80% 15%, color-mix(in oklab, var(--c2) 70%, transparent), transparent 55%), radial-gradient(circle at 10% 95%, color-mix(in oklab, var(--c2) 35%, transparent), transparent 50%), linear-gradient(145deg, var(--c1), color-mix(in oklab, var(--c1) 55%, #000)); }
.rv2__visuel::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(to right, rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,255,255,.07) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse at 50% 50%, black 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 20%, transparent 75%); }
.rv2__halo { position: absolute; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.28), transparent 65%); filter: blur(10px); }
.rv2__logo { position: relative; display: flex; align-items: center; justify-content: center; background: #fff; box-shadow: 0 30px 60px -20px rgba(0,0,0,.55), 0 0 0 8px rgba(255,255,255,.12); transform: translateY(12px) scale(.94); transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.rv2__slide.is-on .rv2__logo { transform: none; }
.rv2__logo img { display: block; height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.rv2__logo--embleme { width: 168px; height: 168px; border-radius: 40px; overflow: hidden; }
.rv2__logo--embleme img { width: 100%; object-fit: cover; }
.rv2__logo--complet { height: 120px; max-width: 78%; padding: 26px 34px; border-radius: 28px; }
.rv2__logo--vide { width: 140px; height: 140px; border-radius: 36px; color: var(--c1); }
.rv2__logo--vide svg { width: 70px; height: 70px; }
.rv2__puce { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px 9px 10px; border-radius: 999px; background: rgba(255,255,255,.94); color: #0A0A0B; font-size: 13px; font-weight: 500; box-shadow: 0 16px 30px -14px rgba(0,0,0,.5); opacity: 0; transform: translateY(14px); transition: opacity .6s ease .25s, transform .8s cubic-bezier(.2,.7,.2,1) .25s; }
.rv2__puce svg { width: 18px; height: 18px; padding: 3px; border-radius: 50%; color: #fff; background: var(--c2); }
.rv2__puce--1 { left: 9%; top: 16%; }
.rv2__puce--2 { right: 8%; bottom: 20%; transition-delay: .4s; }
.rv2__slide.is-on .rv2__puce { opacity: 1; transform: none; }
.rv2__secteur { position: absolute; left: 24px; bottom: 22px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.8); }
.rv2__texte { display: flex; flex-direction: column; justify-content: center; gap: 0; padding: 48px 52px; }
.rv2__texte > * { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.rv2__slide.is-on .rv2__texte > * { opacity: 1; transform: none; }
.rv2__slide.is-on .rv2__texte > :nth-child(2) { transition-delay: .06s; }
.rv2__slide.is-on .rv2__texte > :nth-child(3) { transition-delay: .12s; }
.rv2__slide.is-on .rv2__texte > :nth-child(4), .rv2__slide.is-on .rv2__texte > :nth-child(5) { transition-delay: .18s; }
.rv2__slide.is-on .rv2__texte > :nth-child(6) { transition-delay: .24s; }
.rv2__num { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; color: var(--fg-dim); }
.rv2__nom { margin: 10px 0 14px; font-family: var(--font-display); font-weight: 500; font-size: clamp(32px, 3.4vw, 46px); line-height: 1.02; letter-spacing: -.035em; }
.rv2__besoin { margin: 0 0 26px; color: var(--fg-muted); font-size: 16.5px; line-height: 1.6; }
.rv2__bas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 30px; }
.rv2__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.rv2__tags span { font-size: 12.5px; padding: 5px 11px; border-radius: 999px; background: var(--bg-elev-2); color: var(--fg-muted); }

.rv2__commandes { display: flex; align-items: center; gap: 14px; margin-top: 22px; }
.rv2__pouces { flex: 1; display: flex; gap: 10px; overflow-x: auto; padding: 4px; scrollbar-width: none; justify-content: center; }
.rv2__pouces::-webkit-scrollbar { display: none; }
.rv2__pouce { position: relative; flex-shrink: 0; width: 64px; height: 64px; padding: 8px; border-radius: 18px; border: 1px solid var(--line); background: var(--bg-elev); opacity: .55; filter: grayscale(.85); transition: opacity .25s, filter .25s, border-color .25s, transform .25s; }
.rv2__pouce:hover { opacity: 1; filter: none; transform: translateY(-2px); }
.rv2__pouce.is-on { opacity: 1; filter: none; border-color: var(--fg); box-shadow: 0 10px 24px -14px rgba(0,0,0,.4); }
.rv2__pouce:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.rv2__mini { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; border-radius: 10px; overflow: hidden; }
.rv2__mini img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.rv2__mini--embleme img { width: 100%; height: 100%; object-fit: cover; }
.rv2__mini--vide svg { width: 26px; height: 26px; }
.rv2__barre { position: absolute; left: 10px; right: 10px; bottom: 4px; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; opacity: 0; }
.rv2__pouce.is-on .rv2__barre { opacity: 1; }
.rv2__barre span { display: block; height: 100%; width: 0; background: var(--c2); }
.rv2.is-auto .rv2__pouce.is-on .rv2__barre span { animation: rv-jauge var(--duree, 7s) linear forwards; }
.rv2.is-pause .rv2__pouce.is-on .rv2__barre span { animation-play-state: paused; }
@keyframes rv-jauge { from { width: 0; } to { width: 100%; } }

@media (max-width: 900px) {
  .rv2__slide { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .rv2__visuel { min-height: 260px; }
  .rv2__logo--embleme { width: 120px; height: 120px; border-radius: 30px; }
  .rv2__logo--complet { height: 92px; padding: 20px 26px; }
  .rv2__texte { padding: 30px 26px 32px; }
  .rv2__pouces { justify-content: flex-start; }
}
@media (max-width: 560px) {
  .rv2__scene { border-radius: 22px; }
  .rv2__puce { font-size: 12px; }
  .rv2__puce--1 { left: 5%; top: 9%; }
  .rv2__puce--2 { right: 5%; bottom: 14%; }
  .rv2__commandes .rv2__fleche { display: none; }
  .rv2__pouce { width: 54px; height: 54px; border-radius: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .rv2__slide, .rv2__texte > *, .rv2__puce, .rv2__logo { transition: none !important; animation: none !important; }
}


/* ── Version 5 : panneaux extensibles ──────────────────────────────────── */
.rv5 { display: flex; gap: 8px; height: 500px; }
.rv5__pan { position: relative; flex: 0 0 68px; min-width: 0; border-radius: 22px; overflow: hidden; background: radial-gradient(circle at 90% 5%, color-mix(in oklab, var(--c2) 75%, transparent), transparent 55%), linear-gradient(160deg, var(--c1), color-mix(in oklab, var(--c1) 45%, #000)); transition: flex-grow .7s cubic-bezier(.2,.7,.2,1), flex-basis .7s cubic-bezier(.2,.7,.2,1), box-shadow .4s; }
.rv5__pan::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(to right, rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 40px 40px; pointer-events: none; mask-image: linear-gradient(to bottom, black, transparent 80%); -webkit-mask-image: linear-gradient(to bottom, black, transparent 80%); }
.rv5__pan.is-on { flex: 1 1 auto; box-shadow: 0 40px 80px -50px rgba(10,10,30,.6); }
.rv5__onglet { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 16px 0 18px; color: #fff; transition: opacity .3s; }
.rv5__onglet:focus-visible { outline: 3px solid #fff; outline-offset: -6px; border-radius: 22px; }
.rv5__pan.is-on .rv5__onglet { opacity: 0; pointer-events: none; }
.rv5__pan:not(.is-on):hover { flex-basis: 84px; }
.rv5__mini { display: flex; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 12px; background: #fff; overflow: hidden; flex-shrink: 0; }
.rv5__mini img { display: block; max-width: 84%; max-height: 70%; object-fit: contain; }
.rv5__mini--embleme img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; }
.rv5__mini--vide { color: var(--c1); }
.rv5__mini--vide svg { width: 22px; height: 22px; }
.rv5__vertical { writing-mode: vertical-rl; transform: rotate(180deg); display: flex; align-items: center; gap: 12px; white-space: nowrap; overflow: hidden; max-height: 330px; }
.rv5__vertical b { font-family: var(--font-display); font-weight: 500; font-size: 19px; letter-spacing: -.01em; }
.rv5__vertical small { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
@media (min-width: 1101px) { .rv5__vertical small { display: none; } }
.rv5__num { font-family: var(--font-mono); font-size: 11px; opacity: .7; }
.rv5__contenu { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: space-between; padding: 32px 36px; color: #fff; opacity: 0; visibility: hidden; min-width: 520px; transition: opacity .25s ease, visibility 0s linear .25s; }
.rv5__pan.is-on .rv5__contenu { opacity: 1; visibility: visible; transition: opacity .5s ease .3s; }
.rv5__haut { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.rv5__logo { display: flex; align-items: center; justify-content: center; background: #fff; box-shadow: 0 20px 40px -16px rgba(0,0,0,.55); flex-shrink: 0; }
.rv5__logo img { display: block; height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.rv5__logo--embleme { width: 96px; height: 96px; border-radius: 26px; overflow: hidden; }
.rv5__logo--embleme img { width: 100%; object-fit: cover; }
.rv5__logo--complet { height: 80px; max-width: 250px; padding: 16px 22px; border-radius: 20px; }
.rv5__logo--vide { width: 88px; height: 88px; border-radius: 24px; color: var(--c1); }
.rv5__tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.rv5__tags span { font-size: 12.5px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(6px); }
.rv5__secteur { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.rv5__nom { margin: 8px 0 10px; font-family: var(--font-display); font-weight: 500; font-size: clamp(30px, 3vw, 42px); letter-spacing: -.03em; line-height: 1.05; }
.rv5__besoin { margin: 0 0 18px; font-size: 15.5px; line-height: 1.55; color: rgba(255,255,255,.82); max-width: 56ch; }
.rv5__actions { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 8px; }
.rv5__actions li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 14.5px; line-height: 1.45; }
.rv5__actions svg { width: 20px; height: 20px; padding: 4px; border-radius: 50%; background: #fff; color: var(--c1); }
.rv5__cta { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 22px; border-radius: 999px; background: #fff; color: #0A0A0B; font-weight: 500; font-size: 14.5px; transition: transform .25s; }
.rv5__cta:hover { transform: translateY(-2px); }
@media (max-width: 1100px) {
  .rv5 { flex-direction: column; height: auto; gap: 8px; }
  .rv5__pan { flex: none; height: 68px; transition: height .6s cubic-bezier(.2,.7,.2,1); }
  .rv5__pan.is-on { height: 560px; flex: none; }
  .rv5__pan:not(.is-on):hover { flex-basis: auto; }
  .rv5__onglet { flex-direction: row; justify-content: flex-start; gap: 14px; padding: 0 18px; }
  .rv5__vertical { writing-mode: horizontal-tb; transform: none; gap: 10px; max-height: none; flex: 1; min-width: 0; }
  .rv5__vertical small { overflow: hidden; text-overflow: ellipsis; }
  .rv5__contenu { min-width: 0; padding: 24px; }
}
@media (max-width: 560px) {
  .rv5__pan.is-on { height: 640px; }
  .rv5__vertical small { display: none; }
  .rv5__tags { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .rv5__pan, .rv5__contenu { transition: none !important; animation: none !important; }
}

/* ── Version 8 : panneaux sur ordinateur, carrousel sur tablette et téléphone ── */
.rv8__petit { display: none; }
@media (max-width: 1100px) {
  .rv8__grand { display: none; }
  .rv8__petit { display: block; }
}

/* Vitrine : noms longs et symbole UMOPIA des clients anonymes */
.rv5__vertical--long b { font-size: 15px; }
.rv5__logo--vide svg { width: 48px; height: 48px; }
.rv2__logo--vide svg, .rv2__mini--vide svg { color: inherit; }

/* ============================================
   Contact pleine page : déroulé, puis questionnaire au même endroit
   ============================================ */
.cp { position: relative; min-height: 100vh; min-height: 100svh; padding: 120px 0 72px; display: flex; align-items: center; overflow: hidden; }
.cp .hero__glow { opacity: .55; }
.cp__in { position: relative; z-index: 2; width: 100%; }
.cp__ecran { max-width: 1060px; margin: 0 auto; }
.cp__ecran.is-sortie { animation: cp-sortie .32s ease both; }
.cp__ecran.is-entree { animation: cp-entree .6s cubic-bezier(.2,.7,.2,1) both; }
@keyframes cp-sortie { to { opacity: 0; transform: translateY(-18px) scale(.985); } }
@keyframes cp-entree { from { opacity: 0; transform: translateY(24px) scale(.985); } to { opacity: 1; transform: none; } }

/* Écran d'accueil */
.cp__intro { text-align: center; }
.cp__intro .crumbs { justify-content: center; }
.cp__intro .eyebrow { justify-content: center; }
.cp__titre { margin: 18px auto 0; max-width: 16ch; font-family: var(--font-display); font-weight: 500; font-size: clamp(42px, 6.6vw, 92px); letter-spacing: -.04em; line-height: .98; }
.cp__titre .ital { font-family: var(--font-serif); font-weight: 400; font-style: italic; }
.cp__lead { margin: 24px auto 0; max-width: 52ch; font-size: clamp(17px, 1.6vw, 20px); color: var(--fg-muted); line-height: 1.55; }

.cp__etapes { position: relative; list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; text-align: left; counter-reset: none; }
.cp__etapes::before { content: ""; position: absolute; left: 12%; right: 12%; top: 42px; height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong) 15%, var(--line-strong) 85%, transparent); z-index: 0; }
.cp__etape { position: relative; z-index: 1; display: grid; gap: 10px; align-content: start; padding: 26px 26px 28px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: color-mix(in oklab, var(--bg-elev) 92%, transparent); backdrop-filter: blur(10px); box-shadow: 0 30px 60px -44px rgba(10,10,30,.35); opacity: 0; transform: translateY(16px); animation: cp-entree .7s cubic-bezier(.2,.7,.2,1) forwards; }
.cp__etape:nth-child(2) { animation-delay: .12s; }
.cp__etape:nth-child(3) { animation-delay: .24s; }
.cp__etape-num { position: absolute; top: 22px; right: 24px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; color: var(--fg-dim); }
.cp__etape-ico { width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: var(--fg); color: var(--bg); margin-bottom: 8px; }
.cp__etape:nth-child(2) .cp__etape-ico { background: var(--accent); color: #fff; }
.cp__etape:nth-child(3) .cp__etape-ico { background: var(--accent-2); color: #fff; }
.cp__etape-t { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 21px; letter-spacing: -.02em; line-height: 1.2; }
.cp__etape-p { margin: 0; color: var(--fg-muted); font-size: 15px; line-height: 1.55; }

.cp__actions { margin-top: 44px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.cp__go { height: 60px; padding: 0 32px; font-size: 16.5px; }
.cp__alt { font-size: 14.5px; color: var(--fg-muted); }
.cp__alt a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.cp__rassure { list-style: none; margin: 30px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; font-size: 13px; color: var(--fg-dim); }
.cp__rassure li { display: inline-flex; align-items: center; gap: 8px; }
.cp__rassure li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: oklch(0.56 0.13 150); }

/* Questionnaire en grand */
.cp .wiz { max-width: 960px; border-radius: 28px; box-shadow: 0 50px 120px -70px rgba(10,10,30,.45); }
.cp .wiz__form { min-height: 640px; padding: 40px 48px 34px; }
.cp .wiz__q { font-size: clamp(28px, 3.3vw, 42px); letter-spacing: -.03em; }
.cp .wiz__hint { font-size: 16px; margin-bottom: 30px; }
.cp .opt { padding: 17px 18px; }
.cp .opt__t b { font-size: 16px; }
.cp .wiz__done { padding: 64px 48px; }

@media (max-width: 900px) {
  .cp { padding: 104px 0 48px; align-items: flex-start; }
  .cp__etapes { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 40px; }
  .cp__etapes::before { left: 49px; right: auto; top: 30px; bottom: 30px; width: 1px; height: auto; background: linear-gradient(180deg, transparent, var(--line-strong) 10%, var(--line-strong) 90%, transparent); }
  .cp__etape { grid-template-columns: 46px 1fr; column-gap: 16px; padding: 20px; }
  .cp__etape-ico { grid-row: span 2; margin-bottom: 0; }
  .cp__etape-num { top: 18px; right: 18px; }
  .cp__etape-t { font-size: 18px; padding-right: 26px; }
  .cp .wiz__form { min-height: 0; padding: 26px 22px; }
  .cp .wiz__done { padding: 36px 22px; }
  .cp .wiz__nav { margin-inline: -22px; padding: 14px 22px; }
}
@media (max-width: 440px) {
  .cp .wiz__nav { gap: 10px; }
  .cp .wiz__back { flex: none; padding-inline: 16px; }
  .cp .wiz__next, .cp .wiz__submit { flex: 1; min-width: 0; justify-content: center; padding-inline: 14px; white-space: nowrap; }
}
@media (max-width: 560px) {
  .cp__go { width: 100%; justify-content: center; }
  .cp__intro { text-align: left; }
  .cp__intro .crumbs, .cp__intro .eyebrow { justify-content: flex-start; }
  .cp__titre, .cp__lead { margin-left: 0; }
  .cp__actions { align-items: stretch; text-align: center; }
  .cp__rassure { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .cp__ecran.is-sortie, .cp__ecran.is-entree, .cp__etape { animation: none !important; opacity: 1; transform: none; }
}

/* ============================================
   Bandeau de consentement (Google Analytics seulement ; Matomo est sans cookie)
   ============================================ */
.cookies { position: fixed; z-index: 90; left: 20px; bottom: 20px; width: min(420px, calc(100vw - 40px)); padding: 20px 22px; border-radius: 18px; border: 1px solid var(--line); background: var(--bg-elev); box-shadow: 0 30px 80px -30px rgba(10,10,30,.35); animation: cp-entree .5s cubic-bezier(.2,.7,.2,1) both; }
.cookies__t { margin: 0 0 6px; font-family: var(--font-display); font-weight: 500; font-size: 17px; letter-spacing: -.01em; }
.cookies__p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--fg-muted); }
.cookies__p a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.cookies__b { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cookies__b .btn { justify-content: center; }
@media (max-width: 560px) { .cookies { left: 12px; right: 12px; bottom: 12px; width: auto; } }
@media (prefers-reduced-motion: reduce) { .cookies { animation: none; } }

/* ============================================
   Bandeau clients pilotable : défilement lent + flèches + glisser au doigt
   ============================================ */
.marquee--pilote { overflow: visible; }
.marquee--pilote::before, .marquee--pilote::after { display: none; }
.marquee__cadre { position: relative; display: flex; align-items: center; }
.marquee__vue { position: relative; flex: 1; min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 90px, #000 calc(100% - 90px), transparent); mask-image: linear-gradient(90deg, transparent, #000 90px, #000 calc(100% - 90px), transparent); outline: none; }
.marquee__vue::-webkit-scrollbar { display: none; }
.marquee--pilote .marquee__track { animation: none; padding: 6px 90px; }
.marquee--pilote .marquee__item { text-decoration: none; color: var(--fg-dim); border-radius: 12px; padding: 6px 8px; transition: color .2s; }
.marquee--pilote .marquee__item:hover, .marquee--pilote .marquee__item:focus-visible { color: var(--fg); }
.marquee--pilote .marquee__item:focus-visible img { filter: none; opacity: 1; }
.marquee__fleche { position: absolute; z-index: 3; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg-elev); color: var(--fg); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 8px 24px -12px rgba(10,10,30,.3); transition: transform .2s, border-color .2s; }
.marquee__fleche:hover { border-color: var(--fg); transform: translateY(-50%) scale(1.06); }
.marquee__fleche:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.marquee__fleche--prec { left: 24px; }
.marquee__fleche--suiv { right: 24px; }
@media (max-width: 720px) {
  .marquee__fleche { width: 36px; height: 36px; }
  .marquee__fleche--prec { left: 8px; }
  .marquee__fleche--suiv { right: 8px; }
  .marquee__vue { -webkit-mask-image: linear-gradient(90deg, transparent, #000 56px, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, transparent, #000 56px, #000 calc(100% - 56px), transparent); }
  .marquee--pilote .marquee__track { padding: 6px 56px; }
}

/* Vitrine en panneaux : flèches précédent / suivant */
.rv5__nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 22px; }
.rv5__fleche { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--bg-elev); color: var(--fg); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 8px 24px -14px rgba(10,10,30,.35); transition: transform .2s, border-color .2s, background .2s, color .2s; }
.rv5__fleche:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); transform: scale(1.05); }
.rv5__fleche:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rv5__compte { min-width: 70px; text-align: center; font-family: var(--font-mono); font-size: 13px; letter-spacing: .06em; color: var(--fg-dim); }
.rv5__compte b { color: var(--fg); font-weight: 500; }

/* Titres de petits blocs (remplacent les anciennes étiquettes) */
.bloc-titre { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -.02em; line-height: 1.2; }

/* Nettoyage des tics « maquette IA » : libellés en texte normal */
.hero__tele-head { font-family: var(--font-body, inherit); font-size: 13.5px; letter-spacing: 0; text-transform: none; color: var(--fg-muted); font-weight: 500; }
.marquee__label { font-family: inherit; font-size: 14px; letter-spacing: 0; text-transform: none; color: var(--fg-muted); }
.crumbs { font-family: inherit; font-size: 13.5px; letter-spacing: 0; text-transform: none; }
.process__step-meta { display: block; font-family: var(--font-display); font-weight: 500; font-size: 15px; letter-spacing: -0.01em; text-transform: none; color: var(--fg); margin: 0; }

/* Plus aucun petit libellé en capitales espacées façon « maquette IA » : texte normal partout */
.hero__tele-row .v, .service__tag, .dashboard__panel-head, .flow__node-status, .case__title .sub, .case__toggle button,
.case__label, .case__art-head, .pipe__row-label, .footer__col-title, .stance__who, .work__sector, .casecard__lbl,
.timeline__k, .wiz__meta, .res-group__n, .res-pill, .res-card h4, .hub-answer__maj, .hub-tool__n, .hub-facts dt,
.hub-table thead th, .ft-col__t, .rv2__lbl, .rv2__secteur, .rv5__vertical small, .rv5__secteur {
  font-family: inherit; text-transform: none; letter-spacing: 0; font-size: 13px;
}
.ft-col__t, .footer__col-title, .res-card h4, .casecard__lbl { font-weight: 600; color: var(--fg); }
.rv5__secteur, .rv2__secteur { font-size: 14px; }
