/* ═══════════════════════════════════════════════════════════════
   Loopya — Styles globaux (violet/noir + moderne)
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* ── PALETTE SOMBRE violet/noir ───────────────────────────── */
  --bg: #0a0a0f;                /* Fond principal très sombre */
  --bg-soft: #14141c;            /* Variante un peu plus claire */
  --surface: #1a1a26;            /* Cartes / blocs */
  --surface-hover: #22222e;      /* Hover */
  --border: #2a2a3a;             /* Bordures subtiles */
  --border-strong: #3a3a4a;      /* Bordures visibles */
  --text: #f5f5fa;               /* Texte principal (presque blanc) */
  --text-muted: #a0a0b0;         /* Texte secondaire */
  --text-subtle: #6a6a7a;        /* Texte tertiaire */
  --accent: #8b5cf6;             /* Violet vif (Loopya) */
  --accent-hover: #a78bfa;       /* Violet hover (plus clair) */
  --accent-light: #2a1f4d;       /* Background tinté violet */
  --accent-dark: #6d28d9;        /* Violet profond */
  --noir: #050508;               /* Noir absolu */
  --noir-soft: #0f0f15;          /* Noir doux */
  --gradient: linear-gradient(135deg, #0a0a0f 0%, #8b5cf6 100%);
  --gradient-soft: linear-gradient(135deg, #1a1a26 0%, #6d28d9 100%);
  --gradient-purple: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  --success: #22c55e;
  --success-light: #14391c;
  --warning: #f59e0b;
  --warning-light: #3a2812;
  --danger: #ef4444;
  --danger-light: #3a1818;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3), 0 1px 3px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4), 0 2px 4px rgba(0,0,0,0.2);
  --shadow-lg: 0 8px 24px rgba(139, 92, 246, 0.20), 0 4px 8px rgba(0,0,0,0.3);
  --shadow-glow: 0 0 32px rgba(139, 92, 246, 0.25);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ═══════════════════════════════════════════════════════════════
   Navigation
   ═══════════════════════════════════════════════════════════════ */
.nav {
  background: rgba(10,10,15,0.85);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 16px 12px 24px;  /* logo aligné à gauche, boutons un peu plus à droite */
  display: grid;
  grid-template-columns: 1fr auto 1fr;  /* logo | liens centrés | boutons */
  align-items: center;
  gap: 24px;
}
.nav-inner > .logo { justify-self: start; }   /* logo à gauche */
.nav-inner > .nav-cta { justify-self: end; }  /* boutons à droite */

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.025em;
}
.logo:hover { color: var(--text); }
.logo-mark {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gradient-purple);
  box-shadow: 0 0 0 3px rgba(139,92,246,0.2), var(--shadow-glow);
}

/* Logo SVG inline (wordmark) — currentColor hérite de la couleur définie ici */
.logo-svg {
  height: 26px;
  width: auto;
  display: block;
  color: #fafafa;              /* couleur du texte du logo sur fond sombre */
  transition: opacity 0.15s ease;
}
.logo:hover .logo-svg { opacity: 0.85; }
/* Variante monochrome atténuée pour le pied de page */
.footer-logo .logo-svg { height: 22px; color: var(--text-muted); }

.nav-links {
  display: flex;
  gap: 48px;            /* espacement généreux entre les liens */
  justify-self: center; /* groupe de liens vraiment centré dans la barre */
}
.nav-links a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* ═══════════════════════════════════════════════════════════════
   Boutons
   ═══════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s;
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn-lg {
  padding: 13px 24px;
  font-size: 15px;
  font-weight: 600;
}
.btn-primary {
  background: var(--gradient);
  color: white;
}
.btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 4px 12px rgba(99,102,241,0.3);
  color: white;
}
.btn-secondary {
  background: var(--noir);
  color: white;
}
.btn-secondary:hover {
  background: var(--noir-soft);
  color: white;
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  background: var(--bg);
  border-color: var(--text-muted);
  color: var(--text);
}
.btn-danger {
  background: var(--danger);
  color: white;
}
.btn-block {
  width: 100%;
}

/* ═══════════════════════════════════════════════════════════════
   Hero
   ═══════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 24px 100px;
  background: var(--bg);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 800px 400px at 20% 30%, rgba(139,92,246,0.20), transparent 60%),
    radial-gradient(ellipse 800px 400px at 80% 60%, rgba(109,40,217,0.15), transparent 60%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
  color: var(--text);
}
.grad {
  background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 50%, #c4b5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: 19px;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.hero-trust {
  font-size: 13px;
  color: var(--text-subtle);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hero-trust .dot {
  width: 6px;
  height: 6px;
  background: var(--success);
  border-radius: 50%;
}

/* ═══════════════════════════════════════════════════════════════
   Stats section
   ═══════════════════════════════════════════════════════════════ */
