/* ===== Variables (alignées sur https://safe-doc.ai/ — static/style.css) ===== */
:root {
  --bg-dark: #0a0a0f;
  --bg-card: #14141e;
  --bg-elevated: #1a1a24;
  --text: #f0f0f5;
  --text-muted: #9595ad;
  --accent: #4a9eff;
  --accent-hover: #2f86ee;
  --accent-muted: rgba(74, 158, 255, 0.16);
  --border: rgba(255, 255, 255, 0.1);
  --success: #00d68f;
  --logo-gradient: linear-gradient(135deg, #4a9eff, #0ea5ff);
  --radius: 12px;
  --radius-lg: 16px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-dark);
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 720px; }

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  height: 64px;
}
.logo {
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  letter-spacing: -0.02em;
  background: var(--logo-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.logo-dot {
  -webkit-text-fill-color: transparent;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.logo-img {
  display: block;
  height: 26px;
  width: auto;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 1;
  justify-content: center;
  order: 2;
}
.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav a:hover { color: var(--text); }
.nav a.nav-active { color: var(--accent); }
.nav a.btn { color: var(--text); }
.nav a.btn-primary { color: #fff; }
.nav a.btn-outline { color: var(--accent); }
.nav a.btn-ghost { color: var(--text-muted); }

.header-actions a.btn { color: var(--text); }
.header-actions a.btn-primary { color: #fff; }
.header-actions a.btn-outline { color: var(--accent); }
.header-actions a.btn-ghost { color: var(--text-muted); }

/* Language switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  order: 3;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  order: 4;
  margin-left: auto;
}
.lang-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.lang-link:hover { color: var(--text); }
.lang-sep {
  color: var(--border);
  user-select: none;
}
.lang-current {
  color: var(--accent);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-lg { padding: 0.85rem 1.75rem; font-size: 1rem; }
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
}
.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: var(--bg-elevated);
  border-color: var(--text-muted);
}
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}
.btn-ghost:hover { color: var(--text); }
.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.btn-outline:hover {
  background: var(--accent-muted);
}

/* ===== Hero ===== */
.hero {
  padding: 5rem 0 6rem;
  text-align: center;
}
.hero-tagline {
  font-size: 0.95rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1.25rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2.5rem;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ===== Branding sections (Simple + Trust) ===== */
.branding {
  padding: 3rem 0;
  text-align: center;
}
.branding-simple {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.branding-trust {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}
.branding-title {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--text);
  letter-spacing: -0.02em;
}
.branding-simple .branding-title {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--accent);
}
.branding-tagline {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text-muted);
  font-weight: 500;
}
.branding-trust-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2.5rem;
}
.branding-trust-list li {
  position: relative;
  padding-left: 1.5rem;
  font-weight: 600;
  color: var(--text);
}
.branding-trust-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

/* ===== Section titles ===== */
.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  text-align: center;
  margin: 0 0 2.5rem;
}
.section-title-light { color: var(--text); }

/* ===== Problem ===== */
.problem {
  padding: 4rem 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.problem .section-title { margin-bottom: 1.5rem; }
.problem-intro {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.problem-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}
.problem-list li {
  position: relative;
  padding: 0.6rem 0 0.6rem 2rem;
  border-bottom: 1px solid var(--border);
  font-weight: 500;
}
.problem-list li::before {
  content: "×";
  position: absolute;
  left: 0;
  color: #ef4444;
  font-weight: 700;
  font-size: 1.1rem;
}
.problem-close {
  text-align: center;
  font-weight: 600;
  color: var(--success);
  margin: 0;
}

/* ===== How it works ===== */
.how {
  padding: 4rem 0;
}
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}
.step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--accent-muted);
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.25rem;
  border-radius: 50%;
  margin-bottom: 1rem;
}
.step h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
}

/* ===== Modes ===== */
.modes {
  padding: 4rem 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}
