/* ─── Variables ─────────────────────────────────────────────── */
:root {
  --paper: #FAFAF7;
  --paper-deep: #F4F2EC;
  --line: #E5E2D9;
  --ink-night: #1B2942;
  --ink-soft: #2C3A52;
  --graphite: #5C6470;
  --graphite-dim: #98A0AC;
  --ibm-blue: #0066FF;
  --ibm-blue-soft: #E8F0FF;
  --green-ok: #00875A;
  --rust: #C73E1D;
  --noise-alpha: 0.025;

  --font-display: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SF Mono", Menlo, monospace;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2.5rem;
  --space-6: 4rem;
  --space-7: 6rem;
  --space-8: 9rem;

  --max-width: 1280px;
  --gutter: clamp(1rem, 4vw, 3rem);

  /* Refonte 2026-05-04 — palette « SAS de sécurité » Stripe-like */
  --violet: #4a3aff;
  --violet-deep: #3a2add;
  --purple: #7c3aed;
  --gradient-primary: linear-gradient(90deg, var(--violet) 0%, var(--purple) 100%);
  --gradient-soft: linear-gradient(135deg, #fafbff 0%, #f0f4ff 50%, #e8ecff 100%);

  --orange-soft: #ffe5d6;
  --orange-text: #b85a1c;
  --orange-border: #ff8a4a;

  --violet-soft: #eef2ff;
  --violet-text: #4f46e5;
  --violet-border: #c7d2fe;

  --night: #0a0a1f;
  --night-soft: #14142b;

  --ring-violet: 0 0 0 1px rgba(74, 58, 255, 0.18);
  --shadow-card: 0 8px 30px rgba(74, 58, 255, 0.08);
  --shadow-cta: 0 4px 14px rgba(74, 58, 255, 0.3);
}

/* ─── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--graphite);
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ─── Typography defaults ───────────────────────────────────── */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink-night);
}

h2 { font-size: clamp(2.5rem, 5vw, 4rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--ibm-blue); }

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

/* ─── Reduced motion ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ─── Container utility ─────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ─── Texture grain global ───────────────────────────────────── */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("assets/noise.svg");
  background-size: 200px 200px;
  opacity: var(--noise-alpha);
  pointer-events: none;
  z-index: 200;
  mix-blend-mode: overlay;
}

/* ─── Nav ────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid rgba(74, 58, 255, 0.08);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1.5rem;
}
.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--night);
  text-decoration: none;
}
.nav__logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--gradient-primary);
  color: white;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
}
.nav__links {
  display: flex;
  gap: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #4a4a6a;
}
.nav__links a { color: inherit; text-decoration: none; transition: color 0.15s ease; }
.nav__links a:hover { color: var(--violet); }
.nav__cta {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  background: var(--gradient-primary);
  color: white;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: var(--shadow-cta);
  transition: transform 0.15s ease;
}
.nav__cta:hover { transform: translateY(-1px); }
@media (max-width: 768px) {
  .nav__links { display: none; }
}

/* ─── Hero (refonte 2026-05-04) ────────────────────────────── */
.hero {
  background: var(--gradient-soft);
  padding: 7rem 0 5rem;
  position: relative;
  overflow: hidden;
  min-height: auto;
}
.hero::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -10%;
  width: 60%;
  height: 160%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }
.hero__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (max-width: 968px) {
  .hero__inner { grid-template-columns: 1fr; gap: 2rem; }
}
.hero__eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: white;
  color: var(--violet);
  border: 1px solid var(--violet-border);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 8px rgba(74, 58, 255, 0.06);
  letter-spacing: 0;
  text-transform: none;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--night);
  max-width: 22ch;
}
.hero__title em {
  font-style: normal;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
  color: initial;
}
.hero__sub {
  margin-top: 1rem;
  max-width: 50ch;
  font-family: var(--font-mono);
  font-size: 1rem;
  line-height: 1.5;
  color: #4a4a6a;
}
.hero__targets {
  margin-top: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #6b6b8a;
  font-style: italic;
}
.hero__ctas {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.hero__chips {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
}
.hero__chips li {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--night);
  padding: 0.3rem 0.65rem;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  white-space: nowrap;
}

