/* ============ Corvus - site web ============ */

@font-face { font-family: 'Manrope'; src: url('img/manrope-v20-latin-800.woff2') format('woff2'); font-weight: 800; font-style: normal; font-display: swap; }

:root {
  --bg: #FAFAFA;
  --surface: #FFFFFF;
  --surface2: #F4F4F5;
  --border: #E4E4E7;
  --text: #18181B;
  --text-muted: #71717A;
  --primary: #4F8EF7;
  --primary-dark: #2563EB;
  --success: #2FBF71;
  --ai: #8B5CF6;
  --danger: #E5484D;

  --pii-person-bg: rgba(79,142,247,.12);   --pii-person-fg: #2563eb;
  --pii-org-bg: rgba(47,191,113,.12);      --pii-org-fg: #16a34a;
  --pii-address-bg: rgba(245,165,36,.12);  --pii-address-fg: #d97706;
  --pii-date-bg: rgba(139,92,246,.12);     --pii-date-fg: #7c3aed;
  --pii-contact-bg: rgba(6,182,212,.12);   --pii-contact-fg: #0891b2;
  --pii-phone-bg: rgba(236,72,153,.12);    --pii-phone-fg: #db2777;
  --pii-finance-bg: rgba(229,72,77,.12);   --pii-finance-fg: #dc2626;

  --radius: 12px;
  --shadow: 0 8px 30px rgba(24, 24, 27, .08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 780px; }

/* ============ Keyframes ============ */

@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }
@keyframes piiReveal { from { opacity: 0; transform: translateY(3px) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes scan { 0% { top: 0; } 100% { top: calc(100% - 2px); } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes gradShift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes driftA { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(40px, -30px) scale(1.15); } 100% { transform: translate(0, 0) scale(1); } }
@keyframes driftB { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-50px, 25px) scale(1.1); } 100% { transform: translate(0, 0) scale(1); } }
@keyframes logIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(200%); } }
@keyframes glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(79, 142, 247, 0); } 50% { box-shadow: 0 0 0 4px rgba(79, 142, 247, .25); } }

/* ============ Header ============ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 250, .85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .2s;
}

.site-header.is-scrolled { box-shadow: var(--shadow); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { display: block; height: 45px; width: auto; }
.brand-text {
  font-family: 'Manrope', -apple-system, 'Segoe UI', sans-serif;
  font-weight: 800;
  letter-spacing: .2em;
  font-size: 17px;
  color: var(--text);
}

.site-nav { display: flex; gap: 28px; }
.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color .15s;
}
.site-nav a:hover { color: var(--text); }

/* ============ Boutons ============ */

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(79, 142, 247, .35); }
.btn-ghost { border: 1px solid var(--border); color: var(--text); background: var(--surface); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

/* ============ Hero ============ */

.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 88px;
  border-bottom: 1px solid var(--border);
}

.hero::before, .hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .55;
  pointer-events: none;
  z-index: 0;
}
.hero::before {
  width: 560px; height: 560px;
  top: -180px; right: -120px;
  background: radial-gradient(circle, rgba(139, 92, 246, .35), transparent 65%);
  animation: driftA 14s ease-in-out infinite;
}
.hero::after {
  width: 520px; height: 520px;
  top: -120px; left: -160px;
  background: radial-gradient(circle, rgba(79, 142, 247, .35), transparent 65%);
  animation: driftB 18s ease-in-out infinite;
}

.hero-inner { position: relative; z-index: 1; text-align: center; }

.hero-inner > * { animation: fadeUp .7s ease both; }
.hero-inner > *:nth-child(1) { animation-delay: .05s; }
.hero-inner > *:nth-child(2) { animation-delay: .15s; }
.hero-inner > *:nth-child(3) { animation-delay: .25s; }
.hero-inner > *:nth-child(4) { animation-delay: .35s; }
.hero-inner > *:nth-child(5) { animation-delay: .45s; }

.hero-badges { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }

.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}
.badge-green { border-color: rgba(47, 191, 113, .4); color: var(--success); background: rgba(47, 191, 113, .08); }