.modes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 960px;
  margin: 0 auto;
}
.mode-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.mode-clean { border-left: 4px solid var(--accent); }
.mode-blinde { border-left: 4px solid var(--success); }
.mode-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.mode-badge-blinde { color: var(--success); }
.mode-card h3 {
  margin: 0 0 1.25rem;
  font-size: 1.25rem;
  font-weight: 700;
}
.mode-includes, .mode-ideal {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin: 1rem 0 0.4rem;
}
.mode-card ul {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.mode-ideal-list { margin-bottom: 0; }
.mode-card-link {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--success);
  text-decoration: none;
  transition: color 0.2s;
}
.mode-card-link:hover { color: var(--text); }

/* ===== Pricing ===== */
.pricing {
  padding: 4rem 0;
  border-bottom: 1px solid var(--border);
}
.pricing-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}
.pricing-row-first {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.pricing-row-enterprise {
  display: flex;
  justify-content: center;
}
.pricing-row-enterprise .price-card {
  max-width: 280px;
  width: 100%;
}
.price-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.price-featured {
  border-color: var(--accent);
  background: var(--accent-muted);
}
.price-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
}
.price-card h3 {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  font-weight: 700;
}
.price {
  margin: 0 0 0.25rem;
  font-size: 1.5rem;
  font-weight: 700;
}
.amount { color: var(--accent); }
.price-featured .amount { color: var(--accent); }
.price-detail {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.price-card .btn {
  width: 100%;
  margin-top: auto;
}
.price-enterprise .price { font-size: 1.25rem; }

/* ===== Home formats teaser ===== */
.home-formats {
  padding: 2.5rem 0;
  text-align: center;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.home-formats-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--text);
}
.home-formats-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.home-formats-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}
.home-formats-link:hover { color: var(--text); }

