/* =========================================================
   KDB Core — by Jolifish Europe
   Identité visuelle souveraine inspirée de Narrathèque
   Feuille de style partagée
   ========================================================= */

:root {
  /* Fonds */
  --bg: #060A14;
  --bg-2: #0A0F1E;
  --surface: #0F1626;
  --surface-2: #141D33;
  --surface-3: #1A2541;

  /* Bordures & voiles */
  --border: rgba(146, 170, 214, 0.12);
  --border-strong: rgba(146, 170, 214, 0.22);
  --glass: rgba(20, 29, 51, 0.55);

  /* Texte */
  --text: #EAF0FB;
  --muted: #93A1BC;
  --muted-2: #6B789A;

  /* Couleurs de marque */
  --teal: #2FE3C6;     /* souveraineté / certifié */
  --cyan: #3DA8FF;     /* multi-LLM */
  --violet: #8B7CF6;   /* savoir / sphère */
  --gold: #F4C152;     /* accent chaud, alertes positives */
  --danger: #FF6B7A;   /* douleur / fuite */

  /* Dégradés */
  --grad-brand: linear-gradient(120deg, #2FE3C6 0%, #3DA8FF 45%, #8B7CF6 100%);
  --grad-brand-soft: linear-gradient(120deg, rgba(47,227,198,.18), rgba(61,168,255,.16) 50%, rgba(139,124,246,.18));
  --grad-text: linear-gradient(100deg, #6FF3DC 0%, #6FB8FF 50%, #B3A5FF 100%);

  /* Rayons & ombres */
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --shadow: 0 24px 60px -28px rgba(0,0,0,.75);
  --shadow-glow: 0 0 0 1px rgba(47,227,198,.12), 0 30px 70px -30px rgba(47,227,198,.25);

  --maxw: 1180px;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Menlo, monospace;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -0.02em; margin: 0; }

/* ---------- Background ambiance ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 600px at 78% -8%, rgba(61,168,255,.14), transparent 60%),
    radial-gradient(800px 520px at 8% 4%, rgba(47,227,198,.10), transparent 55%),
    radial-gradient(1000px 700px at 50% 110%, rgba(139,124,246,.12), transparent 60%),
    var(--bg);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(146,170,214,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(146,170,214,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 78%);
  pointer-events: none;
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { position: relative; }
.section-pad { padding: 96px 0; }
.section-pad-sm { padding: 64px 0; }

/* ---------- Eyebrow / kicker ---------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--teal);
  padding: 7px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(47,227,198,.06);
}
.kicker::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 12px var(--teal);
}

.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad-brand);
  color: #04130F;
  box-shadow: 0 12px 30px -10px rgba(47,227,198,.5);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -10px rgba(61,168,255,.55); }
.btn-ghost {
  background: rgba(255,255,255,.03);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--teal); background: rgba(47,227,198,.07); transform: translateY(-2px); }
.btn-lg { padding: 16px 30px; font-size: 16px; }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(6,10,20,.72);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -.02em; }
.brand .logo-mark { width: 34px; height: 34px; flex: none; }
.brand small { display:block; font-family: var(--font-mono); font-size: 9.5px; font-weight: 500; letter-spacing: .14em; color: var(--muted-2); text-transform: uppercase; margin-top: 1px; }
.brand .brand-txt span { color: var(--teal); }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 14.5px; color: var(--muted); transition: color .2s; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content:""; position:absolute; left:0; right:0; bottom:-22px; height:2px;
  background: var(--grad-brand); border-radius: 2px;
}
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-actions .link-login { font-size: 14.5px; color: var(--muted); }
.nav-actions .link-login:hover { color: var(--text); }

.nav-toggle { display: none; background: none; border: none; color: var(--text); padding: 6px; }

/* ---------- Hero ---------- */
.hero { padding: 90px 0 70px; position: relative; overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 54px;
  align-items: center;
}
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.7rem); margin: 22px 0 0; }
.hero .lead { font-size: 1.18rem; color: var(--muted); margin: 22px 0 30px; max-width: 36ch; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 26px; margin-top: 34px; flex-wrap: wrap; }
.hero-meta .m { display: flex; flex-direction: column; }
.hero-meta .m b { font-family: var(--font-display); font-size: 1.5rem; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-meta .m span { font-size: 12.5px; color: var(--muted-2); }

/* Hero visual : transformation données -> cube -> sphère */
.hero-visual {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: linear-gradient(160deg, rgba(20,29,51,.7), rgba(10,15,30,.5));
  box-shadow: var(--shadow);
  padding: 26px;
  overflow: hidden;
}
.hero-visual::before {
  content:""; position:absolute; inset: -40% auto auto -20%;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(47,227,198,.25), transparent 70%);
  filter: blur(10px);
}

