/* ==========================================================================
   LEKA, Enterprise Knowledge Platform
   Feuille de style unique. Ordre : tokens → base → primitives → sections.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Couleurs extraites du logo */
  --ink: #0a0f2b;
  --ink-soft: #1b2249;
  --slate: #5b6485;
  --slate-light: #858ead;
  --paper: #ffffff;
  --mist: #f5f6fb;
  --mist-deep: #eef0f8;
  --rule: #e4e7f2;
  --rule-strong: #d3d8ea;
  --violet: #4b33ff;
  --violet-lift: #6a46ff;
  --violet-wash: #f1efff;
  --green: #00925c;
  --amber: #b26a00;

  /* Rythme vertical, échelle unique de 4 px */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;

  /* Rayons, trois valeurs, pas une par composant */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(10, 15, 43, .04), 0 6px 18px rgba(10, 15, 43, .05);
  --shadow-lg: 0 2px 4px rgba(10, 15, 43, .04), 0 24px 60px rgba(10, 15, 43, .10);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --shell: min(1240px, 100% - 48px);
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: "ss01", "cv01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--violet); color: #fff; }

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
  border-radius: 3px;
}

/* --------------------------------------------------------------------------
   3. Typographie
   -------------------------------------------------------------------------- */
.display {
  font-size: clamp(36px, 3.9vw, 54px);
  line-height: 1.04;
  letter-spacing: -.04em;
  font-weight: 600;
}

.title {
  font-size: clamp(30px, 3.5vw, 46px);
  line-height: 1.08;
  letter-spacing: -.035em;
  font-weight: 600;
}

.subtitle {
  font-size: clamp(20px, 2vw, 25px);
  line-height: 1.25;
  letter-spacing: -.025em;
  font-weight: 600;
}

.lead {
  font-size: 18px;
  line-height: 1.55;
  letter-spacing: -.012em;
  color: var(--slate);
  max-width: 54ch;
}

.body { color: var(--slate); max-width: 62ch; }

.mono {
  font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
}

/* Marqueur de section : le chevron du logo, repris comme signe de repère. */
.label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--violet);
  margin-bottom: var(--s-4);
}
.label::before {
  content: "";
  width: 13px;
  height: 10px;
  flex: none;
  background: currentColor;
  clip-path: polygon(50% 0, 100% 100%, 76% 100%, 50% 47%, 24% 100%, 0 100%);
}

/* --------------------------------------------------------------------------
   4. Primitives
   -------------------------------------------------------------------------- */
.shell { width: var(--shell); margin-inline: auto; }

.section { padding-block: clamp(72px, 9vw, 128px); }
.section--mist { background: var(--mist); }
.section--ink { background: var(--ink); color: #fff; }
.section + .section--mist,
.section--mist + .section { border-top: 1px solid var(--rule); }

.section-head { max-width: 760px; }
.section-head .body { margin-top: var(--s-4); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 46px;
  padding-inline: 22px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.012em;
  white-space: nowrap;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: var(--violet); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--violet-wash); color: var(--violet); }
.btn--sm { height: 38px; padding-inline: 16px; font-size: 14px; }

.link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  letter-spacing: -.012em;
  color: var(--violet);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease);
}
.link:hover { border-color: currentColor; }
.link svg { width: 14px; height: 14px; }

.chevron-rule {
  height: 1px;
  background: var(--rule);
  position: relative;
}
.chevron-rule::after {
  content: "";
  position: absolute;
  left: 0; top: -4px;
  width: 11px; height: 9px;
  background: var(--violet);
  clip-path: polygon(50% 0, 100% 100%, 76% 100%, 50% 47%, 24% 100%, 0 100%);
}

