/* ============================================================
   CERTMAT31 — Vitrine publique
   Palette identique à l'application
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── Tokens ──────────────────────────────────────────────── */
:root {
  --accent:     #e8820c;
  --accent2:    #f5a543;
  --accent-dim: rgba(232,130,12,0.12);
  --accent-glow:rgba(232,130,12,0.20);
  --bg:         #0d1117;
  --bg2:        #161b22;
  --bg3:        #1c2230;
  --border:     #2a3349;
  --border2:    #374160;
  --text:       #e6edf3;
  --text2:      #8b96a8;
  --text3:      #5a6578;
  --green:      #2ea043;
  --green-dim:  rgba(46,160,67,0.12);
  --red:        #f85149;
  --font:       'DM Sans', sans-serif;
  --display:    'Space Grotesk', sans-serif;
  --mono:       'JetBrains Mono', monospace;
  --radius:     10px;
  --radius-lg:  16px;
  --max-w:      1160px;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ── Navigation ──────────────────────────────────────────── */
.nav-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(13,17,23,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav-header.scrolled {
  border-bottom-color: var(--border);
  background: rgba(13,17,23,0.95);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex; align-items: center; gap: 32px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
}
.logo-icon {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 700; font-size: 13px;
  color: #fff; letter-spacing: -1px; flex-shrink: 0;
}
.logo-text {
  font-family: var(--display); font-weight: 700; font-size: 16px;
  color: var(--text); letter-spacing: -0.3px;
}
.logo-text span { color: var(--accent); }
.nav-links {
  display: flex; align-items: center; gap: 4px;
  margin-left: 16px; flex: 1;
}
.nav-link {
  padding: 6px 12px; border-radius: 6px;
  font-size: 14px; font-weight: 500; color: var(--text2);
  transition: color .15s, background .15s;
}
.nav-link:hover, .nav-link.active {
  color: var(--text); background: var(--bg3);
  text-decoration: none;
}
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.btn-nav-demo {
  display: inline-flex; align-items: center;
  padding: 8px 16px; border-radius: 8px;
  background: var(--accent-dim); color: var(--accent2);
  border: 1px solid rgba(232,130,12,0.3);
  font-size: 13px; font-weight: 600;
  transition: background .15s, border-color .15s;
}
.btn-nav-demo:hover {
  background: rgba(232,130,12,0.20); border-color: var(--accent);
  text-decoration: none;
}
.btn-nav-app {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px; border-radius: 8px;
  background: var(--accent); color: #fff;
  font-size: 13px; font-weight: 600;
  transition: background .15s, transform .1s;
}
.btn-nav-app:hover {
  background: var(--accent2); text-decoration: none; transform: translateY(-1px);
}
.btn-nav-app svg { flex-shrink: 0; }
.nav-burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 36px; height: 36px; background: none; border: none; cursor: pointer;
  padding: 4px;
}
.nav-burger span {
  display: block; height: 2px; background: var(--text2); border-radius: 2px;
  transition: .3s;
}
.nav-mobile {
  display: none; flex-direction: column;
  padding: 12px 24px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg2);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  padding: 10px 0; font-size: 15px; color: var(--text2);
  border-bottom: 1px solid var(--border);
}
.nav-mobile a:last-child { border-bottom: none; margin-top: 8px; }
.nav-mobile .btn-nav-app {
  justify-content: center; padding: 10px; margin-top: 4px;
}