/* ─── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.85rem 1.5rem;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: none;
  border: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn--primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-cta);
  border: 0;
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(74,58,255,0.4); background: var(--gradient-primary); color: white; }
.btn--ghost {
  background: white;
  color: var(--violet);
  border: 1px solid var(--violet-border);
}
.btn--ghost:hover { border-color: var(--violet); color: var(--violet); background: white; }

/* ─── Hero schema — bouclier + flux particules ───────────── */
.hero__schema {
  background: white;
  border-radius: 16px;
  padding: 1.5rem 1.25rem;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(74, 58, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-family: var(--font-mono);
}
.schema__side {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  flex-shrink: 0;
}
.schema__icons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.4rem;
}
.schema__icons--llm {
  grid-template-columns: 1fr;
  gap: 0.3rem;
}
.schema__icon {
  width: 36px;
  height: 36px;
  background: white;
  border: 1px solid rgba(74, 58, 255, 0.15);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  box-shadow: 0 2px 8px rgba(74, 58, 255, 0.06);
  font-weight: 700;
}
.schema__icon--orange {
  background: var(--orange-soft);
  border-color: rgba(255, 138, 74, 0.3);
  color: var(--orange-text);
}
.schema__icon--violet {
  background: var(--violet-soft);
  border-color: rgba(74, 58, 255, 0.2);
  color: var(--violet-text);
  width: 70px;
  height: 24px;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
}
.schema__label {
  font-size: 0.55rem;
  color: #6b6b8a;
  text-align: center;
  letter-spacing: 0.1em;
  margin-top: 0.25rem;
  font-weight: 600;
}
.schema__flow {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-self: center;
  min-width: 50px;
}
.schema__strand {
  position: relative;
  height: 1px;
  border-top: 1px dashed;
}
.schema__strand--orange { border-top-color: var(--orange-border); }
.schema__strand--violet { border-top-color: var(--violet); }
.schema__strand--out::after {
  content: "";
  position: absolute;
  right: -3px;
  top: -4px;
  width: 0;
  height: 0;
  border-left: 6px solid currentColor;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}
.schema__strand--back::before {
  content: "";
  position: absolute;
  left: -3px;
  top: -4px;
  width: 0;
  height: 0;
  border-right: 6px solid currentColor;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}
.schema__strand--orange { color: var(--orange-border); }
.schema__strand--violet { color: var(--violet); }
.schema__particle {
  position: absolute;
  top: -3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  box-shadow: 0 0 8px currentColor;
  animation: schemaFlow 2s linear infinite;
}
.schema__particle--reverse { animation-name: schemaFlowReverse; }
.schema__particle--orange { color: var(--orange-border); background: var(--orange-border); }
.schema__particle--violet { color: var(--violet); background: var(--violet); }
@keyframes schemaFlow {
  0% { left: 0%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}
@keyframes schemaFlowReverse {
  0% { left: 100%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: 0%; opacity: 0; }
}
.schema__shield {
  position: relative;
  width: 130px;
  height: 152px;
  flex-shrink: 0;
  filter: drop-shadow(0 12px 32px rgba(74, 58, 255, 0.45));
}
.schema__shield svg { width: 100%; height: 100%; display: block; }
.schema__shield-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  pointer-events: none;
  font-family: var(--font-display);
}
.schema__shield-mark { font-size: 2rem; line-height: 1; margin-bottom: 0.25rem; }
.schema__shield-name { font-size: 0.95rem; font-weight: 700; letter-spacing: 0.08em; }
.schema__shield-sub { font-size: 0.7rem; opacity: 0.9; letter-spacing: 0.15em; margin-top: 0.1rem; font-weight: 600; }