/* --------------------------------------------------------------------------
   5. En-tête
   -------------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.header.is-stuck { border-bottom-color: var(--rule); }

.header__inner {
  width: var(--shell);
  margin-inline: auto;
  height: 68px;
  display: flex;
  align-items: center;
  gap: var(--s-7);
}

.brand { flex: none; }
.brand svg, .brand img { height: 19px; width: auto; }

.nav { display: flex; gap: var(--s-5); margin-right: auto; }
.nav a {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -.012em;
  color: var(--slate);
  transition: color .2s var(--ease);
}
.nav a:hover { color: var(--ink); }

.header__actions { display: flex; align-items: center; gap: var(--s-4); }
.header__actions .signin {
  font-size: 15px;
  font-weight: 500;
  color: var(--slate);
  transition: color .2s var(--ease);
}
.header__actions .signin:hover { color: var(--ink); }

.burger {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  background: #fff;
  padding: 0;
  place-items: center;
}
.burger span {
  display: block;
  width: 16px; height: 1.5px;
  background: var(--ink);
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.burger span + span { margin-top: 4px; }
body.nav-open .burger span:first-child { transform: translateY(2.75px) rotate(45deg); }
body.nav-open .burger span:last-child { transform: translateY(-2.75px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(48px, 6vw, 88px) clamp(64px, 8vw, 112px);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 780px;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(48% 42% at 72% 26%, rgba(75, 51, 255, .10), transparent 70%),
    radial-gradient(38% 36% at 18% 6%, rgba(75, 51, 255, .05), transparent 70%);
}
.hero__lattice {
  position: absolute;
  top: 0; right: 0;
  width: 56%; height: 100%;
  z-index: 0;
  opacity: .5;
  pointer-events: none;
  mask-image: radial-gradient(60% 55% at 55% 42%, #000, transparent 78%);
}
.hero__lattice line { stroke: var(--violet); stroke-width: .6; opacity: .3; }
.hero__lattice circle { fill: var(--violet); }

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 52fr) minmax(0, 48fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
}

.hero .display { margin-bottom: var(--s-5); }
.hero .display em { font-style: normal; color: var(--violet); }
.hero .lead { margin-bottom: var(--s-5); }

.hero__statement {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.02em;
  margin-bottom: var(--s-6);
}

.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--s-3); }

.benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--rule);
}
.benefits li { padding: var(--s-5) var(--s-5) 0 0; }
.benefits li:last-child { padding-right: 0; }
.benefits li + li { padding-left: var(--s-5); border-left: 1px solid var(--rule); }
.benefits svg { width: 20px; height: 20px; color: var(--violet); margin-bottom: 10px; }
.benefits b { display: block; font-size: 15px; font-weight: 600; letter-spacing: -.015em; }
.benefits span { display: block; font-size: 14px; color: var(--slate); margin-top: 2px; }

/* --------------------------------------------------------------------------
   7. Maquette produit
   -------------------------------------------------------------------------- */
.app {
  display: grid;
  grid-template-columns: 194px minmax(0, 1fr);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: perspective(1600px) rotateY(-1.4deg) rotateX(1deg);
}

.app__side {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  padding: var(--s-4);
  background: var(--mist);
  border-right: 1px solid var(--rule);
}
.app__side .brand svg { height: 15px; margin: var(--s-2) 0 var(--s-1) 2px; }

.app__new {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding-inline: 10px;
  width: 100%;
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-sm);
  background: #fff;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -.015em;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
}
.app__new svg { width: 13px; height: 13px; color: var(--violet); flex: none; }