.hero h1 {
  font-size: clamp(34px, 5.2vw, 56px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.grad {
  background: linear-gradient(90deg, var(--primary), var(--ai), var(--primary));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradShift 6s ease infinite;
}

.hero-sub {
  max-width: 640px;
  margin: 22px auto 0;
  font-size: 18px;
  color: var(--text-muted);
}
.hero-sub strong { color: var(--text); }

.hero-cta { display: flex; gap: 14px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }

.hero-points {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 26px;
  flex-wrap: wrap;
  margin-top: 44px;
  font-size: 14.5px;
  color: var(--text-muted);
}
.hero-points li { display: flex; align-items: center; gap: 8px; }
.tick { color: var(--success); font-weight: 800; }

/* ============ Sections ============ */

.section { padding: 88px 0; }
.section-alt { background: var(--surface2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.section h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  letter-spacing: -0.015em;
  line-height: 1.2;
  max-width: 640px;
  margin-bottom: 44px;
}
.section-alt h2, #faq h2 { margin-left: auto; margin-right: auto; text-align: center; }
#confidentialite h2, #demo h2 { text-align: left; }
.section-alt .eyebrow { text-align: center; }

/* ============ Cartes confidentialité ============ */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.cards .reveal:nth-child(2) { transition-delay: .1s; }
.cards .reveal:nth-child(3) { transition-delay: .2s; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(24, 24, 27, .12); }

.card-icon { font-size: 30px; margin-bottom: 16px; display: inline-block; }
.card:hover .card-icon { animation: pop .4s cubic-bezier(.34, 1.56, .64, 1); }
.card h3 { font-size: 18px; margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 15px; }
.card code, .steps code, .faq-item code, .demo code {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 6px;
  font-size: .9em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ============ Étapes du pipeline ============ */

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 56px;
  counter-reset: step;
}

.steps li {
  display: flex;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.steps li:nth-child(2) { transition-delay: .12s; }
.steps li:nth-child(3) { transition-delay: .24s; }

.step-num {
  flex: 0 0 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--ai));
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(79, 142, 247, .35);
}
.steps li.is-visible .step-num { animation: pop .5s cubic-bezier(.34, 1.56, .64, 1) .1s both; }

.steps strong { display: block; margin-bottom: 4px; }
.steps p { color: var(--text-muted); font-size: 14.5px; }

/* ============ Démo ============ */

.demo {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* --- Top : stepper + contrôles --- */

.demo-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 18px 0;
}

.demo-stepper { display: flex; gap: 6px; }

.demo-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  background: transparent;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 9px;
  font-family: inherit;
  transition: background .15s, color .15s;
}
.demo-step:hover { background: var(--surface2); color: var(--text); }
.demo-step .step-dot {
  width: 24px; height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  font-weight: 700;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: background .2s, color .2s, border-color .2s;
}
.demo-step.is-active { color: var(--text); }
.demo-step.is-active .step-dot {
  background: linear-gradient(135deg, var(--primary), var(--ai));
  border-color: transparent;
  color: #fff;
  animation: pop .4s cubic-bezier(.34, 1.56, .64, 1);
}
.demo-step.is-done .step-dot { background: rgba(47, 191, 113, .15); border-color: rgba(47, 191, 113, .5); color: var(--success); }

.demo-controls { display: flex; gap: 8px; }

.demo-btn {
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .15s, color .15s, transform .15s;
}
.demo-btn:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-1px); }

/* --- Barre de progression --- */

.demo-progress { height: 4px; background: var(--surface2); margin: 10px 18px 0; border-radius: 2px; overflow: hidden; }
.demo-progress-bar {
  height: 100%;
  width: 0%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--ai));
  transition: width .9s cubic-bezier(.4, 0, .2, 1);
  position: relative;
  overflow: hidden;
}
.demo-progress-bar::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 50%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .5), transparent);
  animation: shimmer 1.6s linear infinite;
}
.demo.is-paused .demo-progress-bar::after { animation-play-state: paused; }