.home-formats-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin: 1.5rem 0 1.25rem;
}
.home-format-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s, color 0.2s;
}
.home-format-logo:hover {
  transform: translateY(-2px);
  color: var(--accent);
}
.home-format-logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
}
.home-format-logo-icon svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.home-format-logo-pdf { color: #e53935; }
.home-format-logo-docx { color: #2b579a; }
.home-format-logo-ocr { color: var(--text-muted); }
.home-format-logo-label {
  font-size: 0.85rem;
  font-weight: 600;
}

/* ===== Trust ===== */
.trust {
  padding: 4rem 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}
.trust-item {
  text-align: center;
  padding: 1.5rem;
}
.trust-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.75rem;
}
.trust-item h4 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 600;
}
.trust-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ===== Footer ===== */
.footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.75rem;
}
.footer-brand {
  font-weight: 600;
  margin: 0;
  color: var(--text);
}
.footer-legal {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===== Page FAQ ===== */
.faq-hero {
  padding: 4rem 0 4.5rem;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-dark) 100%);
  border-bottom: 1px solid var(--border);
}
.faq-hero-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 1rem;
}
.faq-hero-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--text);
}
.faq-hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin: 0;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.faq-section {
  padding: 3.5rem 0 4rem;
  background: var(--bg-dark);
}
.faq-section:nth-of-type(2) {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.faq-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
}
.faq-question {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: var(--text);
  line-height: 1.4;
}
.faq-answer {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.faq-answer p { margin: 0 0 0.75rem; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer ul {
  margin: 0.5rem 0 1rem;
  padding-left: 1.5rem;
}
.faq-answer li { margin-bottom: 0.35rem; }
.faq-link {
  color: var(--success);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.faq-link:hover { color: var(--text); text-decoration: underline; }
.faq-compare {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 1rem 0 1.25rem;
}
.faq-compare-col {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.faq-compare-col:first-child { border-left: 3px solid var(--accent); }
.faq-compare-col:last-child { border-left: 3px solid var(--success); }
.faq-compare-col h4 {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 700;
}
.faq-compare-col:first-child h4 { color: var(--accent); }
.faq-compare-col:last-child h4 { color: var(--success); }
.faq-compare-col ul {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.9rem;
}
.faq-cta {
  padding: 4rem 0;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-card) 100%);
  border-top: 1px solid var(--border);
}
.faq-cta-lead {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.faq-cta-title {
  margin: 0 0 1.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text);
}
.faq-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ===== Page Formats supportés ===== */
.formats-hero {
  padding: 4rem 0 4.5rem;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-dark) 100%);
  border-bottom: 1px solid var(--border);
}
.formats-hero-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 1rem;
}
.formats-hero-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--text);
}
.formats-hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin: 0;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}
.formats-section {
  padding: 3.5rem 0 4rem;
  background: var(--bg-dark);
}
.formats-section:nth-of-type(2) {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.formats-roadmap {
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
}
.formats-roadmap .format-card-roadmap {
  border-color: var(--border);
  background: var(--bg-card);
}
.formats-limitations {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.formats-section-title {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: var(--text);
}
.formats-intro {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0 0 2rem;
}
.format-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  margin-bottom: 1.5rem;
}
.format-card:last-child { margin-bottom: 0; }
.format-card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.format-badge {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}
.format-badge-full { color: var(--success); }
.format-badge-option { color: var(--accent); }
.format-badge-roadmap { color: var(--text-muted); }
.format-status {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--success);
}
.format-features-title,
.format-advanced-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
}
.format-features-list,
.format-advanced-list {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.format-advanced-list { margin-bottom: 1rem; }
.format-limitation {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 0.75rem 0 0;
  border-top: 1px solid var(--border);
}
.format-option-lead,
.format-roadmap-lead {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
}
.format-roadmap-why {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  font-style: italic;
}
.formats-limitations-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.formats-limitations-list li {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.formats-limitations-list li::before {
  content: "⚠";
  position: absolute;
  left: 0;
  color: #f59e0b;
}

/* ===== Page Legal (CGU, CGV, DPA) ===== */
.legal-hero {
  padding: 4rem 0 3rem;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-dark) 100%);
  border-bottom: 1px solid var(--border);
}
.legal-hero-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 1rem;
}
.legal-hero-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--text);
}
.legal-hero-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin: 0 auto 1.5rem;
  max-width: 640px;
  line-height: 1.6;
}
.legal-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
}
.legal-nav a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: background 0.2s, color 0.2s;
}
.legal-nav a:hover {
  background: var(--accent-muted);
  color: var(--text);
}
.legal-content {
  padding: 3rem 0 4rem;
  background: var(--bg-dark);
}
.legal-doc {
  margin-bottom: 3rem;
}
.legal-doc:last-of-type { margin-bottom: 2rem; }
.legal-doc-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.legal-doc-version {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
  font-weight: 500;
}
.legal-doc-intro {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: -0.5rem 0 1.5rem;
  font-style: italic;
}
.legal-section {
  margin-bottom: 1.75rem;
}
.legal-section h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.5rem;
}
.legal-section h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  margin: 1rem 0 0.35rem;
}
.legal-section p,
.legal-section ul {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0 0 0.5rem;
}
.legal-section ul {
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}
.legal-note {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  margin-top: 2rem;
}
.legal-note-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.5rem;
}
.legal-note-list {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.legal-note-list:last-child { margin-bottom: 0; }
.legal-note-ok li::marker { color: var(--success); }
.legal-note-warn li::marker { color: #f59e0b; }
.footer-link {
  color: var(--text-muted);
  text-decoration: none;
}
.footer-link:hover { color: var(--accent); }

/* ===== Page Safe-Doc Advanced ===== */
.blinde-hero {
  padding: 4rem 0 5rem;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-dark) 100%);
  border-bottom: 1px solid var(--border);
}
.blinde-hero-badge {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--success);
  margin-bottom: 1.25rem;
  letter-spacing: 0.03em;
}
.blinde-hero-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1.25rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.blinde-hero-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 560px;
  margin: 0 auto 2.5rem;
}
.blinde-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.blinde-section {
  padding: 3.5rem 0;
}
.blinde-section:nth-child(even) {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.blinde-section-title {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  margin: 0 0 1.5rem;
  color: var(--text);
}
.blinde-body {
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0 0 1rem;
}
.blinde-body.blinde-close { margin-bottom: 0; }
.blinde-compare-intro {
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
  color: var(--text);
}
.blinde-risk-list {
  margin: 0 0 1.25rem;
  padding-left: 1.5rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* Blinde features (section 2) */
.blinde-feature {
  margin-bottom: 3.5rem;
}
.blinde-feature:last-child { margin-bottom: 0; }
.blinde-feature-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.blinde-feature-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  background: var(--success);
  color: var(--bg-dark);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 8px;
}
.blinde-feature h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}
.blinde-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}
.blinde-feature-problem,
.blinde-feature-solution {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.blinde-feature-problem { border-left: 3px solid #ef4444; }
.blinde-feature-solution { border-left: 3px solid var(--success); }
.blinde-feature-problem h4,
.blinde-feature-solution h4 {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.blinde-feature-problem h4 { color: #ef4444; }
.blinde-feature-solution h4 { color: var(--success); }
.blinde-feature-problem p,
.blinde-feature-solution ul {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.blinde-feature-solution ul { padding-left: 1.25rem; }
.blinde-transform-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.blinde-transform-list li {
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.blinde-transform-list li:last-child { border-bottom: 0; }
.blinde-from { color: var(--text-muted); text-decoration: line-through; }
.blinde-to { color: var(--success); font-weight: 500; }

/* Flow diagrams */
.blinde-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  max-width: 320px;
  margin: 0 auto;
}
.blinde-flow-box {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  color: var(--text);
}
.blinde-flow-muted { color: var(--text-muted); font-weight: 400; }
.blinde-flow-accent {
  background: var(--accent-muted);
  border-color: var(--accent);
  color: var(--accent);
}
.blinde-flow-success {
  background: rgba(0, 214, 143, 0.12);
  border-color: var(--success);
  color: var(--success);
}
.blinde-flow-note {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 0.25rem;
}
.blinde-flow-arrow {
  padding: 0.35rem 0;
  color: var(--text-muted);
  font-size: 1rem;
}
.blinde-flow-compact .blinde-flow-box { padding: 0.65rem 0.85rem; font-size: 0.85rem; }

.blinde-feature-summary .blinde-body { margin-bottom: 0.5rem; }

/* Section 3 — Quand utiliser */
.blinde-when-intro { margin-bottom: 1rem; }
.blinde-use-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.blinde-use-list li {
  position: relative;
  padding-left: 1.35rem;
  font-weight: 500;
  color: var(--text);
}
.blinde-use-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

/* Section 4 — Legal */
.blinde-legal-block {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
}
.blinde-legal-block p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Section 5 — Table */
.blinde-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.blinde-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.blinde-table th,
.blinde-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.blinde-table th {
  background: var(--bg-elevated);
  font-weight: 600;
  color: var(--text);
}
.blinde-table th:first-child { border-radius: var(--radius-lg) 0 0 0; }
.blinde-table th:last-child { border-radius: 0 var(--radius-lg) 0 0; }
.blinde-table td { color: var(--text-muted); }
.blinde-table tr:last-child td { border-bottom: 0; }
.blinde-table .blinde-check { color: var(--success); font-weight: 600; }
.blinde-table td:nth-child(3) strong { color: var(--success); }

/* Section 6 — CTA */
.blinde-cta {
  text-align: center;
  padding: 4rem 0;
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-card) 100%);
  border-top: 1px solid var(--border);
}
.blinde-cta-lead {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.blinde-cta-title {
  margin: 0 0 2rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--text);
}
.blinde-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ===== Page How it works (guide visuel) ===== */
.howpage-hero {
  padding: 4rem 0 4.5rem;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-dark) 100%);
  border-bottom: 1px solid var(--border);
}
.howpage-hero-badge {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 1rem;
}
.howpage-hero-title {
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: var(--text);
  letter-spacing: -0.02em;
}
.howpage-hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin: 0 auto 2rem;
  max-width: 640px;
  line-height: 1.6;
}
.howpage-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.howpage-section {
  padding: 3.5rem 0 4rem;
  background: var(--bg-dark);
}
.howpage-section-alt {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.howpage-section-title {
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 700;
  margin: 0 0 1.75rem;
  text-align: center;
  color: var(--text);
}

.howpage-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
}
.howpage-card-accent {
  border-color: rgba(108, 92, 231, 0.5);
  box-shadow: 0 0 0 1px rgba(108, 92, 231, 0.15) inset;
}
.howpage-card-title {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}
.howpage-card-body {
  margin: 0 0 1rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.howpage-card-footnote {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.howpage-code {
  font-family: var(--font-mono);
  font-size: 0.95em;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  white-space: nowrap;
}

.howpage-flow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  align-items: start;
}
.howpage-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: start;
}
.howpage-three-col {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.howpage-list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.howpage-list li { margin-bottom: 0.5rem; }
.howpage-list li:last-child { margin-bottom: 0; }

.howpage-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.howpage-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
}
.howpage-pill-accent {
  background: var(--accent-muted);
  border-color: rgba(108, 92, 231, 0.5);
  color: var(--accent);
}

