/* MENTIS CONSEIL — shared base */

:root {
  /* Claude-inspired warm palette */
  --cream: #f5f1ea;
  --cream-2: #ede7dc;
  --paper: #faf7f2;
  --ink: #1a1714;
  --ink-2: #2a251f;
  --ink-soft: #5a514a;
  --muted: #8a8077;
  --line: #1a17141a;
  --line-2: #1a171410;
  --terracotta: #c96442;
  --terracotta-deep: #a8512f;
  --terracotta-soft: #e8a384;
  --olive: #6b6f47;
  --gold: #b8923a;

  /* dark variant */
  --night: #14110d;
  --night-2: #1c1813;
  --night-3: #2a241d;
  --night-line: #ffffff14;
  --night-ink: #f3ece0;
  --night-muted: #998d7d;

  --serif: 'Tiempos Headline', 'Fraunces', 'Cormorant Garamond', ui-serif, Georgia, serif;
  --serif-text: 'Source Serif Pro', 'Cormorant Garamond', ui-serif, Georgia, serif;
  --sans: 'Söhne', 'Inter Tight', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button { font: inherit; cursor: pointer; }

/* ——— Theme variants ——— */
.theme-light {
  --bg: var(--cream);
  --surface: var(--paper);
  --text: var(--ink);
  --text-soft: var(--ink-soft);
  --text-muted: var(--muted);
  --border: var(--line);
  --border-2: var(--line-2);
  --accent: var(--terracotta);
  --accent-deep: var(--terracotta-deep);
}
.theme-dark {
  --bg: var(--night);
  --surface: var(--night-2);
  --text: var(--night-ink);
  --text-soft: #d4c8b5;
  --text-muted: var(--night-muted);
  --border: var(--night-line);
  --border-2: #ffffff08;
  --accent: #e8a384;
  --accent-deep: #c96442;
}

/* ——— Reusable building blocks ——— */
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; }
.mono  { font-family: var(--mono); }

.kbd {
  font-family: var(--mono);
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
  color: var(--text-soft);
  background: color-mix(in oklab, var(--surface) 70%, transparent);
}

.dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); display: inline-block;
}

.pulse {
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: .55; transform: scale(.85); }
}

/* Mentis sigil — a stylized M as compass / mind */
.sigil {
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
}

/* —— Animated reveal —— */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: none; }

/* hairline divider with accent dot */
.hairline {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.hairline::before {
  content: ""; width: 24px; height: 1px; background: var(--accent);
}

/* shimmering caret */
.caret {
  display: inline-block; width: 8px; height: 1.05em;
  background: currentColor; vertical-align: -2px;
  margin-left: 2px;
  animation: caret 1s steps(2, end) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

/* soft noise overlay (cheap film grain) */
.grain::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 10%, #00000008 0, transparent 40%),
    radial-gradient(circle at 80% 70%, #00000008 0, transparent 40%);
  mix-blend-mode: multiply;
}

/* button base */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-size: 14px;
  letter-spacing: -0.005em;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { background: var(--text); color: var(--bg); border-color: var(--text); transform: translateY(-1px); }
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }
.btn .arrow { transition: transform .25s; }
.btn:hover .arrow { transform: translateX(3px); }

/* link with arrow */
.linklike {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
  transition: border-color .2s, color .2s;
}
.linklike:hover { border-color: var(--accent); color: var(--accent); }

/* card */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}

/* ——— Site shell ——— */
.shell {
  width: 100%;
  background: var(--bg);
  color: var(--text);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* nav */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 40px;
  border-bottom: 1px solid var(--border-2);
  position: sticky; top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav-brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.nav-brand .mark {
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.02em;
}
.nav-links { display: flex; gap: 28px; align-items: center; font-size: 14px; }
.nav-links a {
  color: var(--text-soft);
  text-decoration: none;
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  font-size: 13px;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
  transition: background .2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.nav-cta:hover { background: var(--accent); }

/* ——— Hero ——— */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  padding: 56px 40px 64px;
  max-width: 1280px;
  margin: 0 auto;
  align-items: center;
  position: relative;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.hero-eyebrow .pulse-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent);
  animation: ring 2.4s ease-out infinite;
}
@keyframes ring {
  0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 50%, transparent); }
  70% { box-shadow: 0 0 0 10px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(46px, 5.4vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0 0 28px;
  color: var(--text);
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
}
.hero h1 .strike {
  position: relative;
  white-space: nowrap;
}
.hero h1 .strike::after {
  content: "";
  position: absolute; left: -2%; right: -2%; top: 56%;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  transform-origin: left;
  animation: strike 1.2s 0.7s cubic-bezier(.7,.0,.3,1) forwards;
  transform: scaleX(0);
}
@keyframes strike { to { transform: scaleX(1); } }

.hero p.lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-soft);
  max-width: 50ch;
  margin: 0 0 36px;
}

.hero-cta-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

.hero-meta {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  font-size: 13px;
  color: var(--text-soft);
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
.hero-meta .k {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 6px;
}

/* hero right column — terminal/chat composite */
.hero-stage {
  position: relative;
  min-height: 540px;
}

.term {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px 22px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.65;
  color: var(--text);
  box-shadow:
    0 1px 0 #ffffff80 inset,
    0 30px 60px -30px rgba(40,30,20,.25),
    0 10px 30px -15px rgba(40,30,20,.15);
  overflow: hidden;
  z-index: 2;
}
.theme-dark .term {
  box-shadow:
    0 1px 0 #ffffff10 inset,
    0 30px 60px -20px rgba(0,0,0,.6);
}
.term-head {
  display: flex; align-items: center; gap: 8px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border-2);
}
.term-head .tlight { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.term-head .ttitle {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-left: 8px;
}
.term-head .tspark {
  margin-left: auto;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--accent);
}