.app__nav { display: grid; gap: 1px; }
.app__nav li {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 30px;
  padding-inline: 8px;
  border-radius: var(--r-sm);
  font-size: 12.5px;
  letter-spacing: -.015em;
  color: var(--slate);
  white-space: nowrap;
  overflow: hidden;
}
.app__nav li svg { width: 13px; height: 13px; flex: none; opacity: .75; }
.app__nav li[aria-current] { background: #fff; color: var(--ink); font-weight: 600; box-shadow: var(--shadow-sm); }
.app__nav li[aria-current] svg { color: var(--violet); opacity: 1; }

.app__user {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 9px;
  padding-top: var(--s-3);
  border-top: 1px solid var(--rule);
  font-size: 13px;
}
.app__user b { display: block; font-weight: 600; letter-spacing: -.01em; }
.app__user small { color: var(--slate-light); font-size: 12px; }
.app__avatar {
  width: 26px; height: 26px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.app__main { padding: var(--s-4); display: grid; gap: var(--s-3); align-content: start; }

.app__query {
  position: relative;
  padding: 12px 46px 12px 14px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-md);
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -.015em;
  box-shadow: var(--shadow-sm);
}
.app__send {
  position: absolute;
  right: 8px; bottom: 8px;
  width: 28px; height: 28px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: var(--r-sm);
  background: var(--ink);
  color: #fff;
}
.app__send svg { width: 13px; height: 13px; }

.app__panel {
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  background: #fff;
  padding: var(--s-3) var(--s-4) var(--s-4);
}

.app__panel-head {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -.012em;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}
.app__panel-head .mono { margin-left: auto; padding-left: 8px; flex: none; white-space: nowrap; color: var(--slate-light); }
.app__pulse {
  width: 13px; height: 13px;
  margin-top: 2px;
  border: 1.6px solid var(--violet);
  border-top-color: transparent;
  border-radius: 50%;
  flex: none;
}
.motion-ok .app__pulse { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.app__steps { padding-top: 10px; display: grid; gap: 7px; }
.app__steps li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  letter-spacing: -.012em;
  color: var(--slate);
}
.app__steps li small { color: var(--slate-light); }
.app__tick {
  width: 15px; height: 15px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--rule-strong);
  color: transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.app__tick svg { width: 8px; height: 8px; }
.app__steps li.is-done { color: var(--ink); }
.app__steps li.is-done .app__tick { background: var(--green); border-color: var(--green); color: #fff; }

.app__finding { display: flex; gap: 10px; align-items: flex-start; }
.app__finding > svg { width: 17px; height: 17px; color: var(--green); flex: none; margin-top: 1px; }
.app__finding b { display: block; font-size: 14px; letter-spacing: -.015em; }
.app__finding p { font-size: 13px; color: var(--slate); margin-top: 3px; line-height: 1.5; }

.app__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: var(--s-3);
  padding-top: var(--s-3);
  border-top: 1px solid var(--rule);
}
.app__stats div + div { padding-left: var(--s-3); border-left: 1px solid var(--rule); }
.app__stats b { display: block; font-size: 19px; font-weight: 600; letter-spacing: -.03em; }
.app__stats small { font-size: 12px; color: var(--slate); }
.app__stats .risk { color: var(--amber); }

.app__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s-4); }
.app__actions button {
  min-height: 32px;
  padding: 6px 12px;
  line-height: 1.25;
  border-radius: var(--r-sm);
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -.012em;
}
.app__actions button.outline { background: #fff; color: var(--ink); border-color: var(--rule-strong); }

/* --------------------------------------------------------------------------
   8. Connexion : sources → noyau → compréhension
   -------------------------------------------------------------------------- */
.connect { display: grid; gap: clamp(40px, 5vw, 72px); }

.connect__map {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 250px) minmax(0, 1fr) minmax(0, 250px);
  gap: var(--s-6);
  align-items: center;
}

.connect__lines {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
}
.connect__lines path {
  fill: none;
  stroke: var(--rule-strong);
  stroke-width: 1;
}
.connect__lines path.is-live { stroke: var(--violet); opacity: .5; }

.connect__col { position: relative; z-index: 1; display: grid; gap: 6px; }

.node {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.node svg { width: 15px; height: 15px; color: var(--violet); flex: none; }
.node b { font-size: 14px; font-weight: 600; letter-spacing: -.015em; display: block; }
.node small { font-size: 12px; color: var(--slate-light); display: block; }

.connect__core {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: var(--s-3);
  text-align: center;
}
.connect__orb {
  width: clamp(112px, 12vw, 148px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--violet), var(--violet-lift));
  box-shadow: 0 18px 44px rgba(75, 51, 255, .30);
}
.connect__orb svg { width: 46%; }
.connect__core p { font-size: 14px; color: var(--slate); letter-spacing: -.012em; }
.connect__core strong { color: var(--ink); font-weight: 600; }

/* --------------------------------------------------------------------------
   9. De l'intention à l'action
   -------------------------------------------------------------------------- */
.flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--rule);
}
.flow__step { padding: var(--s-5) var(--s-5) 0 0; position: relative; }
.flow__step + .flow__step { padding-left: var(--s-5); border-left: 1px solid var(--rule); }
.flow__step:last-child { padding-right: 0; }
.flow__step::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--violet);
  transition: width .7s var(--ease);
}
.flow.is-live .flow__step::before { width: 100%; }
.flow__step:nth-child(2)::before { transition-delay: .12s; }
.flow__step:nth-child(3)::before { transition-delay: .24s; }
.flow__step:nth-child(4)::before { transition-delay: .36s; }

