package health

import "net/http"

// LandingHandler serves the Veylant IA marketing landing page at GET /.
func LandingHandler(w http.ResponseWriter, r *http.Request) {
	w.Header().Set("Content-Type", "text/html; charset=utf-8")
	w.Header().Set("Content-Security-Policy",
		"default-src 'self'; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; connect-src 'self'")
	w.WriteHeader(http.StatusOK)
	_, _ = w.Write([]byte(landingHTML))
}

const landingHTML = `<!DOCTYPE html>
<html lang="fr">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width,initial-scale=1.0">
  <title>Veylant IA — Gouvernance IA pour l'entreprise</title>
  <meta name="description" content="Interceptez, anonymisez et gouvernez tous vos echanges avec les LLMs. RGPD natif, EU AI Act ready, zero Shadow AI.">
  <style>
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      --brand:        #4f46e5;
      --brand-dark:   #3730a3;
      --brand-light:  #818cf8;
      --accent:       #06b6d4;
      --bg:           #0a0f1e;
      --bg-card:      rgba(255,255,255,0.04);
      --bg-card-hover:rgba(255,255,255,0.07);
      --border:       rgba(255,255,255,0.08);
      --text:         #f1f5f9;
      --muted:        #94a3b8;
      --dim:          #64748b;
      --green:        #10b981;
      --red:          #ef4444;
      --r:            12px;
      --rl:           20px;
    }

    html { scroll-behavior: smooth; }

    body {
      font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
      background: var(--bg);
      color: var(--text);
      min-height: 100vh;
      overflow-x: hidden;
    }

    /* ── BACKGROUND ── */
    body::before {
      content: '';
      position: fixed;
      inset: 0;
      background:
        radial-gradient(ellipse at 15% 50%, rgba(79,70,229,.14) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 15%, rgba(6,182,212,.09) 0%, transparent 50%);
      pointer-events: none;
      z-index: 0;
    }

    /* ── NAV ── */
    nav {
      position: sticky;
      top: 0;
      z-index: 100;
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
      background: rgba(10,15,30,.85);
      border-bottom: 1px solid var(--border);
    }
    .nav-inner {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 1.5rem;
      height: 64px;
      display: flex;
      align-items: center;
      gap: 2rem;
    }
    .logo {
      font-size: 1.25rem;
      font-weight: 800;
      color: var(--text);
      text-decoration: none;
      letter-spacing: -.5px;
      flex-shrink: 0;
    }
    .logo span { color: var(--brand-light); }
    .nav-links {
      display: flex;
      gap: 1.75rem;
      list-style: none;
      margin-left: auto;
    }
    .nav-links a {
      color: var(--muted);
      text-decoration: none;
      font-size: .875rem;
      font-weight: 500;
      transition: color .2s;
    }
    .nav-links a:hover { color: var(--text); }
    .nav-cta { margin-left: 1rem; }

    /* ── BUTTONS ── */
    .btn {
      display: inline-flex;
      align-items: center;
      gap: .45rem;
      padding: .6rem 1.25rem;
      border-radius: 8px;
      font-size: .875rem;
      font-weight: 600;
      text-decoration: none;
      cursor: pointer;
      border: none;
      transition: all .2s;
      white-space: nowrap;
    }
    .btn-primary { background: var(--brand); color: #fff; }
    .btn-primary:hover {
      background: #4338ca;
      transform: translateY(-1px);
      box-shadow: 0 8px 28px rgba(79,70,229,.45);
    }
    .btn-outline {
      background: transparent;
      color: var(--text);
      border: 1px solid var(--border);
    }
    .btn-outline:hover {
      background: var(--bg-card);
      border-color: rgba(255,255,255,.2);
    }
    .btn-lg { padding: .85rem 2rem; font-size: 1rem; border-radius: 10px; }

    /* ── LAYOUT ── */
    section { padding: 6rem 1.5rem; position: relative; z-index: 1; }
    .container { max-width: 1200px; margin: 0 auto; }

    .label {
      display: inline-flex;
      align-items: center;
      gap: .4rem;
      font-size: .75rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: .1em;
      color: var(--brand-light);
      background: rgba(79,70,229,.15);
      border: 1px solid rgba(79,70,229,.3);
      padding: .3rem .85rem;
      border-radius: 100px;
      margin-bottom: 1.5rem;
    }

    h1, h2, h3 { line-height: 1.2; letter-spacing: -.025em; }
    h1 { font-size: clamp(2.4rem,5vw,3.8rem); font-weight: 800; }
    h2 { font-size: clamp(1.75rem,3.5vw,2.6rem); font-weight: 700; }
    h3 { font-size: 1.05rem; font-weight: 600; }

    .gradient {
      background: linear-gradient(135deg, #a5b4fc 0%, #06b6d4 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }
    .muted { color: var(--muted); }

    /* ── HERO ── */
    .hero {
      padding: 7rem 1.5rem 5rem;
      position: relative;
      z-index: 1;
    }
    .hero-grid {
      max-width: 1200px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 4rem;
      align-items: center;
    }
    .hero-content p {
      font-size: 1.1rem;
      color: var(--muted);
      line-height: 1.75;
      margin: 1.25rem 0 2rem;
      max-width: 500px;
    }
    .hero-actions { display: flex; gap: .875rem; flex-wrap: wrap; }

    /* Stats row */
    .stats {
      display: grid;
      grid-template-columns: repeat(4,1fr);
      gap: 1rem;
      margin-top: 3.5rem;
      padding-top: 2.5rem;
      border-top: 1px solid var(--border);
    }
    .stat { text-align: center; }
    .stat-val {
      font-size: 1.7rem;
      font-weight: 800;
      letter-spacing: -.04em;
    }
    .stat-lbl { font-size: .78rem; color: var(--muted); margin-top: .2rem; }

    /* Terminal */
    .terminal {
      background: #0d1117;
      border: 1px solid rgba(255,255,255,.1);
      border-radius: var(--rl);
      overflow: hidden;
      box-shadow: 0 30px 60px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.04);
    }
    .term-header {
      background: #161b22;
      padding: .7rem 1rem;
      display: flex;
      align-items: center;
      gap: .4rem;
      border-bottom: 1px solid rgba(255,255,255,.07);
    }
    .dot { width:12px; height:12px; border-radius:50%; }
    .dr { background:#ff5f57; }
    .dy { background:#ffbd2e; }
    .dg { background:#28c840; }
    .term-title {
      margin-left: .5rem;
      font-size: .72rem;
      color: var(--dim);
      font-family: 'SF Mono','Fira Code',monospace;
    }
    .term-body {
      padding: 1.5rem;
      font-family: 'SF Mono','Fira Code','Cascadia Code',monospace;
      font-size: .76rem;
      line-height: 1.9;
    }
    .tc  { color:#6e7681; }
    .tk  { color:#79c0ff; }
    .tv  { color:#a5d6ff; }
    .tb  { color:#818cf8; }
    .tg  { color:#56d364; }
    .ty  { color:#e3b341; }
    .tre { color:#f85149; }
    .td  { color:#484f58; }
    .ta  { color:#fbbf24; background:rgba(251,191,36,.1); padding:0 3px; border-radius:3px; }

    /* ── TRUST BAR ── */
    .trust {
      position: relative;
      z-index: 1;
      padding: 1.75rem 1.5rem;
      border-top: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
      background: rgba(255,255,255,.015);
    }
    .trust-inner {
      max-width: 1200px;
      margin: 0 auto;
      display: flex;
      align-items: center;
      gap: 2.5rem;
      flex-wrap: wrap;
      justify-content: center;
    }
    .trust-lbl {
      font-size: .72rem;
      color: var(--dim);
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: .08em;
    }
    .providers { display:flex; gap:2rem; align-items:center; flex-wrap:wrap; }
    .pvd {
      display: flex;
      align-items: center;
      gap: .35rem;
      color: var(--dim);
      font-size: .82rem;
      font-weight: 600;
      opacity: .55;
      transition: opacity .2s;
    }
    .pvd:hover { opacity: 1; }

    /* ── PROBLEMS ── */
    .pb-grid {
      display: grid;
      grid-template-columns: repeat(3,1fr);
      gap: 1.5rem;
      margin-top: 3rem;
    }
    .pb-card {
      background: rgba(239,68,68,.05);
      border: 1px solid rgba(239,68,68,.15);
      border-radius: var(--rl);
      padding: 2rem;
      transition: border-color .3s;
    }
    .pb-card:hover { border-color: rgba(239,68,68,.35); }
    .pb-icon {
      width: 46px; height: 46px;
      background: rgba(239,68,68,.1);
      border-radius: 11px;
      display: flex; align-items: center; justify-content: center;
      font-size: 1.4rem;
      margin-bottom: 1.25rem;
    }
    .pb-card h3 { margin-bottom: .5rem; }
    .pb-card p { color: var(--muted); font-size: .875rem; line-height: 1.65; }

    /* ── FEATURES ── */
    .ft-grid {
      display: grid;
      grid-template-columns: repeat(3,1fr);
      gap: 1.5rem;
      margin-top: 3rem;
    }
    .ft-card {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--rl);
      padding: 2rem;
      transition: all .3s;
      position: relative;
      overflow: hidden;
    }
    .ft-card::after {
      content: '';
      position: absolute;
      inset: 0;
      border-radius: var(--rl);
      background: linear-gradient(135deg, rgba(79,70,229,.08), transparent);
      opacity: 0;
      transition: opacity .3s;
    }
    .ft-card:hover {
      background: var(--bg-card-hover);
      border-color: rgba(129,140,248,.3);
      transform: translateY(-3px);
      box-shadow: 0 12px 32px rgba(0,0,0,.3);
    }
    .ft-card:hover::after { opacity: 1; }
    .ft-icon {
      width: 46px; height: 46px;
      background: rgba(79,70,229,.15);
      border-radius: 11px;
      display: flex; align-items: center; justify-content: center;
      font-size: 1.3rem;
      margin-bottom: 1.25rem;
      position: relative;
      z-index: 1;
    }
    .ft-card h3 { margin-bottom: .45rem; position: relative; z-index: 1; }
    .ft-card p  { color: var(--muted); font-size: .875rem; line-height: 1.65; position: relative; z-index: 1; }
    .ft-badge {
      display: inline-block;
      margin-top: .9rem;
      font-size: .72rem;
      font-weight: 700;
      color: var(--brand-light);
      background: rgba(79,70,229,.15);
      padding: .2rem .65rem;
      border-radius: 100px;
      position: relative;
      z-index: 1;
    }

    /* ── HOW IT WORKS ── */
    .how-bg {
      background: rgba(79,70,229,.03);
      border-top: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
    }
    .steps {
      display: grid;
      grid-template-columns: repeat(3,1fr);
      gap: 2rem;
      margin-top: 4rem;
      position: relative;
    }
    .steps::before {
      content: '';
      position: absolute;
      top: 27px;
      left: calc(16.66% + 27px);
      right: calc(16.66% + 27px);
      height: 2px;
      background: linear-gradient(90deg, var(--brand), var(--accent));
      opacity: .25;
    }
    .step { text-align: center; }
    .step-num {
      width: 54px; height: 54px;
      background: linear-gradient(135deg, var(--brand), var(--accent));
      border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      font-size: 1.2rem;
      font-weight: 800;
      color: #fff;
      margin: 0 auto 1.5rem;
      position: relative;
      z-index: 1;
      box-shadow: 0 0 0 6px rgba(79,70,229,.15);
    }
    .step h3 { margin-bottom: .45rem; }
    .step p  { color: var(--muted); font-size: .875rem; line-height: 1.65; }
    .step-code {
      margin-top: 1rem;
      background: #0d1117;
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: .75rem 1rem;
      font-family: 'SF Mono','Fira Code',monospace;
      font-size: .7rem;
      color: var(--muted);
      text-align: left;
      line-height: 1.75;
    }
    .step-code .tg { color: #56d364; }
    .step-code .tb { color: #818cf8; }
    .step-code .tc { color: #6e7681; }

    /* ── SECURITY ── */
    .sec-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 3rem;
      align-items: center;
      margin-top: 3rem;
    }
    .checks { display: flex; flex-direction: column; gap: 1rem; }
    .chk {
      display: flex;
      align-items: flex-start;
      gap: 1rem;
      padding: 1.25rem;
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--r);
      transition: border-color .3s;
    }
    .chk:hover { border-color: rgba(16,185,129,.25); }
    .chk-ico {
      width: 36px; height: 36px;
      background: rgba(16,185,129,.1);
      border-radius: 8px;
      display: flex; align-items: center; justify-content: center;
      flex-shrink: 0;
      font-size: .95rem;
    }
    .chk h4 { font-size: .875rem; margin-bottom: .2rem; }
    .chk p  { font-size: .8rem; color: var(--muted); line-height: 1.55; }

    .comp-grid {
      display: grid;
      grid-template-columns: repeat(2,1fr);
      gap: 1rem;
    }
    .comp-badge {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--rl);
      padding: 1.5rem;
      text-align: center;
      transition: all .3s;
    }
    .comp-badge:hover {
      background: var(--bg-card-hover);
      border-color: rgba(129,140,248,.25);
      transform: translateY(-2px);
    }
    .comp-ico { font-size: 1.9rem; margin-bottom: .75rem; }
    .comp-badge h4 { font-size: .875rem; margin-bottom: .2rem; }
    .comp-badge p  { font-size: .75rem; color: var(--muted); }

    /* ── PERSONAS ── */
    .prs-grid {
      display: grid;
      grid-template-columns: repeat(3,1fr);
      gap: 1.5rem;
      margin-top: 3rem;
    }
    .prs-card {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--rl);
      padding: 2rem;
      transition: all .3s;
    }
    .prs-card:hover {
      background: var(--bg-card-hover);
      border-color: rgba(129,140,248,.25);
      transform: translateY(-3px);
    }
    .prs-role {
      font-size: .7rem;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: .12em;
      color: var(--brand-light);
      margin-bottom: .2rem;
    }
    .prs-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 1.1rem; }
    .prs-list { list-style: none; display: flex; flex-direction: column; gap: .55rem; }
    .prs-list li {
      font-size: .84rem;
      color: var(--muted);
      display: flex;
      gap: .5rem;
      align-items: flex-start;
    }
    .prs-list li::before { content: '\2192'; color: var(--brand-light); flex-shrink: 0; }

    /* ── CTA ── */
    .cta-sec {
      text-align: center;
      background: radial-gradient(ellipse at center, rgba(79,70,229,.14) 0%, transparent 65%);
    }
    .cta-sec h2 { margin-bottom: 1rem; }
    .cta-sec .sub { color: var(--muted); font-size: 1.05rem; margin-bottom: 2.5rem; }
    .cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

    /* ── FOOTER ── */
    footer {
      position: relative;
      z-index: 1;
      border-top: 1px solid var(--border);
      padding: 2.5rem 1.5rem;
    }
    .foot-inner {
      max-width: 1200px;
      margin: 0 auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 1rem;
    }
    .foot-links { display: flex; gap: 1.5rem; list-style: none; }
    .foot-links a {
      font-size: .84rem;
      color: var(--dim);
      text-decoration: none;
      transition: color .2s;
    }
    .foot-links a:hover { color: var(--muted); }
    .foot-copy { font-size: .8rem; color: var(--dim); }

    /* ── ANIMATIONS ── */
    .fu {
      opacity: 0;
      transform: translateY(22px);
      transition: opacity .6s ease, transform .6s ease;
    }
    .fu.vis { opacity: 1; transform: translateY(0); }

    /* ── RESPONSIVE ── */
    @media (max-width: 960px) {
      .hero-grid   { grid-template-columns: 1fr; gap: 3rem; }
      .hero-visual { display: none; }
      .pb-grid, .ft-grid, .prs-grid { grid-template-columns: 1fr; }
      .steps       { grid-template-columns: 1fr; }
      .steps::before { display: none; }
      .sec-grid    { grid-template-columns: 1fr; }
      .stats       { grid-template-columns: repeat(2,1fr); }
      .nav-links   { display: none; }
    }
    @media (max-width: 580px) {
      section { padding: 4rem 1rem; }
      .hero   { padding: 4rem 1rem 3rem; }
      .comp-grid { grid-template-columns: 1fr; }
    }
  </style>
</head>
<body>

<!-- NAV -->
<nav>
  <div class="nav-inner">
    <a href="/" class="logo">Veylant<span> IA</span></a>
    <ul class="nav-links">
      <li><a href="#fonctionnalites">Fonctionnalites</a></li>
      <li><a href="#securite">Securite</a></li>
      <li><a href="#personas">Pour qui</a></li>
      <li><a href="/playground">Playground</a></li>
      <li><a href="/docs">Docs</a></li>
    </ul>
    <div class="nav-cta">
      <a href="#contact" class="btn btn-primary">Demander une demo</a>
    </div>
  </div>
</nav>

<!-- HERO -->
<section class="hero">
  <div class="hero-grid">
    <!-- Left -->
    <div class="hero-content fu">
      <div class="label">
        <svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><polyline points="22 12 18 12 15 21 9 3 6 12 2 12"/></svg>
        Proxy IA d'entreprise
      </div>
      <h1>L'IA de vos equipes,<br><span class="gradient">enfin sous controle</span></h1>
      <p>Veylant intercepte, anonymise et gouverne tous vos echanges LLM en moins de 50 ms. RGPD natif, EU AI Act pret, zero Shadow AI.</p>
      <div class="hero-actions">
        <a href="#contact" class="btn btn-primary btn-lg">
          <svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><path d="M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4"/><polyline points="10 17 15 12 10 7"/><line x1="15" y1="12" x2="3" y2="12"/></svg>
          Demander une demo
        </a>
        <a href="/playground" class="btn btn-outline btn-lg">
          <svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><polygon points="5 3 19 12 5 21 5 3"/></svg>
          Tester le playground
        </a>
      </div>
      <!-- Stats -->
      <div class="stats">
        <div class="stat">
          <div class="stat-val gradient">&lt;50ms</div>
          <div class="stat-lbl">Latence pipeline PII</div>
        </div>
        <div class="stat">
          <div class="stat-val gradient">5</div>
          <div class="stat-lbl">Providers LLM</div>
        </div>
        <div class="stat">
          <div class="stat-val gradient">0</div>
          <div class="stat-lbl">Shadow AI autorise</div>
        </div>
        <div class="stat">
          <div class="stat-val gradient">100%</div>
          <div class="stat-lbl">Compatible OpenAI SDK</div>
        </div>
      </div>
    </div>

    <!-- Terminal -->
    <div class="hero-visual fu" style="animation-delay:.15s">
      <div class="terminal">
        <div class="term-header">
          <div class="dot dr"></div>
          <div class="dot dy"></div>
          <div class="dot dg"></div>
          <span class="term-title">veylant-proxy &mdash; requete interceptee</span>
        </div>
        <div class="term-body">
          <div><span class="tc">// Requete entrante</span></div>
          <div><span class="tk">POST</span> <span class="tv">/v1/chat/completions</span></div>
          <div><span class="td">tenant:</span> <span class="tb">acme-corp</span> &middot; <span class="td">user:</span> <span class="tb">alice</span></div>
          <br>
          <div><span class="tc">// Detection PII &mdash; 12ms</span></div>
          <div><span class="ty">&#9888;</span> <span class="tk">PERSON</span>&nbsp;&nbsp;&nbsp;&nbsp; <span class="tre">"Marie Dubois"</span> <span class="td">&rarr;</span> <span class="ta">[PERSONNE_1]</span></div>
          <div><span class="ty">&#9888;</span> <span class="tk">IBAN</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span class="tre">"FR76 3000..."</span> <span class="td">&rarr;</span> <span class="ta">[IBAN_1]</span></div>
          <div><span class="ty">&#9888;</span> <span class="tk">EMAIL</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span class="tre">"m.dubois@..."</span> <span class="td">&rarr;</span> <span class="ta">[EMAIL_1]</span></div>
          <br>
          <div><span class="tc">// Routage intelligent &mdash; regle #3</span></div>
          <div><span class="tg">&#10003;</span> provider <span class="tb">azure</span> &middot; model <span class="tb">gpt-4o</span></div>
          <div><span class="tg">&#10003;</span> dept <span class="tb">finance</span> &middot; budget OK</div>
          <br>
          <div><span class="tc">// Log d'audit &mdash; ClickHouse</span></div>
          <div><span class="tg">&#10003;</span> <span class="td">tokens:</span> <span class="tv">847 in / 312 out</span></div>
          <div><span class="tg">&#10003;</span> <span class="td">cout:</span> <span class="tv">&euro;0.0043</span> <span class="td">impute</span></div>
          <div><span class="tg">&#10003;</span> <span class="td">latence totale:</span> <span class="tv">38ms</span> &#10024;</div>
        </div>
      </div>
    </div>
  </div>
</section>

<!-- TRUST BAR -->
<div class="trust">
  <div class="trust-inner">
    <span class="trust-lbl">Compatible avec</span>
    <div class="providers">
      <div class="pvd">
        <svg width="15" height="15" viewBox="0 0 24 24" fill="currentColor"><path d="M22.28 9.82a5.98 5.98 0 0 0-.52-4.91 6.05 6.05 0 0 0-6.51-2.9A6.07 6.07 0 0 0 4.98 4.18a5.98 5.98 0 0 0-4 2.9 6.05 6.05 0 0 0 .74 7.1 5.98 5.98 0 0 0 .51 4.91 6.05 6.05 0 0 0 6.51 2.9A5.98 5.98 0 0 0 13.26 24a6.06 6.06 0 0 0 5.77-4.21 5.99 5.99 0 0 0 4-2.9 6.06 6.06 0 0 0-.75-7.07z"/></svg>
        OpenAI
      </div>
      <div class="pvd">
        <svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="10"/><path d="M8 12h8M12 8l4 4-4 4"/></svg>
        Anthropic
      </div>
      <div class="pvd">
        <svg width="15" height="15" viewBox="0 0 24 24" fill="currentColor"><path d="M0 0h11.4v11.4H0zm12.6 0H24v11.4H12.6zM0 12.6h11.4V24H0zm12.6 0H24V24H12.6z"/></svg>
        Azure OpenAI
      </div>
      <div class="pvd">
        <svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5"/></svg>
        Mistral AI
      </div>
      <div class="pvd">
        <svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><rect x="2" y="3" width="20" height="14" rx="2"/><line x1="8" y1="21" x2="16" y2="21"/><line x1="12" y1="17" x2="12" y2="21"/></svg>
        Ollama (on-premise)
      </div>
    </div>
  </div>
</div>

<!-- PROBLEM -->
<section id="probleme">
  <div class="container">
    <div class="label">Le probleme</div>
    <h2>Vos equipes utilisent l'IA.<br>Vous n'en savez rien.</h2>
    <p class="muted" style="margin-top:1rem;max-width:560px;line-height:1.7">ChatGPT, Claude, Copilot &mdash; vos collaborateurs contournent les politiques IT. Resultat : donnees sensibles exposees, couts incontroles, conformite compromise.</p>
    <div class="pb-grid">
      <div class="pb-card fu">
        <div class="pb-icon">&#128373;</div>
        <h3>Shadow AI</h3>
        <p>73 % des entreprises ont des employes utilisant des outils IA non approuves. Donnees clients, contrats, code proprietaire partent vers des serveurs tiers sans votre accord.</p>
      </div>
      <div class="pb-card fu" style="transition-delay:.08s">
        <div class="pb-icon">&#128275;</div>
        <h3>Fuites de donnees PII</h3>
        <p>Sans filtre, vos prompts contiennent noms, IBAN, emails, numeros de securite sociale. Une seule fuite = violation RGPD notifiable a la CNIL sous 72h.</p>
      </div>
      <div class="pb-card fu" style="transition-delay:.16s">
        <div class="pb-icon">&#128184;</div>
        <h3>Couts hors de controle</h3>
        <p>Les abonnements proliferent, les tokens s'accumulent. Sans visibilite centralisee, la facture IA gonfle sans correlation avec la valeur produite.</p>
      </div>
    </div>
  </div>
</section>

<!-- FEATURES -->
<section id="fonctionnalites" style="border-top:1px solid var(--border)">
  <div class="container">
    <div class="label">La solution</div>
    <h2>Un proxy intelligent entre<br>vos equipes et les LLMs</h2>
    <p class="muted" style="margin-top:1rem;max-width:560px;line-height:1.7">Veylant se deploie en 15 minutes sans modifier votre code existant. Il intercepte chaque requete et applique vos politiques en temps reel.</p>
    <div class="ft-grid">
      <div class="ft-card fu">
        <div class="ft-icon">&#128269;</div>
        <h3>Anonymisation PII automatique</h3>
        <p>3 couches de detection (regex, Presidio NER, validation LLM). Pseudonymisation reversible avec mapping chiffre AES-256-GCM en Redis.</p>
        <span class="ft-badge">latence &lt;50ms</span>
      </div>
      <div class="ft-card fu" style="transition-delay:.06s">
        <div class="ft-icon">&#129517;</div>
        <h3>Routage intelligent</h3>
        <p>Moteur de regles base sur le role, le departement, la sensibilite et le modele demande. Fallback automatique en cas de panne provider.</p>
        <span class="ft-badge">circuit breaker integre</span>
      </div>
      <div class="ft-card fu" style="transition-delay:.12s">
        <div class="ft-icon">&#128737;</div>
        <h3>RBAC granulaire</h3>
        <p>4 roles (admin, manager, user, auditor) avec controle par modele et par departement. Compatible OIDC / Keycloak / SAML 2.0.</p>
        <span class="ft-badge">SSO ready</span>
      </div>
      <div class="ft-card fu" style="transition-delay:.18s">
        <div class="ft-icon">&#128203;</div>
        <h3>Logs d'audit immuables</h3>
        <p>Chaque requete est enregistree dans ClickHouse (append-only). Impossible a modifier, retention configurable, export PDF pour la CNIL.</p>
        <span class="ft-badge">RGPD Art. 30</span>
      </div>
      <div class="ft-card fu" style="transition-delay:.24s">
        <div class="ft-icon">&#9878;</div>
        <h3>Conformite RGPD &amp; EU AI Act</h3>
        <p>Registre de traitement automatique, classification des risques AI Act, rapports PDF telechargeables. DPO-ready des le premier jour.</p>
        <span class="ft-badge">EU AI Act ready</span>
      </div>
      <div class="ft-card fu" style="transition-delay:.30s">
        <div class="ft-icon">&#128202;</div>
        <h3>Controle des couts</h3>
        <p>Suivi des tokens par tenant, utilisateur et departement. Alertes budgetaires, tableaux de bord Grafana, imputation par centre de cout.</p>
        <span class="ft-badge">dashboard temps reel</span>
      </div>
    </div>
  </div>
</section>

<!-- HOW IT WORKS -->
<section class="how-bg">
  <div class="container">
    <div class="label">Demarrage en 15 minutes</div>
    <h2 style="text-align:center">Trois etapes vers la conformite</h2>
    <div class="steps">
      <div class="step fu">
        <div class="step-num">1</div>
        <h3>Pointez votre endpoint</h3>
        <p>Remplacez l'URL OpenAI par votre instance Veylant. Zero modification de code &mdash; compatible avec tout SDK OpenAI existant.</p>
        <div class="step-code">
          <div class="tc"># Avant</div>
          <div>OPENAI_BASE_URL=<span style="color:#f85149">api.openai.com</span></div>
          <br>
          <div class="tc"># Apres</div>
          <div>OPENAI_BASE_URL=<span class="tg">ai.votre-entreprise.com</span></div>
        </div>
      </div>
      <div class="step fu" style="transition-delay:.1s">
        <div class="step-num">2</div>
        <h3>Configurez vos politiques</h3>
        <p>Via l'API admin ou l'interface React : regles de routage, RBAC, budgets par departement, seuils d'alerte PII.</p>
        <div class="step-code">
          <div class="tc"># Regle de routage</div>
          <div>department == <span class="tg">"finance"</span></div>
          <div>&nbsp;&nbsp;&rarr; provider: <span class="tb">azure</span></div>
          <div>&nbsp;&nbsp;&rarr; model: <span class="tb">gpt-4o</span></div>
        </div>
      </div>
      <div class="step fu" style="transition-delay:.2s">
        <div class="step-num">3</div>
        <h3>Observez et gouvernez</h3>
        <p>Tableau de bord temps reel, alertes Prometheus/PagerDuty, logs d'audit exportables pour vos audits RGPD.</p>
        <div class="step-code">
          <div class="tc"># Dashboard SLO</div>
          <div>&#10003; SLO <span class="tg">99.5 %</span> respecte</div>
          <div>&#10003; <span class="tg">0</span> fuite PII ce mois</div>
          <div>&#10003; Budget: <span class="tg">847 / 1200 EUR</span></div>
        </div>
      </div>
    </div>
  </div>
</section>

<!-- SECURITY -->
<section id="securite" style="border-top:1px solid var(--border)">
  <div class="container">
    <div class="label">Securite</div>
    <h2>Concu pour les equipes<br>securite les plus exigeantes</h2>
    <div class="sec-grid">
      <div class="checks">
        <div class="chk fu">
          <div class="chk-ico">&#128272;</div>
          <div>
            <h4>Zero Trust &amp; mTLS</h4>
            <p>Communication inter-services chiffree via mTLS. TLS 1.3 en externe. Aucun trafic en clair, jamais.</p>
          </div>
        </div>
        <div class="chk fu" style="transition-delay:.06s">
          <div class="chk-ico">&#128273;</div>
          <div>
            <h4>Chiffrement bout-en-bout</h4>
            <p>Prompts chiffres AES-256-GCM au repos. Cles API stockees en SHA-256 uniquement. Rotation 90 jours via HashiCorp Vault.</p>
          </div>
        </div>
        <div class="chk fu" style="transition-delay:.12s">
          <div class="chk-ico">&#9989;</div>
          <div>
            <h4>Pentest reussi &mdash; 2026</h4>
            <p>0 vulnerabilite critique, 0 high. Semgrep SAST + Trivy image scanning + OWASP ZAP DAST integres en CI/CD.</p>
          </div>
        </div>
        <div class="chk fu" style="transition-delay:.18s">
          <div class="chk-ico">&#128221;</div>
          <div>
            <h4>Audit de l'audit</h4>
            <p>Chaque acces aux logs d'audit est lui-meme logue. Tracabilite complete et inviolable.</p>
          </div>
        </div>
      </div>
      <div class="comp-grid">
        <div class="comp-badge fu">
          <div class="comp-ico">&#127466;&#127482;</div>
          <h4>RGPD natif</h4>
          <p>Registre Art. 30 automatique. Notification CNIL prete sous 72h.</p>
        </div>
        <div class="comp-badge fu" style="transition-delay:.06s">
          <div class="comp-ico">&#9878;</div>
          <h4>EU AI Act</h4>
          <p>Classification des risques, documentation systeme requise.</p>
        </div>
        <div class="comp-badge fu" style="transition-delay:.12s">
          <div class="comp-ico">&#127963;</div>
          <h4>NIS2 ready</h4>
          <p>Logs immuables, alertes PagerDuty, SLO 99,5 %.</p>
        </div>
        <div class="comp-badge fu" style="transition-delay:.18s">
          <div class="comp-ico">&#128274;</div>
          <h4>ISO 27001</h4>
          <p>Architecture Zero Trust, RBAC, gestion des secrets.</p>
        </div>
      </div>
    </div>
  </div>
</section>

<!-- PERSONAS -->
<section id="personas" style="border-top:1px solid var(--border)">
  <div class="container">
    <div class="label">Pour qui</div>
    <h2>Un outil, trois interlocuteurs</h2>
    <div class="prs-grid">
      <div class="prs-card fu">
        <div class="prs-role">RSSI</div>
        <div class="prs-title">Responsable Securite SI</div>
        <ul class="prs-list">
          <li>Visibilite complete sur tous les flux LLM</li>
          <li>Zero Trust, mTLS, AES-256-GCM</li>
          <li>Rapport pentest disponible sur demande</li>
          <li>Alertes temps reel (PagerDuty, Slack)</li>
          <li>Shadow AI elimine structurellement</li>
        </ul>
      </div>
      <div class="prs-card fu" style="transition-delay:.1s">
        <div class="prs-role">DSI</div>
        <div class="prs-title">Directeur Systemes d'Information</div>
        <ul class="prs-list">
          <li>Deploiement Helm/Kubernetes en 15 min</li>
          <li>Compatible tout SDK OpenAI existant</li>
          <li>Multi-provider avec fallback automatique</li>
          <li>Dashboard couts par equipe et projet</li>
          <li>HPA autoscaling, blue/green deployment</li>
        </ul>
      </div>
      <div class="prs-card fu" style="transition-delay:.2s">
        <div class="prs-role">DPO</div>
        <div class="prs-title">Data Protection Officer</div>
        <ul class="prs-list">
          <li>Registre Art. 30 genere automatiquement</li>
          <li>Classification risques EU AI Act integree</li>
          <li>Export PDF pour audits CNIL</li>
          <li>Pseudonymisation reversible et tracable</li>
          <li>Retention configurable par type de donnee</li>
        </ul>
      </div>
    </div>
  </div>
</section>

<!-- CTA -->
<section class="cta-sec" id="contact">
  <div class="container">
    <div class="label">Commencer</div>
    <h2>Pret a reprendre le controle<br>de votre IA d'entreprise ?</h2>
    <p class="sub">Demo personnalisee &middot; Deploiement en 15 minutes &middot; Support dedie</p>
    <div class="cta-actions">
      <a href="mailto:demo@veylant.io" class="btn btn-primary btn-lg">
        <svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><path d="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"/><polyline points="22,6 12,13 2,6"/></svg>
        Demander une demo
      </a>
      <a href="/playground" class="btn btn-outline btn-lg">
        <svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><polygon points="5 3 19 12 5 21 5 3"/></svg>
        Tester le playground
      </a>
      <a href="/docs" class="btn btn-outline btn-lg">
        <svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/><polyline points="14 2 14 8 20 8"/><line x1="16" y1="13" x2="8" y2="13"/><line x1="16" y1="17" x2="8" y2="17"/></svg>
        Lire la documentation
      </a>
    </div>
  </div>
</section>

<!-- FOOTER -->
<footer>
  <div class="foot-inner">
    <a href="/" class="logo">Veylant<span> IA</span></a>
    <ul class="foot-links">
      <li><a href="/docs">Documentation</a></li>
      <li><a href="/playground">Playground</a></li>
      <li><a href="mailto:demo@veylant.io">Contact</a></li>
    </ul>
    <span class="foot-copy">&copy; 2026 Veylant. Concu pour l'entreprise europeenne.</span>
  </div>
</footer>

<script>
  // Scroll-reveal with IntersectionObserver
  var io = new IntersectionObserver(function(entries) {
    entries.forEach(function(e) {
      if (e.isIntersecting) { e.target.classList.add('vis'); }
    });
  }, { threshold: 0.12 });

  document.querySelectorAll('.fu').forEach(function(el) { io.observe(el); });

  // Hero appears immediately
  setTimeout(function() {
    document.querySelectorAll('.hero .fu').forEach(function(el) { el.classList.add('vis'); });
  }, 80);

  // Smooth scroll anchors
  document.querySelectorAll('a[href^="#"]').forEach(function(a) {
    a.addEventListener('click', function(e) {
      var target = document.querySelector(this.getAttribute('href'));
      if (target) {
        e.preventDefault();
        target.scrollIntoView({ behavior: 'smooth', block: 'start' });
      }
    });
  });
</script>
</body>
</html>`
