/* ==========================================================
   KALIFY — Page Migration Power Platform (Tour de Contrôle)
   Complète styles.css + gouvernance.css
   ========================================================== */

/* ---------- FEATURES ALTERNÉES (texte + capture) ---------- */
.mig-feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  padding: clamp(36px, 5vw, 56px) 0;
  border-bottom: 1px solid var(--line);
}
.mig-feature:last-of-type { border-bottom: none; }
.mig-feature.flip .mig-media { order: -1; }

.mig-feature .feature-tag {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mint-text);
  margin-bottom: 12px;
}
.section-dark .mig-feature .feature-tag { color: var(--mint); }
.mig-feature h3 {
  font-size: var(--fs-2xl);
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 18px;
}
.mig-feature ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.mig-feature li {
  position: relative;
  padding-left: 24px;
  font-size: var(--fs-sm);
  color: var(--body);
}
.mig-feature li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 9px; height: 9px;
  background: var(--mint);
  border-radius: 2px;
}
.mig-feature li strong { color: var(--ink); }

.mig-media figure { margin: 0; }
.mig-media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.mig-media figcaption {
  margin-top: 10px;
  font-size: var(--fs-xs);
  color: var(--grey);
  font-style: italic;
  text-align: center;
}
.mig-guide-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mig-guide-pair img { background: var(--white); }

/* ---------- PIPELINE 11 ÉTAPES ---------- */
.mig-pipeline {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.mig-steps { list-style: none; counter-reset: mstep; margin: 0; padding: 0; display: grid; gap: 9px; }
.mig-steps li {
  counter-increment: mstep;
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: var(--fs-sm);
  color: var(--ink);
  font-weight: 500;
}
.mig-steps li::before {
  content: counter(mstep);
  flex: 0 0 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--mint-tint);
  border: 1px solid var(--mint);
  color: var(--mint-text);
  font-size: var(--fs-xs);
  font-weight: 700;
}

/* ---------- TABLEAU AVANT / APRÈS ---------- */
.mig-compare { overflow-x: auto; }
.mig-compare table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.mig-compare th, .mig-compare td { padding: 15px 18px; text-align: left; font-size: var(--fs-sm); }
.mig-compare thead th {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--soft-2);
  border-bottom: 1px solid var(--line);
  color: var(--grey);
}
.mig-compare thead th.manual { color: #B45309; }
.mig-compare thead th.tool { color: var(--mint-text); }
.mig-compare tbody tr { border-bottom: 1px solid var(--line); }
.mig-compare tbody tr:last-child { border-bottom: none; }
.mig-compare td:first-child { font-weight: 600; color: var(--ink); }
.mig-compare td:nth-child(2) { color: var(--body); }
.mig-compare td:nth-child(3) { color: var(--ink); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 980px) {
  .mig-feature, .mig-pipeline { grid-template-columns: 1fr; }
  .mig-feature.flip .mig-media { order: 0; }
}
