/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}

/* Accent — s'adapte automatiquement au thème actif */
.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--accent-glow2);
  color: var(--on-accent);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: var(--off);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--dark);
  color: #fff;
}
.btn-dark:hover {
  background: var(--accent);
  color: var(--on-accent);
  transform: translateY(-2px);
}

.btn-ghost-dark {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
}
.btn-ghost-dark:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-2px);
}

/* ============================================================
   BADGES
   ============================================================ */
.badge-new {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 100px;
}

.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,201,122,0.10);
  border: 1px solid rgba(0,201,122,0.25);
  color: var(--green);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
}
.badge-live .dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: livepulse 1.8s ease-in-out infinite;
}

.badge-section {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--off);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}

/* ============================================================
   UI CARDS (dashboard preview hero)
   ============================================================ */
.ui-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 20px rgba(0,0,0,0.06), 0 0 0 0.5px rgba(0,0,0,0.04);
  padding: 20px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.ui-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
}

.ui-card-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 6px;
}
.ui-card-value {
  font-family: var(--font-head);
  font-size: 34px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -1.5px;
  line-height: 1;
}
.ui-card-delta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(0,201,122,0.12);
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  margin-top: 8px;
}

.sparkline {
  margin-top: 14px;
  width: 100%;
  height: 44px;
  overflow: hidden;
}
.sparkline polyline {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.position-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.position-row:last-child { border-bottom: none; }
.position-ticker {
  font-family: var(--font-head);
  font-weight: 700;
  width: 46px;
  font-size: 13px;
}
.position-bar {
  flex: 1;
  height: 4px;
  background: var(--off);
  border-radius: 2px;
  overflow: hidden;
}
.position-bar-fill {
  height: 100%;
  border-radius: 2px;
  background: var(--accent);
  transition: background 0.3s;
}
.position-bar-fill.green { background: var(--green); }
.position-bar-fill.red   { background: #ff3b6b; }
.position-pct {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  width: 36px;
  text-align: right;
}

/* ============================================================
   FEATURE ROW (dark section)
   ============================================================ */
.feature-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-dark);
  cursor: default;
}
.feature-row:last-child { border-bottom: none; }

.feature-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: background 0.2s;
}
.feature-row:hover .feature-icon {
  background: var(--accent-bg);
  border-color: var(--accent-bdr);
}

.feature-text h4 {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.feature-text p {
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  line-height: 1.55;
}

/* ============================================================
   STAT CARDS (dark section)
   ============================================================ */
.stat-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: all 0.2s;
}
.stat-card:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.14);
}
.stat-value {
  font-family: var(--font-head);
  font-size: 48px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-value span { color: var(--accent); }
.stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  font-weight: 500;
}

/* ============================================================
   PRICING CARDS
   ============================================================ */
.pricing-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}
.pricing-card:hover {
  border-color: var(--accent-bdr);
  box-shadow: 0 8px 40px var(--accent-bg);
  transform: translateY(-3px);
}
.pricing-card.featured {
  background: var(--dark);
  border-color: transparent;
  box-shadow: 0 16px 60px rgba(0,0,0,0.2);
}
.pricing-card.featured:hover {
  box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 0 0 1px var(--accent-bdr);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--on-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 5px 14px;
  border-radius: 100px;
  white-space: nowrap;
}

.plan-name {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}
.featured .plan-name { color: #fff; }

.plan-desc {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
  line-height: 1.5;
}
.featured .plan-desc { color: rgba(255,255,255,0.45); }

.plan-price {
  font-family: var(--font-head);
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -2px;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
}
.featured .plan-price { color: #fff; }

.plan-price sup {
  font-size: 22px;
  font-weight: 700;
  vertical-align: top;
  margin-top: 10px;
  display: inline-block;
}

.plan-period {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 28px;
}
.featured .plan-period { color: rgba(255,255,255,0.4); }

.plan-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 24px;
}
.featured .plan-divider { background: rgba(255,255,255,0.1); }

.plan-features {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}
.plan-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.4;
}
.featured .plan-feature { color: rgba(255,255,255,0.8); }

.plan-feature .check {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  background: rgba(0,201,122,0.12);
  border: 1px solid rgba(0,201,122,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.plan-feature .check svg {
  width: 9px;
  height: 9px;
  stroke: var(--green);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ============================================================
   TESTIMONIAL CARDS
   ============================================================ */
.testimonial-card {
  background: var(--off);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s;
}
.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

.testimonial-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 15px;
}
.testimonial-quote {
  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: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}
.testimonial-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}
.testimonial-role {
  font-size: 12px;
  color: var(--muted);
}

/* ============================================================
   BLOG CARDS
   ============================================================ */
.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  border-color: var(--accent-bdr);
}
.blog-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--off);
}
.blog-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-card-cat {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.blog-card-title {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 10px;
  flex: 1;
}
.blog-card-excerpt {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 16px;
}
.blog-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  transition: gap 0.2s;
}
.blog-card:hover .blog-read-more { gap: 9px; }
