/* ============================================================
   VERSO — Design tokens (partagés sur les 4 verticales)
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..900;1,9..144,300..900&family=Schibsted+Grotesk:wght@400;500;600&display=swap');

:root {
  --paper: oklch(0.98 0.008 95);
  --paper-2: oklch(0.96 0.012 95);
  --ink: oklch(0.23 0.03 265);
  --muted: oklch(0.52 0.02 265);
  --line: oklch(0.90 0.012 95);
  --accent: oklch(0.55 0.15 250);
  --accent-soft: oklch(0.93 0.04 250);
  --accent-ink: oklch(0.99 0.01 250);
  --radius: 1rem;

  /* Typo */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Schibsted Grotesk', system-ui, sans-serif;

  /* Easing */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  margin: 0;
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

/* Layout */
.container {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); }

p { color: var(--muted); max-width: 65ch; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* CTA button */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: filter 0.2s var(--ease-out-expo), transform 0.2s var(--ease-out-expo);
  text-decoration: none;
}
.btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  text-decoration: none;
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* Card */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: 0 2px 8px oklch(0 0 0 / 0.04), 0 8px 24px oklch(0 0 0 / 0.04);
}

/* Section spacing */
.section { padding-block: clamp(4rem, 8vw, 7rem); }
.section-sm { padding-block: clamp(2.5rem, 5vw, 4rem); }

/* Divider */
.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--line) 20%, var(--line) 80%, transparent);
  border: none;
  margin: 0;
}

/* Scroll reveal */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal {
  animation: fadeSlideUp 0.6s var(--ease-out-expo) both;
  animation-timeline: view();
  animation-range: entry 0% entry 28%;
}

/* Dot pulse (live indicator) */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.dot-live {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: oklch(0.58 0.18 145);
  animation: pulse 2s ease-in-out infinite;
  vertical-align: middle;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid oklch(0.85 0.07 250);
}

/* Form */
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.875rem; font-weight: 500; color: var(--ink); }
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 0.6rem;
  padding: 0.65rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--accent); }
.form-group input::placeholder { color: var(--muted); opacity: 0.7; }

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.9rem;
  color: var(--muted);
  cursor: pointer;
}
.form-check input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--accent);
  margin-top: 0.15rem;
  flex-shrink: 0;
  border-radius: 4px;
}

/* Mockup UI */
.mockup-chat {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 0.875rem;
}
.mockup-bar {
  background: var(--accent-soft);
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  border-bottom: 1px solid var(--line);
}
.mockup-body { padding: 1rem; display: flex; flex-direction: column; gap: 0.75rem; }
.msg { max-width: 85%; padding: 0.6rem 0.9rem; border-radius: 0.75rem; line-height: 1.4; }
.msg-agent {
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
  border-bottom-left-radius: 0.15rem;
}
.msg-user {
  align-self: flex-end;
  background: var(--accent);
  color: var(--accent-ink);
  border-bottom-right-radius: 0.15rem;
}
.msg-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

/* Validation queue */
.queue-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  font-size: 0.875rem;
}
.queue-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.queue-action {
  display: flex;
  gap: 0.4rem;
  margin-left: auto;
}
.btn-validate {
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 0.4rem;
  background: oklch(0.92 0.08 145);
  color: oklch(0.35 0.12 145);
  border: none;
  cursor: pointer;
  font-weight: 600;
}
.btn-edit {
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 0.4rem;
  background: var(--paper-2);
  color: var(--muted);
  border: 1px solid var(--line);
  cursor: pointer;
}

/* Before/after */
.ba-col-before { color: oklch(0.50 0.10 20); }
.ba-col-after  { color: oklch(0.42 0.14 145); }

/* Nav */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: oklch(0.98 0.008 95 / 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
  height: 3.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.03em;
}
.nav-logo span { color: var(--accent); }

/* Utilities */
.text-muted { color: var(--muted); }
.text-accent { color: var(--accent); }
.font-display { font-family: var(--font-display); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

@media (max-width: 640px) {
  .hide-mobile { display: none; }
}