.term .line { display: block; }
.term .prompt { color: var(--accent); margin-right: 8px; }
.term .key    { color: var(--text-muted); }
.term .val    { color: var(--text); }
.term .num    { color: var(--gold); }
.term .ok     { color: #4f8d4f; }
.theme-dark .term .ok { color: #7bc28a; }
.term .dim    { color: var(--text-muted); }

/* floating chat card stacked on top */
.chatcard {
  position: absolute;
  right: -28px;
  bottom: -28px;
  width: 320px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  font-size: 13px;
  z-index: 3;
  box-shadow:
    0 30px 70px -25px rgba(40,30,20,.3),
    0 0 0 6px color-mix(in oklab, var(--bg) 70%, transparent);
  transform: rotate(-1.4deg);
}
.chatcard-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px;
}
.chatcard-head .av {
  width: 28px; height: 28px; border-radius: 7px;
  background: var(--accent); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 14px;
}
.chatcard-head .name { font-weight: 500; }
.chatcard-head .meta { font-size: 11px; color: var(--text-muted); margin-left: auto; }
.chat-msg {
  background: color-mix(in oklab, var(--accent) 8%, transparent);
  border: 1px solid color-mix(in oklab, var(--accent) 18%, transparent);
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--text);
  line-height: 1.5;
}
.chat-typing { color: var(--text-muted); font-size: 12px; margin-top: 8px; }

/* small marquee tag */
.mini-tag {
  display: inline-flex; gap: 6px; align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ——— Section: piliers ——— */
.piliers {
  padding: 44px 40px 52px;
  border-top: 1px solid var(--border);
}
.piliers-head {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px;
  margin-bottom: 28px;
  max-width: 1200px; margin-left: auto; margin-right: auto;
}
.piliers-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 3.8vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--text);
}
.piliers-head h2 em { font-style: italic; color: var(--accent); }
.piliers-head p {
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-soft);
  margin: 0;
  max-width: 52ch;
}

.piliers-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
.pilier {
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 26px 36px;
  background: var(--bg);
  position: relative;
  transition: background .25s;
  min-height: 320px;
  display: flex; flex-direction: column;
}
.pilier:hover {
  background: color-mix(in oklab, var(--surface) 80%, var(--bg));
}
.pilier .num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  margin-bottom: 22px;
}
.pilier h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 14px;
}
.pilier p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-soft);
  margin: 0 0 18px;
}
.pilier ul {
  list-style: none; padding: 0; margin: auto 0 0;
  font-size: 12.5px;
  color: var(--text-soft);
}
.pilier ul li {
  display: flex; gap: 8px;
  padding: 6px 0;
  border-top: 1px solid var(--border-2);
}
.pilier ul li::before {
  content: "—"; color: var(--accent);
  font-family: var(--mono);
}

/* ——— Demo IA section ——— */
.demo-section {
  padding: 40px 40px 48px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.demo-wrap {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px;
  align-items: start;
}
.demo-copy h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 3.8vw, 50px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 14px 0 22px;
}
.demo-copy h2 em { color: var(--accent); font-style: italic; }
.demo-copy p {
  font-size: 16px; line-height: 1.6;
  color: var(--text-soft);
  margin: 0 0 18px;
}

/* the assistant chat surface */
.assistant {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 30px 80px -40px rgba(40,30,20,.3),
    0 1px 0 #ffffff70 inset;
}
.assistant-head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-2);
}
.assistant-head .av {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--accent); color: #fff;
  font-family: var(--serif); font-size: 16px;
  display: inline-flex; align-items: center; justify-content: center;
}
.assistant-head .who {
  display: flex; flex-direction: column; line-height: 1.2;
}
.assistant-head .who b { font-weight: 500; font-size: 14px; }
.assistant-head .who span { font-size: 11px; color: var(--text-muted); font-family: var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.assistant-head .badge {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid color-mix(in oklab, var(--accent) 30%, transparent);
  background: color-mix(in oklab, var(--accent) 8%, transparent);
  padding: 4px 8px; border-radius: 999px;
}

.assistant-body {
  padding: 22px;
  display: flex; flex-direction: column; gap: 14px;
  max-height: 480px;
  overflow: auto;
  scrollbar-width: none;
}
.assistant-body::-webkit-scrollbar { display: none; }

.bubble {
  max-width: 85%;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 14.5px;
  line-height: 1.55;
  white-space: pre-wrap;
}
.bubble.user {
  align-self: flex-end;
  background: var(--text);
  color: var(--bg);
  border-bottom-right-radius: 6px;
}
.bubble.bot {
  align-self: flex-start;
  background: color-mix(in oklab, var(--accent) 9%, transparent);
  border: 1px solid color-mix(in oklab, var(--accent) 18%, transparent);
  color: var(--text);
  border-bottom-left-radius: 6px;
}
.bubble.bot .sig {
  display: block;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.bubble.bot .bubble-cta,
.bubble .bubble-cta,
a.bubble-cta {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 11px 18px 11px 16px;
  background: #cc785c !important;
  color: #ffffff !important;
  border: none;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none !important;
  letter-spacing: .01em;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  box-shadow: 0 6px 18px -6px rgba(204, 120, 92, .55), 0 2px 6px -2px rgba(0,0,0,.15);
}
.bubble.bot .bubble-cta:hover,
.bubble .bubble-cta:hover,
a.bubble-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -6px color-mix(in oklab, var(--accent) 70%, transparent);
}

.suggestions {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 0 22px 14px;
}
.suggestions button {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-soft);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  transition: all .2s;
}
.suggestions button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.composer {
  display: flex; gap: 10px; align-items: center;
  padding: 14px 18px;
  border-top: 1px solid var(--border-2);
  background: color-mix(in oklab, var(--bg) 60%, transparent);
}
.composer input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font: inherit;
  color: var(--text);
  font-size: 14px;
}
.composer input::placeholder { color: var(--text-muted); }
.composer .send {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff; border: none;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s, transform .2s;
}
.composer .send:hover { background: var(--accent-deep); transform: translateY(-1px); }
.composer .send:disabled { opacity: .4; cursor: default; transform: none; }

.typing {
  display: inline-flex; gap: 4px;
  padding: 12px 14px;
  background: color-mix(in oklab, var(--accent) 9%, transparent);
  border: 1px solid color-mix(in oklab, var(--accent) 18%, transparent);
  border-radius: 14px;
  border-bottom-left-radius: 6px;
  align-self: flex-start;
}
.typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  animation: bob 1.2s ease-in-out infinite;
}
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes bob {
  0%,80%,100% { transform: translateY(0); opacity: .4; }
  40% { transform: translateY(-4px); opacity: 1; }
}