/* ---------- Logos / trust strip ---------- */
.trust { padding: 30px 0 8px; }
.trust p { text-align: center; font-family: var(--font-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); margin: 0 0 22px; }
.logo-row { display: flex; flex-wrap: wrap; gap: 14px 18px; justify-content: center; align-items: center; }
.logo-chip {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--muted);
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255,255,255,.02);
}

/* ---------- Bandeau défilant : logos modèles ---------- */
.models { padding: 30px 0 10px; }
.models .lead-line {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin: 0 0 22px;
}
.marquee {
  position: relative;
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 46s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; gap: 14px; padding-right: 14px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.logo-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 22px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255,255,255,.025);
  white-space: nowrap;
  transition: border-color .25s ease, background .25s ease;
}
.logo-item:hover { border-color: var(--border-strong); background: rgba(47,227,198,.05); }
.logo-item img { height: 26px; width: auto; flex: none; }
.logo-item .logo-name { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--muted); }
.logo-item .rg {
  font-family: var(--font-mono); font-style: normal; font-size: 9.5px; font-weight: 600;
  letter-spacing: .08em; padding: 2px 6px; border-radius: 6px; margin-left: 2px;
}
.logo-item .rg.fr { color: var(--teal); background: rgba(47,227,198,.12); }
.logo-item .rg.us { color: var(--cyan); background: rgba(61,168,255,.12); }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- Section headings ---------- */
.sec-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.sec-head.left { margin-left: 0; text-align: left; }
.sec-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin: 16px 0 0; }
.sec-head p { color: var(--muted); font-size: 1.08rem; margin: 16px 0 0; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 30px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.card .icon {
  width: 50px; height: 50px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--grad-brand-soft);
  border: 1px solid var(--border-strong);
  margin-bottom: 18px;
}
.card h3 { font-size: 1.22rem; margin-bottom: 10px; }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

/* ---------- Pain / douleurs ---------- */
.pain { background: linear-gradient(180deg, transparent, rgba(255,107,122,.03) 40%, transparent); }
.pain-hero {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center;
  margin-bottom: 56px;
}
.pain-card {
  border: 1px solid rgba(255,107,122,.18);
  background: linear-gradient(160deg, rgba(40,18,24,.5), rgba(15,22,38,.5));
  border-radius: var(--r-lg);
  padding: 28px;
}
.pain-card .tag { font-family: var(--font-mono); font-size: 11px; letter-spacing:.14em; text-transform: uppercase; color: var(--danger); }
.pain-card h3 { margin: 12px 0 10px; font-size: 1.2rem; }
.pain-card p { color: var(--muted); margin: 0; font-size: .96rem; }

.stat-band { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: 8px; }
.stat {
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 26px 18px;
  background: var(--surface);
}
.stat b { display: block; font-family: var(--font-display); font-size: 2.6rem; line-height: 1; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { display: block; margin-top: 8px; color: var(--muted); font-size: .92rem; }

/* Mock UI : prompt fuite de données */
.mock {
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--bg-2);
  overflow: hidden;
  font-size: 13.5px;
}
.mock-bar {
  display:flex; align-items:center; gap:8px;
  padding: 11px 14px; border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.02);
  font-family: var(--font-mono); font-size: 12px; color: var(--muted);
}
.mock-bar .dot { width:9px; height:9px; border-radius:50%; }
.mock-bar .dot.r{background:#ff5f57}.mock-bar .dot.y{background:#febc2e}.mock-bar .dot.g{background:#28c840}
.mock-body { padding: 16px; }
.mock-prompt { color: var(--text); }
.mock-prompt .line { display:flex; justify-content: space-between; gap: 12px; padding: 3px 0; color: var(--muted); }
.mock-prompt .line b { color: var(--text); font-weight: 600; }
.mock-flag {
  margin-top: 14px; display:flex; align-items:center; gap:9px;
  padding: 10px 12px; border-radius: 10px;
  background: rgba(255,107,122,.10); border: 1px solid rgba(255,107,122,.25);
  color: #FFB3BC; font-size: 12.5px;
}

/* ---------- Feature triad (Souverain / Multi-LLM / Sur-mesure) ---------- */
.triad-item { border-top: 1px solid var(--border); padding-top: 26px; }
.triad-item .t-label { font-family: var(--font-display); font-size: 1.5rem; }
.triad-item.tl-1 .t-label { color: var(--teal); }
.triad-item.tl-2 .t-label { color: var(--cyan); }
.triad-item.tl-3 .t-label { color: var(--violet); }
.triad-item h3 { font-size: 1.3rem; margin: 8px 0 14px; }
.feat-list li { display:flex; gap:10px; align-items:flex-start; color: var(--muted); padding: 6px 0; font-size: .97rem; }
.feat-list li::before { content:"/"; color: var(--teal); font-family: var(--font-mono); font-weight: 700; }

/* ---------- Steps ---------- */
.step {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 28px;
  padding: 34px 0;
  border-top: 1px solid var(--border);
  align-items: start;
}
.step .num {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: .9;
}
.step h3 { font-size: 1.4rem; margin-bottom: 10px; }
.step p { color: var(--muted); margin: 0 0 14px; max-width: 60ch; }

/* ---------- Use cases ---------- */
.uc-card { position: relative; overflow: hidden; }
.uc-card .icon { background: var(--grad-brand-soft); }
.uc-card .badge {
  position:absolute; top:18px; right:18px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted-2);
  border: 1px solid var(--border); border-radius: 999px; padding: 4px 10px;
}