/* Mobile : schéma vertical */
@media (max-width: 968px) {
  .hero__schema {
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
  }
  .schema__flow {
    flex-direction: row;
    gap: 0.65rem;
    height: 50px;
    flex: none;
    align-items: center;
    min-width: 0;
  }
  .schema__strand {
    width: 1px;
    height: 100%;
    border-top: none;
    border-left: 1px dashed;
  }
  .schema__strand--out::after {
    right: auto; left: -3.5px; top: auto; bottom: -3px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 6px solid currentColor;
  }
  .schema__strand--back::before {
    left: -3.5px; top: -3px;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
    border-bottom: 6px solid currentColor;
  }
  .schema__particle { top: 0; left: -3px !important; animation-name: schemaFlowVertical; }
  .schema__particle--reverse { animation-name: schemaFlowVerticalReverse; }
  @keyframes schemaFlowVertical {
    0% { top: 0%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
  }
  @keyframes schemaFlowVerticalReverse {
    0% { top: 100%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 0%; opacity: 0; }
  }
  .schema__icons--llm { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .schema__particle { animation: none; opacity: 1; left: 50%; }
}

/* ─── Section #how — Animation SAS au scroll ──────────────── */
.how {
  padding: 6rem 0;
  background: white;
  position: relative;
}
.how__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--violet);
  margin-bottom: 1rem;
}
.how__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--night);
  margin-bottom: 3rem;
  max-width: 22ch;
}
.how__title em {
  font-style: normal;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
/* Flux 3 étapes — diagram + steps */
.flux__diagram {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 1rem;
  list-style: none;
  margin: 0 0 4rem;
  padding: 0;
}
@media (max-width: 968px) {
  .flux__diagram { grid-template-columns: 1fr; gap: 0.5rem; }
}
.flux__node {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.flux__node.is-visible { opacity: 1; transform: translateY(0); }
.flux__node--zonym {
  background: var(--violet-soft);
  border: 1.5px solid var(--violet);
  box-shadow: var(--ring-violet), 0 8px 30px rgba(74, 58, 255, 0.12);
}
.flux__tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--graphite-dim);
  text-transform: uppercase;
}
.flux__node--zonym .flux__tag { color: var(--violet); }
.flux__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--night);
  letter-spacing: -0.01em;
}
.flux__desc {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.5;
  color: #4a4a6a;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px dashed #e5e7eb;
}
.flux__node--zonym .flux__desc { border-top-color: rgba(74, 58, 255, 0.15); color: var(--ink-night); }
.flux__arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-width: 110px;
  padding: 0 0.5rem;
}
.flux__arrow-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--violet);
}
.flux__arrow-line {
  width: 100%;
  height: 1px;
  background: var(--violet);
  position: relative;
}
.flux__arrow-line::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-top: 1px solid var(--violet);
  border-right: 1px solid var(--violet);
  transform: translateY(-50%) rotate(45deg);
}
@media (max-width: 968px) {
  .flux__arrow {
    min-width: 0;
    flex-direction: row;
    padding: 0.5rem 0;
  }
  .flux__arrow-line {
    width: 1px;
    height: 24px;
  }
  .flux__arrow-line::after {
    right: 50%;
    top: auto;
    bottom: -1px;
    transform: translateX(50%) rotate(135deg);
  }
}

/* Pas-à-pas (3 cartes textuelles) */
.flux__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0 0 3rem;
}
@media (max-width: 968px) {
  .flux__steps { grid-template-columns: 1fr; gap: 1.5rem; }
}
.flux__step {
  position: relative;
  padding-top: 1.25rem;
  border-top: 2px solid var(--violet);
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.flux__step.is-visible { opacity: 1; transform: translateY(0); }
.flux__step-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--violet);
}
.flux__step-title {
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--night);
  letter-spacing: -0.01em;
}
.flux__step-text {
  margin-top: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.6;
  color: #4a4a6a;
}
.flux__step-text code {
  font-size: 0.85em;
  padding: 0.1rem 0.35rem;
  background: var(--violet-soft);
  border: 1px solid var(--violet-border);
  border-radius: 3px;
  color: var(--violet-text);
}

.how__notes {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 3rem;
}
@media (max-width: 768px) { .how__notes { grid-template-columns: 1fr; } }
.how__notes li {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.5;
  color: #4a4a6a;
  padding: 1rem 1.25rem;
  background: #fafbff;
  border-radius: 8px;
  border-left: 2px solid var(--violet);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.how__notes li.is-visible { opacity: 1; transform: translateY(0); }
.how__notes li strong { color: var(--night); }
.how__notes-fine {
  background: #fff5ed !important;
  border-left-color: var(--orange-border) !important;
}
.how__notes a { color: var(--violet); }

.how__counters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 2rem 0;
  border-top: 1px solid #e5e7eb;
}
@media (max-width: 768px) { .how__counters { grid-template-columns: repeat(2, 1fr); } }
.how__counter {
  text-align: center;
}
.how__counter-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}
.how__counter-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6b6b8a;
  margin-top: 0.25rem;
}

/* ─── Section #demo — Démo live (sombre) ──────────────────── */
.demo {
  padding: 6rem 0;
  background: var(--night);
  color: white;
}
.demo__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #a78bfa;
  margin-bottom: 1rem;
}
.demo__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: white;
  margin-bottom: 0.5rem;
}
.demo__sub {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 60ch;
  margin-bottom: 2rem;
  line-height: 1.55;
}
.demo__terminal {
  background: var(--night-soft);
  border: 1px solid rgba(124, 58, 237, 0.25);
  border-radius: 12px;
  font-family: var(--font-mono);
  margin-bottom: 1rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}