/* ——— footer ——— */
.foot {
  padding: 36px 40px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.foot-wrap {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px;
}
.foot h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 18px;
  font-weight: 500;
}
.foot ul { list-style: none; padding: 0; margin: 0; font-size: 14px; }
.foot ul li { padding: 4px 0; color: var(--text-soft); }
.foot ul li a { color: inherit; text-decoration: none; transition: color .2s; }
.foot ul li a:hover { color: var(--accent); }

.foot-brand { font-family: var(--serif); font-size: 22px; margin: 0 0 12px; color: var(--text); }
.foot-brand-sub {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.55;
  max-width: 32ch;
  margin: 0 0 18px;
}

.foot-contact {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px dashed var(--border);
  padding-bottom: 2px;
  transition: color .2s, border-color .2s;
}
.foot-contact:hover { color: var(--accent); border-color: var(--accent); }
.foot-contact .at { color: var(--accent); }

.foot-legal {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--border-2);
  display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  max-width: 1200px;
  margin-left: auto; margin-right: auto;
}
.foot-legal span b { font-weight: 500; color: var(--text-soft); }

/* term enhancements */
.term-meta {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 10px 0 14px;
  border-bottom: 1px dashed var(--border-2);
  margin-bottom: 12px;
}
.term-meta .client-redact {
  display: inline-block;
  background: var(--text);
  color: var(--text);
  border-radius: 3px;
  padding: 0 6px;
  letter-spacing: 0.2em;
  user-select: none;
  position: relative;
  overflow: hidden;
}
.term-meta .client-redact::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(
    90deg,
    color-mix(in oklab, var(--text) 92%, var(--bg)) 0 4px,
    color-mix(in oklab, var(--text) 78%, var(--bg)) 4px 8px
  );
}
.term-meta .pip {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  animation: pulse 1.6s ease-in-out infinite;
}
.term-meta .domain { color: var(--accent); letter-spacing: 0.16em; }
.term-meta .sep-d { color: var(--border); }

.term-fade {
  position: relative;
  min-height: 200px;
}
.term-fade.swap { animation: termSwap .55s cubic-bezier(.4,.0,.2,1); }
@keyframes termSwap {
  0%   { opacity: 1; transform: translateY(0); }
  40%  { opacity: 0; transform: translateY(-8px); filter: blur(2px); }
  60%  { opacity: 0; transform: translateY(8px);  filter: blur(2px); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* ——— Engagement humain (rassurance) ——— */
.engagement {
  padding: 44px 40px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.engagement-wrap { max-width: 1200px; margin: 0 auto; }
.engagement-head {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px;
  margin-bottom: 28px; align-items: end;
}
.engagement-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 3.6vw, 50px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 12px 0 0;
}
.engagement-head h2 em { font-style: italic; color: var(--accent); }
.engagement-head p {
  font-size: 17px; line-height: 1.55;
  color: var(--text-soft); margin: 0; max-width: 52ch;
}
.engagement-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.eng-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px 28px;
  display: flex; flex-direction: column; gap: 14px;
  position: relative;
  transition: transform .25s, box-shadow .25s;
}
.eng-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 50px -30px rgba(40,30,20,.25);
}
.eng-card .icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: color-mix(in oklab, var(--accent) 12%, transparent);
  color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 4px;
}
.eng-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0;
}
.eng-card p {
  font-size: 14.5px; line-height: 1.6;
  color: var(--text-soft); margin: 0;
}
.eng-card .quote {
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border-2);
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
}

/* ——— Hero presence card (humanized) ——— */
.presence {
  position: absolute;
  right: -28px;
  bottom: -36px;
  width: 340px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  z-index: 3;
  box-shadow:
    0 30px 70px -25px rgba(40,30,20,.3),
    0 0 0 6px color-mix(in oklab, var(--bg) 70%, transparent);
  transform: rotate(-1.2deg);
}
.presence-head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 12px;
}
.presence-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, color-mix(in oklab, var(--accent) 70%, #fff) 0%, var(--accent) 70%);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 18px;
  letter-spacing: -0.02em;
  position: relative;
}
.presence-avatar::after {
  content: ""; position: absolute;
  width: 11px; height: 11px; border-radius: 50%;
  background: #4f8d4f; border: 2px solid var(--surface);
  bottom: -1px; right: -1px;
}
.presence-name { font-weight: 500; font-size: 14.5px; line-height: 1.2; }
.presence-role { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.presence-msg {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  margin: 0 0 12px;
  font-style: italic;
  min-height: 6.5em; /* réserve la place pour 4-5 lignes pour éviter le saut au swap */
  display: flex;
  align-items: center;
}
.presence-foot {
  display: flex; align-items: center; gap: 8px;
  font-size: 11.5px;
  color: var(--text-muted);
  font-family: var(--mono);
  letter-spacing: 0.04em;
}
.presence-foot .pulse-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #4f8d4f;
  animation: pulse 2.4s ease-in-out infinite;
}

/* tagline secondary */
.hero-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  line-height: 1.4;
  color: var(--accent);
  margin: 0 0 28px;
  letter-spacing: -0.01em;
}

/* reassurance bar */
.reassure {
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
  display: flex; gap: 32px; flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-soft);
}
.reassure .item {
  display: flex; align-items: center; gap: 10px;
}
.reassure .item svg { color: var(--accent); flex: none; }

/* ——— Devis (humanized intake form) ——— */
.devis {
  padding: 44px 40px;
  background: var(--bg);
  border-top: 1px solid var(--border);
  position: relative;
}
.devis-wrap {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px;
  align-items: start;
}
.devis-copy h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 3.8vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 14px 0 22px;
}
.devis-copy h2 em { font-style: italic; color: var(--accent); }
.devis-copy p {
  font-size: 16px; line-height: 1.6;
  color: var(--text-soft); margin: 0 0 18px;
  max-width: 42ch;
}
.devis-promise {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px;
  margin-top: 24px;
  background: color-mix(in oklab, var(--accent) 7%, transparent);
  border: 1px solid color-mix(in oklab, var(--accent) 18%, transparent);
  border-radius: 14px;
}
.devis-promise .ico {
  width: 34px; height: 34px; border-radius: 10px;
  background: color-mix(in oklab, var(--accent) 18%, transparent);
  color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  flex: none;
}
.devis-promise b { font-weight: 500; color: var(--text); }
.devis-promise span { font-size: 13.5px; color: var(--text-soft); line-height: 1.5; display: block; }