/* ── Sections communes ───────────────────────────────────── */
.section { padding: 96px 24px; }
.section-alt { background: var(--bg2); }
.container { max-width: var(--max-w); margin: 0 auto; }
.section-tag {
  display: inline-block;
  padding: 4px 12px; border-radius: 20px;
  background: var(--accent-dim); color: var(--accent2);
  font-size: 11px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; margin-bottom: 16px;
}
.section-title {
  font-family: var(--display); font-size: clamp(28px, 4vw, 42px);
  font-weight: 700; letter-spacing: -1px; line-height: 1.15;
  color: var(--text); margin-bottom: 16px;
}
.section-title span { color: var(--accent); }
.section-sub {
  font-size: 17px; color: var(--text2); max-width: 560px; line-height: 1.7;
}
.section-header { margin-bottom: 56px; }
.section-header.center { text-align: center; }
.section-header.center .section-sub { margin: 0 auto; }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  padding: 140px 24px 96px;
  position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 70% 60% at 15% 50%, rgba(232,130,12,0.08) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 85% 20%, rgba(56,139,253,0.05) 0%, transparent 60%);
}
.hero-grid {
  position: absolute; inset: 0; z-index: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px),
                    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 80%);
  opacity: 0.18;
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.hero-label {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 14px; border-radius: 20px;
  border: 1px solid var(--border2);
  background: var(--bg3);
  font-size: 12px; font-weight: 600; color: var(--accent2);
  letter-spacing: .5px; margin-bottom: 24px;
}
.hero-label::before {
  content: ''; display: block;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: .6; transform: scale(1.3); }
}
.hero-title {
  font-family: var(--display);
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 700; letter-spacing: -1.5px; line-height: 1.1;
  color: var(--text); margin-bottom: 20px;
}
.hero-title span { color: var(--accent); }
.hero-desc {
  font-size: 17px; color: var(--text2);
  line-height: 1.75; margin-bottom: 36px; max-width: 480px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 48px; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius);
  background: var(--accent); color: #fff;
  font-size: 15px; font-weight: 600;
  transition: background .15s, transform .1s, box-shadow .15s;
  box-shadow: 0 0 0 0 var(--accent-glow);
}
.btn-primary:hover {
  background: var(--accent2); text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 24px var(--accent-glow);
}
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius);
  background: var(--bg3); color: var(--text);
  font-size: 15px; font-weight: 600; border: 1px solid var(--border2);
  transition: background .15s, transform .1s;
}
.btn-secondary:hover {
  background: var(--border); text-decoration: none; transform: translateY(-2px);
}
.hero-stats {
  display: flex; gap: 32px; flex-wrap: wrap;
}
.hero-stat-val {
  font-family: var(--display); font-size: 26px; font-weight: 700;
  color: var(--accent); letter-spacing: -1px;
}
.hero-stat-lbl {
  font-size: 12px; color: var(--text3); margin-top: 2px;
}
/* Mockup app */
.hero-visual {
  position: relative;
}
.hero-mockup {
  background: var(--bg2); border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5);
}
.mockup-bar {
  background: var(--bg3); padding: 10px 16px;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--border);
}
.mockup-dot {
  width: 10px; height: 10px; border-radius: 50%;
}
.mockup-dot:nth-child(1) { background: #f85149; }
.mockup-dot:nth-child(2) { background: #e8820c; }
.mockup-dot:nth-child(3) { background: #2ea043; }
.mockup-url {
  flex: 1; background: var(--bg); border-radius: 6px;
  padding: 4px 12px; font-family: var(--mono);
  font-size: 11px; color: var(--text3); margin-left: 8px;
}
.mockup-body { padding: 20px; }
.mockup-cert {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px; margin-bottom: 12px;
}
.mockup-cert-title {
  font-family: var(--mono); font-size: 11px; color: var(--accent2);
  font-weight: 600; margin-bottom: 10px; letter-spacing: .5px;
}
.mockup-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mockup-field {
  background: var(--bg2); border-radius: 6px; padding: 6px 10px;
}
.mockup-field-lbl {
  font-size: 9px; color: var(--text3); text-transform: uppercase;
  letter-spacing: .6px; margin-bottom: 2px;
}
.mockup-field-val {
  font-family: var(--mono); font-size: 11px; color: var(--text); font-weight: 500;
}
.mockup-field-val.accent { color: var(--accent); }
.mockup-badge-ok {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 6px;
  background: var(--green-dim); color: var(--green);
  font-size: 11px; font-weight: 600; margin-top: 8px;
}
.hero-float {
  position: absolute;
  background: var(--bg2); border: 1px solid var(--border2);
  border-radius: var(--radius); padding: 10px 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  font-size: 12px;
}
.hero-float-1 { top: -20px; right: -20px; }
.hero-float-2 { bottom: 20px; left: -20px; }
.hero-float-val { font-family: var(--display); font-size: 20px; font-weight: 700; color: var(--accent); }
.hero-float-lbl { color: var(--text3); font-size: 11px; }

/* ── Features grid ──────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  transition: border-color .2s, transform .2s;
}
.feature-card:hover {
  border-color: var(--border2); transform: translateY(-3px);
}
.feature-icon {
  width: 44px; height: 44px; border-radius: var(--radius);
  background: var(--accent-dim); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 16px;
}
.feature-title {
  font-family: var(--display); font-size: 16px; font-weight: 600;
  margin-bottom: 8px; color: var(--text);
}
.feature-desc { font-size: 13px; color: var(--text2); line-height: 1.65; }

/* ── Steps (fonctionnement) ──────────────────────────────── */
.steps-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 32px;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute; top: 28px; left: calc(16.66% + 8px); right: calc(16.66% + 8px);
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2), var(--accent));
  opacity: .35;
}
.step-card { text-align: center; padding: 0 16px; }
.step-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; font-family: var(--display); font-weight: 700; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; flex-shrink: 0;
  box-shadow: 0 0 0 8px var(--accent-dim);
}
.step-title {
  font-family: var(--display); font-size: 17px; font-weight: 600;
  margin-bottom: 10px; color: var(--text);
}
.step-desc { font-size: 13px; color: var(--text2); line-height: 1.65; }