/* ---------- Security / souveraineté ---------- */
.sec-band {
  border: 1px solid var(--border-strong);
  border-radius: var(--r-xl);
  background:
    radial-gradient(700px 300px at 80% 0%, rgba(47,227,198,.10), transparent 60%),
    var(--surface);
  padding: 48px;
}
.badge-row { display:flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.sbadge {
  display:flex; align-items:center; gap:9px;
  border: 1px solid var(--border-strong); border-radius: 12px;
  padding: 11px 16px; background: rgba(255,255,255,.02);
  font-size: 13.5px; color: var(--text); font-weight: 500;
}
.sbadge svg { color: var(--teal); }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; color: var(--text);
  font-family: var(--font-display); font-weight: 600; font-size: 1.12rem;
  padding: 22px 40px 22px 0; position: relative;
}
.faq-q::after { content: "+"; position:absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; color: var(--teal); transition: transform .25s; font-weight: 400; }
.faq-item.open .faq-q::after { transform: translateY(-50%) rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { color: var(--muted); margin: 0 0 22px; max-width: 70ch; }

/* ---------- CTA ---------- */
.cta {
  border-radius: var(--r-xl);
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(600px 300px at 20% 20%, rgba(61,168,255,.16), transparent 60%),
    radial-gradient(600px 300px at 90% 90%, rgba(139,124,246,.18), transparent 60%),
    var(--surface);
  padding: 64px 48px;
  text-align: center;
}
.cta h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
.cta p { color: var(--muted); font-size: 1.1rem; margin: 16px auto 30px; max-width: 52ch; }
.cta .hero-cta { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 60px 0 36px; margin-top: 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 16px; font-weight: 600; }
.footer-grid a { display:block; color: var(--muted); font-size: 14px; padding: 5px 0; transition: color .2s; }
.footer-grid a:hover { color: var(--text); }
.footer-about p { color: var(--muted); font-size: 14px; max-width: 36ch; margin: 16px 0 0; }
.footer-bottom {
  display:flex; justify-content: space-between; align-items:center; flex-wrap: wrap; gap: 14px;
  margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--border);
  color: var(--muted-2); font-size: 13px;
}
.footer-bottom .pills { display:flex; gap: 10px; flex-wrap: wrap; }
.footer-bottom .pills span { border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px; }

/* ---------- Page hero (sous-pages) ---------- */
.page-hero { padding: 80px 0 30px; text-align: center; }
.page-hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); margin: 18px auto 0; max-width: 18ch; }
.page-hero p { color: var(--muted); font-size: 1.15rem; margin: 20px auto 0; max-width: 60ch; }