.flow__num {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  color: var(--violet);
  letter-spacing: 0;
}
.flow__step h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.2;
  margin: 10px 0 8px;
}
.flow__step p { font-size: 15px; color: var(--slate); letter-spacing: -.01em; }
.flow__tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.flow__tags span {
  font-size: 12.5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--violet-wash);
  color: var(--violet);
  letter-spacing: -.01em;
}

.flow__prompt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-4);
  margin-top: clamp(40px, 5vw, 56px);
  padding: var(--s-4) var(--s-5);
  border: 1px solid var(--rule);
  border-left: 2px solid var(--violet);
  border-radius: var(--r-md);
  background: #fff;
}
.flow__prompt p {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -.02em;
  flex: 1 1 320px;
}
.flow__prompt .mono { color: var(--slate); white-space: nowrap; }

/* --------------------------------------------------------------------------
   10. Cas concret
   -------------------------------------------------------------------------- */
.case {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 390px);
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
  margin-top: clamp(40px, 5vw, 64px);
}

.timeline { position: relative; padding-left: 26px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 5px; top: 10px; bottom: 10px;
  width: 1px;
  background: var(--rule);
}
.timeline__fill {
  position: absolute;
  left: 5px; top: 10px;
  width: 1px;
  height: 0;
  background: var(--violet);
  transition: height .4s linear;
}
.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: var(--s-4);
  padding-block: 13px;
  opacity: .42;
  transition: opacity .35s var(--ease);
}
.timeline li.is-on { opacity: 1; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -26px; top: 20px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--rule-strong);
  transition: border-color .35s var(--ease), background .35s var(--ease);
}
.timeline li.is-on::before { border-color: var(--violet); background: var(--violet); }
.timeline li:last-child.is-on::before { border-color: var(--green); background: var(--green); }
.timeline .mono { color: var(--slate-light); padding-top: 3px; }
.timeline b { font-size: 16px; font-weight: 600; letter-spacing: -.02em; display: block; }
.timeline span { font-size: 14.5px; color: var(--slate); letter-spacing: -.01em; }

.result {
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  background: #fff;
  padding: var(--s-5);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 96px;
}
.result h3 { font-size: 17px; font-weight: 600; letter-spacing: -.025em; margin-bottom: var(--s-4); }
.result dl { margin: 0; display: grid; gap: var(--s-4); }
.result dt {
  font-size: 13px;
  color: var(--slate-light);
  letter-spacing: -.005em;
  margin-bottom: 3px;
}
.result dd { margin: 0; font-size: 15px; letter-spacing: -.015em; }
.result dd ul { display: grid; gap: 4px; }
.result dd li { display: flex; gap: 8px; }
.result dd li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--violet); margin-top: 9px; flex: none; }
.result .btn { width: 100%; margin-top: var(--s-5); }
.result__sep { height: 1px; background: var(--rule); }

/* --------------------------------------------------------------------------
   11. Contexte vivant
   -------------------------------------------------------------------------- */
.living {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(40px, 5vw, 64px);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  background: var(--rule);
  overflow: hidden;
}
.living > div { background: #fff; padding: var(--s-5); display: grid; align-content: start; gap: var(--s-3); }
.living--mid { background: var(--violet-wash) !important; }
.living h3 { font-size: 17px; font-weight: 600; letter-spacing: -.025em; }
.living p { font-size: 14.5px; color: var(--slate); letter-spacing: -.01em; }
.living ul { display: grid; gap: 5px; }
.living li { font-size: 14px; display: flex; gap: 9px; align-items: center; letter-spacing: -.01em; }
.living li svg { width: 14px; height: 14px; color: var(--violet); flex: none; }
.living__loop {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: var(--s-2);
  font-size: 13px;
  font-weight: 600;
  color: var(--violet);
  letter-spacing: -.01em;
}
.living__loop svg { width: 14px; height: 14px; }

/* --------------------------------------------------------------------------
   12. Sécurité
   -------------------------------------------------------------------------- */
.security {
  display: grid;
  grid-template-columns: minmax(0, 38fr) minmax(0, 62fr);
  gap: clamp(32px, 4vw, 72px);
  align-items: start;
}
.security__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-5) var(--s-6);
}
.security__grid > div { padding-top: var(--s-4); border-top: 1px solid var(--rule); }
.security__grid svg { width: 18px; height: 18px; color: var(--violet); margin-bottom: 10px; }
.security__grid b { display: block; font-size: 16px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 4px; }
.security__grid p { font-size: 14.5px; color: var(--slate); letter-spacing: -.01em; }