.stats-section {
  background: var(--bg-soft);
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}
.stat-card {
  text-align: center;
}
.stat-num {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
  background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label {
  font-size: 14px;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════════
   Section header générique
   ═══════════════════════════════════════════════════════════════ */
.section-header {
  text-align: center;
  margin-bottom: 48px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.section-eyebrow {
  display: inline-block;
  padding: 4px 12px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.section-header h2 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--text);
}
.section-sub {
  font-size: 17px;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════════
   Features
   ═══════════════════════════════════════════════════════════════ */
.features-section {
  padding: 80px 0;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.18s;
}
.feature:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  background: var(--surface-hover);
}
.feature-icon {
  font-size: 32px;
  margin-bottom: 16px;
}
.feature h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}
.feature p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════
   Steps (Comment ça marche)
   ═══════════════════════════════════════════════════════════════ */
.how-section {
  padding: 80px 0;
  background: var(--bg-soft);
}
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}
.step {
  text-align: center;
  padding: 24px;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--gradient-purple);
  color: white;
  border-radius: 50%;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(139,92,246,0.4);
}
.step h3 {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}
.step p {
  font-size: 14px;
  color: var(--text-muted);
}
.how-cta {
  text-align: center;
  margin-top: 16px;
}

/* ═══════════════════════════════════════════════════════════════
   Dashboard preview (image factice)
   ═══════════════════════════════════════════════════════════════ */
.preview-section {
  padding: 80px 0;
}
.preview-frame {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-width: 900px;
  margin: 0 auto;
}
.preview-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.preview-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.preview-dot.red { background: #ef4444; }
.preview-dot.yellow { background: #f59e0b; }
.preview-dot.green { background: #16a34a; }
.preview-url {
  margin-left: 16px;
  font-size: 12px;
  color: var(--text-muted);
  font-family: monospace;
}
.preview-content {
  padding: 32px;
}
.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.preview-card {
  background: var(--surface-hover);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
}
.preview-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  gap: 8px;
}
.preview-margin {
  background: var(--success-light);
  color: var(--success);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.preview-card-stats {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.preview-card-target {
  font-size: 12px;
  color: var(--text-muted);
  padding: 6px 10px;
  background: var(--accent-light);
  border-radius: 6px;
  text-align: center;
}
.preview-card-target strong {
  color: var(--accent);
  font-size: 14px;
}

/* ═══════════════════════════════════════════════════════════════
   CTA section
   ═══════════════════════════════════════════════════════════════ */
.cta-section {
  background: var(--gradient-purple);
  padding: 80px 0;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.1), transparent 70%);
  pointer-events: none;
}
.cta-section h2 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.cta-section p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 32px;
}
.cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-section .btn-primary {
  background: white;
  color: var(--accent);
}
.cta-section .btn-primary:hover {
  background: white;
  filter: brightness(1.05);
  color: var(--accent-hover);
}
.cta-section .btn-ghost {
  color: white;
  border-color: rgba(255,255,255,0.3);
}
.cta-section .btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: white;
  color: white;
}

/* ═══════════════════════════════════════════════════════════════
   Footer
   ═══════════════════════════════════════════════════════════════ */
.footer {
  background: var(--noir);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 24px;
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-logo {
  color: white;
  margin-bottom: 12px;
}
.footer-logo:hover { color: white; }
.footer-tag {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
}
.footer h4 {
  font-size: 14px;
  font-weight: 600;
  color: white;
  margin-bottom: 16px;
}
.footer a {
  display: block;
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  margin-bottom: 8px;
  transition: color 0.15s;
}
.footer a:hover { color: white; }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 13px;
  text-align: center;
  color: rgba(255,255,255,0.4);
}

/* ═══════════════════════════════════════════════════════════════
   Auth pages (login / signup)
   ═══════════════════════════════════════════════════════════════ */