/* ---------- Forms (contact) ---------- */
.form-grid { display:grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display:flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea {
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 13px 15px;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(47,227,198,.15);
}
.field textarea { resize: vertical; min-height: 130px; }

/* ---------- Split info ---------- */
.split { display:grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split.alt { direction: rtl; }
.split.alt > * { direction: ltr; }
.split .visual {
  border: 1px solid var(--border); border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(20,29,51,.6), rgba(10,15,30,.4));
  padding: 30px; box-shadow: var(--shadow);
}

/* ---------- Diagram blocks ---------- */
.flow { display:flex; flex-direction: column; gap: 12px; }
.flow-node {
  display:flex; align-items:center; gap: 14px;
  border: 1px solid var(--border); border-radius: 14px;
  padding: 14px 16px; background: var(--surface-2);
}
.flow-node .n-ico { width:38px; height:38px; border-radius: 10px; display:grid; place-items:center; background: var(--grad-brand-soft); border:1px solid var(--border-strong); flex:none; }
.flow-node b { font-size: 14.5px; }
.flow-node span { display:block; color: var(--muted); font-size: 12.5px; }
.flow-arrow { text-align:center; color: var(--teal); font-size: 16px; }

.pill-list { display:flex; flex-wrap: wrap; gap: 10px; }
.pill-list span {
  font-family: var(--font-mono); font-size: 12.5px;
  border: 1px solid var(--border-strong); border-radius: 999px;
  padding: 7px 14px; color: var(--muted); background: rgba(255,255,255,.02);
}

/* ---------- Misc ---------- */
.center { text-align:center; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.divider-label { display:flex; align-items:center; gap:16px; color: var(--muted-2); font-family: var(--font-mono); font-size:12px; letter-spacing:.16em; text-transform: uppercase; margin: 0 0 22px;}
.divider-label::before, .divider-label::after { content:""; height:1px; flex:1; background: var(--border); }

/* ---------- Graphe de connaissances animé (type Obsidian) ---------- */
.graph-wrap {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background:
    radial-gradient(600px 320px at 50% 42%, rgba(47,227,198,.08), transparent 70%),
    var(--bg-2);
  overflow: hidden;
  box-shadow: var(--shadow);
}
canvas.kgraph { display: block; width: 100%; height: 440px; }
.graph-legend {
  position: absolute; left: 18px; bottom: 14px;
  display: flex; gap: 16px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 11px; color: var(--muted);
}
.graph-legend i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-right: 6px; vertical-align: middle; }
.graph-tag {
  position: absolute; top: 16px; left: 18px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal); display: flex; align-items: center; gap: 7px;
}
.graph-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 10px var(--teal); }

/* ---------- Intégrations applicatives ---------- */
.intg-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.intg-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 20px 10px; min-height: 96px;
  border: 1px solid var(--border); border-radius: 14px; background: rgba(255,255,255,.025);
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.intg-item:hover { transform: translateY(-3px); border-color: var(--border-strong); background: rgba(61,168,255,.06); }
.intg-item img { height: 30px; width: auto; }
.intg-item span { font-size: 12px; color: var(--muted); text-align: center; }

/* ---------- Bloc image / placeholder ---------- */
.img-placeholder {
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--r-lg);
  background:
    repeating-linear-gradient(45deg, rgba(146,170,214,.025) 0 12px, transparent 12px 24px),
    var(--surface);
  min-height: 240px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  text-align: center; padding: 32px; color: var(--muted-2);
}
.img-placeholder .ph-ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-brand-soft); border: 1px solid var(--border-strong); color: var(--teal); }
.img-placeholder b { color: var(--muted); font-family: var(--font-display); font-size: 15px; }
.img-placeholder span { font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; }