.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s-6); }
.badges span {
  font-size: 13px;
  font-weight: 500;
  padding: 5px 12px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  color: var(--slate);
  letter-spacing: -.01em;
}

/* --------------------------------------------------------------------------
   13. Clôture
   -------------------------------------------------------------------------- */
.closing { position: relative; overflow: hidden; }
.closing::before {
  content: "";
  position: absolute;
  right: -14%; bottom: -46%;
  width: 54%; aspect-ratio: 1.15;
  background: linear-gradient(150deg, var(--violet), var(--violet-lift));
  clip-path: polygon(50% 0, 100% 100%, 76% 100%, 50% 47%, 24% 100%, 0 100%);
  opacity: .10;
}
.closing__inner { position: relative; z-index: 1; display: grid; gap: var(--s-6); max-width: 820px; }
.closing .title span { color: #9d8dff; }
.closing p { font-size: 18px; line-height: 1.55; color: #b9bfd8; max-width: 56ch; letter-spacing: -.012em; }
.closing__ctas { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.closing__points {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-5);
  margin-top: var(--s-6);
  padding-top: var(--s-5);
  border-top: 1px solid rgba(255, 255, 255, .13);
}
.closing__points li { font-size: 14.5px; color: #b9bfd8; letter-spacing: -.01em; }
.closing__points b { display: block; color: #fff; font-weight: 600; margin-bottom: 2px; }

/* --------------------------------------------------------------------------
   14. Pied de page
   -------------------------------------------------------------------------- */
.footer { background: var(--ink); color: #fff; padding-block: var(--s-8) var(--s-6); }
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: var(--s-6);
  padding-bottom: var(--s-7);
}
.footer__brand svg { height: 20px; }
.footer__brand p { font-size: 14.5px; color: #9aa2c0; margin-top: var(--s-3); max-width: 30ch; letter-spacing: -.01em; }
.footer h4 { font-size: 13px; font-weight: 600; color: #fff; margin-bottom: var(--s-3); letter-spacing: -.005em; }
.footer li + li { margin-top: 7px; }
.footer a { font-size: 14.5px; color: #9aa2c0; letter-spacing: -.01em; transition: color .2s var(--ease); }
.footer a:hover { color: #fff; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  align-items: center;
  justify-content: space-between;
  padding-top: var(--s-5);
  border-top: 1px solid rgba(255, 255, 255, .13);
  font-size: 13.5px;
  color: #79819f;
}
.footer__lang { display: flex; gap: 10px; }
.lang-select {
  appearance: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--r-sm);
  color: #b9bfd8;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -.005em;
  padding: 5px 26px 5px 10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b9bfd8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 6px center;
  cursor: pointer;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.lang-select:hover, .lang-select:focus-visible { border-color: rgba(255, 255, 255, .4); color: #fff; }
.lang-select option { color: #0a0f2b; background: #fff; }

/* --------------------------------------------------------------------------
   15. Révélations, un seul geste, discret
   -------------------------------------------------------------------------- */
.motion-ok .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.motion-ok .reveal.is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   16. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__lattice { display: none; }
  .app { transform: none; }
  .case { grid-template-columns: 1fr; }
  .result { position: static; }
  .security { grid-template-columns: 1fr; }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow__step:nth-child(3) { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); margin-top: var(--s-5); }
  .flow__step:nth-child(4) { border-top: 1px solid var(--rule); margin-top: var(--s-5); }
  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  :root { --shell: min(1240px, 100% - 40px); }
  .nav {
    position: fixed;
    inset: 68px 0 auto;
    flex-direction: column;
    gap: 0;
    padding: var(--s-4) 20px var(--s-5);
    background: #fff;
    border-bottom: 1px solid var(--rule);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s var(--ease), transform .22s var(--ease);
  }
  body.nav-open .nav { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding-block: 11px; font-size: 17px; border-bottom: 1px solid var(--rule); }
  .burger { display: grid; }
  /* The demo button leaves room on a phone; "Se connecter" stays: it is
     the only way into the platform from here. */
  .header__actions .btn { display: none; }
  .header__inner { justify-content: space-between; gap: var(--s-4); }

  .connect__map { grid-template-columns: 1fr; gap: var(--s-5); }
  .connect__lines { display: none; }
  .connect__col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .living { grid-template-columns: 1fr; }
  .closing__points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  body { font-size: 15.5px; }
  .benefits, .flow { grid-template-columns: 1fr; }
  .benefits li + li,
  .flow__step + .flow__step { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
  .benefits li, .flow__step { padding-right: 0; }
  .flow__step:nth-child(3), .flow__step:nth-child(4) { margin-top: 0; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .app { grid-template-columns: 1fr; }
  .app__side { flex-direction: row; align-items: center; border-right: 0; border-bottom: 1px solid var(--rule); }
  .app__nav, .app__new, .app__user { display: none; }
  .app__side .brand svg { margin: 0; }
  .connect__col { grid-template-columns: 1fr; }
  .security__grid { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: 2px; }
  .footer__top { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* --------------------------------------------------------------------------
   17. Formulaires — page démo/contact et connexion
   -------------------------------------------------------------------------- */
.form-page {
  padding-block: clamp(56px, 7vw, 96px);
  background: var(--mist);
  min-height: calc(100vh - 69px - 300px);
}

.form-card {
  width: min(600px, 100%);
  margin-inline: auto;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: clamp(28px, 4vw, 48px);
}
.form-card--narrow { width: min(420px, 100%); }

.form-head { margin-bottom: var(--s-6); }
.form-head .label { margin-bottom: var(--s-3); }
.form-head h1 { font-size: clamp(24px, 2.6vw, 30px); font-weight: 600; letter-spacing: -.03em; line-height: 1.15; }
.form-head p { margin-top: var(--s-3); font-size: 15px; color: var(--slate); letter-spacing: -.01em; line-height: 1.5; }

.form-grid { display: grid; gap: var(--s-4); }
.form-grid--2 { grid-template-columns: 1fr 1fr; }

.field { display: grid; gap: 7px; }
.field label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--ink);
}
.field .optional { font-weight: 400; color: var(--slate-light); }
.field input,
.field select,
.field textarea {
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  letter-spacing: -.01em;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { height: auto; min-height: 128px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6485' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 38px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 3px var(--violet-wash);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--slate-light); }

.checkbox-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  font-size: 13.5px;
  color: var(--slate);
  letter-spacing: -.01em;
}
.checkbox-row label { display: flex; align-items: center; gap: 8px; flex: none; }
.checkbox-row input[type="checkbox"] { flex: none; }
.checkbox-row input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--violet); }
.checkbox-row a { color: var(--violet); font-weight: 600; }

.btn--block { width: 100%; }

.form-note {
  margin-top: var(--s-4);
  font-size: 13px;
  color: var(--slate-light);
  letter-spacing: -.005em;
  line-height: 1.5;
  text-align: center;
}
.form-note a { color: var(--violet); font-weight: 600; }

.form-foot {
  margin-top: var(--s-5);
  padding-top: var(--s-5);
  border-top: 1px solid var(--rule);
  text-align: center;
  font-size: 14px;
  color: var(--slate);
}
.form-foot a { color: var(--violet); font-weight: 600; }

.notice {
  display: none;
  margin-top: var(--s-4);
  padding: 11px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--rule-strong);
  background: var(--mist);
  font-size: 13.5px;
  color: var(--ink);
  letter-spacing: -.01em;
  line-height: 1.45;
}
.notice.is-shown { display: block; }
.notice a { color: var(--violet); font-weight: 600; }

@media (max-width: 560px) {
  .form-grid--2 { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   18. Pages de contenu — légal, documentation, connecteurs, changelog
   -------------------------------------------------------------------------- */
.content-page { padding-block: clamp(48px, 6vw, 80px) clamp(72px, 9vw, 112px); }

.content-head { max-width: 720px; margin-bottom: clamp(36px, 4vw, 56px); }
.content-head .label { margin-bottom: var(--s-3); }
.content-head h1 { font-size: clamp(30px, 3.5vw, 42px); font-weight: 600; letter-spacing: -.035em; line-height: 1.1; }
.content-head p { margin-top: var(--s-4); font-size: 16px; color: var(--slate); letter-spacing: -.01em; }
.content-head .updated { margin-top: var(--s-3); font-size: 13px; color: var(--slate-light); }

.content-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
}

.toc {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 2px;
  padding-right: var(--s-4);
  border-right: 1px solid var(--rule);
}
.toc a {
  padding: 7px 0;
  font-size: 14px;
  color: var(--slate);
  letter-spacing: -.01em;
  border-left: 2px solid transparent;
  padding-left: 12px;
  margin-left: -13px;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.toc a:hover { color: var(--ink); border-color: var(--rule-strong); }

.prose { max-width: 74ch; }
.prose h2 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.02em;
  margin-top: clamp(36px, 4vw, 48px);
  margin-bottom: var(--s-4);
  padding-top: clamp(36px, 4vw, 48px);
  border-top: 1px solid var(--rule);
  scroll-margin-top: 96px;
}
.prose > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose p { font-size: 15px; line-height: 1.65; color: var(--slate); letter-spacing: -.008em; }
.prose p + p { margin-top: var(--s-4); }
.prose ul { margin-top: var(--s-3); display: grid; gap: 8px; }
.prose ul li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--slate);
  letter-spacing: -.008em;
}
.prose ul li::before { content: ""; position: absolute; left: 0; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--violet); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--violet); font-weight: 600; }
.prose .fill-me {
  background: var(--violet-wash);
  color: var(--ink);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 14px;
}
.prose table { width: 100%; border-collapse: collapse; margin-top: var(--s-4); font-size: 14px; }
.prose th, .prose td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--rule); letter-spacing: -.008em; }
.prose th { font-weight: 600; color: var(--ink); background: var(--mist); }
.prose td { color: var(--slate); }

/* Documentation */
.doc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); }
.doc-card {
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  background: #fff;
  padding: var(--s-5);
  display: grid;
  align-content: start;
  gap: var(--s-3);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.doc-card:hover { border-color: var(--rule-strong); box-shadow: var(--shadow-sm); }
.doc-card svg { width: 20px; height: 20px; color: var(--violet); }
.doc-card h3 { font-size: 16px; font-weight: 600; letter-spacing: -.02em; }
.doc-card p { font-size: 14px; color: var(--slate); letter-spacing: -.008em; line-height: 1.5; }
.doc-card .link { margin-top: 2px; font-size: 13.5px; }
.tag {
  justify-self: start;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .01em;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--violet-wash);
  color: var(--violet);
}
.tag--soon { background: var(--mist-deep); color: var(--slate); }