/* ── Pricing ─────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px; align-items: start;
}
.price-card {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  position: relative; transition: border-color .2s, transform .2s;
}
.price-card:hover { transform: translateY(-4px); }
.price-card.highlight {
  border-color: var(--accent);
  background: linear-gradient(160deg, var(--bg3) 60%, rgba(232,130,12,0.06));
  box-shadow: 0 0 0 1px var(--accent), 0 16px 48px rgba(232,130,12,0.12);
}
.price-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff;
  padding: 3px 14px; border-radius: 20px;
  font-size: 11px; font-weight: 700; letter-spacing: .5px;
  white-space: nowrap;
}
.price-offre {
  font-family: var(--display); font-size: 20px; font-weight: 700;
  color: var(--text); margin-bottom: 4px;
}
.price-desc { font-size: 12px; color: var(--text3); margin-bottom: 20px; }
.price-amount {
  display: flex; align-items: baseline; gap: 4px; margin-bottom: 6px;
}
.price-val {
  font-family: var(--display); font-size: 38px; font-weight: 700;
  color: var(--accent); letter-spacing: -2px;
}
.price-cur { font-size: 20px; color: var(--accent); font-weight: 600; }
.price-period { font-size: 12px; color: var(--text3); }
.price-ht { font-size: 11px; color: var(--text3); margin-bottom: 20px; }
.price-jetons {
  padding: 7px 12px; border-radius: 6px;
  background: var(--accent-dim); border: 1px solid rgba(232,130,12,0.25);
  font-size: 12px; color: var(--accent2); margin-bottom: 10px;
}
.price-jetons strong { font-weight: 700; }
.price-users {
  padding: 7px 12px; border-radius: 6px;
  background: var(--bg2); border: 1px solid var(--border);
  font-size: 12px; color: var(--text2); margin-bottom: 20px;
  display: flex; align-items: center; gap: 6px;
}
.price-users::before { content: '👥'; }
.price-features { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.price-features li {
  font-size: 13px; color: var(--text2);
  display: flex; align-items: flex-start; gap: 8px;
}
.price-features li::before {
  content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; margin-top: 1px;
}
.btn-price {
  display: block; text-align: center;
  padding: 10px; border-radius: var(--radius);
  font-size: 14px; font-weight: 600;
  border: 1px solid var(--border2); color: var(--text2);
  background: var(--bg2); transition: .15s;
}
.btn-price:hover { background: var(--bg3); color: var(--text); text-decoration: none; }
.price-card.highlight .btn-price {
  background: var(--accent); color: #fff; border-color: var(--accent);
}
.price-card.highlight .btn-price:hover { background: var(--accent2); }

/* ── Packs jetons ─────────────────────────────────────────── */
.packs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.pack-card {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  display: flex; flex-direction: column; gap: 8px;
  transition: border-color .2s, transform .2s;
}
.pack-card:hover { border-color: var(--border2); transform: translateY(-3px); }
.pack-nom {
  font-family: var(--display); font-size: 16px; font-weight: 600; color: var(--text);
}
.pack-jetons {
  font-family: var(--mono); font-size: 28px; font-weight: 500;
  color: var(--accent); letter-spacing: -1px;
}
.pack-jetons span { font-size: 14px; color: var(--text3); font-family: var(--font); }
.pack-prix { font-size: 17px; font-weight: 600; color: var(--text); }
.pack-prix span { font-size: 12px; color: var(--text3); font-weight: 400; }
.pack-unit {
  font-size: 11px; color: var(--text3);
  font-family: var(--mono); padding: 3px 8px;
  background: var(--bg2); border-radius: 4px; width: fit-content;
}