/* --- Corps : document + panneau latéral --- */

.demo-body {
  display: grid;
  grid-template-columns: 1fr 280px;
  min-height: 430px;
}

.demo-doc-wrap { position: relative; overflow: hidden; }

.scanline {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  z-index: 1;
  opacity: 0;
  background: linear-gradient(90deg, transparent, var(--primary), var(--ai), transparent);
  box-shadow: 0 0 12px rgba(79, 142, 247, .6);
}
.scanline.is-scanning { opacity: 1; animation: scan 2.6s linear infinite; }

.demo-doc {
  padding: 26px 30px;
  font-size: 15px;
  line-height: 1.85;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: Georgia, "Times New Roman", serif;
}

.demo-doc.is-typing::after {
  content: "▌";
  color: var(--primary);
  animation: blink 1s steps(1) infinite;
  margin-left: 1px;
}

.demo-side {
  border-left: 1px solid var(--border);
  background: var(--surface2);
  padding: 22px;
  font-size: 13.5px;
  max-height: 430px;
  overflow-y: auto;
}

.demo-side h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.mapping-table { width: 100%; border-collapse: collapse; }
.mapping-table th {
  text-align: left;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.mapping-table td {
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  word-break: break-word;
}
.mapping-table tr { opacity: 0; transform: translateY(6px); }
.mapping-table tr.row-in { animation: logIn .35s ease both; }
.mapping-table tr:last-child td { border-bottom: none; }
.mapping-table .tok { font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 600; white-space: nowrap; }

.risk-note { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); color: var(--text-muted); line-height: 1.55; }
.risk-note strong { color: var(--danger); }

.demo-count { font-size: 15px; color: var(--text); }
.demo-count strong { color: var(--primary); font-size: 18px; }

/* --- Log d'étapes --- */

.demo-log {
  border-top: 1px solid var(--border);
  background: var(--surface2);
  padding: 10px 24px;
  min-height: 46px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column-reverse;
  gap: 4px;
}
.log-line { animation: logIn .35s ease both; }
.log-line.is-last { color: var(--text); font-weight: 600; }
.log-line.is-last .ok { color: var(--success); }
.log-line.is-shield { color: var(--success); font-weight: 700; }

/* PII spans (couleurs de l'app, theme.py) */
.pii {
  border-radius: 3px;
  padding: 1px 4px;
  border: 1px solid transparent;
  opacity: 0;
}
.pii.is-revealed { animation: piiReveal .4s ease both; }
.pii.is-revealed.is-glow { animation: piiReveal .4s ease both, glow 1s ease .35s; }

.pii-person   { background: var(--pii-person-bg); color: var(--pii-person-fg); border-color: rgba(79,142,247,.3); }
.pii-org      { background: var(--pii-org-bg); color: var(--pii-org-fg); border-color: rgba(47,191,113,.3); }
.pii-address  { background: var(--pii-address-bg); color: var(--pii-address-fg); border-color: rgba(245,165,36,.3); }
.pii-date     { background: var(--pii-date-bg); color: var(--pii-date-fg); border-color: rgba(139,92,246,.3); }
.pii-contact  { background: var(--pii-contact-bg); color: var(--pii-contact-fg); border-color: rgba(6,182,212,.3); }
.pii-phone    { background: var(--pii-phone-bg); color: var(--pii-phone-fg); border-color: rgba(236,72,153,.3); }
.pii-finance  { background: var(--pii-finance-bg); color: var(--pii-finance-fg); border-color: rgba(229,72,77,.3); }

.pii-token {
  border-radius: 3px;
  padding: 1px 4px;
  background: var(--surface2);
  border: 1px dashed var(--text-muted);
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: .92em;
  opacity: 0;
  display: inline-block;
}
.pii-token.tok-in { animation: pop .35s cubic-bezier(.34, 1.56, .64, 1) both; }