.demo__terminal-bar {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid rgba(124, 58, 237, 0.2);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a78bfa;
}
.demo__field { padding: 1.25rem; }
.demo__prompt {
  display: block;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
}
.demo__textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(124, 58, 237, 0.2);
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  resize: vertical;
}
.demo__textarea:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(74, 58, 255, 0.2);
}
.demo__textarea::placeholder { color: rgba(255, 255, 255, 0.3); }
.demo__bar {
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.demo__counter { font-size: 0.75rem; color: rgba(255, 255, 255, 0.5); }
.demo__counter--warn { color: #fb923c; }

.demo__output-box[hidden] { display: none; }
.demo__output { padding: 1.25rem; }
.demo__pseudo {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: #a78bfa;
  white-space: pre-wrap;
  margin-bottom: 1rem;
  background: transparent;
  padding: 0;
}
.demo__sep { border: none; border-top: 1px dashed rgba(124, 58, 237, 0.3); margin: 1rem 0; }
.demo__mapping-title {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}
.demo__mapping { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.4rem; margin: 0; }
.demo__mapping li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-family: var(--font-mono);
}
.demo__orig {
  background: rgba(255, 138, 101, 0.15);
  color: #ff8a65;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
}
.demo__arrow { color: rgba(255, 255, 255, 0.4); }
.demo__ph {
  background: rgba(167, 139, 250, 0.15);
  color: #a78bfa;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  font-weight: 600;
}
.demo__stats {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-mono);
}
.demo__mapping--destroyed { opacity: 0.3; transition: opacity 1s ease; }

/* ─── Section #tarifs — Formules ──────────────────────────── */
.tarifs {
  padding: 6rem 0;
  background: var(--gradient-soft);
}
.tarifs__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--violet);
  margin-bottom: 1rem;
}
.tarifs__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--night);
  margin-bottom: 3rem;
  max-width: 22ch;
}
.tarifs__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}
@media (max-width: 968px) { .tarifs__grid { grid-template-columns: 1fr; } }

.tarif {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tarif:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }

.tarif--featured {
  background: white;
  border: 2px solid var(--violet);
  box-shadow: 0 12px 40px rgba(74, 58, 255, 0.12);
}
.tarif__badge {
  position: absolute;
  top: -12px;
  left: 1.5rem;
  background: var(--gradient-primary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.tarif__name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--night);
}
.tarif__price {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
  margin: 0.5rem 0;
}
.tarif__period {
  font-size: 1rem;
  font-family: var(--font-mono);
  letter-spacing: 0;
  font-weight: 500;
  margin-left: 0.2rem;
  -webkit-text-fill-color: initial;
  background: none;
  color: var(--night);
  opacity: 0.55;
}
.tarif__sub {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #6b6b8a;
  margin-bottom: 1rem;
}
.tarif__features li a {
  color: var(--violet-text);
  text-decoration: none;
  border-bottom: 1px dashed var(--violet-soft);
  transition: border-color 0.15s ease;
}
.tarif__features li a:hover {
  border-bottom-color: var(--violet);
}
.tarif__features {
  list-style: none;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--night);
  flex-grow: 1;
  margin-bottom: 1.5rem;
}
.tarif__features li {
  padding-left: 1.25rem;
  position: relative;
  margin-bottom: 0.5rem;
}
.tarif__features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--violet);
  font-weight: 700;
}
.tarif__features code {
  font-size: 0.85em;
  padding: 0.1rem 0.35rem;
  background: var(--violet-soft);
  border-radius: 3px;
  color: var(--violet-text);
}
.tarif__cta { margin-top: auto; align-self: flex-start; }
.tarif__cta-group {
  margin-top: auto;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.tarif__cta--split {
  flex: 1;
  min-width: 0;
  text-align: center;
  justify-content: center;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

/* ─── Section #contact — CTA final + FAQ accordéon ────────── */
.cta-final {
  padding: 6rem 0;
  background: white;
  text-align: center;
}
.cta-final__inner {
  max-width: 720px;
}
.cta-final__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--night);
  margin-bottom: 1rem;
}
.cta-final__title em {
  font-style: normal;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cta-final__sub {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: #4a4a6a;
  margin-bottom: 2rem;
  max-width: 50ch;
  margin-left: auto;
  margin-right: auto;
}
.cta-final__btns {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

/* ─── FAQ mini accordéon ────────────────────────────────────── */
.faq-mini {
  text-align: left;
  border-top: 1px solid #e5e7eb;
  padding-top: 3rem;
}
.faq-mini__title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--violet);
  margin-bottom: 1.5rem;
}
.qa {
  border-bottom: 1px solid #e5e7eb;
  padding: 1rem 0;
}
.qa summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--night);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.qa summary::after {
  content: "+";
  color: var(--violet);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.2s ease;
}
.qa[open] summary::after { content: "−"; }
.qa summary::-webkit-details-marker { display: none; }
.qa p {
  margin-top: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.6;
  color: #4a4a6a;
}
.qa code {
  font-size: 0.85em;
  padding: 0.1rem 0.35rem;
  background: var(--violet-soft);
  border-radius: 3px;
  color: var(--violet-text);
}