/* ── Section CTA contact ──────────────────────────────────── */
.cta-block {
  background: linear-gradient(135deg, var(--bg3) 0%, rgba(232,130,12,0.07) 100%);
  border: 1px solid var(--border2); border-radius: var(--radius-lg);
  padding: 56px 48px; text-align: center;
  max-width: 720px; margin: 0 auto;
}
.cta-block .section-title { font-size: clamp(24px, 3vw, 36px); }
.cta-block .section-sub { margin: 0 auto 32px; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Formulaire contact ──────────────────────────────────── */
.contact-page { padding: 120px 24px 80px; }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px;
  max-width: var(--max-w); margin: 0 auto; align-items: start;
}
.contact-info-title {
  font-family: var(--display); font-size: 32px; font-weight: 700;
  letter-spacing: -1px; margin-bottom: 16px;
}
.contact-info-desc { color: var(--text2); margin-bottom: 40px; line-height: 1.75; }
.contact-item {
  display: flex; align-items: flex-start; gap: 14px; margin-bottom: 24px;
}
.contact-item-icon {
  width: 40px; height: 40px; border-radius: var(--radius);
  background: var(--accent-dim); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.contact-item-lbl { font-size: 11px; color: var(--text3); text-transform: uppercase; letter-spacing: .7px; }
.contact-item-val { font-size: 14px; color: var(--text2); margin-top: 2px; }
.contact-form-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-label { font-size: 12px; font-weight: 600; color: var(--text2); }
.form-label span { color: var(--accent); }
.form-input,
.form-select,
.form-textarea {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 10px 14px;
  font-family: var(--font); font-size: 14px; color: var(--text);
  transition: border-color .15s;
  outline: none; width: 100%;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent);
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-select { appearance: none; cursor: pointer; }
.form-check {
  display: flex; align-items: flex-start; gap: 10px;
  margin-top: 4px;
}
.form-check input[type="checkbox"] {
  width: 16px; height: 16px; accent-color: var(--accent);
  flex-shrink: 0; margin-top: 2px;
}
.form-check-lbl { font-size: 12px; color: var(--text2); line-height: 1.5; }
.form-check-lbl a { color: var(--accent2); }
.form-honeypot { display: none !important; }
.btn-submit {
  width: 100%; padding: 13px;
  background: var(--accent); color: #fff; border: none;
  border-radius: var(--radius); font-family: var(--font);
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: background .15s, transform .1s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-submit:hover { background: var(--accent2); transform: translateY(-2px); }
.alert {
  padding: 12px 16px; border-radius: var(--radius);
  font-size: 14px; margin-bottom: 20px;
}
.alert-success { background: var(--green-dim); color: var(--green); border: 1px solid rgba(46,160,67,0.25); }
.alert-error   { background: rgba(248,81,73,0.1); color: var(--red); border: 1px solid rgba(248,81,73,0.25); }

/* ── Page intérieure (CGV / ML) ──────────────────────────── */
.inner-page { padding: 120px 24px 80px; }
.inner-container { max-width: 800px; margin: 0 auto; }
.inner-page h1 {
  font-family: var(--display); font-size: 36px; font-weight: 700;
  letter-spacing: -1px; margin-bottom: 8px;
}
.inner-page .page-meta {
  color: var(--text3); font-size: 13px; margin-bottom: 40px;
  padding-bottom: 24px; border-bottom: 1px solid var(--border);
}
.inner-page h2 {
  font-family: var(--display); font-size: 20px; font-weight: 600;
  color: var(--text); margin: 40px 0 12px;
  padding-left: 12px; border-left: 3px solid var(--accent);
}
.inner-page h3 { font-size: 16px; font-weight: 600; margin: 24px 0 8px; color: var(--text2); }
.inner-page p { color: var(--text2); margin-bottom: 14px; line-height: 1.75; font-size: 14px; }
.inner-page ul { color: var(--text2); margin: 0 0 14px 20px; font-size: 14px; line-height: 1.8; }
.inner-page a { color: var(--accent2); }
.inner-page strong { color: var(--text); font-weight: 600; }
.info-box {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 20px; margin-bottom: 16px;
}
.info-box p { margin-bottom: 0; }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  background: var(--bg2); border-top: 1px solid var(--border);
  padding: 56px 24px 0;
}
.footer-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 48px;
}
.footer-logo {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
.footer-tagline { font-size: 13px; color: var(--text2); line-height: 1.65; margin-bottom: 12px; }
.footer-legal-short { font-size: 11px; color: var(--text3); }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col-title {
  font-size: 11px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--text3); margin-bottom: 4px;
}
.footer-col a {
  font-size: 13px; color: var(--text2);
  transition: color .15s;
}
.footer-col a:hover { color: var(--text); text-decoration: none; }
.footer-bottom {
  max-width: var(--max-w); margin: 0 auto;
  padding: 16px 0; border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 12px; color: var(--text3);
}
.footer-bottom a { color: var(--text3); transition: color .15s; }
.footer-bottom a:hover { color: var(--text2); text-decoration: none; }
.footer-sep { color: var(--border2); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .steps-grid { grid-template-columns: 1fr; }
  .steps-grid::before { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 64px 16px; }
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .hero { padding: 100px 16px 64px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .pricing-grid, .packs-grid { grid-template-columns: 1fr; }
  .contact-form-card { padding: 24px 16px; }
  .cta-block { padding: 36px 20px; }
}

/* ══════════════════════════════════════════════════════════
   PAGE DÉMO
   ══════════════════════════════════════════════════════════ */

.demo-page {
  min-height: calc(100vh - 72px);
  padding-top: 72px;
}

/* ── Hero démo ────────────────────────────────────────────── */
.demo-hero {
  padding: 64px 24px 40px;
  text-align: center;
  background: linear-gradient(180deg, rgba(232,130,12,0.06) 0%, transparent 100%);
  border-bottom: 1px solid var(--border);
}
.demo-hero-inner { max-width: 640px; margin: 0 auto; }
.demo-title {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.2;
  margin: 12px 0 16px;
}
.demo-sub {
  font-size: 16px;
  color: var(--text2);
  line-height: 1.7;
}
.demo-sub strong { color: var(--accent); }

/* ── Register layout ─────────────────────────────────────── */
.demo-register-wrap {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 24px 80px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}
.demo-register-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
}
.demo-register-icon {
  font-size: 36px;
  line-height: 1;
  margin-bottom: 16px;
}
.demo-register-title {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}
.demo-register-sub {
  font-size: 14px;
  color: var(--text2);
  margin-bottom: 24px;
}
.demo-register-form { display: flex; flex-direction: column; gap: 16px; }
.demo-legal {
  font-size: 12px;
  color: var(--text3);
  margin-top: 4px;
  line-height: 1.5;
}
.demo-legal a { color: var(--text3); text-decoration: underline; }

