/* ============================================================
 *  Tallixis Commercial Portal — Design System
 *  Primary: #875a7b | Accent: #00a04a | Font: Inter
 * ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --primary:       #875a7b;
  --primary-dark:  #714b67;
  --primary-light: #f3eef6;
  --primary-mid:   #c19ab2;
  --accent:        #00a04a;
  --accent-dark:   #007a38;
  --bg:            #f8f9fa;
  --surface:       #ffffff;
  --surface-2:     #f3f4f6;
  --border:        #e2e8f0;
  --text:          #1a1a2e;
  --text-muted:    #64748b;
  --text-light:    #94a3b8;
  --shadow-sm:     0 1px 3px rgba(0,0,0,0.08);
  --shadow:        0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg:     0 12px 40px rgba(0,0,0,0.12);
  --radius:        8px;
  --radius-lg:     12px;
  --radius-xl:     20px;
  --nav-height:    64px;
  --transition:    all 0.2s ease;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }

/* ── Typography ─────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.25; color: var(--text); }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p  { color: var(--text-muted); }
a  { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

/* ── Container ──────────────────────────────────────────── */
.container    { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 800px;  margin: 0 auto; padding: 0 24px; }
.container-lg { max-width: 1400px; margin: 0 auto; padding: 0 24px; }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: var(--radius);
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: var(--transition); border: 1.5px solid transparent;
  text-decoration: none; white-space: nowrap; line-height: 1;
}
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(135,90,123,0.35); }
.btn-accent  { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-ghost  { background: transparent; color: var(--text-muted); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-white  { background: #fff; color: var(--primary); border-color: #fff; }
.btn-white:hover { background: var(--primary-light); }
.btn-white-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.btn-white-outline:hover { background: rgba(255,255,255,0.15); color: #fff; }
.btn-lg { padding: 14px 32px; font-size: 15px; border-radius: var(--radius-lg); }
.btn-sm { padding: 7px 16px; font-size: 13px; }
.btn-full { width: 100%; justify-content: center; }

/* ── Badges ─────────────────────────────────────────────── */
.badge { display: inline-block; padding: 3px 10px; border-radius: 100px; font-size: 12px; font-weight: 600; }
.badge-primary { background: var(--primary-light); color: var(--primary); }
.badge-accent  { background: rgba(0,160,74,0.1); color: var(--accent); }
.badge-free    { background: rgba(0,160,74,0.12); color: var(--accent); }
.badge-paid    { background: var(--primary-light); color: var(--primary); }
.badge-new     { background: rgba(59,130,246,0.1); color: #3b82f6; }

/* ── Navbar ─────────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; left: 0; right: 0;
  height: var(--nav-height); background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border); z-index: 1000;
  transition: box-shadow 0.2s;
}
.navbar.scrolled { box-shadow: var(--shadow); }
.navbar-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center; gap: 32px;
}
.navbar-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 18px; color: var(--text);
  text-decoration: none; flex-shrink: 0;
}
.brand-icon {
  width: 32px; height: 32px; background: var(--primary);
  border-radius: 8px; display: flex; align-items: center;
  justify-content: center; color: #fff; font-size: 14px; flex-shrink: 0;
}
.brand-badge {
  font-size: 10px; font-weight: 700; background: var(--primary-light);
  color: var(--primary); padding: 2px 7px; border-radius: 4px;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.navbar-nav { display: flex; align-items: center; gap: 2px; flex: 1; }
.navbar-nav a {
  padding: 8px 14px; border-radius: 6px; font-size: 14px;
  font-weight: 500; color: var(--text-muted); transition: var(--transition);
}
.navbar-nav a:hover { color: var(--text); background: var(--bg); }
.navbar-nav a.active { color: var(--primary); background: var(--primary-light); }
.navbar-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.navbar-toggle {
  display: none; background: none; border: none; cursor: pointer;
  font-size: 20px; color: var(--text-muted); padding: 8px;
}

/* ── Mobile menu ────────────────────────────────────────── */
.mobile-menu {
  display: none; position: absolute; top: 100%;
  left: 0; right: 0; background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px; z-index: 999; box-shadow: var(--shadow);
}
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 12px 0; border-bottom: 1px solid var(--border); font-weight: 500; color: var(--text-muted); }
.mobile-menu a:last-of-type { border-bottom: none; }
.mobile-actions { display: flex; gap: 10px; margin-top: 16px; }
.mobile-actions .btn { flex: 1; justify-content: center; }

/* ── Page wrapper ───────────────────────────────────────── */
.page-wrapper { padding-top: 0; }

/* ── Sections ───────────────────────────────────────────── */
section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-gray { background: var(--bg); }
.section-white { background: var(--surface); }
.section-label {
  display: inline-block; color: var(--primary); font-size: 12px;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.section-title { margin-bottom: 14px; }
.section-desc { font-size: 17px; color: var(--text-muted); max-width: 580px; margin: 0 auto 52px; }
.text-center { text-align: center; }

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  background: linear-gradient(155deg, #f9f0f5 0%, #f3eef6 35%, #edf7f2 100%);
  padding: 100px 0 80px; overflow: hidden; position: relative;
}
.hero::before {
  content: ''; position: absolute; top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(135,90,123,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary-light); color: var(--primary);
  font-size: 13px; font-weight: 600; padding: 6px 16px;
  border-radius: 100px; margin-bottom: 20px;
}
.hero h1 { margin-bottom: 18px; }
.hero h1 span { color: var(--primary); }
.hero > .container > .hero-inner > .hero-text > p {
  font-size: 18px; color: var(--text-muted); margin-bottom: 32px; max-width: 520px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats { display: flex; gap: 36px; padding-top: 28px; border-top: 1px solid rgba(135,90,123,0.15); }
.hero-stat-num { font-size: 26px; font-weight: 800; color: var(--primary); line-height: 1; }
.hero-stat-label { font-size: 13px; color: var(--text-muted); margin-top: 3px; }

/* Mockup UI */
.hero-visual { position: relative; }
.ui-mockup {
  background: #1a1a2e; border-radius: 16px;
  box-shadow: 0 24px 80px rgba(135,90,123,0.25), 0 4px 16px rgba(0,0,0,0.2);
  overflow: hidden; transform: perspective(1200px) rotateY(-6deg) rotateX(3deg);
  transition: transform 0.4s ease;
}
.ui-mockup:hover { transform: perspective(1200px) rotateY(-2deg) rotateX(1deg); }
.ui-titlebar {
  background: #151820; padding: 10px 16px; display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.ui-dots span { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 5px; }
.ui-dots span:nth-child(1) { background: #ff5f57; }
.ui-dots span:nth-child(2) { background: #febb2c; }
.ui-dots span:nth-child(3) { background: #28c840; }
.ui-url { flex: 1; background: rgba(255,255,255,0.06); border-radius: 4px; padding: 4px 10px; font-size: 11px; color: rgba(255,255,255,0.4); font-family: monospace; }
.ui-body { display: flex; height: 320px; }
.ui-sidebar { width: 56px; background: #0f1117; padding: 12px 0; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ui-sidebar-icon { width: 34px; height: 34px; border-radius: 8px; background: rgba(135,90,123,0.2); display: flex; align-items: center; justify-content: center; color: #875a7b; font-size: 13px; }
.ui-sidebar-icon.active { background: #875a7b; color: #fff; }
.ui-content { flex: 1; padding: 14px; overflow: hidden; }
.ui-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.ui-page-title { font-size: 13px; font-weight: 700; color: #fff; }
.ui-btn { background: #875a7b; color: #fff; font-size: 10px; padding: 4px 12px; border-radius: 4px; }
.ui-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.ui-stat-card { background: #151820; border: 1px solid rgba(255,255,255,0.06); border-radius: 6px; padding: 10px; }
.ui-stat-val { font-size: 16px; font-weight: 700; color: #fff; }
.ui-stat-lbl { font-size: 9px; color: rgba(255,255,255,0.4); margin-top: 2px; }
.ui-table-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; background: #151820; border-radius: 4px; margin-bottom: 4px; border: 1px solid rgba(255,255,255,0.04); }
.ui-table-dot { width: 6px; height: 6px; border-radius: 50%; background: #875a7b; flex-shrink: 0; }
.ui-table-line { flex: 1; height: 6px; background: rgba(255,255,255,0.08); border-radius: 3px; }
.ui-table-badge { font-size: 8px; padding: 2px 6px; border-radius: 3px; background: rgba(0,160,74,0.2); color: #00a04a; }

/* ── Cards ──────────────────────────────────────────────── */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px; transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-sm { padding: 20px; }

/* ── Feature cards ──────────────────────────────────────── */
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 16px; flex-shrink: 0;
}
.feature-icon.green { background: rgba(0,160,74,0.1); color: var(--accent); }
.feature-icon.blue  { background: rgba(59,130,246,0.1); color: #3b82f6; }
.feature-icon.orange { background: rgba(245,158,11,0.1); color: #f59e0b; }

/* ── Grid ───────────────────────────────────────────────── */
.grid   { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ── Steps ──────────────────────────────────────────────── */
.step-num {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800; margin: 0 auto 20px; flex-shrink: 0;
}
.step-connector {
  display: none;
  width: 2px; background: var(--primary-light); flex: 1;
  margin: 0 auto;
}

/* ── Stats banner ───────────────────────────────────────── */
.stats-banner { display: flex; justify-content: center; gap: 60px; flex-wrap: wrap; padding: 56px 0; }
.stat-num { font-size: 40px; font-weight: 800; color: var(--primary); }
.stat-label { font-size: 14px; color: var(--text-muted); margin-top: 4px; }

/* ── Pricing ────────────────────────────────────────────── */
.pricing-card {
  background: var(--surface); border: 2px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px; position: relative;
  transition: var(--transition);
}
.pricing-card.popular { border-color: var(--primary); }
.pricing-card.popular::before {
  content: attr(data-badge); position: absolute; top: -13px; left: 50%;
  transform: translateX(-50%); background: var(--primary); color: #fff;
  font-size: 11px; font-weight: 700; padding: 3px 16px; border-radius: 100px;
  white-space: nowrap;
}
.pricing-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.pricing-name { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-muted); margin-bottom: 8px; }
.pricing-price { font-size: 44px; font-weight: 800; color: var(--text); line-height: 1; margin-bottom: 4px; }
.pricing-price sup { font-size: 20px; vertical-align: top; margin-top: 8px; color: var(--text-muted); }
.pricing-price sub { font-size: 16px; font-weight: 500; color: var(--text-muted); }
.pricing-desc { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; }
.pricing-divider { height: 1px; background: var(--border); margin: 24px 0; }
.pricing-features { list-style: none; margin-bottom: 28px; }
.pricing-features li { display: flex; align-items: flex-start; gap: 10px; padding: 7px 0; font-size: 14px; color: var(--text-muted); }
.pricing-features li i.check { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.pricing-features li i.cross { color: var(--text-light); flex-shrink: 0; margin-top: 2px; }
.pricing-features li.active { color: var(--text); }

/* ── Testimonials ───────────────────────────────────────── */
.testimonial { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; }
.testimonial-stars { color: #f59e0b; font-size: 13px; margin-bottom: 14px; }
.testimonial-text { font-size: 15px; line-height: 1.7; color: var(--text); margin-bottom: 20px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; flex-shrink: 0; }
.testimonial-name { font-weight: 700; font-size: 14px; color: var(--text); }
.testimonial-role { font-size: 13px; color: var(--text-muted); }

/* ── Module cards ───────────────────────────────────────── */
.module-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px; transition: var(--transition);
  cursor: pointer; display: flex; flex-direction: column;
}
.module-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--primary-mid); }
.module-icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 14px; flex-shrink: 0;
}
.module-icon.green  { background: rgba(0,160,74,0.1); color: var(--accent); }
.module-icon.blue   { background: rgba(59,130,246,0.1); color: #3b82f6; }
.module-icon.orange { background: rgba(245,158,11,0.1); color: #f59e0b; }
.module-icon.red    { background: rgba(239,68,68,0.1); color: #ef4444; }
.module-icon.teal   { background: rgba(20,184,166,0.1); color: #14b8a6; }
.module-name { font-weight: 700; font-size: 15px; color: var(--text); margin-bottom: 6px; }
.module-desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin-bottom: 14px; flex: 1; }
.module-footer { display: flex; align-items: center; justify-content: space-between; }
.module-stars { color: #f59e0b; font-size: 12px; }
.module-price { font-size: 13px; font-weight: 600; color: var(--primary); }

/* ── Filter bar ─────────────────────────────────────────── */
.filter-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 28px; padding: 14px 18px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.filter-btn {
  padding: 6px 16px; border-radius: 100px; font-size: 13px; font-weight: 500;
  border: 1.5px solid var(--border); background: transparent;
  color: var(--text-muted); cursor: pointer; transition: var(--transition);
}
.filter-btn.active, .filter-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.filter-search {
  flex: 1; min-width: 200px; display: flex; align-items: center; gap: 8px;
  border: 1.5px solid var(--border); border-radius: 8px;
  padding: 7px 12px; background: var(--bg);
}
.filter-search input { border: none; background: transparent; outline: none; font-size: 14px; color: var(--text); flex: 1; width: 100%; }
.filter-search i { color: var(--text-muted); font-size: 13px; }

/* ── CTA band ───────────────────────────────────────────── */
.cta-band {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff; padding: 72px 0; text-align: center;
}
.cta-band h2 { color: #fff; margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,0.82); font-size: 17px; margin-bottom: 32px; }
.cta-band .cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Footer ─────────────────────────────────────────────── */
.footer { background: #0f1117; color: rgba(255,255,255,0.55); padding: 60px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand-row { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 18px; font-weight: 800; margin-bottom: 12px; }
.footer-desc { font-size: 14px; line-height: 1.65; margin-bottom: 20px; }
.footer-social { display: flex; gap: 8px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,0.07); display: flex;
  align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5); font-size: 14px; transition: var(--transition);
}
.footer-social a:hover { background: var(--primary); color: #fff; }
.footer-col-title { font-weight: 700; color: #fff; font-size: 13px; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,0.55); font-size: 14px; transition: var(--transition); }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px; display: flex; align-items: center;
  justify-content: space-between; font-size: 13px;
}
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { color: rgba(255,255,255,0.45); }
.footer-legal a:hover { color: #fff; }

/* ── Forms ──────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-label span { color: #ef4444; }
.form-control {
  width: 100%; padding: 10px 14px; border: 1.5px solid var(--border);
  border-radius: var(--radius); font-size: 14px; color: var(--text);
  background: var(--surface); outline: none; transition: border-color 0.15s;
  font-family: inherit;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(135,90,123,0.1); }
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%2364748b' d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 12px; padding-right: 36px;
}
textarea.form-control { resize: vertical; min-height: 100px; }
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 5px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Range */
.range-wrap { position: relative; }
input[type=range] {
  width: 100%; accent-color: var(--primary); height: 4px;
  cursor: pointer; margin: 8px 0;
}
.range-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-muted); }

/* ── Tabs ───────────────────────────────────────────────── */
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--border); margin-bottom: 24px; }
.tab-btn {
  padding: 10px 18px; border: none; background: transparent; font-size: 14px;
  font-weight: 500; color: var(--text-muted); cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -2px; transition: var(--transition);
}
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.tab-btn:hover { color: var(--text); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── Table ──────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--surface); }
table.table th { background: var(--bg); padding: 11px 16px; text-align: left; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); border-bottom: 1px solid var(--border); white-space: nowrap; }
table.table td { padding: 13px 16px; border-bottom: 1px solid var(--border); color: var(--text); }
table.table tr:last-child td { border-bottom: none; }
table.table tr:hover td { background: var(--bg); }

/* ── Status ─────────────────────────────────────────────── */
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 100px; }
.status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.status-active  { background: rgba(0,160,74,0.1); color: var(--accent); }
.status-active::before { background: var(--accent); }
.status-inactive { background: rgba(239,68,68,0.1); color: #ef4444; }
.status-inactive::before { background: #ef4444; }
.status-pending  { background: rgba(245,158,11,0.1); color: #f59e0b; }
.status-pending::before { background: #f59e0b; }

/* ── Dashboard stats ────────────────────────────────────── */
.dash-stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; display: flex; align-items: center; gap: 16px; }
.dash-stat-icon { width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.icon-purple { background: var(--primary-light); color: var(--primary); }
.icon-green  { background: rgba(0,160,74,0.1); color: var(--accent); }
.icon-blue   { background: rgba(59,130,246,0.1); color: #3b82f6; }
.icon-orange { background: rgba(245,158,11,0.1); color: #f59e0b; }
.dash-stat-num { font-size: 26px; font-weight: 800; color: var(--text); line-height: 1; }
.dash-stat-label { font-size: 13px; color: var(--text-muted); margin-top: 3px; }
.dash-stat-change { font-size: 12px; margin-top: 5px; font-weight: 500; }
.change-up { color: var(--accent); }
.change-down { color: #ef4444; }

/* ── Page header ────────────────────────────────────────── */

/* ── Alert ──────────────────────────────────────────────── */
.alert { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 16px; font-size: 14px; display: flex; align-items: flex-start; gap: 10px; }
.alert-info    { background: rgba(59,130,246,0.07); border: 1px solid rgba(59,130,246,0.2); color: #1d4ed8; }
.alert-success { background: rgba(0,160,74,0.07); border: 1px solid rgba(0,160,74,0.2); color: var(--accent); }
.alert-warning { background: rgba(245,158,11,0.07); border: 1px solid rgba(245,158,11,0.2); color: #d97706; }

/* ── Toast ──────────────────────────────────────────────── */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 10px; font-size: 14px; min-width: 280px; animation: toast-in 0.25s ease; }
.toast.success { border-left: 3px solid var(--accent); }
.toast.error   { border-left: 3px solid #ef4444; }
.toast.info    { border-left: 3px solid #3b82f6; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ── Sidebar (docs / cpanel) ────────────────────────────── */
.side-layout { display: grid; grid-template-columns: 240px 1fr; gap: 32px; }
.side-nav { position: sticky; top: calc(var(--nav-height) + 24px); height: fit-content; }
.side-nav-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 8px; padding: 0 8px; }
.side-nav a {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px;
  border-radius: 6px; font-size: 14px; color: var(--text-muted);
  transition: var(--transition); text-decoration: none;
}
.side-nav a:hover { background: var(--bg); color: var(--text); }
.side-nav a.active { background: var(--primary-light); color: var(--primary); font-weight: 600; }
.side-nav a i { width: 16px; text-align: center; font-size: 13px; }
.side-nav-group { margin-bottom: 20px; }

/* ── Code blocks ────────────────────────────────────────── */
pre { background: #1a1a2e; border-radius: var(--radius); padding: 20px; overflow-x: auto; margin-bottom: 20px; }
code { font-family: 'Fira Code', 'Consolas', monospace; font-size: 13px; color: #c9d1e0; }
:not(pre) > code { background: var(--primary-light); color: var(--primary); padding: 2px 6px; border-radius: 4px; font-size: 13px; }

/* ── Accordion / FAQ ────────────────────────────────────── */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0; cursor: pointer; font-weight: 600; font-size: 15px; color: var(--text);
}
.faq-q i { color: var(--text-muted); transition: transform 0.2s; flex-shrink: 0; }
.faq-item.open .faq-q i { transform: rotate(45deg); }
.faq-a { display: none; padding-bottom: 16px; font-size: 14px; color: var(--text-muted); line-height: 1.7; }
.faq-item.open .faq-a { display: block; }

/* ── Breadcrumb ─────────────────────────────────────────── */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); margin-bottom: 16px; flex-wrap: wrap; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb-sep { opacity: 0.4; }

/* ── Comparison table ───────────────────────────────────── */
.compare-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.compare-table th { padding: 14px 16px; text-align: center; font-weight: 700; background: var(--surface); border-bottom: 2px solid var(--border); }
.compare-table th:first-child { text-align: left; }
.compare-table td { padding: 12px 16px; text-align: center; border-bottom: 1px solid var(--border); }
.compare-table td:first-child { text-align: left; font-weight: 500; color: var(--text); }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:hover td { background: var(--bg); }
.compare-table .plan-col { color: var(--primary); font-weight: 700; font-size: 15px; }
.check-yes { color: var(--accent); }
.check-no  { color: var(--text-light); }

/* ── Price calculator ───────────────────────────────────── */
.calc-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; }
.calc-result { background: var(--primary-light); border-radius: var(--radius); padding: 20px; text-align: center; margin-top: 24px; }
.calc-price { font-size: 42px; font-weight: 800; color: var(--primary); }
.calc-sub { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* ── Try / Sandbox ──────────────────────────────────────── */
.try-steps { counter-reset: step; }
.try-step { display: flex; gap: 20px; margin-bottom: 28px; }
.try-step-num {
  width: 36px; height: 36px; border-radius: 50%; background: var(--primary);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; flex-shrink: 0;
}
.try-step-content h3 { margin-bottom: 4px; font-size: 15px; }
.try-step-content p { font-size: 14px; margin: 0; }

/* ── Login page ─────────────────────────────────────────── */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--hero-grad); padding: 24px; }
.auth-card { background: var(--surface); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); padding: 48px; width: 100%; max-width: 440px; }
.auth-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; margin-bottom: 32px; color: var(--text); justify-content: center; }
.auth-title { font-size: 1.5rem; margin-bottom: 6px; text-align: center; }
.auth-sub { text-align: center; color: var(--text-muted); font-size: 14px; margin-bottom: 32px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; }
.auth-divider span { font-size: 13px; color: var(--text-muted); white-space: nowrap; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-footer { text-align: center; font-size: 13px; color: var(--text-muted); margin-top: 24px; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 900px) {
  .side-layout { grid-template-columns: 1fr; }
  .side-nav { position: static; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
}
@media (max-width: 768px) {
  section { padding: 56px 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .navbar-nav { display: none; }
  .navbar-actions .btn-ghost { display: none; }
  .navbar-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .stats-banner { gap: 28px; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .cta-band .cta-actions { flex-direction: column; align-items: center; }
}
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .auth-card { padding: 32px 24px; }
  .pricing-card { padding: 28px; }
}

/* ── v2 : accessibilité, bandeau d'annonce, formulaires ─── */
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--primary); color: #fff; padding: 8px 14px; border-radius: var(--radius); z-index: 1000; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid rgba(135,90,123,.55); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.announce-bar { background: var(--primary-dark); color: #fff; font-size: 13.5px; padding: 9px 24px; display: flex; gap: 16px; justify-content: center; align-items: center; flex-wrap: wrap; text-align: center; }
.announce-bar a { color: #fff; font-weight: 600; text-decoration: underline; }
.form-error { display: none; background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; padding: 10px 14px; border-radius: var(--radius); font-size: 13.5px; margin-bottom: 16px; }
.form-success { display: none; text-align: center; padding: 24px 8px; }
.form-success i { font-size: 40px; color: var(--accent); margin-bottom: 12px; }
.pass-wrap { position: relative; }
.pass-wrap button { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--text-muted); cursor: pointer; padding: 6px; }
.newsletter { display: flex; gap: 8px; margin-top: 18px; max-width: 360px; }
.newsletter input[type=email] { flex: 1; min-width: 0; padding: 8px 12px; border-radius: var(--radius); border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: #fff; font: inherit; font-size: 13px; }
.newsletter input::placeholder { color: rgba(255,255,255,.55); }
.prose { max-width: 780px; margin: 0 auto; }
.prose h2 { font-size: 1.35rem; margin: 36px 0 10px; }
.prose h3 { font-size: 1.05rem; margin: 22px 0 8px; }
.prose p, .prose li { color: #334155; line-height: 1.75; margin-bottom: 10px; }
.prose ul { padding-left: 22px; margin-bottom: 14px; }
.prose a { color: var(--primary); text-decoration: underline; }
.page-hero { padding: 44px 0 30px; text-align: center; background: linear-gradient(155deg,#f9f0f5 0%,#f3eef6 50%,#edf7f2 100%); }
.page-hero h1 { font-size: 2rem; margin-bottom: 8px; }
.page-hero p { color: var(--text-muted); max-width: 640px; margin: 0 auto; font-size: 16px; }
.news-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.news-meta { font-size: 12.5px; color: var(--text-muted); display: flex; gap: 10px; align-items: center; }
.badge-type { background: var(--primary-light); color: var(--primary-dark); padding: 2px 9px; border-radius: 99px; font-weight: 600; font-size: 11.5px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 28px; justify-content: center; color: var(--text-muted); font-size: 14px; font-weight: 500; }
.trust-row i { color: var(--accent); margin-right: 6px; }
.status-bar { display: flex; gap: 8px; align-items: center; background: #fffbeb; border: 1px solid #fde68a; color: #92400e; padding: 12px 16px; border-radius: var(--radius); font-size: 14px; margin-bottom: 20px; }
@media (max-width: 640px) { .auth-card { padding: 28px 20px; } .page-hero h1 { font-size: 1.7rem; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
.auth-page { min-height: calc(100vh - var(--nav-height)); }
.slug-preview { font-size: 13px; color: var(--text-muted); margin-top: 6px; word-break: break-all; }
.slug-preview strong { color: var(--primary); }
.cp-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; align-items: start; }
.cp-grid-contact { grid-template-columns: 1fr 2fr; }
@media (max-width: 860px) { .cp-grid, .cp-grid-contact { grid-template-columns: 1fr; } }

/* ── v3 : corrections et finitions du site public ──────── */
.faq-q { width: 100%; background: none; border: 0; text-align: left; font-family: inherit; line-height: 1.4; gap: 16px; }
.faq-q:hover { color: var(--primary); }
.auth-title { font-weight: 800; }
.pricing-card { display: flex; flex-direction: column; }
.pricing-card .pricing-features { flex: 1; }
.pricing-card .btn-full { width: 100%; justify-content: center; }
.pricing-price span { line-height: 44px; display: inline-block; }
.card { transition: var(--transition); }
.grid-3 > .card:hover, .module-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.hero { position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; width: 620px; height: 620px; right: -160px; top: -220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(135,90,123,.16), transparent 68%); pointer-events: none; }
.hero::after { content: ''; position: absolute; width: 480px; height: 480px; left: -180px; bottom: -240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,160,74,.10), transparent 68%); pointer-events: none; }
.hero > .container { position: relative; z-index: 1; }
.page-hero { position: relative; }
.btn-primary { box-shadow: 0 1px 2px rgba(113,75,103,.25); }
.btn-primary:hover { box-shadow: 0 6px 16px rgba(113,75,103,.28); transform: translateY(-1px); }

/* Auth en deux colonnes */
.auth-split { width: 100%; max-width: 980px; display: grid; grid-template-columns: 1fr 1.1fr; background: var(--surface); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); overflow: hidden; }
.auth-split .auth-card { box-shadow: none; border-radius: 0; max-width: none; padding: 44px; }
.auth-aside { background: linear-gradient(160deg, var(--primary-dark), var(--primary) 60%, #9b6a8e); color: #fff; padding: 44px 40px; display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.auth-aside h2 { font-size: 1.5rem; line-height: 1.25; color: #fff; }
.auth-aside p { color: rgba(255,255,255,.82); font-size: 14.5px; }
.auth-aside ul { list-style: none; display: grid; gap: 14px; }
.auth-aside li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: rgba(255,255,255,.92); }
.auth-aside li i { width: 28px; height: 28px; border-radius: 8px; background: rgba(255,255,255,.16); display: grid; place-items: center; flex-shrink: 0; font-size: 12px; }
.auth-aside small { color: rgba(255,255,255,.65); }
@media (max-width: 860px) { .auth-split { grid-template-columns: 1fr; } .auth-aside { display: none; } .auth-split .auth-card { padding: 28px 20px; } }

/* Espace client */
.inst-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 18px; }
.inst-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 22px 24px; }
.inst-name { display: flex; align-items: center; gap: 14px; }
.inst-ic { width: 46px; height: 46px; border-radius: 12px; background: var(--primary-light); color: var(--primary); display: grid; place-items: center; font-size: 19px; }
.inst-name h3 { font-size: 1.1rem; margin: 0; }
.inst-name small { color: var(--text-muted); font-size: 13px; }
.inst-body { padding: 16px 24px 20px; border-top: 1px solid var(--border); background: var(--bg); font-size: 13.5px; color: var(--text-muted); }
.progress { height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden; margin: 8px 0 6px; }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 99px; }
.steps { list-style: none; display: grid; gap: 10px; }
.steps li { display: flex; gap: 10px; align-items: center; }
.steps li i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; background: var(--surface-2); color: var(--text-light); }
.steps li.done i { background: rgba(0,160,74,.14); color: var(--accent); }
.empty-state { text-align: center; padding: 40px 24px; background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius-lg); color: var(--text-muted); }
.empty-state i { font-size: 30px; color: var(--primary-mid); margin-bottom: 10px; display: block; }

/* ── v4 : mega-menu, hero sombre, sections "plateforme" ─── */
:root { --ink: #0d0f23; --ink-2: #181a35; --teal: #2dd4bf; --glow: rgba(135,90,123,.45); }

/* Mega-menu */
.navbar-inner { position: relative; max-width: 1280px; gap: 20px; }
.navbar-nav { align-self: stretch; }
.mm { list-style: none; display: flex; height: 100%; gap: 2px; }
.mm-item { display: flex; align-items: stretch; }
.mm-item:not(.wide-host) { position: relative; }
.mm-btn { display: flex; align-items: center; gap: 6px; padding: 0 11px; background: none; border: 0; font: inherit; font-size: 14px; font-weight: 600; color: var(--text); cursor: pointer; border-bottom: 3px solid transparent; transition: var(--transition); }
.mm-btn i { font-size: 10px; color: var(--text-light); transition: transform .2s; }
.mm-item:hover > .mm-btn, .mm-item:focus-within > .mm-btn, .mm-item.open > .mm-btn { color: var(--primary); border-bottom-color: var(--primary); }
.mm-item.active > .mm-btn { color: var(--primary); }
.mm-item:hover > .mm-btn i, .mm-item.open > .mm-btn i { transform: rotate(180deg); color: var(--primary); }
.mm-panel { display: none; position: absolute; top: 100%; left: -16px; background: var(--surface); border: 1px solid var(--border); border-radius: 0 0 var(--radius-lg) var(--radius-lg); box-shadow: var(--shadow-lg); padding: 22px 24px 26px; gap: 28px; min-width: 330px; z-index: 5; }
.mm-item:hover > .mm-panel, .mm-item:focus-within > .mm-panel, .mm-item.open > .mm-panel { display: flex; }
.mm-panel.wide { min-width: 720px; left: -140px; }
.mm-col { flex: 1; min-width: 260px; }
.mm-title { font-size: 11px; text-transform: uppercase; letter-spacing: .09em; font-weight: 700; color: var(--text-light); margin-bottom: 8px; padding: 0 10px; }
.navbar-nav .mm-link { display: flex; gap: 12px; align-items: flex-start; padding: 9px 10px; border-radius: 9px; background: none; color: var(--text); }
.navbar-nav .mm-link:hover { background: var(--primary-light); color: var(--text); }
.mm-ic { width: 34px; height: 34px; border-radius: 9px; background: var(--primary-light); color: var(--primary); display: grid; place-items: center; font-size: 14px; flex-shrink: 0; }
.mm-link:hover .mm-ic { background: var(--primary); color: #fff; }
.mm-link strong { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.mm-link small { display: block; font-size: 12px; color: var(--text-muted); line-height: 1.35; margin-top: 1px; }
.nav-link-plain { font-size: 14px; font-weight: 600; color: var(--text-muted); padding: 8px 6px; }
.nav-link-plain:hover { color: var(--primary); }
.mobile-menu { max-height: calc(100vh - var(--nav-height)); overflow-y: auto; }
.mobile-menu details { border-bottom: 1px solid var(--border); }
.mobile-menu summary { padding: 14px 0; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.mobile-menu summary::after { content: '+'; color: var(--text-muted); font-size: 18px; }
.mobile-menu details[open] summary::after { content: '–'; }
.mobile-menu details a { padding: 9px 0 9px 12px; border-bottom: 0; font-size: 14px; }
@media (max-width: 1240px) {
  .navbar-nav { display: none; }
  .navbar-toggle { display: block; }
  .nav-link-plain, .navbar-actions .btn-ghost { display: none; }
  .navbar-actions { margin-left: auto; }
}

/* Hero sombre */
.hero { background: radial-gradient(1100px 520px at 85% -10%, rgba(135,90,123,.55), transparent 60%), radial-gradient(800px 420px at 0% 110%, rgba(45,212,191,.18), transparent 60%), linear-gradient(160deg, var(--ink) 0%, #1a1233 100%); color: #fff; padding: 96px 0 84px; }
.hero::before, .hero::after { display: none; }
.hero h1 { color: #fff; font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1.12; }
.hero h1 span { background: linear-gradient(90deg, #d6a8c8, var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .hero-badge { background: rgba(255,255,255,.1); color: #e9d9e4; border: 1px solid rgba(255,255,255,.16); }
.hero .hero-text .hero-lead { font-size: 18px; color: rgba(255,255,255,.8); margin-bottom: 32px; max-width: 540px; }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.hero .btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; border-color: #fff; }
.hero .btn-primary { background: linear-gradient(135deg, #a4709a, var(--primary-dark)); box-shadow: 0 8px 24px rgba(135,90,123,.5); }
.hero-stats { border-top-color: rgba(255,255,255,.14); }
.hero-stat-num { color: #fff; }
.hero-stat-label { color: rgba(255,255,255,.65); }
.hero + .trust-strip { margin-top: 0; }
.hero .hero-note { text-align: center; font-size: 12px; color: rgba(255,255,255,.45); margin-top: 14px; }
.ui-mockup { box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.08); }
.trust-strip { background: var(--surface); border-bottom: 1px solid var(--border); padding: 22px 0; }
.page-hero.dark { background: radial-gradient(900px 400px at 80% -20%, rgba(135,90,123,.5), transparent 60%), linear-gradient(160deg, var(--ink), #1a1233); }
.page-hero.dark h1 { color: #fff; }
.page-hero.dark p { color: rgba(255,255,255,.75); }
.page-hero.dark .eyebrow { color: var(--teal); }
.page-hero .btn-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.page-hero.dark .btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); margin-bottom: 10px; }

/* Sections sombres et blocs */
.section-dark { background: linear-gradient(160deg, var(--ink), var(--ink-2)); color: rgba(255,255,255,.8); }
.section-dark .section-title, .section-dark h3 { color: #fff; }
.section-dark .section-desc { color: rgba(255,255,255,.7); }
.section-dark .section-label { color: var(--teal); }
.link-arrow { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; font-size: 14px; color: var(--primary); }
.link-arrow i { transition: transform .2s; font-size: 12px; }
.link-arrow:hover i { transform: translateX(4px); }
.engage { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.engage-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px; display: flex; flex-direction: column; transition: var(--transition); }
.engage-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.engage-card.featured { border: 2px solid var(--primary); position: relative; }
.engage-card.featured::before { content: 'Le plus choisi'; position: absolute; top: -12px; left: 24px; background: var(--primary); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 12px; border-radius: 99px; }
.engage-card .tag { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--primary); margin-bottom: 10px; }
.engage-card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.engage-card > p { color: var(--text-muted); font-size: 14.5px; margin-bottom: 16px; }
.engage-card ul { list-style: none; margin-bottom: 22px; flex: 1; }
.engage-card li { display: flex; gap: 10px; font-size: 14px; padding: 5px 0; }
.engage-card li i { color: var(--accent); margin-top: 4px; font-size: 12px; }
.sol-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.sol-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 8px; transition: var(--transition); }
.sol-card:hover { border-color: var(--primary-mid); box-shadow: var(--shadow); transform: translateY(-3px); }
.sol-card .ic { width: 44px; height: 44px; border-radius: 11px; background: var(--primary-light); color: var(--primary); display: grid; place-items: center; font-size: 18px; }
.sol-card h3 { font-size: 1.02rem; margin-top: 6px; }
.sol-card p { font-size: 13.5px; color: var(--text-muted); flex: 1; }
.gov { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.gov-pillars { display: grid; gap: 14px; }
.gov-pillar { display: flex; gap: 16px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-lg); padding: 18px 20px; }
.gov-pillar .ic { width: 42px; height: 42px; border-radius: 11px; background: rgba(45,212,191,.14); color: var(--teal); display: grid; place-items: center; flex-shrink: 0; }
.gov-pillar h3 { font-size: 1rem; margin-bottom: 2px; }
.gov-pillar p { font-size: 13.5px; color: rgba(255,255,255,.7); }
.usecases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.usecase { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.usecase .sector { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: .06em; }
.usecase h3 { font-size: 1.1rem; line-height: 1.35; }
.usecase p { font-size: 14px; color: var(--text-muted); flex: 1; }
.usecase .outcome { border-top: 1px solid var(--border); padding-top: 12px; font-size: 13.5px; font-weight: 600; display: flex; gap: 8px; }
.usecase .outcome i { color: var(--accent); margin-top: 3px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.rev > :first-child { order: 2; }
.split h2 { font-size: 1.9rem; margin-bottom: 14px; }
.split p { color: var(--text-muted); margin-bottom: 14px; }
.check-list { list-style: none; margin: 14px 0 20px; }
.check-list li { display: flex; gap: 10px; padding: 5px 0; font-size: 14.5px; }
.check-list i { color: var(--accent); margin-top: 4px; font-size: 13px; }
.panel { background: linear-gradient(160deg, var(--primary-light), var(--surface)); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 28px; min-height: 280px; display: grid; gap: 12px; align-content: center; }
.panel-row { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; font-size: 13.5px; box-shadow: var(--shadow-sm); }
.panel-row i { width: 30px; height: 30px; border-radius: 8px; background: var(--primary-light); color: var(--primary); display: grid; place-items: center; font-size: 13px; }
.panel-row b { margin-left: auto; font-size: 12px; color: var(--accent); }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.tl-step { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px 22px; }
.tl-step::before { counter-increment: step; content: counter(step); width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 800; margin-bottom: 14px; }
.tl-step h3 { font-size: 1.02rem; margin-bottom: 6px; }
.tl-step p { font-size: 13.5px; color: var(--text-muted); }
.spec-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; font-size: 14.5px; }
.spec-table th, .spec-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--border); vertical-align: top; }
.spec-table th { width: 32%; background: #fafafc; font-weight: 700; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.feature-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature-row .card { padding: 22px; }
.feature-row h3 { font-size: 1rem; margin-bottom: 4px; }
.feature-row p { font-size: 13.5px; }
.module-banner { display: flex; align-items: center; gap: 18px; background: var(--primary-light); border: 1px solid var(--primary-mid); border-radius: var(--radius-lg); padding: 20px 24px; flex-wrap: wrap; }
.module-banner .mi { width: 52px; height: 52px; border-radius: 13px; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: 21px; }
.module-banner div.t { flex: 1; min-width: 220px; }
.module-banner strong { display: block; }
.module-banner small { color: var(--text-muted); }
.cta-band { background: radial-gradient(800px 300px at 80% 0%, rgba(135,90,123,.55), transparent 60%), linear-gradient(160deg, var(--ink), #1a1233); }
.cta-band .btn-white { color: var(--ink); }
.footer-grid-5 { grid-template-columns: 1.7fr 1fr 1.2fr 1fr 1fr; gap: 36px; }
.footer-contact { list-style: none; margin-bottom: 18px; font-size: 14px; }
.footer-contact li { margin-bottom: 8px; display: flex; gap: 10px; }
.footer-contact i { color: var(--primary-mid); margin-top: 4px; }
.footer-contact a { color: rgba(255,255,255,.7); }
@media (min-width: 1101px) { .sol-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1100px) { .sol-grid, .feature-row { grid-template-columns: repeat(2, 1fr); } .timeline { grid-template-columns: repeat(2, 1fr); } .footer-grid-5 { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 860px) { .engage, .usecases, .gov, .split { grid-template-columns: 1fr; } .split.rev > :first-child { order: 0; } .gov { gap: 28px; } }
@media (max-width: 640px) { .sol-grid, .feature-row, .timeline { grid-template-columns: 1fr; } .footer-grid-5 { grid-template-columns: 1fr; } }

@media (max-width: 720px) {
  .navbar-inner { gap: 12px; padding: 0 16px; }
  .navbar-actions { display: none; }
  .navbar-toggle { margin-left: auto; }
}

/* ── v5 : produits, IA, startup ───────────────────────── */
.mm-plain .mm-btn { text-decoration: none; }
.ai-pill { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--teal)); color: #fff; font-size: 10px; margin-left: 2px; }
.mobile-menu .mm-mobile-link { font-weight: 700; padding: 14px 0; border-bottom: 1px solid var(--border); }
.footer-grid-6 { grid-template-columns: 1.6fr repeat(5, 1fr); gap: 28px; }
.ai-chip { display: inline-flex; gap: 6px; align-items: center; background: linear-gradient(135deg, rgba(135,90,123,.14), rgba(45,212,191,.18)); color: var(--primary-dark); font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; }
.ai-section { background: radial-gradient(900px 420px at 15% 0%, rgba(45,212,191,.16), transparent 60%), radial-gradient(900px 420px at 90% 100%, rgba(135,90,123,.4), transparent 60%), linear-gradient(160deg, var(--ink), #1a1233); }
.ai-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 34px 0 22px; }
.ai-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-lg); padding: 24px; backdrop-filter: blur(4px); transition: var(--transition); }
.ai-card:hover { background: rgba(255,255,255,.09); transform: translateY(-3px); }
.ai-card .ic { width: 44px; height: 44px; border-radius: 11px; background: linear-gradient(135deg, rgba(135,90,123,.55), rgba(45,212,191,.35)); color: #fff; display: grid; place-items: center; font-size: 18px; margin-bottom: 14px; }
.ai-card h3 { font-size: 1.02rem; margin-bottom: 6px; }
.ai-card p { font-size: 13.5px; color: rgba(255,255,255,.72); }
.gov-row { grid-template-columns: repeat(3, 1fr); }
.gov-pillars.gov-row { display: grid; }
.page-hero.ai-hero { background: radial-gradient(900px 400px at 15% -10%, rgba(45,212,191,.22), transparent 60%), radial-gradient(900px 400px at 85% -20%, rgba(135,90,123,.55), transparent 60%), linear-gradient(160deg, var(--ink), #1a1233); }
.prompt-demo { background: var(--ink); border-radius: var(--radius-xl); padding: 24px; display: grid; gap: 12px; box-shadow: var(--shadow-lg); }
.prompt-user { background: rgba(255,255,255,.08); color: #e8e3f0; border-radius: 12px; padding: 14px 16px; font-size: 14px; display: flex; gap: 12px; }
.prompt-ai { background: linear-gradient(135deg, rgba(135,90,123,.5), rgba(45,212,191,.25)); color: #fff; border-radius: 12px; padding: 14px 16px; display: flex; gap: 12px; align-items: center; }
.prompt-ai strong { display: block; font-size: 14px; } .prompt-ai span { font-size: 12.5px; color: rgba(255,255,255,.75); }
.prompt-demo .panel-row { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.1); color: #e8e3f0; box-shadow: none; }
.prompt-demo .panel-row i { background: rgba(255,255,255,.1); color: var(--teal); }
.prompt-demo .panel-row b { color: var(--teal); }
.prod-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.prod-card { display: flex; gap: 18px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; text-decoration: none; color: inherit; transition: var(--transition); }
.prod-card:hover { border-color: var(--primary-mid); box-shadow: var(--shadow); transform: translateY(-3px); }
.prod-card h3 { font-size: 1.05rem; margin-bottom: 3px; }
.prod-card p { font-size: 13.5px; color: var(--text-muted); }
.prod-go { margin-left: auto; color: var(--text-light); transition: transform .2s; }
.prod-card:hover .prod-go { transform: translateX(4px); color: var(--primary); }
.prod-ic { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; flex-shrink: 0; background: var(--primary-light); color: var(--primary); }
.prod-ic.green { background: rgba(0,160,74,.12); color: var(--accent); }
.prod-ic.orange { background: rgba(245,158,11,.14); color: #d97706; }
.prod-ic.blue { background: rgba(59,130,246,.12); color: #3b82f6; }
.prod-ic.big { width: 84px; height: 84px; font-size: 34px; border-radius: 22px; }
.prod-big { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.prod-card.big { align-items: flex-start; padding: 30px; }
.prod-card.big h3 { font-size: 1.35rem; margin: 10px 0 6px; }
.prod-card.big p { margin-bottom: 12px; font-size: 14.5px; }
.prod-visual { border-radius: var(--radius-xl); padding: 48px 24px; text-align: center; display: grid; gap: 10px; justify-items: center; background: linear-gradient(160deg, var(--primary-light), var(--surface)); border: 1px solid var(--border); }
.prod-visual.green { background: linear-gradient(160deg, rgba(0,160,74,.10), var(--surface)); } .prod-visual.orange { background: linear-gradient(160deg, rgba(245,158,11,.12), var(--surface)); } .prod-visual.blue { background: linear-gradient(160deg, rgba(59,130,246,.10), var(--surface)); }
.prod-visual strong { font-size: 1.25rem; } .prod-visual small { color: var(--text-muted); }
.startup .usecase .sector { font-size: 20px; color: var(--primary); }
@media (max-width: 1100px) { .ai-grid { grid-template-columns: repeat(2, 1fr); } .footer-grid-6 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px) { .prod-grid, .prod-big, .gov-row { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .ai-grid, .footer-grid-6 { grid-template-columns: 1fr; } }

/* ── v6 : plans dynamiques ─────────────────────────────── */
.pp[hidden] { display: none; }
.pp-custom { font-size: 28px; line-height: 44px; display: inline-block; }
.period-toggle { display: flex; width: max-content; margin: 0 auto 28px; background: var(--surface-2); border-radius: 99px; padding: 4px; }
.period-toggle button { border: 0; background: none; font: inherit; font-weight: 600; font-size: 13.5px; padding: 7px 20px; border-radius: 99px; cursor: pointer; color: var(--text-muted); }
.period-toggle button.active { background: var(--surface); color: var(--primary); box-shadow: var(--shadow-sm); }
@media (max-width: 860px) { .plans-grid { grid-template-columns: 1fr !important; } }

/* ── v7 : demande d'instance et profil entreprise ─────── */
.steps-bar { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; justify-content: center; }
.steps-bar span { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); background: var(--surface); border: 1px solid var(--border); border-radius: 99px; padding: 6px 14px 6px 8px; }
.steps-bar span b { width: 22px; height: 22px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font-size: 12px; }
.steps-bar span.on { color: var(--text); border-color: var(--primary-mid); } .steps-bar span.on b { background: var(--primary); color: #fff; }
.req-card { padding: 36px; }
.req-title { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; margin: 30px 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.req-title:first-of-type { margin-top: 0; }
.req-title span { width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.req-help { font-size: 13.5px; color: var(--text-muted); margin: -6px 0 14px; }
.req-check { display: flex; gap: 8px; align-items: center; font-size: 13.5px; margin-bottom: 14px; }
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 28px; margin: 6px 0 0; }
.info-grid dt { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); margin: 0; }
.info-grid dd { margin: 2px 0 0; font-size: 14.5px; font-weight: 500; word-break: break-word; }
.info-grid dd:empty::after, .info-grid dd.none { content: '—'; color: var(--text-light); font-weight: 400; }
.profile-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 22px; overflow-x: auto; }
.profile-tabs a { padding: 12px 18px; font-weight: 600; font-size: 14px; color: var(--text-muted); border-bottom: 3px solid transparent; white-space: nowrap; text-decoration: none; }
.profile-tabs a.active { color: var(--primary); border-bottom-color: var(--primary); }
.completion { display: flex; gap: 14px; align-items: center; background: #fffbeb; border: 1px solid #fde68a; color: #92400e; border-radius: var(--radius); padding: 12px 16px; font-size: 14px; margin-bottom: 20px; flex-wrap: wrap; }
@media (max-width: 640px) { .req-card { padding: 22px 16px; } .info-grid { grid-template-columns: 1fr; } }

/* ── v8 : lignes cliquables et fiche module ───────────── */
.module-card { position: relative; cursor: pointer; }
.module-card .card-link { text-decoration: none; }
.module-card .card-link::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.module-card:hover .module-name { color: var(--primary); }
.module-card .card-link:focus-visible::after { outline: 3px solid rgba(135,90,123,.55); outline-offset: 2px; }
.adm-t tr.row-link { cursor: pointer; }
.adm-t tr.row-link:hover td { background: #f6f1f9; }
.mod-head { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; padding: 24px; }
.mod-head .mod-ic { width: 64px; height: 64px; font-size: 26px; border-radius: 16px; }
.mod-head h2 { font-size: 1.45rem; margin: 0 0 4px; }
.mod-head .meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; color: var(--text-muted); font-size: 13.5px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 18px 0; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px 16px; }
.kpi b { display: block; font-size: 1.35rem; line-height: 1.2; } .kpi span { font-size: 12.5px; color: var(--text-muted); }
.hash { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; word-break: break-all; }
.tagline-chips { display: flex; gap: 6px; flex-wrap: wrap; }

/* ── Contenu des pages d'administration (la coque est dans app.css) ── */
.adm-content { width: 100%; }

.adm-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 26px; }
.adm-stat { display: flex; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; text-decoration: none; color: inherit; transition: var(--transition); }
.adm-stat:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.adm-stat-ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 18px; flex-shrink: 0; }
.adm-stat-ic.purple { background: var(--primary-light); color: var(--primary); }
.adm-stat-ic.green { background: rgba(0,160,74,.12); color: var(--accent); }
.adm-stat-ic.blue { background: rgba(59,130,246,.12); color: #3b82f6; }
.adm-stat-ic.orange { background: rgba(245,158,11,.14); color: #d97706; }
.adm-stat-ic.red { background: rgba(239,68,68,.12); color: #ef4444; }
.adm-stat-ic.gray { background: var(--surface-2); color: var(--text-light); }
.adm-stat-body { display: flex; flex-direction: column; min-width: 0; }
.adm-stat-val { font-size: 1.7rem; font-weight: 800; line-height: 1.1; }
.adm-stat-label { font-size: 13px; font-weight: 600; }
.adm-stat small { color: var(--text-muted); font-size: 12px; }
.adm-cols { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.adm-section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.adm-section-head h2 { font-size: 1.05rem; margin: 0; }
.adm-section-head small, .adm-section-head a { font-size: 12.5px; color: var(--text-muted); }
.adm-section-head a { color: var(--primary); font-weight: 600; text-decoration: none; }
.adm-section-head code, .adm-content code { background: var(--primary-light); color: var(--primary-dark); padding: 1px 6px; border-radius: 5px; font-size: 12px; }

.adm-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.adm-card.pad, .adm-card > .card { padding: 20px; }
.adm-scroll { overflow-x: auto; }
.adm-t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.adm-t th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); font-weight: 700; padding: 12px 14px; background: #fafafc; border-bottom: 1px solid var(--border); white-space: nowrap; }
.adm-t td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; text-align: left; }
.adm-t tr:last-child td { border-bottom: 0; }
.adm-t tbody tr:hover td { background: #fbfaff; }
.adm-t td strong { display: block; font-weight: 700; }
.adm-t td small { display: block; color: var(--text-muted); font-size: 12px; margin-top: 1px; }
.adm-t td.r, .adm-t th.r { text-align: right; white-space: nowrap; }
.adm-t a { color: var(--primary); font-weight: 600; text-decoration: none; }
.adm-t .form-select, .adm-toolbar .form-select, .adm-content .form-select { border: 1.5px solid var(--border); border-radius: 8px; background-color: var(--surface); font: inherit; font-size: 13.5px; color: var(--text); }
.adm-t .form-select { width: auto; min-width: 120px; padding: 6px 30px 6px 10px; font-size: 13px; }
.adm-toolbar .form-control { border-radius: 8px; }
.mod-cell { display: flex; align-items: center; gap: 12px; }
.mod-ic { width: 38px; height: 38px; border-radius: 10px; background: var(--primary-light); color: var(--primary); display: grid; place-items: center; flex-shrink: 0; }
.adm-t td small { line-height: 1.35; }
.adm-empty { text-align: center; color: var(--text-muted); padding: 28px 16px !important; font-size: 14px; }
.chip { display: inline-block; background: var(--surface-2); color: var(--text); font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 99px; text-transform: capitalize; }
.adm-list > a, .adm-list > div { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--border); text-decoration: none; color: inherit; font-size: 13.5px; }
.adm-list > *:last-child { border-bottom: 0; }
.adm-list > a:hover { background: #fbfaff; }
.adm-list small { display: block; color: var(--text-muted); font-size: 12px; }
.adm-list span { min-width: 0; }
.adm-toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; align-items: center; }
.adm-toolbar .form-control, .adm-toolbar .form-select { width: auto; min-width: 190px; padding: 9px 12px; }
.adm-content .cp-grid { gap: 20px; }
.adm-content .card { border-radius: var(--radius-lg); box-shadow: none; }
.adm-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 8px 12px; font-size: 13.5px; margin-bottom: 14px; }
.kv dt { color: var(--text-muted); }
dialog { border: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 0; width: min(700px, 94vw); max-height: 92vh; overflow: auto; }
dialog::backdrop { background: rgba(15,15,30,.55); backdrop-filter: blur(2px); }
.dlg-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.dlg-head h3 { margin: 0; font-size: 1.1rem; }
.dlg-body { padding: 20px 24px 24px; }
.dlg-x { background: none; border: 0; font-size: 22px; cursor: pointer; color: var(--text-muted); line-height: 1; }
@media (max-width: 960px) {
  .adm-cols, .adm-content .cp-grid { grid-template-columns: minmax(0, 1fr); }
}
.adm-content .form-group .form-select { width: 100%; padding: 10px 36px 10px 12px; }
.adm-t .form-group .form-select, .adm-t td .form-select { width: auto; padding: 6px 30px 6px 10px; }
.kv dd { margin: 0; word-break: break-word; }

.adm-cols > *, .adm-content .cp-grid > * { min-width: 0; }
dialog { margin: auto; }
.form-select { width: 100%; padding: 10px 36px 10px 12px; border: 1.5px solid var(--border); border-radius: 8px; font: inherit; font-size: 14px; background-color: var(--surface); color: var(--text); }
.form-select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(135,90,123,0.1); }

.mm-plain .mm-btn i { transform: none !important; color: #fff !important; font-size: 10px; }
.hero-stat-num { white-space: nowrap; }
.hero-stats { gap: 28px; }
.hero > .container > .hero-inner > .hero-text > p.hero-lead { color: rgba(255,255,255,.84); max-width: 540px; }
.mobile-menu a.btn-primary { color: #fff; } .mobile-menu a.btn { padding: 10px 14px; border-bottom: 1px solid transparent; }

/* ── Recherche de la documentation ─────────────────────── */
.doc-search { display: flex; align-items: center; gap: 10px; max-width: 560px; margin: 0 auto 28px; padding: 10px 14px; background: var(--surface); border: 1.5px solid var(--border); border-radius: 12px; transition: var(--transition); }
.doc-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(135,90,123,.12); }
.doc-search i { color: var(--text-muted); }
.doc-search input { border: 0; background: transparent; outline: none; flex: 1; min-width: 0; font: inherit; font-size: 14.5px; color: var(--text); }

/* ── Mobile : bandeau d'annonce et filtres plus compacts ── */
@media (max-width: 640px) {
  .announce-bar { padding: 7px 14px; gap: 10px; flex-wrap: nowrap; justify-content: space-between; text-align: left; font-size: 12.5px; }
  .announce-bar span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .announce-bar a { flex-shrink: 0; white-space: nowrap; }
  .filter-bar select.form-select { flex: 1 1 calc(50% - 8px); min-width: 0; }
  .filter-bar .filter-search { flex: 1 1 100%; }
  .filter-bar.cats { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
  .filter-bar.cats::-webkit-scrollbar { display: none; }
  .filter-bar.cats .filter-btn { flex-shrink: 0; white-space: nowrap; }
}
@media (max-width: 640px) { .filter-bar select.form-select { padding-right: 28px; font-size: 13px; } }

.dlg-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin: 0 0 18px; overflow-x: auto; }
.dlg-tabs button { background: none; border: 0; padding: 10px 16px; font: inherit; font-weight: 600; font-size: 14px; color: var(--text-muted); border-bottom: 3px solid transparent; white-space: nowrap; cursor: pointer; }
.dlg-tabs button.active { color: var(--primary); border-bottom-color: var(--primary); }
.dlg-pane[hidden] { display: none; }
.dlg-foot { position: sticky; bottom: -1px; background: var(--surface, #fff); padding: 14px 0 4px; margin-top: 14px; border-top: 1px solid var(--border); }
/* Fenêtre à onglets : hauteur fixe, le pied de formulaire reste en bas quel que soit l'onglet */
dialog:has(.dlg-tabs) { height: min(780px, 92vh); }
dialog[open]:has(.dlg-tabs) { display: flex; flex-direction: column; }
dialog:has(.dlg-tabs) .dlg-body { flex: 1; display: flex; flex-direction: column; }
dialog:has(.dlg-tabs) .dlg-body > form { flex: 1; display: flex; flex-direction: column; }
dialog:has(.dlg-tabs) .dlg-foot { margin-top: auto; }

/* Sélecteur de langue (en-tête du site et de l'application) */
.lang-sw { position: relative; display: inline-block; }
.lang-sw > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 11px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); font-size: 12.5px; font-weight: 700; cursor: pointer; letter-spacing: .04em; }
.lang-sw > summary::-webkit-details-marker { display: none; }
.lang-sw > summary:hover { border-color: var(--primary); }
.lang-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 120; min-width: 150px; padding: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg, 0 12px 32px rgba(0,0,0,.16)); display: grid; gap: 2px; }
.lang-menu a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--text); font-size: 14px; text-decoration: none; }
.lang-menu a:hover { background: var(--surface-2, var(--bg)); }
.lang-menu a.on { background: var(--primary-light); color: var(--primary); font-weight: 700; }

/* ── Fenêtres d'édition : titre et boutons restent fixes, seule la zone centrale défile ── */
dialog[open]:has(> .dlg-head):has(> .dlg-body) { display: flex; flex-direction: column; overflow: hidden; }
dialog:has(> .dlg-head):has(> .dlg-body) > .dlg-head { position: static; flex: none; }
dialog:has(> .dlg-head):has(> .dlg-body) > .dlg-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
dialog > .dlg-body.dlg-split { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.dlg-split > form { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; margin: 0; }
.dlg-split > form > .dlg-tabs { flex: none; margin: 0; padding: 0 24px; }
.dlg-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 20px 24px; }
.dlg-bar { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 14px 24px; border-top: 1px solid var(--border); background: var(--surface); }
.dlg-bar > .dlg-foot, .dlg-bar > .adm-actions { position: static; display: contents; border: 0; padding: 0; margin: 0; }
.dlg-bar .btn-full { width: auto; flex: 1 1 auto; }

/* Parcours : créer son instance */
.hero-reassure { font-size: 13px; color: rgba(255,255,255,.7); margin: -28px 0 36px; }
.hero-reassure i { color: #7fd8a4; margin-right: 6px; }
.getstarted { background: var(--surface); border-bottom: 1px solid var(--border); padding: 36px 0 32px; }
.getstarted h2 { text-align: center; font-size: 22px; margin-bottom: 22px; }
.getstarted-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.getstarted-steps li { display: flex; gap: 12px; align-items: flex-start; }
.getstarted-steps li b { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: 14px; }
.getstarted-steps strong { display: block; margin-bottom: 2px; }
.getstarted-steps span { font-size: 13px; color: var(--text-muted); }
.getstarted-cta { text-align: center; margin: 24px 0 0; }
@media (max-width: 900px) { .getstarted-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .getstarted-steps { grid-template-columns: 1fr; } .hero-reassure { margin-top: -32px; } }

/* Demandes clients : fenêtre de détail */
dialog.rq-dlg { width: min(960px, 95vw); }
.rq-title { display: flex; align-items: center; gap: 14px; min-width: 0; }
.rq-title h3 { margin: 0; }
.rq-ava { flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--primary-light); color: var(--primary); font-weight: 700; font-size: 18px; display: grid; place-items: center; }
.rq-sub { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }
.rq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 18px; align-items: start; background: var(--surface-2, var(--bg)); }
.rq-col { display: grid; gap: 16px; min-width: 0; }
.rq-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg, 12px); padding: 16px 18px; }
.rq-card h4 { margin: 0 0 12px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); display: flex; align-items: center; gap: 8px; }
.rq-card h4 i { color: var(--primary); }
.rq-card .kv { margin: 0; grid-template-columns: 100px 1fr; }
.rq-card .kv:empty { display: none; }
.rq-msg { white-space: pre-wrap; word-break: break-word; font-size: 14.5px; line-height: 1.6; max-height: 260px; overflow-y: auto; }
.rq-card pre { margin: 10px 0 0; background: var(--surface-2, var(--bg)); border-radius: 8px; padding: 10px 12px; font-size: 12.5px; overflow: auto; max-height: 200px; }
@media (max-width: 760px) { .rq-grid { grid-template-columns: minmax(0, 1fr); } }