/* ---------- Fenêtre d'application (reconstitution console Multi LLM) ---------- */
.appwin { border: 1px solid var(--border-strong); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--bg-2); }
.appwin-top { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--surface); flex-wrap: wrap; }
.aw-base { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--muted); }
.aw-base .aw-pill { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border-strong); border-radius: 9px; padding: 7px 12px; color: var(--text); font-weight: 600; }
.aw-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border-strong); color: var(--muted); }
.aw-chip.green { background: rgba(47,227,198,.12); border-color: rgba(47,227,198,.32); color: #7af0d9; }
.aw-secure { margin-left: auto; display: flex; align-items: center; gap: 9px; font-size: 12px; line-height: 1.3; color: var(--muted); border: 1px solid var(--border-strong); border-radius: 10px; padding: 7px 12px; }
.aw-secure b { color: var(--text); }
.aw-avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-brand); color: #04130F; font-weight: 700; font-size: 12px; flex: none; }
.appwin-head { display: flex; align-items: center; gap: 9px; padding: 13px 18px; border-bottom: 1px solid var(--border); color: var(--text); font-family: var(--font-display); font-weight: 600; font-size: 14px; }
.appwin-head .crumb { color: var(--muted-2); font-weight: 500; }
.appwin-tabs { display: flex; gap: 24px; padding: 0 18px; border-bottom: 1px solid var(--border); font-size: 13.5px; overflow-x: auto; }
.appwin-tabs span { padding: 13px 0; color: var(--muted-2); border-bottom: 2px solid transparent; white-space: nowrap; }
.appwin-tabs span.on { color: var(--text); border-color: var(--cyan); }
.aw-scroll { overflow-x: auto; }
.atable { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 720px; }
.atable th { text-align: left; color: var(--muted-2); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; font-weight: 600; padding: 12px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.atable td { padding: 11px 14px; border-bottom: 1px solid var(--border); color: var(--muted); white-space: nowrap; vertical-align: middle; }
.atable tr:last-child td { border-bottom: none; }
.atable tr:hover td { background: rgba(255,255,255,.015); }
.atable td.nm { color: var(--text); font-weight: 600; }
.atable td.slug { font-family: var(--font-mono); font-size: 12px; color: var(--muted-2); }
.atable .lg { height: 24px; width: auto; max-width: 30px; object-fit: contain; }
.tag-yes { background: rgba(47,227,198,.14); color: #7af0d9; border-radius: 6px; padding: 3px 11px; font-size: 11px; font-weight: 600; }
.tag-no { background: rgba(146,170,214,.10); color: var(--muted); border-radius: 6px; padding: 3px 11px; font-size: 11px; }
.aw-num { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 7px; background: var(--surface-2); color: var(--text); font-size: 12px; }
.aw-foot { padding: 12px 18px; border-top: 1px solid var(--border); text-align: center; color: var(--muted-2); font-size: 11.5px; font-family: var(--font-mono); }

/* Structure avec menus (rail + sidebar) */
.aw-shell { display: flex; align-items: stretch; }
.aw-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.aw-lower { display: flex; flex: 1; min-width: 0; }
.aw-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

/* Rail d'icônes (navigation application) */
.aw-rail { width: 80px; flex: none; background: var(--bg); border-right: 1px solid var(--border); padding: 12px 6px 16px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.aw-back { width: 30px; height: 30px; border-radius: 50%; background: var(--cyan); display: grid; place-items: center; color: #04130F; }
.aw-logo { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(140deg, #3DA8FF, #8B7CF6); display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 12px; margin-bottom: 2px; }
.aw-rail-item { display: flex; flex-direction: column; align-items: center; gap: 5px; color: var(--muted-2); font-size: 9px; line-height: 1.15; text-align: center; width: 100%; }
.aw-ric { width: 40px; height: 34px; display: grid; place-items: center; border-radius: 10px; }
.aw-rail-item svg { opacity: .8; }
.aw-rail-item.on { color: var(--cyan); }
.aw-rail-item.on .aw-ric { background: rgba(61,168,255,.16); }
.aw-rail-item.on svg { opacity: 1; }
.aw-rail-item.bottom { margin-top: auto; }

/* Sidebar Superadmin */
.aw-side { width: 212px; flex: none; border-right: 1px solid var(--border); padding: 14px 12px; background: rgba(255,255,255,.012); }
.aw-side-head { display: flex; align-items: center; gap: 9px; color: var(--text); font-family: var(--font-display); font-weight: 600; font-size: 14px; padding: 4px 8px 10px; }
.aw-sec { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); padding: 14px 8px 6px; }
.aw-side-item { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 8px; color: var(--muted); font-size: 13px; }
.aw-side-item svg { opacity: .7; flex: none; }
.aw-side-item.on { background: rgba(61,168,255,.16); color: var(--text); }
.aw-side-item.on svg { opacity: 1; }

@media (max-width: 860px) { .aw-rail, .aw-side { display: none; } }
@media (max-width: 760px) { .aw-secure { margin-left: 0; } }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .pain-hero, .grid-3, .grid-4, .split, .footer-grid, .form-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .stat-band, .triad-grid { grid-template-columns: 1fr; }
  .split.alt { direction: ltr; }
  .hero { padding: 50px 0 40px; }
  .section-pad { padding: 64px 0; }
  .footer-grid { gap: 28px; }
  .nav-links, .nav-actions .link-login { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.open + .mobile-menu { display: block; }
}
@media (max-width: 560px) {
  .sec-band, .cta { padding: 32px 22px; }
  .step { grid-template-columns: 1fr; gap: 8px; }
  .step .num { font-size: 2.2rem; }
  .hero-meta { gap: 18px; }
}

/* ---------- Mobile menu ---------- */
.mobile-menu { display: none; border-bottom: 1px solid var(--border); background: rgba(6,10,20,.96); padding: 14px 24px 22px; }
.mobile-menu a { display:block; padding: 12px 0; color: var(--muted); border-bottom: 1px solid var(--border); font-size: 15px; }
.mobile-menu .btn { margin-top: 16px; width: 100%; }

@media (max-width: 760px) {
  .intg-grid { grid-template-columns: repeat(3, 1fr); }
  canvas.kgraph { height: 340px; }
  .graph-legend { font-size: 10px; gap: 11px; }
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