/* ── Info blocs droite ───────────────────────────────────── */
.demo-register-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 8px;
}
.demo-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.demo-info-icon { font-size: 22px; line-height: 1; flex-shrink: 0; }
.demo-info-item > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.demo-info-item strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.demo-info-item span {
  font-size: 12px;
  color: var(--text2);
}

/* ── State cards (pending / expired / invalid / exhausted) ─ */
.demo-state-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 200px);
  padding: 40px 24px;
}
.demo-state-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  max-width: 480px;
  width: 100%;
  text-align: center;
}
.demo-state-icon {
  font-size: 48px;
  line-height: 1;
  margin-bottom: 20px;
}
.demo-state-card h2 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}
.demo-state-card p { font-size: 15px; color: var(--text2); line-height: 1.65; }

/* ── Scan topbar ─────────────────────────────────────────── */
.demo-scan-topbar {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 12px 24px;
}
.demo-scan-topbar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.demo-scan-info {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.demo-welcome { font-size: 14px; color: var(--text2); }
.demo-welcome strong { color: var(--text); }
.demo-badge-scans {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  background: var(--accent-dim);
  color: var(--accent2);
  border: 1px solid rgba(232,130,12,0.25);
  border-radius: 20px;
  padding: 4px 12px;
}
.demo-badge-scans.warn {
  background: rgba(248,81,73,0.10);
  color: var(--red);
  border-color: rgba(248,81,73,0.25);
}

/* ── Scan page ───────────────────────────────────────────── */
.demo-scan-page {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 32px 24px 80px;
}

/* ── Card (identique à l'app CCPU) ──────────────────────── */
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
}

