/* ============================================
   ALGORIS IT — process.css
   Section "Notre méthode" — Timeline 4 étapes.
   ============================================ */


/* ─── Section ─── */

.process {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

/* Ligne bleue décorative top */
.process::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
  pointer-events: none;
}


/* ─── Timeline container ─── */

.process__timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 720px;
  margin: 0 auto;
  position: relative;
}


/* ─── Step ─── */

.process__step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: var(--space-xl);
  position: relative;
}


/* ─── Number column + connecting line ─── */

.process__step-number {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.process__step-number > span {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  transition:
    border-color var(--transition-base),
    background var(--transition-base),
    box-shadow var(--transition-base);
}

.process__step:hover .process__step-number > span {
  border-color: var(--accent);
  background: var(--accent-glow);
  box-shadow: 0 0 24px rgba(59, 130, 246, 0.15);
}

/* Vertical connecting line */
.process__step-line {
  width: 1px;
  flex: 1;
  background: linear-gradient(to bottom, var(--border-accent), var(--border));
  margin-top: var(--space-sm);
  opacity: 0.5;
}


/* ─── Step content ─── */

.process__step-content {
  padding-bottom: var(--space-3xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

/* Last step — no bottom padding */
.process__step:last-child .process__step-content {
  padding-bottom: 0;
}

/* Icon */
.process__step-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--accent-glow);
  border: 1px solid rgba(59, 130, 246, 0.15);
  color: var(--accent);
  transition:
    box-shadow var(--transition-base),
    border-color var(--transition-base);
}

.process__step:hover .process__step-icon {
  border-color: var(--border-accent);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.12);
}

.process__step-icon svg {
  width: 18px;
  height: 18px;
}

/* Title */
.process__step-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

/* Text */
.process__step-text {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 540px;
}


/* ─── Light mode ─── */

:root[data-theme="light"] .process {
  background: var(--bg-secondary);
}

:root[data-theme="light"] .process__step-number > span {
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

:root[data-theme="light"] .process__step:hover .process__step-number > span {
  background: var(--accent-glow);
  box-shadow: 0 4px 16px rgba(37,99,235,0.1);
}


/* ─── Responsive ─── */

@media (max-width: 700px) {
  .process__step {
    grid-template-columns: 40px 1fr;
    gap: var(--space-md);
  }

  .process__step-number > span {
    width: 36px;
    height: 36px;
    font-size: 0.65rem;
  }

  .process__step-content { padding-bottom: var(--space-2xl); }
  .process__step-title { font-size: 1rem; }
  .process__step-text { font-size: 0.85rem; }
  .process__step-icon { width: 34px; height: 34px; }
  .process__step-icon svg { width: 15px; height: 15px; }
}

@media (max-width: 400px) {
  .process__step { grid-template-columns: 32px 1fr; gap: var(--space-sm); }
  .process__step-number > span { width: 32px; height: 32px; font-size: 0.6rem; }
}