.auth-page {
  min-height: 100vh;
  display: flex;
  background: var(--bg);
}
.auth-left {
  flex: 1;
  background: var(--gradient-purple);
  color: white;
  padding: 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.auth-left::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 300px at 20% 30%, rgba(255,255,255,0.15), transparent 60%),
    radial-gradient(ellipse 600px 300px at 80% 70%, rgba(255,255,255,0.08), transparent 60%);
  pointer-events: none;
}
.auth-left > * { position: relative; z-index: 1; }
.auth-left .logo {
  color: white;
  font-size: 24px;
  margin-bottom: 48px;
}
.auth-left .logo:hover { color: white; }
.auth-left h2 {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.auth-left p {
  font-size: 17px;
  opacity: 0.9;
  margin-bottom: 32px;
}
.auth-bullets {
  list-style: none;
}
.auth-bullets li {
  padding: 8px 0;
  font-size: 15px;
  opacity: 0.9;
  display: flex;
  align-items: center;
  gap: 12px;
}
.auth-bullets li::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  font-weight: 700;
}
.auth-right {
  flex: 1;
  padding: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-card {
  width: 100%;
  max-width: 420px;
}
.auth-card h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.auth-card .auth-sub {
  color: var(--text-muted);
  margin-bottom: 32px;
}
.form-group {
  margin-bottom: 16px;
}
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}
.form-input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  background: var(--surface);
  color: var(--text);
  transition: all 0.15s;
}
.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(139,92,246,0.15);
  background: var(--surface-hover);
}
.form-input::placeholder {
  color: var(--text-subtle);
}
.form-hint {
  font-size: 12px;
  color: var(--text-subtle);
  margin-top: 4px;
}
.auth-footer {
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
}

/* ═══════════════════════════════════════════════════════════════
   Dashboard layout
   ═══════════════════════════════════════════════════════════════ */
.app {
  display: flex;
  min-height: 100vh;
  background: var(--bg);
}
.sidebar {
  width: 240px;
  background: var(--noir);
  color: white;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
}
.sidebar .logo {
  color: white;
  font-size: 20px;
  padding: 0 8px;
  margin-bottom: 32px;
}
.sidebar .logo:hover { color: white; }
.sidebar-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s;
}
.sidebar-link:hover {
  background: rgba(255,255,255,0.05);
  color: white;
}
.sidebar-link.active {
  background: var(--accent);
  color: white;
}
.sidebar-link-icon {
  font-size: 16px;
  width: 20px;
  text-align: center;
}
.sidebar-user {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.sidebar-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: white;
}
.sidebar-user-info {
  flex: 1;
  overflow: hidden;
}
.sidebar-user-name {
  color: white;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar-user-plan {
  color: rgba(255,255,255,0.5);
  font-size: 11px;
}

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.topbar-app {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.topbar-app h1 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}
.topbar-credits {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
}
.credit-badge {
  background: var(--accent-light);
  color: var(--accent-hover);
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid rgba(139,92,246,0.3);
}
.daily-badge {
  background: var(--surface-hover);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.main-content {
  padding: 32px;
  flex: 1;
}

/* Cards de dashboard */
.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.dash-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: all 0.18s;
}
.dash-card:hover {
  border-color: var(--accent);
  background: var(--surface-hover);
}
.dash-card-label {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
  margin-bottom: 8px;
}
.dash-card-value {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}
.dash-card-sub {
  font-size: 12px;
  color: var(--text-subtle);
  margin-top: 4px;
}

/* Section panel */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.panel-title {
  font-size: 17px;
  font-weight: 600;
}
.panel-sub {
  color: var(--text-muted);
  font-size: 13px;
}

/* Cards de filtres dans dashboard */
.filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}
.filter-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  transition: all 0.18s;
}
.filter-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
  background: var(--surface-hover);
}
.filter-card.ignored { opacity: 0.4; }
.filter-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
.filter-card-title {
  font-size: 15px;
  font-weight: 600;
}
.filter-card-brand {
  font-size: 12px;
  color: var(--text-muted);
}
.filter-card-margin {
  background: var(--success-light);
  color: var(--success);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.filter-card-example {
  font-size: 12px;
  color: var(--text-subtle);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 10px;
  margin-bottom: 12px;
  font-style: italic;
}
.filter-card-stats {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.filter-card-stat {
  text-align: center;
  flex: 1;
}
.filter-card-stat-num {
  font-size: 16px;
  font-weight: 600;
}
.filter-card-stat-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.filter-card-target {
  margin-top: 12px;
  text-align: center;
  padding: 8px 12px;
  background: var(--accent-light);
  border-radius: 6px;
  font-size: 13px;
  color: var(--text-muted);
}
.filter-card-target strong {
  color: var(--accent);
  font-size: 16px;
  font-weight: 700;
}
.filter-card-actions {
  display: flex;
  gap: 6px;
  margin-top: 12px;
}
.filter-card-actions .btn {
  flex: 1;
  padding: 8px 8px;
  font-size: 12px;
}

/* ═══════════════════════════════════════════════════════════════
   Pricing
   ═══════════════════════════════════════════════════════════════ */
.pricing-section {
  padding: 64px 0;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  transition: all 0.18s;
}
.price-card:hover {
  border-color: var(--border-strong);
  background: var(--surface-hover);
}
.price-card.featured {
  border: 2px solid var(--accent);
  box-shadow: var(--shadow-lg);
  transform: scale(1.02);
  background: linear-gradient(180deg, rgba(139,92,246,0.05) 0%, var(--surface) 100%);
}
.price-badge {
  position: absolute;
  top: -10px;
  right: 24px;
  background: var(--gradient-purple);
  color: white;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(139,92,246,0.4);
}
.price-amount {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
  color: var(--text);
}
.price-amount span {
  font-size: 16px;
  color: var(--text-muted);
  font-weight: 400;
}
.price-desc {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 24px;
}
.price-features {
  list-style: none;
  margin-bottom: 24px;
}
.price-features li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border);
}
.price-features li:last-child { border-bottom: none; }
.price-features li::before {
  content: "✓";
  color: var(--success);
  font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════════
   FAQ
   ═══════════════════════════════════════════════════════════════ */
.faq-section {
  padding: 64px 0;
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-question {
  padding: 18px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
  font-size: 15px;
  color: var(--text);
  transition: background 0.15s;
}
.faq-question:hover {
  background: var(--surface-hover);
}
.faq-question::after {
  content: "+";
  font-size: 24px;
  color: var(--text-muted);
  transition: transform 0.15s;
}
.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}
.faq-answer {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.25s ease;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}
.faq-item.open .faq-answer {
  padding: 0 24px 18px;
  max-height: 500px;
}

/* ═══════════════════════════════════════════════════════════════
   Page "Comment ça marche" (how-it-works)
   ═══════════════════════════════════════════════════════════════ */
.how-page {
  padding: 64px 0;
}
.how-step-detail {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  margin-bottom: 64px;
  align-items: start;
}
.how-step-num {
  width: 60px;
  height: 60px;
  background: var(--gradient);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(99,102,241,0.25);
}
.how-step-detail h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.how-step-detail p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.6;
}
.how-step-screen {
  background: var(--noir);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  font-family: monospace;
  font-size: 13px;
  color: var(--accent-hover);
  line-height: 1.6;
  white-space: pre-wrap;
}

