/* ═══════════════════════════════════════════════════════════════════════
   TECHUB — HOME.CSS  Page d'accueil
═══════════════════════════════════════════════════════════════════════ */

/* ─── Hero ───────────────────────────────────────────────────────── */
.home-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
  padding: 48px 0 56px;
}
.home-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--teal);
  margin-bottom: 20px;
}
.home-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--teal);
}
.home-headline {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.08;
  letter-spacing: -.03em;
  margin-bottom: 20px;
}
.home-headline em {
  font-style: normal;
  color: var(--teal);
}
.home-lead {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 32px;
  max-width: 480px;
}
.home-cta-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.home-trust {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
}
.home-trust-dot {
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--teal);
  flex-shrink: 0;
}

/* ─── Hero visual — workflow card ───────────────────────────────── */
.home-visual {
  background: var(--navy);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 24px 60px rgba(11,30,51,.25);
  position: relative;
  overflow: hidden;
}
.home-visual::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  border-radius: 999px;
  background: rgba(15,110,86,.2);
}
.home-visual-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.45);
  margin-bottom: 20px;
}
.home-flow {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.home-flow-step {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 13px 16px;
  transition: background .2s;
}
.home-flow-step.active {
  background: rgba(15,110,86,.25);
  border-color: rgba(15,110,86,.4);
}
.home-flow-num {
  width: 28px; height: 28px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.5);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.home-flow-step.active .home-flow-num {
  background: var(--teal);
  color: #fff;
}
.home-flow-info strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,.9);
  margin-bottom: 2px;
}
.home-flow-info span {
  font-size: 12px;
  color: rgba(255,255,255,.45);
}
.home-flow-step.active .home-flow-info span {
  color: rgba(255,255,255,.7);
}

/* ─── Stats bar ─────────────────────────────────────────────────── */
.home-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 60px;
}
.home-stat {
  background: var(--surface);
  padding: 28px 32px;
  text-align: center;
}
.home-stat-num {
  display: block;
  font-size: 36px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 8px;
}
.home-stat-num span { color: var(--teal) }
.home-stat-label {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* ─── Section titre ─────────────────────────────────────────────── */
.home-section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--teal);
  margin-bottom: 10px;
}
.home-section-title {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -.02em;
  margin-bottom: 14px;
  line-height: 1.15;
}
.home-section-lead {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 560px;
}

/* ─── Fonctionnalités ───────────────────────────────────────────── */
.home-features {
  margin-bottom: 60px;
}
.home-features-header {
  text-align: center;
  margin-bottom: 40px;
}
.home-features-header .home-section-lead { margin: 0 auto }
.home-feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.home-feat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 2px 10px rgba(11,30,51,.04);
  transition: box-shadow .2s, transform .2s;
}
.home-feat-card:hover {
  box-shadow: 0 8px 30px rgba(11,30,51,.1);
  transform: translateY(-3px);
}
.home-feat-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--teal-lt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}
.home-feat-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.3;
}
.home-feat-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

/* ─── Workflow steps ────────────────────────────────────────────── */
.home-workflow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 60px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 2px 10px rgba(11,30,51,.04);
}
.home-wf-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.home-wf-step {
  display: flex;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.home-wf-step:last-child { border-bottom: 0 }
.home-wf-num {
  width: 36px; height: 36px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.home-wf-step:nth-child(even) .home-wf-num { background: var(--teal) }
.home-wf-body strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.home-wf-body span {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* Panneau dark workflow -->  */
.home-wf-preview {
  background: var(--navy);
  border-radius: 18px;
  padding: 24px;
}
.home-wf-preview-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.35);
  margin-bottom: 16px;
}
.home-wf-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-radius: 10px;
  margin-bottom: 8px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  font-size: 13px;
}
.home-wf-item:last-child { margin-bottom: 0 }
.home-wf-item span { color: rgba(255,255,255,.6) }
.home-wf-item-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
}
.wf-badge-teal { background: rgba(15,110,86,.3); color: #4ade80 }
.wf-badge-amber { background: rgba(217,119,6,.25); color: #fbbf24 }
.wf-badge-blue  { background: rgba(29,78,216,.25); color: #93c5fd }
.wf-badge-gray  { background: rgba(255,255,255,.08); color: rgba(255,255,255,.4) }

/* ─── CTA final ─────────────────────────────────────────────────── */
.home-cta {
  text-align: center;
  background: var(--navy);
  border-radius: 24px;
  padding: 56px 40px;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}
.home-cta::before, .home-cta::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  background: rgba(15,110,86,.15);
}
.home-cta::before { width: 300px; height: 300px; top: -100px; left: -80px }
.home-cta::after  { width: 200px; height: 200px; bottom: -80px; right: -60px }
.home-cta h2 {
  font-size: clamp(24px,3vw,36px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  position: relative; z-index: 1;
}
.home-cta p {
  font-size: 15px;
  color: rgba(255,255,255,.6);
  margin-bottom: 28px;
  position: relative; z-index: 1;
}
.home-cta .home-cta-group {
  justify-content: center;
  margin-bottom: 0;
  position: relative; z-index: 1;
}

/* ─── Bouton white ───────────────────────────────────────────────── */
.btn-white { background: #fff; color: var(--navy); border-color: #fff }
.btn-white:hover { background: #f0f2f5; border-color: #f0f2f5 }
.btn-outline { background: transparent; color: rgba(255,255,255,.8); border-color: rgba(255,255,255,.25) }
.btn-outline:hover { background: rgba(255,255,255,.08); color: #fff }

/* ─── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .home-hero    { grid-template-columns: 1fr; padding: 32px 0 40px }
  .home-visual  { display: none }
  .home-stats   { grid-template-columns: 1fr }
  .home-feat-grid { grid-template-columns: 1fr 1fr }
  .home-workflow  { grid-template-columns: 1fr }
  .home-wf-preview { display: none }
}
@media (max-width: 600px) {
  .home-feat-grid { grid-template-columns: 1fr }
  .home-stats     { border-radius: 14px }
}