/* ─── Footer ──────────────────────────────────────────────── */
.footer {
  padding: 2rem 0;
  background: var(--night);
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.footer a {
  color: #a78bfa;
  text-decoration: none;
}
.footer a:hover { color: #c7b9ff; }
.footer__bottom {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ─── Focus states pour clavier ──────────────────────────── */
.btn:focus-visible,
.nav__cta:focus-visible,
.nav__links a:focus-visible,
.tarif__cta:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 2px;
}
.demo__textarea:focus-visible {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(74, 58, 255, 0.3);
}
.qa summary:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 2px;
  border-radius: 4px;
}
.nav__logo:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 4px;
  border-radius: 4px;
}
/* Skip link visible au focus */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--violet);
  color: white;
  padding: 0.5rem 1rem;
  z-index: 1000;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.skip-link:focus { top: 0; }

/* ─── Modale Tally — réservation d'appel ──────────────── */
.tally-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}
.tally-modal[hidden] { display: none; }
.tally-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 31, 0.55);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.tally-modal__content {
  position: relative;
  background: white;
  border: 1px solid var(--violet-border);
  border-radius: 14px;
  width: 100%;
  max-width: 620px;
  height: min(90vh, 700px);
  box-shadow: 0 30px 80px rgba(74, 58, 255, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(16px) scale(0.98);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.tally-modal.is-open .tally-modal__overlay { opacity: 1; }
.tally-modal.is-open .tally-modal__content {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.tally-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--violet-soft);
}
.tally-modal__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--night);
  margin: 0;
}
.tally-modal__close {
  background: transparent;
  border: 0;
  color: var(--night);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.tally-modal__close:hover {
  background: var(--violet-soft);
  color: var(--violet);
}
.tally-modal__close:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 2px;
}
.tally-modal__iframe {
  flex: 1;
  border: 0;
  width: 100%;
  background: white;
}

/* ─── Section #trust — Conformité & souveraineté ──────────── */
.trust {
  padding: 6rem 0;
  background: white;
  border-top: 1px solid var(--violet-soft);
}
.trust__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--violet);
  margin-bottom: 1rem;
}
.trust__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--night);
  margin-bottom: 0.75rem;
  max-width: 22ch;
}
.trust__title em {
  font-style: normal;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.trust__lede {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: #6b6b8a;
  margin-bottom: 3rem;
  max-width: 48ch;
}
.trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 1024px) { .trust__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .trust__grid { grid-template-columns: 1fr; } }

.trust-card {
  background: white;
  border: 1px solid var(--violet-soft);
  border-radius: 12px;
  padding: 1.75rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.trust-card:hover {
  transform: translateY(-2px);
  border-color: var(--violet-border);
  box-shadow: 0 8px 24px rgba(74, 58, 255, 0.08);
}
.trust-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--violet-soft);
  color: var(--violet);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.25rem;
}
.trust-card__icon svg {
  display: block;
}
.trust-card__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--night);
  margin: 0;
  letter-spacing: -0.01em;
}
.trust-card__body {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--night);
  margin: 0;
}
.trust-card__body code {
  font-size: 0.85em;
  padding: 0.1rem 0.35rem;
  background: var(--violet-soft);
  border-radius: 3px;
  color: var(--violet-text);
}

.trust__refs {
  list-style: none;
  padding: 1.25rem 1.5rem;
  margin: 0;
  background: var(--gradient-soft);
  border-radius: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #6b6b8a;
}
.trust__refs a {
  color: var(--violet-text);
  text-decoration: none;
  border-bottom: 1px dashed var(--violet-border);
  transition: border-color 0.15s ease;
}
.trust__refs a:hover { border-bottom-color: var(--violet); }