.devis-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px;
  box-shadow: 0 30px 80px -40px rgba(40,30,20,.25);
}
.devis-steps {
  display: flex; gap: 6px; align-items: center;
  margin-bottom: 24px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.devis-steps .step {
  width: 24px; height: 3px; border-radius: 2px;
  background: var(--border);
  transition: background .25s;
}
.devis-steps .step.done { background: var(--accent); }
.devis-steps .label { margin-left: 12px; color: var(--accent); }

.devis-q {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: var(--text);
}
.devis-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 22px;
}
.devis-options {
  display: flex; flex-direction: column; gap: 8px;
}
.devis-options button {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14.5px;
  color: var(--text);
  transition: all .2s;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.devis-options button:hover {
  border-color: var(--accent);
  background: color-mix(in oklab, var(--accent) 5%, transparent);
}
.devis-options button.selected {
  border-color: var(--accent);
  background: color-mix(in oklab, var(--accent) 8%, transparent);
}
.devis-options button .arr { color: var(--text-muted); transition: transform .2s, color .2s; }
.devis-options button:hover .arr { color: var(--accent); transform: translateX(3px); }

.devis-fields { display: flex; flex-direction: column; gap: 14px; margin-bottom: 8px; }
.devis-field {
  display: flex; flex-direction: column; gap: 6px;
}
.devis-field label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.devis-field input,
.devis-field textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  font-size: 14.5px;
  color: var(--text);
  outline: none;
  transition: border-color .2s, background .2s;
  font-family: var(--sans);
}
.devis-field textarea { min-height: 96px; resize: vertical; }
.devis-field input:focus,
.devis-field textarea:focus {
  border-color: var(--accent);
  background: color-mix(in oklab, var(--bg) 90%, var(--surface));
}

.devis-actions {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  margin-top: 22px;
}
.devis-back {
  background: transparent; border: none; color: var(--text-muted);
  font-size: 13px; padding: 8px 0;
  cursor: pointer; transition: color .2s;
}
.devis-back:hover { color: var(--text); }
.devis-back:disabled { opacity: 0; pointer-events: none; }