/* Légende */
.legend { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 4px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-muted); }
.legend .chip { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.chip-person { background: var(--pii-person-fg); }
.chip-org { background: var(--pii-org-fg); }
.chip-address { background: var(--pii-address-fg); }
.chip-date { background: var(--pii-date-fg); }
.chip-contact { background: var(--pii-contact-fg); }
.chip-phone { background: var(--pii-phone-fg); }
.chip-finance { background: var(--pii-finance-fg); }

/* ============ Extension navigateur ============ */

#extension h2 { text-align: left; }

.extension-sub {
  max-width: 680px;
  margin: -24px 0 40px;
  font-size: 16px;
  color: var(--text-muted);
}
.extension-sub strong { color: var(--text); }
.extension-sub code, .composer-demo code {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 6px;
  font-size: .9em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* --- Toggle d'assistant (ChatGPT / Gemini) --- */

.composer-host {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-bottom: 14px;
}
.composer-host-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  padding: 7px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}
.composer-host-btn:hover { border-color: var(--primary); color: var(--primary); }
.composer-host-btn.is-active {
  background: linear-gradient(135deg, var(--primary), var(--ai));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 14px rgba(79, 142, 247, .3);
}

/* --- Fenêtre du composer --- */

.composer-demo {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  max-width: 780px;
  margin: 0 auto;
}

.composer-window {
  display: flex;
  flex-direction: column;
  padding: 16px 20px 20px;
  gap: 12px;
}

.composer-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.composer-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--success), #0ea5e9);
  flex: 0 0 auto;
  transition: background .3s;
}
.composer-demo[data-host="gemini"] .composer-avatar {
  background: linear-gradient(135deg, #1a73e8, var(--ai));
}
.composer-header-title { display: flex; flex-direction: column; line-height: 1.3; }
.composer-header-title strong { font-size: 14.5px; }
.composer-header-title span { font-size: 12.5px; color: var(--text-muted); }
.composer-shield {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  color: var(--success);
  background: rgba(47, 191, 113, .1);
  border: 1px solid rgba(47, 191, 113, .35);
  padding: 5px 11px;
  border-radius: 999px;
  white-space: nowrap;
}

.composer-chat { display: flex; flex-direction: column; gap: 8px; min-height: 44px; }
.chat-msg {
  max-width: 78%;
  font-size: 14px;
  line-height: 1.5;
  padding: 10px 14px;
  border-radius: 14px 14px 2px 14px;
  background: var(--surface2);
  color: var(--text);
  animation: logIn .4s ease both;
}

/* --- Barre de révision (chips) --- */

.cv-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px;
  background: var(--surface2);
  border: 1px dashed var(--border);
  border-radius: 10px;
  min-height: 0;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .3s ease, transform .3s ease;
}
.cv-bar.is-visible { opacity: 1; transform: none; }
.cv-bar-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  margin-right: 4px;
}

.cv-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(47, 191, 113, .5);
  background: rgba(47, 191, 113, .12);
  color: #16a34a;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s, transform .15s;
  animation: pop .35s cubic-bezier(.34, 1.56, .64, 1) both;
}
.cv-chip:hover { transform: translateY(-1px); }
.cv-chip .cv-chip-name { color: var(--text-muted); font-family: inherit; font-weight: 500; }
.cv-chip.is-real {
  border-color: rgba(229, 72, 77, .5);
  background: rgba(229, 72, 77, .12);
  color: #dc2626;
}
.cv-chip.is-real .cv-chip-name { color: #dc2626; }

/* --- Composer --- */

.composer-box {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  background: var(--surface);
}
.composer-input {
  flex: 1;
  font-size: 14.5px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  min-height: 22px;
}
.composer-input.is-typing::after {
  content: "▌";
  color: var(--primary);
  animation: blink 1s steps(1) infinite;
  margin-left: 1px;
}
.composer-send {
  flex: 0 0 auto;
  border: none;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--primary), var(--ai));
  color: #fff;
  font-family: inherit;
  font-weight: 700;
  font-size: 13.5px;
  padding: 9px 16px;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, opacity .15s;
}
.composer-send:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(79, 142, 247, .35); }
.composer-send:disabled { opacity: .45; cursor: default; transform: none; box-shadow: none; }

