/* ═══════════════════════════ HOME PAGE ═══════════════════════════ */

.home-section {
  padding: 0 0 64px;
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
}

.section-heading {
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 36px;
  letter-spacing: -0.03em;
  text-align: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 0 64px;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

/* Ambient glow derrière le hero */
.hero::before {
  content: '';
  position: absolute;
  top: 10%; left: 50%;
  transform: translateX(-50%);
  width: 640px; height: 420px;
  background: radial-gradient(ellipse at center, var(--accent-glow), transparent 60%);
  pointer-events: none;
  z-index: 0;
  filter: blur(40px);
}

.hero-inner { width: 100%; position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid var(--accent-ring);
  margin-bottom: 24px;
}

.hero-sitename {
  display: block;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--accent);
  -webkit-text-fill-color: var(--accent);
  letter-spacing: -0.03em;
  margin-bottom: 4px;
  font-weight: 800;
}

.hero-title {
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--text) 35%, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 620px;
  margin: 0 auto 20px;
  letter-spacing: -0.005em;
}
.hero-desc strong { color: var(--text); font-weight: 600; }

.hero-tagline {
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}

.hero-sub {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 600px;
  margin: 0 auto 36px;
  letter-spacing: -0.005em;
}
.hero-sub strong { color: var(--text); font-weight: 600; }

.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

.hero-visual { display: none; }

/* ── Stats bar ───────────────────────────────────────────── */
.home-stats {
  display: flex;
  align-items: center;
  background: var(--sidebar-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 32px;
  margin: 0 auto 64px;
  max-width: 900px;
  gap: 0;
  box-shadow: var(--shadow-sm);
}
.hstat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}
.hstat-val {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.hstat-plus { font-size: 18px; color: var(--accent); font-weight: 600; }
.hstat-lbl  {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}
.hstat-sep  { width: 1px; background: var(--border); height: 42px; flex-shrink: 0; }

/* ── Feature cards ───────────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 960px;
  margin: 0 auto;
}

.feature-card {
  background: var(--sidebar-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.feature-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(400px at top right, var(--accent-soft), transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.feature-card:hover {
  border-color: var(--accent-ring);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.feature-card:hover::after { opacity: 1; }

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

/* Neutralise les couleurs inline foncées en thème clair — toutes les icônes
   adoptent alors un style tint accent pour rester lisibles. */
[data-theme="light"] .feature-icon {
  background: var(--accent-soft) !important;
  color: var(--accent) !important;
  border: 1px solid var(--accent-ring);
}

.feature-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 1;
}
.feature-card p  {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
  position: relative;
  z-index: 1;
}
.feature-card p strong { color: var(--text); font-weight: 600; }

/* ── How it works steps ──────────────────────────────────── */
.steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 720px;
  margin: 0 auto;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--sidebar-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  transition: border-color 0.2s;
}
.step:hover { border-color: var(--border-strong); }

.step-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-hover), var(--accent));
  color: var(--accent-contrast);
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-accent);
}

.step-content h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.step-content p  { font-size: 13px; color: var(--text-muted); line-height: 1.65; }
.step-content p a { color: var(--accent); }
.step-content p strong { color: var(--text); font-weight: 600; }

.step-arrow {
  display: flex;
  justify-content: center;
  color: var(--text-dim);
  padding: 0 0 0 40px;
}

/* ── Apps grid ───────────────────────────────────────────── */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 960px;
  margin: 0 auto;
}

.app-card {
  background: var(--sidebar-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: all 0.15s;
  color: var(--text-muted);
}
.app-card:hover {
  border-color: var(--accent-ring);
  background: var(--surface);
  text-decoration: none;
  color: var(--text);
  transform: translateY(-1px);
}
.app-card div    { display: flex; flex-direction: column; gap: 2px; }
.app-card strong { font-size: 13px; font-weight: 700; color: var(--text); letter-spacing: -0.01em; }
.app-card span   { font-size: 11px; color: var(--text-muted); }

/* ── Home responsive ─────────────────────────────────────── */
@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .apps-grid    { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .hero         { padding: 40px 0 48px; text-align: center; }
  .hero-cta     { justify-content: center; }
  .home-stats   { flex-wrap: wrap; padding: 20px; gap: 16px; }
  .hstat        { min-width: 40%; }
  .hstat-sep    { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .apps-grid    { grid-template-columns: 1fr 1fr; }
  .steps        { gap: 16px; }
  .step         { flex-direction: column; gap: 10px; }
  .step-arrow   { display: none; }
}