.devis-success {
  text-align: center; padding: 20px 10px;
}
.devis-success .check {
  width: 56px; height: 56px; border-radius: 50%;
  background: color-mix(in oklab, var(--accent) 14%, transparent);
  color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.devis-success h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: 28px; letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.devis-success p {
  color: var(--text-soft); font-size: 15px; line-height: 1.55;
  margin: 0 auto; max-width: 38ch;
}

/* responsive collapse */
/* ——— responsive collapse ——— */
@media (max-width: 920px) {
  html, body { overflow-x: hidden; }
  .container { padding: 0 20px !important; }
  .hero {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 22px 20px 30px !important;
    max-width: 100%;
  }
  /* PILIERS — icône à gauche, titre à droite */
  .pilier { padding: 14px 16px !important; }
  .pilier .num { margin-bottom: 8px !important; font-size: 10px !important; }
  .pilier h3 { font-size: 17px !important; margin: 0 0 6px !important; }
  .pilier p { font-size: 13px !important; margin: 0 0 8px !important; line-height: 1.45 !important; }
  .pilier ul { font-size: 11.5px !important; }
  .pilier ul li { padding: 3px 0 !important; }
  .piliers { padding: 28px 20px 32px !important; }
  .demo-section { padding: 26px 20px 30px !important; }
  .engagement { padding: 28px 20px !important; }
  .devis { padding: 28px 20px !important; }
  .process { padding: 30px 20px 34px !important; }
  .foot { padding: 24px 20px 18px !important; }
  .nav { padding-top: 14px !important; padding-bottom: 14px !important; }
  .piliers-head { margin-bottom: 18px !important; gap: 14px !important; }
  .engagement-head { margin-bottom: 18px !important; gap: 14px !important; }
  section, .demo-section, .piliers-section, .engagement-section, .process-section, .process, .devis-section, footer, .nav {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  .nav { padding-top: 18px !important; padding-bottom: 18px !important; }
  .quick-card { margin-left: 0 !important; margin-right: 0 !important; }
  .hero-copy, .piliers-head, .engagement-head, .demo-wrap, .devis-wrap, .foot-wrap, .process-wrap, .piliers-grid, .engagement-grid {
    max-width: 100% !important;
  }
  .hero-stage {
    min-height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 32px !important;
    position: static !important;
  }
  /* Sur mobile : on désempile DUR — plus aucun position:absolute */
  .hero-stage .term,
  .hero-stage .chatcard,
  .hero-stage .presence {
    position: static !important;
    right: auto !important; bottom: auto !important;
    left: auto !important; top: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    transform: none !important;
    margin: 0 !important;
  }
  .hero-stage .term { min-height: 220px; }
  .hero-stage .presence,
  .hero-stage .chatcard { min-height: 150px; }
  .term-fade { min-height: 160px; }
  .piliers-head { grid-template-columns: 1fr; gap: 28px; }
  .piliers-grid { grid-template-columns: 1fr 1fr; }
  .engagement-head { grid-template-columns: 1fr; gap: 28px; }
  .engagement-grid { grid-template-columns: 1fr; }
  .demo-wrap { grid-template-columns: 1fr; gap: 32px; }
  .devis-wrap { grid-template-columns: 1fr; gap: 40px; }
  .foot-wrap { grid-template-columns: 1fr 1fr; gap: 40px; }
  .nav-links { display: none; }
}

/* Floating quick-contact pill — toujours visible */
.quick-cta {
  position: fixed;
  bottom: 22px;
  left: 22px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px 12px 14px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
  font-size: 13.5px;
  font-family: var(--sans);
  letter-spacing: -0.005em;
  box-shadow:
    0 18px 40px -12px rgba(40,30,20,.45),
    0 4px 12px -4px rgba(40,30,20,.25);
  transition: transform .2s, background .2s;
}
.quick-cta:hover { transform: translateY(-2px); background: var(--accent); color: #fff; }
.quick-cta .qc-ico {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
.quick-cta:hover .qc-ico { background: #fff; color: var(--accent); }

/* Inline mini "Devis express" card under hero */
.quick-card {
  margin: 0 40px 60px;
  max-width: 1200px;
  margin-left: auto; margin-right: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 28px;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.quick-card .qc-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: color-mix(in oklab, var(--accent) 14%, transparent);
  color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  flex: none;
}
.quick-card .qc-text { flex: 1; min-width: 240px; }
.quick-card .qc-text b {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 4px;
}
.quick-card .qc-text span {
  font-size: 13.5px;
  color: var(--text-soft);
}
.quick-card .qc-actions { display: flex; gap: 10px; flex-wrap: wrap; }

@media (max-width: 920px) {
  .quick-card { margin-left: 16px; margin-right: 16px; padding: 18px 20px; }
  .quick-cta { bottom: 14px; left: 14px; font-size: 12.5px; padding: 10px 14px 10px 10px; }
}
.theme-hybrid .demo-section.dark-block {
  background: var(--night);
  color: var(--night-ink);
  border-color: #ffffff14;
}
.theme-hybrid .demo-section.dark-block * { --text: var(--night-ink); --text-soft: #d4c8b5; --text-muted: var(--night-muted); --border: var(--night-line); --border-2: #ffffff08; --surface: var(--night-2); --bg: var(--night); }
.theme-hybrid .demo-section.dark-block .assistant {
  background: var(--night-2);
  border-color: var(--night-line);
}


/* ——— Section: Comment on travaille (Process) ——— */
.process {
  padding: 48px 40px 56px;
  border-top: 1px solid var(--border);
  background: var(--bg);
  position: relative;
}
.process-wrap {
  max-width: 1200px;
  margin: 0 auto;
}
.process-head {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  margin-bottom: 44px;
  gap: 60px;
  margin-bottom: 80px;
}
.process-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 3.8vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 14px 0 0;
  color: var(--text);
}
.process-head h2 em {
  font-style: italic;
  color: var(--accent);
}
.process-head .lede {
  font-family: var(--serif-text);
  font-size: 19px;
  line-height: 1.6;
  color: var(--text-soft);
  margin: 0;
  align-self: end;
  max-width: 540px;
}

/* Rail vertical */
.process-rail {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.process-line {
  position: absolute;
  left: 50%;
  top: 40px;
  bottom: 40px;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent 0,
    var(--border) 8%,
    var(--border) 92%,
    transparent 100%
  );
  transform: translateX(-0.5px);
  pointer-events: none;
}

/* Étapes alternées gauche/droite */
.step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.step:nth-child(odd) .step-text { order: 1; padding-right: 20px; text-align: right; }
.step:nth-child(odd) .step-visual { order: 2; }
.step:nth-child(even) .step-text { order: 2; padding-left: 20px; }
.step:nth-child(even) .step-visual { order: 1; }

/* Bloc texte */
.step-text { padding: 8px 0; }
.step-num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
}
.step-kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 14px 0 18px;
}
.step-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 2.4vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 16px;
}
.step-body {
  font-family: var(--serif-text);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-soft);
  margin: 0;
  max-width: 440px;
}
.step:nth-child(odd) .step-body { margin-left: auto; }

/* Cadre visuel */
.step-visual {
  position: relative;
}
.step-frame {
  position: relative;
  background:
    radial-gradient(circle at 50% 40%, color-mix(in oklab, var(--accent) 8%, transparent), transparent 65%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
  box-shadow:
    0 1px 0 color-mix(in oklab, var(--text) 4%, transparent),
    0 30px 60px -40px color-mix(in oklab, var(--text) 22%, transparent);
  overflow: hidden;
}
.step-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, color-mix(in oklab, var(--text) 8%, transparent) 1px, transparent 0);
  background-size: 18px 18px;
  opacity: 0.35;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
.step-svg {
  width: 100%;
  height: auto;
  max-height: 160px;
  display: block;
  position: relative;
}

/* Pastille au milieu de la ligne, alignée sur chaque étape */
.step::before {
  content: '';
  position: absolute;
  left: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
  transform: translateX(-50%);
  box-shadow: 0 0 0 1px var(--border);
  z-index: 2;
}

/* ——— SVG primitives (couleurs sensibles au thème) ——— */
.svg-card {
  fill: var(--surface);
  stroke: var(--border);
  stroke-width: 1;
}
.svg-card-head {
  fill: color-mix(in oklab, var(--accent) 10%, var(--surface));
  stroke: none;
}
.svg-line { stroke: var(--border); stroke-width: 1; }
.svg-text-line { stroke: color-mix(in oklab, var(--text) 30%, transparent); stroke-width: 4; stroke-linecap: round; }
.svg-text-line-bold { stroke: var(--text); stroke-width: 5; stroke-linecap: round; }
.svg-text-line-light { stroke: rgba(255,255,255,0.78); stroke-width: 3; stroke-linecap: round; }
.svg-text-line-pill { stroke: var(--accent-deep); stroke-width: 3; stroke-linecap: round; }

.svg-dot-red { fill: #e8a384; opacity: 0.6; }
.svg-dot-amber { fill: #b8923a; opacity: 0.6; }
.svg-dot-green { fill: #6b6f47; opacity: 0.6; }

.svg-bubble-client {
  fill: color-mix(in oklab, var(--accent) 14%, var(--surface));
  stroke: color-mix(in oklab, var(--accent) 28%, var(--border));
  stroke-width: 1;
}
.svg-bubble-mentis {
  fill: var(--accent);
  stroke: var(--accent-deep);
  stroke-width: 1;
}
.svg-ping { fill: var(--accent); }

/* Animations Inbox (process section) — scoped to SVG bubbles only */
.process-step .bubble { opacity: 0; transform: translateY(8px); }
/* Restaurer la visibilité des bulles du chat */
.assistant-body .bubble { opacity: 1; transform: none; }
.reveal.in .bubble-1 { animation: bubble-in 700ms cubic-bezier(.22,.7,.32,1) 200ms forwards; }
.reveal.in .bubble-2 { animation: bubble-in 700ms cubic-bezier(.22,.7,.32,1) 1000ms forwards; }
.reveal.in .ping-1 { animation: ping 1.6s ease-out 1700ms infinite; }
@keyframes bubble-in {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes ping {
  0% { opacity: 0; transform: scale(0.6); transform-origin: 296px 184px; }
  20% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(2.2); transform-origin: 296px 184px; }
}

/* Visual Meet */
.svg-cal-dot { fill: color-mix(in oklab, var(--text) 22%, transparent); }
.svg-cal-pick { fill: color-mix(in oklab, var(--accent) 22%, transparent); stroke: var(--accent); stroke-width: 1.5; }
.svg-cal-pick-inner { fill: var(--accent); }
.svg-person {
  fill: color-mix(in oklab, var(--accent) 18%, var(--surface));
  stroke: var(--accent);
  stroke-width: 1.5;
}
.svg-person-a { transform-origin: 220px 120px; }
.svg-person-b { transform-origin: 280px 120px; }
.svg-link-line {
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-dasharray: 80;
  stroke-dashoffset: 80;
}
.svg-pill { fill: color-mix(in oklab, var(--accent) 14%, var(--surface)); stroke: var(--accent); stroke-width: 1; }
.svg-pill-dot { fill: var(--accent); }

.meet-circles .svg-person-a,
.meet-circles .svg-person-b { opacity: 0; }
.reveal.in .svg-person-a { animation: meet-a 900ms cubic-bezier(.22,.7,.32,1) 200ms forwards; }
.reveal.in .svg-person-b { animation: meet-b 900ms cubic-bezier(.22,.7,.32,1) 200ms forwards; }
.reveal.in .svg-link-line { animation: link 700ms ease-out 1000ms forwards; }
.reveal.in .rdv-tag { opacity: 0; animation: bubble-in 700ms cubic-bezier(.22,.7,.32,1) 1500ms forwards; }
@keyframes meet-a {
  0% { opacity: 0; transform: translateX(-20px); }
  100% { opacity: 1; transform: translateX(0); }
}
@keyframes meet-b {
  0% { opacity: 0; transform: translateX(20px); }
  100% { opacity: 1; transform: translateX(0); }
}
@keyframes link {
  to { stroke-dashoffset: 0; }
}

/* Visual Dashboard */
.svg-kpi {
  fill: color-mix(in oklab, var(--accent) 6%, var(--surface));
  stroke: var(--border);
  stroke-width: 1;
}
.svg-curve {
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  filter: drop-shadow(0 2px 4px color-mix(in oklab, var(--accent) 30%, transparent));
}
.svg-curve-pt { fill: var(--accent); opacity: 0; }
.svg-alert-bg { fill: color-mix(in oklab, var(--accent) 22%, var(--surface)); }
.svg-alert-dot { fill: var(--accent); }

.kpi { opacity: 0; transform: translateY(6px); }
.reveal.in .kpi-1 { animation: kpi-in 600ms cubic-bezier(.22,.7,.32,1) 200ms forwards; }
.reveal.in .kpi-2 { animation: kpi-in 600ms cubic-bezier(.22,.7,.32,1) 360ms forwards; }
.reveal.in .kpi-3 { animation: kpi-in 600ms cubic-bezier(.22,.7,.32,1) 520ms forwards; }
.reveal.in .svg-curve { animation: trace 1800ms cubic-bezier(.4,.1,.2,1) 700ms forwards; }
.reveal.in .svg-curve-pt { animation: dot-in 400ms ease-out forwards; animation-delay: calc(var(--d, 0) + 1200ms); }
.reveal.in .alert { animation: alert-pulse 1.6s ease-in-out 2400ms infinite; transform-origin: 300px 48px; }
@keyframes kpi-in {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes trace {
  to { stroke-dashoffset: 0; }
}
@keyframes dot-in {
  to { opacity: 1; }
}
@keyframes alert-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.25); }
}

/* Visual Breath */
.svg-ring {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.2;
  opacity: 0;
  transform-origin: 180px 120px;
}
.svg-sun {
  fill: color-mix(in oklab, var(--accent) 20%, var(--surface));
  stroke: var(--accent);
  stroke-width: 1.5;
}
.svg-sun-core { fill: var(--accent); }
.svg-hand { stroke: var(--accent-deep); stroke-width: 2; stroke-linecap: round; transform-origin: 180px 120px; }
.reveal.in .svg-hand-h { animation: hand-h 8s linear infinite; }
.reveal.in .svg-hand-m { animation: hand-m 30s linear infinite; }
.svg-spark { fill: var(--accent); opacity: 0; }

.reveal.in .svg-ring-1 { animation: breath 4s ease-in-out infinite; }
.reveal.in .svg-ring-2 { animation: breath 4s ease-in-out 0.6s infinite; }
.reveal.in .svg-ring-3 { animation: breath 4s ease-in-out 1.2s infinite; }
.reveal.in .spark { animation: spark 3.4s ease-in-out infinite; }
@keyframes breath {
  0% { opacity: 0; transform: scale(0.6); }
  40% { opacity: 0.55; }
  100% { opacity: 0; transform: scale(1.15); }
}
@keyframes hand-h {
  to { transform: rotate(360deg); }
}
@keyframes hand-m {
  to { transform: rotate(360deg); }
}
@keyframes spark {
  0%, 100% { opacity: 0; transform: scale(0.6); }
  50% { opacity: 1; transform: scale(1); }
}

/* Mobile */
@media (max-width: 880px) {
  .process { padding: 30px 20px 34px !important; }
  .process-head {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 22px;
  }
  .process-rail { gap: 18px; }
  .process-line { display: none; }

  /* CÔTE À CÔTE : texte gauche / visuel droit, alterné */
  .step {
    display: grid !important;
    grid-template-columns: 1.1fr 0.9fr !important;
    gap: 12px !important;
    align-items: center;
  }
  .step:nth-child(odd) .step-text {
    order: 1 !important; padding: 0 !important; text-align: left !important;
  }
  .step:nth-child(odd) .step-visual { order: 2 !important; }
  .step:nth-child(even) .step-text {
    order: 2 !important; padding: 0 !important; text-align: left !important;
  }
  .step:nth-child(even) .step-visual { order: 1 !important; }
  .step:nth-child(odd) .step-body { margin-left: 0; }
  .step::before { display: none; }

  /* Visuel sans cadre, plus petit */
  .step-frame {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
  }
  .step-frame::before { display: none !important; }
  .step-svg { max-height: 200px !important; width: 100% !important; height: auto !important; }
  .step-visual { display: flex !important; align-items: center !important; }
  .step-frame { width: 100% !important; padding: 0 !important; }
  .step { gap: 16px !important; align-items: stretch !important; }

  /* Texte plus dense */
  .step-num { font-size: 10px !important; margin-bottom: 4px !important; }
  .step-h, .step h3 { font-size: 18px !important; margin: 0 0 6px !important; line-height: 1.15 !important; }
  .step-body { font-size: 13.5px !important; line-height: 1.45 !important; max-width: 100% !important; }

  /* ================ ENGAGEMENT (Un seul interlocuteur, Veille continue, Pas dashboards) ================ */
  /* Icône à gauche du titre, en ligne — plus compact */
  .engagement { padding: 30px 20px 34px !important; }
  .engagement-head { gap: 14px !important; margin-bottom: 22px !important; }
  .engagement-grid { gap: 14px !important; }

  .eng-card {
    padding: 16px 18px !important;
    border-radius: 14px !important;
    display: grid !important;
    grid-template-columns: 38px 1fr !important;
    grid-template-rows: auto auto auto !important;
    column-gap: 12px !important;
    row-gap: 6px !important;
    align-items: start !important;
  }
  .eng-card .icon {
    grid-column: 1 / 2 !important;
    grid-row: 1 / 2 !important;
    width: 36px !important; height: 36px !important;
    border-radius: 10px !important;
    margin: 0 !important;
    align-self: center !important;
  }
  .eng-card .icon svg { width: 18px !important; height: 18px !important; }
  .eng-card h3 {
    grid-column: 2 / 3 !important;
    grid-row: 1 / 2 !important;
    font-size: 18px !important;
    line-height: 1.15 !important;
    margin: 0 !important;
    align-self: center !important;
  }
  .eng-card p {
    grid-column: 1 / 3 !important;
    grid-row: 2 / 3 !important;
    font-size: 13.5px !important;
    line-height: 1.45 !important;
    margin: 4px 0 0 !important;
  }
  .eng-card .quote {
    grid-column: 1 / 3 !important;
    grid-row: 3 / 4 !important;
    margin-top: 8px !important;
    padding-top: 10px !important;
    font-size: 13px !important;
  }
}

/* ============================================================
   LEGAL DRAWER — tiroir mentions / confidentialité / cookies
   ============================================================ */
.foot-legal-link {
  color: inherit; text-decoration: none;
  border-bottom: 1px dotted currentColor; opacity: .85;
  transition: opacity .2s, color .2s;
  cursor: pointer;
}
.foot-legal-link:hover { opacity: 1; color: var(--accent, #cc785c); }

.ld-scrim {
  position: fixed; inset: 0; z-index: 998;
  background: rgba(20,15,10,.42);
  backdrop-filter: blur(3px);
  animation: ld-fade-in .25s ease;
}
@keyframes ld-fade-in { from { opacity: 0; } to { opacity: 1; } }

.ld-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(560px, 100vw);
  background: #f5f1ea;
  border-left: 1px solid rgba(40,30,20,.10);
  box-shadow: -30px 0 60px -20px rgba(40,30,20,.35);
  z-index: 999;
  display: flex; flex-direction: column;
  animation: ld-slide-in .35s cubic-bezier(.4,0,.2,1);
  font-family: 'Inter', -apple-system, sans-serif;
  color: #2a2520;
}
@keyframes ld-slide-in {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}

.theme-dark .ld-drawer { background: #1a1614; color: #e5dfd6; border-left-color: rgba(255,255,255,.08); }
.theme-dark .ld-scrim  { background: rgba(0,0,0,.55); }

.ld-head {
  padding: 22px 28px 16px;
  border-bottom: 1px solid rgba(40,30,20,.10);
  background: #fefcf8;
}
.theme-dark .ld-head { background: #221c19; border-bottom-color: rgba(255,255,255,.08); }

.ld-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.ld-eyebrow {
  font-family: 'JetBrains Mono', monospace; font-size: 10.5px;
  letter-spacing: .14em; text-transform: uppercase;
  color: #cc785c;
}
.ld-close {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid rgba(40,30,20,.15); background: transparent;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: #6b6259; font-size: 16px;
  transition: all .2s;
}
.ld-close:hover { color: #1a1614; border-color: #1a1614; }
.theme-dark .ld-close { border-color: rgba(255,255,255,.15); color: #b8aea0; }
.theme-dark .ld-close:hover { color: #fff; border-color: #fff; }

.ld-title {
  font-family: 'Source Serif 4', Georgia, serif; font-weight: 400;
  font-size: 28px; letter-spacing: -0.02em; color: #1a1614;
  margin-bottom: 4px;
}
.theme-dark .ld-title { color: #fff; }

.ld-sub { color: #6b6259; font-size: 13px; line-height: 1.5; margin-bottom: 18px; }
.theme-dark .ld-sub { color: #a89d92; }

.ld-pills { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.ld-pill {
  padding: 6px 12px; border-radius: 99px;
  background: #f5f1ea; border: 1px solid rgba(40,30,20,.12);
  font-family: 'JetBrains Mono', monospace; font-size: 10.5px;
  letter-spacing: .06em; text-transform: uppercase;
  color: #6b6259; cursor: pointer; transition: all .2s;
}
.ld-pill.active { background: #1a1614; color: #fff; border-color: #1a1614; }
.ld-pill:not(.active):hover { border-color: #1a1614; color: #1a1614; }
.theme-dark .ld-pill { background: #1a1614; border-color: rgba(255,255,255,.12); color: #a89d92; }
.theme-dark .ld-pill.active { background: #cc785c; border-color: #cc785c; color: #fff; }

.ld-tabs {
  display: flex; gap: 4px;
  background: #f5f1ea; border-radius: 10px; padding: 4px;
  border: 1px solid rgba(40,30,20,.10);
}
.theme-dark .ld-tabs { background: #1a1614; border-color: rgba(255,255,255,.08); }
.ld-tab {
  flex: 1; padding: 9px 14px;
  border: none; background: transparent; cursor: pointer;
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 500;
  color: #6b6259; border-radius: 7px;
  transition: all .2s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.ld-tab.active { background: #fefcf8; color: #1a1614; box-shadow: 0 1px 3px rgba(40,30,20,.08); }
.ld-tab:not(.active):hover { color: #1a1614; }
.theme-dark .ld-tab { color: #a89d92; }
.theme-dark .ld-tab.active { background: #221c19; color: #fff; }
.theme-dark .ld-tab:not(.active):hover { color: #fff; }
.ld-tab-ico { font-size: 12px; }

.ld-body {
  flex: 1; overflow-y: auto; padding: 24px 28px;
  display: flex; flex-direction: column; gap: 16px;
}

.ld-bub {
  max-width: 92%; padding: 14px 18px;
  border-radius: 16px; font-size: 14.5px; line-height: 1.55;
  animation: ld-bub-in .3s ease;
}
@keyframes ld-bub-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ld-bub.bot {
  background: #fefcf8; border: 1px solid rgba(40,30,20,.10);
  align-self: flex-start; color: #2a2520;
  border-bottom-left-radius: 4px;
}
.ld-bub.user {
  background: #1a1614; color: #f5f1ea;
  align-self: flex-end; border-bottom-right-radius: 4px;
}
.theme-dark .ld-bub.bot { background: #221c19; border-color: rgba(255,255,255,.08); color: #e5dfd6; }
.theme-dark .ld-bub.user { background: #cc785c; color: #fff; }

.ld-typing { display: flex; gap: 5px; padding: 16px 20px; }
.ld-typing span {
  width: 7px; height: 7px; border-radius: 50%; background: #cc785c;
  animation: ld-pulse 1.2s infinite ease-in-out;
}
.ld-typing span:nth-child(2) { animation-delay: .15s; }
.ld-typing span:nth-child(3) { animation-delay: .30s; }
@keyframes ld-pulse {
  0%, 60%, 100% { opacity: .35; transform: scale(.85); }
  30% { opacity: 1; transform: scale(1); }
}

.ld-suggest { display: flex; flex-direction: column; gap: 8px; }
.ld-suggest-label {
  font-family: 'JetBrains Mono', monospace; font-size: 10.5px;
  letter-spacing: .12em; text-transform: uppercase;
  color: #9a8f84; margin-bottom: 4px;
}
.ld-suggest-btn {
  text-align: left; padding: 11px 14px;
  background: #fefcf8; border: 1px solid rgba(40,30,20,.10);
  border-radius: 10px; font-family: 'Inter', sans-serif; font-size: 13.5px;
  color: #2a2520; cursor: pointer; transition: all .2s;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.ld-suggest-btn:hover {
  border-color: #cc785c; color: #cc785c; transform: translateX(2px);
}
.ld-arr { color: #9a8f84; transition: color .2s; }
.ld-suggest-btn:hover .ld-arr { color: #cc785c; }
.theme-dark .ld-suggest-btn { background: #221c19; border-color: rgba(255,255,255,.08); color: #e5dfd6; }
.theme-dark .ld-suggest-btn:hover { border-color: #cc785c; color: #cc785c; }

.ld-input {
  border-top: 1px solid rgba(40,30,20,.10);
  padding: 16px 20px; background: #fefcf8;
}
.theme-dark .ld-input { background: #221c19; border-top-color: rgba(255,255,255,.08); }
.ld-input-wrap {
  display: flex; gap: 10px; align-items: center;
  background: #f5f1ea; border: 1px solid rgba(40,30,20,.10);
  border-radius: 12px; padding: 4px 4px 4px 16px;
}
.theme-dark .ld-input-wrap { background: #1a1614; border-color: rgba(255,255,255,.10); }
.ld-input-wrap input {
  flex: 1; border: none; background: transparent; outline: none;
  padding: 10px 0; font-family: 'Inter', sans-serif; font-size: 14px;
  color: #1a1614;
}
.theme-dark .ld-input-wrap input { color: #fff; }
.ld-input-wrap input::placeholder { color: #9a8f84; }
.ld-send {
  width: 36px; height: 36px; border-radius: 50%;
  background: #cc785c; border: none; color: #fff;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all .2s; font-size: 16px; font-weight: 600;
}
.ld-send:hover:not(:disabled) { transform: scale(1.06); }
.ld-send:disabled { opacity: .4; cursor: not-allowed; }
.ld-foot-note {
  margin-top: 10px; text-align: center;
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  color: #9a8f84; letter-spacing: .04em;
}

/* Mode "texte complet" */
.ld-legal-text { padding: 28px 32px; gap: 0; display: block; }
.ld-legal-text h3 {
  font-family: 'Source Serif 4', Georgia, serif; font-weight: 500;
  font-size: 17px; color: #1a1614; margin: 22px 0 8px;
  letter-spacing: -0.01em;
}
.ld-legal-text h3:first-child { margin-top: 0; }
.theme-dark .ld-legal-text h3 { color: #fff; }
.ld-legal-text p {
  font-size: 14px; color: #2a2520; margin-bottom: 12px;
  line-height: 1.65;
}
.theme-dark .ld-legal-text p { color: #c9c0b4; }
.ld-legal-foot {
  margin-top: 28px; padding-top: 18px;
  border-top: 1px solid rgba(40,30,20,.10);
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  color: #6b6259; letter-spacing: .04em;
}
.theme-dark .ld-legal-foot { color: #a89d92; border-top-color: rgba(255,255,255,.08); }
.ld-legal-foot a { color: #cc785c; text-decoration: none; border-bottom: 1px solid rgba(204,120,92,.3); }

/* Mobile */
@media (max-width: 700px) {
  .ld-drawer { width: 100vw; }
  .ld-head { padding: 18px 20px 14px; }
  .ld-title { font-size: 22px; }
  .ld-body { padding: 18px 20px; }
  .ld-input { padding: 12px 16px; }
  .ld-legal-text { padding: 20px; }
}