.composer-input .pii { cursor: default; }

/* --- Points forts sous la démo --- */

.extension-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  max-width: 980px;
  margin: 44px auto 0;
}
.extension-point {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.extension-point-icon { font-size: 24px; flex: 0 0 auto; }
.extension-point strong { display: block; font-size: 15px; margin-bottom: 4px; }
.extension-point p { color: var(--text-muted); font-size: 13.5px; }

/* ============ En bref ============ */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.grid .reveal:nth-child(2), .grid .reveal:nth-child(3) { transition-delay: .08s; }
.grid .reveal:nth-child(4), .grid .reveal:nth-child(5), .grid .reveal:nth-child(6) { transition-delay: .16s; }

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature h3 { font-size: 17px; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.feature:hover h3 { animation: pop .4s cubic-bezier(.34, 1.56, .64, 1); transform-origin: left center; }
.feature p { color: var(--text-muted); font-size: 14.5px; }

/* ============ FAQ ============ */

.faq { display: flex; flex-direction: column; gap: 12px; }
.faq .reveal:nth-child(2) { transition-delay: .05s; }
.faq .reveal:nth-child(3) { transition-delay: .1s; }
.faq .reveal:nth-child(4) { transition-delay: .15s; }
.faq .reveal:nth-child(5) { transition-delay: .2s; }
.faq .reveal:nth-child(6) { transition-delay: .25s; }
.faq .reveal:nth-child(7) { transition-delay: .3s; }

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s;
}
.faq-item[open] { border-color: rgba(79, 142, 247, .4); }

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 15.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 500;
  color: var(--primary);
  flex: 0 0 auto;
  transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { background: var(--surface2); }

.faq-item p {
  padding: 0 22px 20px;
  color: var(--text-muted);
  font-size: 15px;
  max-width: 640px;
}

/* ============ Footer ============ */

.site-footer {
  background: #111;
  color: #A0A0A0;
  padding: 44px 0;
}
.footer-inner { display: flex; flex-direction: column; gap: 8px; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; }
.footer-inner img { height: 45px; width: auto; filter: brightness(0) invert(1); }
.footer-brand .brand-text { color: #fff; }
.footer-muted { font-size: 13px; opacity: .7; }
.footer-muted a { color: #C7C7C7; text-decoration: none; }
.footer-muted a:hover { color: var(--primary); text-decoration: underline; }

/* ============ Pages légales (CGU, mentions) ============ */

.legal h1 { font-size: 34px; margin-bottom: 4px; }
.legal-date { font-size: 13px; color: var(--text-muted); margin: 0 0 28px; }
.legal h2 { font-size: 19px; margin: 32px 0 10px; color: var(--text); }
.legal h2:first-of-type { margin-top: 0; }
.legal p, .legal li { font-size: 15px; line-height: 1.7; color: var(--text-muted); margin-bottom: 12px; }
.legal ul { padding-left: 20px; }
.legal a { color: var(--primary); }

/* ============ Reveal ============ */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============ Accessibilité / réduction de mouvement ============ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-inner > *, .reveal { opacity: 1 !important; transform: none !important; transition: none !important; animation: none !important; }
  .hero::before, .hero::after, .grad { animation: none !important; }
  .pii, .pii-token, .mapping-table tr, .log-line, .demo-step .step-dot, .cv-chip { animation: none !important; opacity: 1 !important; transform: none !important; }
  .scanline { display: none; }
}

/* ============ Responsive ============ */

@media (max-width: 760px) {
  .site-nav { display: none; }
  .hero { padding: 64px 0 56px; }
  .section { padding: 64px 0; }
  .demo-body { grid-template-columns: 1fr; }
  .demo-side { border-left: none; border-top: 1px solid var(--border); max-height: none; }
  .demo-doc { padding: 20px; }
  .demo-top { justify-content: center; }
  .composer-shield { display: none; }
  .composer-window { padding: 12px 14px 16px; }
  .composer-host-btn { padding: 6px 13px; font-size: 12.5px; }
}
