/* ==========================================================================
   CertifMail — Feuille de style
   ========================================================================== */

/* ----- Inter (self-hosted, latin) ----- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/inter-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/inter-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/inter-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #2d3338;
  --ink-soft: #4a5158;
  --ink-mute: #6b7480;
  --bg: #ffffff;
  --bg-alt: #f6f7f9;
  --bg-soft: #fafbfc;
  --line: #e5e8ec;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --accent-soft: #eff4ff;
  --success: #16a34a;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow: 0 4px 20px -4px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 50px -12px rgba(15, 23, 42, 0.18), 0 8px 24px -8px rgba(15, 23, 42, 0.10);
  --max: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
:target { scroll-margin-top: 100px; }
section[id] { scroll-margin-top: 96px; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

/* ----- Accessibilité ----- */
.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;
}
.sr-only-focusable:focus {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  width: auto;
  height: auto;
  padding: 0.75em 1.2em;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }

code {
  font-family: 'SF Mono', 'Menlo', 'Monaco', 'Consolas', monospace;
  font-size: 0.9em;
  background: var(--bg-alt);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  color: var(--ink);
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.85em 1.5em;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.btn-primary:hover {
  background: #1a1f23;
  border-color: #1a1f23;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.btn-sm { padding: 0.6em 1.1em; font-size: 0.875rem; }
.btn-lg { padding: 1em 2em; font-size: 1.05rem; }

/* ----- Header ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 84px;
}
.logo img { height: 44px; display: block; }
.main-nav {
  display: flex;
  gap: 32px;
  flex: 1;
  justify-content: center;
}
.main-nav a {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.925rem;
  transition: color 0.15s;
}
.main-nav a:hover { color: var(--ink); }

/* ----- Nav NUMNEO badge ----- */
.nav-numneo {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.4em 0.85em;
  font-size: 0.8rem;
  color: var(--ink-mute);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  transition: all 0.18s ease;
  white-space: nowrap;
  text-decoration: none;
}
.nav-numneo strong {
  color: var(--ink);
  font-weight: 700;
}
.nav-numneo:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}
.nav-numneo:hover strong { color: var(--accent-dark); }

/* ----- Hamburger button ----- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: transparent;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.18s;
}
.nav-toggle:hover { border-color: var(--ink); }
.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.2s;
}
.nav-toggle.is-active .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-active .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 12px 24px;
    z-index: 49;
  }
  .main-nav.nav-open {
    display: flex;
  }
  .main-nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }
  .main-nav a:last-child { border-bottom: 0; }
  .nav-numneo { display: none; }
  .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .header-inner { position: relative; }
}

/* ----- Hero ----- */
.hero {
  padding: 80px 0 100px;
  background:
    radial-gradient(ellipse 1200px 600px at 50% -200px, var(--accent-soft), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.badge {
  display: inline-block;
  padding: 0.4em 0.9em;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.hero h1 .accent {
  background: linear-gradient(135deg, var(--accent) 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 580px;
  margin-bottom: 2rem;
}
.lead-code {
  background: var(--ink);
  color: #fff;
  padding: 0.15em 0.5em;
  font-size: 0.88em;
  font-weight: 600;
  border-radius: 5px;
  white-space: nowrap;
}
.lead-clarif {
  font-size: 0.95rem;
  color: var(--ink-mute);
  max-width: 580px;
  margin: -1.25rem 0 2rem;
  line-height: 1.55;
  padding-left: 14px;
  border-left: 3px solid var(--line);
}
.lead-clarif strong { color: var(--ink-soft); font-weight: 600; }
.lead-clarif a { color: var(--accent); font-weight: 500; }
.lead-clarif a:hover { color: var(--accent-dark); }
.hero-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.hero-notice {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--ink-soft);
  margin-bottom: 2.5rem;
  padding: 0.6em 1em;
  background: #fff8e6;
  border: 1px solid #f5d689;
  border-radius: 8px;
}
.hero-notice strong { color: var(--ink); font-weight: 600; }
.hero-notice-dot {
  width: 8px;
  height: 8px;
  background: #eab308;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(234, 179, 8, 0.18);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}
/* Hero visual */
.hero-visual { display: flex; justify-content: center; }
.proof-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  transform: perspective(1000px) rotateY(-4deg) rotateX(2deg);
  transition: transform 0.4s ease;
}
.proof-card:hover { transform: perspective(1000px) rotateY(-2deg) rotateX(1deg); }
.proof-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
}
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot-g { background: #22c55e; }
.dot-y { background: #eab308; }
.dot-r { background: #ef4444; }
.proof-title {
  margin-left: 8px;
  font-size: 0.825rem;
  color: var(--ink-mute);
  font-weight: 600;
}
.proof-card-body { padding: 8px; }
.file-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  transition: background 0.15s;
  font-size: 0.925rem;
}
.file-row:hover { background: var(--bg-alt); }
.file-row > span:nth-child(2) { flex: 1; font-weight: 600; color: var(--ink); }
.file-icon { font-size: 1.2rem; width: 24px; text-align: center; }
.file-tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25em 0.6em;
  background: var(--accent-soft);
  color: var(--accent-dark);
  border-radius: 4px;
  letter-spacing: 0.02em;
}
.hash-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: var(--ink);
  color: #fff;
}
.hash-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #9ca3af;
}
.hash-strip code {
  background: transparent;
  color: #d4d8dd;
  font-size: 0.8rem;
  padding: 0;
}

@media (max-width: 900px) {
  .hero { padding: 56px 0 72px; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .proof-card { transform: none; }
}

/* ----- Values (5 cards row) ----- */
.values {
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.value {
  padding: 22px 20px;
  border-radius: var(--radius);
  background: var(--bg);
  transition: all 0.2s;
}
.value:hover {
  background: var(--bg-alt);
}
.value-icon {
  font-size: 1.75rem;
  margin-bottom: 12px;
  display: block;
}
.value h3 { font-size: 1.02rem; margin-bottom: 6px; }
.value p { font-size: 0.9rem; margin: 0; color: var(--ink-mute); }

@media (max-width: 1100px) {
  .values-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .values-grid { grid-template-columns: 1fr; }
}

/* ----- Sections ----- */
.section {
  padding: 96px 0;
}
.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}
.section-head p { font-size: 1.075rem; color: var(--ink-mute); }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 14px;
}

/* ----- Usage steps (user-facing) ----- */
.usage-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  counter-reset: step;
}
.usage-steps li {
  position: relative;
  padding: 32px 28px 28px;
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  transition: all 0.2s;
}
.usage-steps li:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.usage-num {
  position: absolute;
  top: -18px;
  left: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--accent);
  color: #fff;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.15rem;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}
.usage-steps h3 { font-size: 1.1rem; margin-bottom: 10px; margin-top: 8px; }
.usage-steps p { font-size: 0.94rem; color: var(--ink-soft); margin: 0 0 10px; }
.usage-steps p:last-child { margin-bottom: 0; }
.usage-steps code {
  background: var(--ink);
  color: #fff;
  padding: 0.18em 0.5em;
  font-size: 0.88em;
  font-weight: 600;
  border-radius: 4px;
}
.usage-note {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  background: linear-gradient(135deg, var(--accent-soft) 0%, #faf5ff 100%);
  border: 1px solid #dbe4fb;
  border-radius: var(--radius);
  margin-bottom: 14px;
}
.usage-note:last-child { margin-bottom: 0; }
.usage-note-warning {
  background: #fff8e6;
  border-color: #f5d689;
}
.usage-note-icon { font-size: 1.5rem; flex-shrink: 0; line-height: 1; }
.usage-note p { margin: 0; font-size: 0.93rem; color: var(--ink-soft); }
.usage-note strong { color: var(--ink); }

@media (max-width: 900px) { .usage-steps { grid-template-columns: 1fr; gap: 32px; } }

/* ----- Steps ----- */
.steps {
  list-style: none;
  padding: 0;
  margin: 0 0 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.steps li {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
  transition: all 0.2s;
}
.steps li:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--ink);
  color: #fff;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 16px;
}
.steps h3 { font-size: 1.05rem; margin-bottom: 8px; }
.steps p { font-size: 0.92rem; margin: 0 0 10px; color: var(--ink-mute); }
.steps p:last-child { margin-bottom: 0; }
.steps .step-plain {
  padding: 10px 12px;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
  font-size: 0.87rem;
  color: var(--ink-soft);
}
.step-plain strong { color: var(--accent-dark); }

@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

.delivery {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px 32px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-lg);
}
.delivery h3 { color: #fff; margin-bottom: 4px; }
.delivery p { color: #c1c7cd; margin: 0; font-size: 0.95rem; }
.delivery-icon {
  font-size: 2.25rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}

/* ----- Proofs grid ----- */
.proofs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.proof {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.2s;
}
.proof:hover {
  box-shadow: var(--shadow);
  border-color: var(--ink-mute);
  transform: translateY(-2px);
}
.proof header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.proof h3 { margin: 0; font-size: 1.08rem; }
.tag {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.3em 0.7em;
  background: var(--accent-soft);
  color: var(--accent-dark);
  border-radius: 999px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.proof p { font-size: 0.93rem; }
.proof-plain {
  padding: 10px 12px;
  background: var(--bg-alt);
  border-left: 3px solid var(--ink-mute);
  border-radius: 0 6px 6px 0;
  font-size: 0.87rem;
  color: var(--ink-soft);
  font-style: italic;
  margin: 0 0 14px;
}
.proof ul {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.proof ul li {
  font-size: 0.88rem;
  color: var(--ink-soft);
  padding: 6px 0 6px 20px;
  position: relative;
}
.proof ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

@media (max-width: 900px) { .proofs-grid { grid-template-columns: 1fr; } }

/* ----- Verification ----- */
.verify-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.verify-inner h2 { margin-bottom: 14px; }
.verify-inner p { font-size: 1.02rem; margin-bottom: 16px; }
.verify-simple {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: rgba(22, 163, 74, 0.06);
  border: 1px solid rgba(22, 163, 74, 0.25);
  border-left: 4px solid var(--success);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 0 0 28px;
}
.verify-simple-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  line-height: 1;
}
.verify-simple h3 {
  margin: 0 0 10px;
  font-size: 1.12rem;
  color: var(--ink);
}
.verify-simple p {
  margin: 0 0 8px;
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.6;
}
.verify-simple p:last-child { margin-bottom: 0; }
.verify-simple-note {
  font-size: 0.88rem !important;
  color: var(--ink-mute) !important;
  font-style: italic;
}
.verify-simple code {
  background: var(--bg-alt);
  color: var(--ink);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  font-size: 0.88em;
  font-weight: 500;
}
.verify-advanced-title {
  margin: 28px 0 12px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
  font-weight: 600;
}
.verify-inner .verify-plain {
  padding: 14px 16px;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  font-size: 0.93rem;
  color: var(--ink-soft);
  margin-bottom: 24px;
}
.verify-plain strong { color: var(--ink); font-weight: 600; }
.verify-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.verify-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.verify-list li:last-child { border-bottom: 0; }
.verify-list code {
  background: var(--ink);
  color: #d4d8dd;
  padding: 0.2em 0.5em;
  font-size: 0.82rem;
  margin-right: 8px;
}
.verify-code {
  background: #1e2328;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.code-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #161a1e;
  border-bottom: 1px solid #2a3036;
  color: #8b95a1;
  font-size: 0.78rem;
}
.code-head > span:last-child { margin-left: 8px; }
.verify-code pre {
  margin: 0;
  padding: 20px;
  overflow-x: auto;
  font-size: 0.8rem;
  line-height: 1.7;
  color: #d4d8dd;
}
.verify-code code { background: transparent; color: inherit; padding: 0; font-size: inherit; }
.c-c { color: #6b7480; }
.c-o { color: #f59e0b; word-break: break-all; }
.c-g { color: #22c55e; }

@media (max-width: 900px) {
  .verify-inner { grid-template-columns: 1fr; gap: 40px; }
}

/* ----- CTA ----- */
.cta {
  padding: 96px 0;
  background: var(--ink);
  color: #fff;
  text-align: center;
  background-image:
    radial-gradient(ellipse 800px 400px at 50% 0%, rgba(37, 99, 235, 0.15), transparent 70%),
    radial-gradient(ellipse 600px 300px at 50% 100%, rgba(124, 58, 237, 0.1), transparent 70%);
}
.cta-badge {
  display: inline-block;
  padding: 0.4em 0.9em;
  background: rgba(234, 179, 8, 0.15);
  border: 1px solid rgba(234, 179, 8, 0.4);
  color: #fbbf24;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  margin-bottom: 20px;
}
.cta h2 { color: #fff; margin-bottom: 12px; }
.cta p { color: #c1c7cd; font-size: 1.08rem; max-width: 560px; margin: 0 auto 32px; }
.cta .btn-primary {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
  font-size: 1.05rem;
}
.cta .btn-primary:hover {
  background: var(--accent-soft);
  color: var(--accent-dark);
  border-color: var(--accent-soft);
}
.cta-note {
  margin-top: 20px;
  font-size: 0.88rem;
  color: #b0b8c4;
}

/* ----- FAQ ----- */
.faq-inner { max-width: 820px; margin: 0 auto; }
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-list details {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 20px;
  transition: all 0.2s;
}
.faq-list details[open] {
  border-color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.faq-list summary {
  cursor: pointer;
  padding: 18px 0;
  font-weight: 600;
  color: var(--ink);
  font-size: 1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--ink-mute);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p {
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ----- Use cases grid ----- */
.usecases-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.usecase {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all 0.2s;
}
.usecase:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.usecase-icon {
  font-size: 1.75rem;
  margin-bottom: 14px;
  display: block;
}
.usecase h3 { font-size: 1.08rem; margin-bottom: 10px; }
.usecase-context {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-bottom: 12px;
}
.usecase-value {
  font-size: 0.88rem;
  color: var(--ink-mute);
  padding: 10px 12px;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
  margin: 0;
}
.usecase-value strong { color: var(--accent-dark); }

@media (max-width: 960px) { .usecases-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .usecases-grid { grid-template-columns: 1fr; } }

/* ----- NUMNEO about section ----- */
.numneo-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.numneo-desc {
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.numneo-why {
  font-size: 1rem;
  color: var(--ink-mute);
  margin-bottom: 28px;
}

/* ----- NUMNEO conversion bar ----- */
.numneo-cta-bar {
  padding: 32px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.numneo-cta-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  text-align: center;
}
.numneo-cta-inner p {
  margin: 0;
  font-size: 1rem;
  color: var(--ink-soft);
}
.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-outline:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ----- Comparison table (CertifMail vs LRE vs constat) ----- */
.comparison-table-wrap {
  overflow-x: auto;
  margin-bottom: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--bg);
  box-shadow: var(--shadow-sm);
  -webkit-overflow-scrolling: touch;
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
  min-width: 760px;
}
.comparison-table thead th {
  text-align: left;
  padding: 18px 18px 16px;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  vertical-align: bottom;
  background: var(--bg-alt);
  border-bottom: 2px solid var(--line);
}
.comparison-table thead th:first-child { background: var(--bg); }
.comparison-table thead th.th-self {
  color: var(--accent-dark);
  background: var(--accent-soft);
  border-bottom-color: var(--accent);
}
.comparison-table .th-sub {
  display: block;
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--ink-mute);
  margin-top: 4px;
  letter-spacing: 0.01em;
}
.comparison-table tbody th {
  text-align: left;
  padding: 14px 18px;
  font-weight: 500;
  color: var(--ink-soft);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  width: 26%;
  font-size: 0.92rem;
}
.comparison-table tbody td {
  padding: 14px 18px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-size: 0.92rem;
}
.comparison-table tbody tr:last-child th,
.comparison-table tbody tr:last-child td {
  border-bottom: none;
}
.comparison-table tbody td:nth-child(2) {
  background: rgba(37, 99, 235, 0.05);
  color: var(--ink);
}
.comparison-table tbody td:nth-child(2) strong {
  color: var(--success);
}
.comparison-table tbody td.ok { color: var(--success); font-weight: 600; }
.comparison-table tbody td.no { color: var(--ink-mute); font-weight: 500; }
.comparison-plain {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0;
}
.comparison-plain strong { color: var(--ink); }
@media (max-width: 720px) {
  .comparison-table { font-size: 0.88rem; }
  .comparison-table thead th,
  .comparison-table tbody th,
  .comparison-table tbody td { padding: 12px 14px; }
}

/* ----- Free reassurance bar (above #cta) ----- */
.free-bar {
  padding: 40px 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
}
.free-bar-inner {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  max-width: 780px;
}
.free-bar-icon {
  font-size: 2rem;
  flex-shrink: 0;
  line-height: 1;
}
.free-bar h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  color: var(--ink);
}
.free-bar p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.65;
}
.free-bar p strong { color: var(--ink); }
.free-bar a {
  color: var(--accent);
  font-weight: 500;
  white-space: nowrap;
}
.free-bar a:hover { color: var(--accent-dark); }
@media (max-width: 600px) {
  .free-bar-inner { flex-direction: column; gap: 12px; }
  .free-bar { padding: 32px 0; }
}

/* ----- Footer ----- */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 56px 0 24px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 2fr;
  gap: 48px;
  padding-bottom: 40px;
}
.footer-brand p {
  font-size: 0.9rem;
  color: var(--ink-mute);
  max-width: 360px;
}
.footer-logo { height: 28px; margin-bottom: 14px; display: block; }
.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.footer-cols h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
  margin-bottom: 14px;
  font-weight: 600;
}
.footer-cols a {
  display: block;
  padding: 5px 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}
.footer-cols a:hover { color: var(--ink); }
.footer-legal {
  padding: 16px 24px;
  margin: 0 auto 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
  border-radius: var(--radius);
}
.footer-legal p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--ink-mute);
  text-align: center;
  font-style: italic;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--ink-mute);
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 900px) {
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 500px) {
  .footer-cols { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}

/* ==========================================================================
   Legal page (mentions-legales.html)
   ========================================================================== */
.legal-page {
  background: var(--bg-soft);
  padding: 56px 0 96px;
  border-top: 1px solid var(--line);
}
.legal-container {
  max-width: 820px;
}
.legal-header {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.legal-header h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 8px;
}
.legal-header > p {
  color: var(--ink-mute);
  font-size: 0.92rem;
  margin-bottom: 24px;
}
.legal-download {
  margin-top: 8px;
}

.legal-toc {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 48px;
}
.legal-toc h2 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
  margin-bottom: 14px;
  font-weight: 600;
}
.legal-toc ol {
  margin: 0;
  padding-left: 20px;
  columns: 2;
  column-gap: 32px;
}
.legal-toc li {
  padding: 4px 0;
  font-size: 0.93rem;
  break-inside: avoid;
}
.legal-toc a { color: var(--ink-soft); }
.legal-toc a:hover { color: var(--accent); }
@media (max-width: 600px) { .legal-toc ol { columns: 1; } }

.legal-section {
  margin-bottom: 48px;
  scroll-margin-top: 96px;
}
.legal-section h2 {
  font-size: 1.4rem;
  padding-bottom: 10px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--ink);
  display: inline-block;
}
.legal-section h3 {
  font-size: 1.05rem;
  margin-top: 24px;
  margin-bottom: 8px;
  color: var(--ink);
}
.legal-section p,
.legal-section li {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.7;
}
.legal-section ul {
  padding-left: 22px;
  margin: 0 0 16px;
}
.legal-section ul li { padding: 3px 0; }
.legal-section abbr { cursor: help; border-bottom: 1px dotted var(--ink-mute); text-decoration: none; }

.legal-dl {
  display: grid;
  grid-template-columns: minmax(180px, 220px) 1fr;
  gap: 8px 24px;
  margin: 0;
  padding: 20px 24px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.legal-dl dt {
  font-weight: 600;
  color: var(--ink);
  font-size: 0.9rem;
}
.legal-dl dd {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.93rem;
}
@media (max-width: 600px) {
  .legal-dl { grid-template-columns: 1fr; gap: 2px 0; padding: 18px 20px; }
  .legal-dl dt { margin-top: 10px; }
  .legal-dl dt:first-child { margin-top: 0; }
}

.legal-section .legal-cta {
  margin-top: 20px;
}
.legal-back {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 0.92rem;
}