/* ── Section label ───────────────────────────────────────── */
.sec-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--text3);
  margin-bottom: 10px;
}

/* ── Scan bar (header de chaque section) ─────────────────── */
.scan-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
  flex-wrap: wrap;
}
.scan-bar-title {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

/* ── Upload zone ─────────────────────────────────────────── */
.upload-zone {
  border: 2px dashed var(--border2);
  border-radius: var(--radius);
  padding: 52px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  background: var(--bg2);
  margin-bottom: 0;
}
.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--accent);
  background: var(--accent-dim);
}
.upload-icon { font-size: 40px; margin-bottom: 12px; }
.upload-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.upload-sub { font-size: 14px; color: var(--text2); }
.upload-link {
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline;
}
.upload-formats {
  font-size: 12px;
  color: var(--text3);
  margin-top: 10px;
}

/* ── Processing spinner ──────────────────────────────────── */
.processing-wrap {
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 60px 24px;
  text-align: center;
  background: var(--bg2);
}
.spinner {
  width: 44px;
  height: 44px;
  border: 3px solid var(--border2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  margin: 0 auto 20px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.processing-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.processing-sub { font-size: 13px; color: var(--text2); }

/* ── Tabs (style underline identique au CCPU) ────────────── */
.tabs-bar {
  display: flex;
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
  padding: 0 24px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs-bar::-webkit-scrollbar { display: none; }
.tab-btn {
  flex-shrink: 0;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: border-color .15s, color .15s;
  font-family: var(--font);
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active {
  border-bottom-color: var(--accent);
  color: var(--accent);
}
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ── Result content ──────────────────────────────────────── */
.result-content {
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  background: var(--bg);
  padding: 24px;
}

/* ── Field grid (style identique à l'app CCPU) ───────────── */
.fgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
}
.fbox {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 11px;
}
.fbox label {
  display: block;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--text3);
  margin-bottom: 4px;
}
.fbox input {
  width: 100%;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--mono);
  font-size: 13px;
}
.fbox input.ac { color: var(--accent); font-weight: 700; }
.fbox-wide { grid-column: 1 / -1; }

/* ── Inputs inline tableau (style CCPU) ─────────────────── */
.ci {
  width: 100%;
  min-width: 60px;
  background: transparent;
  border: none;
  padding: 8px 6px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 12px;
  outline: none;
  text-align: center;
}
.ci.ch { min-width: 52px; color: var(--text2); font-size: 11.5px; }
.ci.ac { color: var(--accent); font-weight: 700; }

/* ── Composition table (style identique au CCPU) ─────────── */
.ctbl-wrap {
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.ctbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
/* Ligne groupes colorés */
.ctbl thead tr.grp-row th {
  padding: 5px 8px;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .8px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.ctbl thead tr.grp-row th.g-id {
  background: rgba(99,102,241,.12);
  color: #818cf8;
  border-right: 2px solid rgba(99,102,241,.3);
}
.ctbl thead tr.grp-row th.g-chem {
  background: rgba(20,184,166,.10);
  color: #2dd4bf;
  border-right: 2px solid rgba(20,184,166,.25);
}
.ctbl thead tr.grp-row th.g-meca {
  background: rgba(232,130,12,.10);
  color: var(--accent);
}
.ctbl thead tr.grp-row th.g-num { background: var(--bg3); }
/* Ligne noms de colonnes */
.ctbl thead tr.col-row th {
  padding: 7px 6px;
  background: var(--bg3);
  border-bottom: 2px solid var(--border2);
  color: var(--text3);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .3px;
  white-space: nowrap;
  text-align: center;
}
.ctbl thead tr.col-row th.sep-id   { border-right: 2px solid rgba(99,102,241,.25); }
.ctbl thead tr.col-row th.sep-chem { border-right: 2px solid rgba(20,184,166,.2); }
/* Corps */
.ctbl tbody td {
  padding: 0;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  text-align: center;
}
.ctbl tbody tr:last-child td { border-bottom: none; }
.ctbl tbody tr:nth-child(even) td { background: rgba(255,255,255,.018); }
.ctbl tbody tr:hover td { background: color-mix(in srgb, var(--accent) 5%, transparent) !important; }
.ctbl tbody td.sep-id   { border-right: 2px solid rgba(99,102,241,.15); }
.ctbl tbody td.sep-chem { border-right: 2px solid rgba(20,184,166,.12); }
.ctbl tbody td.td-num { color: var(--text3); font-weight: 700; font-size: 11px; padding: 0 8px; width: 28px; }

/* ── Raw JSON view ───────────────────────────────────────── */
.raw-json-view {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  font-size: 12px;
  font-family: var(--mono);
  color: var(--text2);
  overflow-x: auto;
  white-space: pre;
  line-height: 1.6;
  margin-top: 12px;
  max-height: 400px;
  overflow-y: auto;
}

/* ── No export notice ────────────────────────────────────── */
.demo-notice-noexport {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--accent-dim);
  border: 1px solid rgba(232,130,12,0.25);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 13px;
  color: var(--accent2);
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.demo-notice-noexport a { color: var(--accent); font-weight: 600; }

/* ── Error block ─────────────────────────────────────────── */
.error-wrap {
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 40px 24px;
  text-align: center;
  background: var(--bg2);
}
.error-wrap p {
  font-size: 14px;
  color: var(--red);
  margin-bottom: 8px;
}

/* ── Alert ───────────────────────────────────────────────── */
.alert {
  padding: 12px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  margin-bottom: 12px;
}
.alert-error {
  background: rgba(248,81,73,0.10);
  border: 1px solid rgba(248,81,73,0.30);
  color: var(--red);
}

/* ── Btn variants démo ───────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  border: none;
  transition: background .15s, color .15s;
}
.btn-ghost {
  background: transparent;
  color: var(--text2);
  border: 1px solid var(--border2);
}
.btn-ghost:hover { background: var(--bg3); color: var(--text); }
.btn-sm { padding: 6px 12px; font-size: 12px; }

/* ── Responsive démo ─────────────────────────────────────── */
@media (max-width: 760px) {
  .demo-register-wrap {
    grid-template-columns: 1fr;
    padding: 0 16px 60px;
  }
  .demo-register-card { padding: 24px 20px; }
  .demo-state-card { padding: 32px 20px; }
  .fgrid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .demo-hero { padding: 48px 16px 32px; }
  .fgrid { grid-template-columns: 1fr; }
  .demo-scan-page { padding: 20px 16px 60px; }
}