/* ═══════════════════════════════════════════════════════════════
   Page de téléchargement
   ═══════════════════════════════════════════════════════════════ */
.download-page {
  padding: 80px 24px;
  text-align: center;
}
.download-inner {
  max-width: 600px;
  margin: 0 auto;
}
.download-icon {
  width: 96px;
  height: 96px;
  background: var(--gradient-purple);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: white;
  margin: 0 auto 24px;
  box-shadow: 0 8px 32px rgba(139,92,246,0.4), var(--shadow-glow);
}
.download-inner h1 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.download-inner > p {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 32px;
}
.download-btn {
  font-size: 17px;
  padding: 16px 32px;
  margin-bottom: 16px;
}
.download-meta {
  font-size: 13px;
  color: var(--text-subtle);
  margin-bottom: 48px;
}
.download-steps {
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.download-steps h3 {
  font-size: 17px;
  margin-bottom: 16px;
}
.download-steps ol {
  padding-left: 20px;
  color: var(--text-muted);
}
.download-steps li {
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.6;
}
.download-steps li strong {
  color: var(--text);
}

/* ═══════════════════════════════════════════════════════════════
   Page Paramètres
   ═══════════════════════════════════════════════════════════════ */
.settings-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
}
.settings-section h2 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text);
}
.danger-zone {
  border-color: rgba(239,68,68,0.3);
  background: linear-gradient(180deg, rgba(239,68,68,0.05) 0%, var(--surface) 100%);
}
.danger-zone h2 {
  color: var(--danger);
}
.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.settings-row:last-child {
  border-bottom: none;
}
.settings-row-label {
  font-size: 14px;
  font-weight: 500;
}
.settings-row-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ═══════════════════════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .hero h1 { font-size: 38px; }
  .hero-sub { font-size: 16px; }
  .nav-links { display: none; }
  .auth-page { flex-direction: column; }
  .auth-left { padding: 32px; }
  .auth-right { padding: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .sidebar {
    width: 100%;
    padding: 16px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    flex-direction: row;
    z-index: 10;
  }
  .sidebar .logo,
  .sidebar-user { display: none; }
  .sidebar-nav { flex-direction: row; justify-content: space-around; }
  .main { padding-bottom: 80px; }
  .section-header h2 { font-size: 28px; }
}
@media (max-width: 600px) {
  .nav-cta .btn-ghost { display: none; }
  .hero { padding: 48px 16px 64px; }
  .hero h1 { font-size: 30px; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
}