.howpage-mini-table {
  margin-top: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.howpage-mini-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.howpage-mini-row > div {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}
.howpage-mini-row:last-child > div { border-bottom: 0; }
.howpage-mini-head > div {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 700;
}

.howpage-levels {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}
.howpage-level {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
}
.howpage-level-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
  color: var(--text);
}
.howpage-level-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 28px;
  padding: 0 0.5rem;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
}
.howpage-level-tag-accent {
  background: var(--accent-muted);
  border-color: rgba(108, 92, 231, 0.5);
  color: var(--accent);
}
.howpage-level-tag-success {
  background: rgba(0, 214, 143, 0.12);
  border-color: rgba(0, 214, 143, 0.4);
  color: var(--success);
}
.howpage-level p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

.howpage-cta {
  text-align: center;
  padding: 4rem 0;
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-card) 100%);
  border-top: 1px solid var(--border);
}
.howpage-cta-lead {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.howpage-cta-title {
  margin: 0 0 2rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--text);
}
.howpage-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* Screenshot strips (cropped from full page) */
.howpage-shots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 0 auto 1.75rem;
  max-width: 1100px;
}
.howpage-shots-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.howpage-shot {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.howpage-shot-media {
  height: 200px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}
.howpage-shot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.howpage-shot-body {
  padding: 1rem 1.25rem 1.1rem;
}
.howpage-shot-body h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}
.howpage-shot-body p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.howshot {
  background-image: url("images/how/app-full.png");
  background-repeat: no-repeat;
  background-size: 1400px auto;
  background-position: 50% 0%;
  filter: saturate(1.05) contrast(1.05);
}
.howshot-import { background-position: 50% 2%; }
.howshot-restore { background-position: 50% 26%; }
.howshot-dataroom { background-position: 50% 44%; }
.howshot-entities { background-position: 50% 63%; }
.howshot-output { background-position: 50% 78%; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav {
    display: none;
  }
  .hero { padding: 3rem 0 4rem; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; max-width: 280px; }
  .pricing-row-first {
    grid-template-columns: 1fr;
  }
  .pricing-row-enterprise .price-card {
    max-width: 100%;
  }
  .blinde-hero { padding: 3rem 0 4rem; }
  .blinde-hero-cta { flex-direction: column; }
  .blinde-hero-cta .btn { width: 100%; max-width: 280px; }
  .blinde-feature-grid { grid-template-columns: 1fr; }
  .blinde-flow { max-width: 100%; }
  .blinde-use-list { grid-template-columns: 1fr; }
  .blinde-cta-buttons { flex-direction: column; }
  .blinde-cta-buttons .btn { width: 100%; max-width: 280px; }
  .faq-hero { padding: 3rem 0 3.5rem; }
  .faq-item { padding: 1.5rem 1.25rem; }
  .faq-cta-buttons { flex-direction: column; }
  .faq-cta-buttons .btn { width: 100%; max-width: 280px; }
  .howpage-hero { padding: 3rem 0 3.5rem; }
  .howpage-hero-cta { flex-direction: column; }
  .howpage-hero-cta .btn { width: 100%; max-width: 320px; }
  .howpage-two-col { grid-template-columns: 1fr; }
  .howpage-three-col { grid-template-columns: 1fr; }
  .howpage-cta-buttons { flex-direction: column; }
  .howpage-cta-buttons .btn { width: 100%; max-width: 320px; }
  .howpage-shots { grid-template-columns: 1fr; }
  .howpage-shots-2 { grid-template-columns: 1fr; }
  .howpage-shot-media { height: 190px; }
}