/* Connecteurs */
.connector-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); }
.connector-card {
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  background: #fff;
  padding: var(--s-4) var(--s-5);
  display: grid;
  gap: 10px;
}
.connector-card__head { display: flex; align-items: center; gap: 10px; }
.connector-card__head svg { width: 18px; height: 18px; color: var(--violet); flex: none; }
.connector-card__head b { font-size: 15px; font-weight: 600; letter-spacing: -.015em; }
.connector-card p { font-size: 13.5px; color: var(--slate); letter-spacing: -.008em; line-height: 1.5; }
.connector-card__tools { font-size: 12.5px; color: var(--slate-light); }

/* Changelog */
.changelog-list { display: grid; gap: 0; max-width: 74ch; }
.changelog-entry { padding-block: var(--s-6); border-top: 1px solid var(--rule); }
.changelog-entry:first-child { border-top: 0; padding-top: 0; }
.changelog-entry__head { display: flex; align-items: baseline; gap: var(--s-3); flex-wrap: wrap; margin-bottom: var(--s-3); }
.changelog-entry__head .mono { color: var(--slate-light); }
.changelog-entry h2 { font-size: 18px; font-weight: 600; letter-spacing: -.02em; padding: 0; margin: 0; border: 0; }
.changelog-entry ul { display: grid; gap: 8px; }
.changelog-entry li { position: relative; padding-left: 18px; font-size: 14.5px; color: var(--slate); letter-spacing: -.008em; line-height: 1.55; }
.changelog-entry li::before { content: ""; position: absolute; left: 0; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--violet); }

@media (max-width: 900px) {
  .content-layout { grid-template-columns: 1fr; }
  .toc { position: static; border-right: 0; border-bottom: 1px solid var(--rule); padding-right: 0; padding-bottom: var(--s-4); display: flex; flex-wrap: wrap; gap: 4px 16px; }
  .toc a { padding-left: 0; margin-left: 0; border-left: 0; }
  .doc-grid { grid-template-columns: 1fr 1fr; }
  .connector-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .doc-grid, .connector-grid { grid-template-columns: 1fr; }
}
