/*
 * IA & Marketing Editorial Blocks
 * Étapes séquentielles : iam_steps et iam_step.
 */

.iam-steps,
.iam-steps *,
.iam-step,
.iam-step * {
  box-sizing: border-box;
}

.iam-steps {
  margin: 2rem 0;
  color: #1f2024 !important;
}

.iam-steps,
.iam-steps h1,
.iam-steps h2,
.iam-steps h3,
.iam-steps h4,
.iam-steps h5,
.iam-steps h6,
.iam-steps p,
.iam-steps li,
.iam-steps strong,
.iam-steps em,
.iam-steps span,
.iam-steps a {
  color: #1f2024 !important;
}

.iam-steps__header {
  margin: 0 0 1.5rem;
}

.iam-steps__title {
  margin: 0 0 0.65rem;
  font-size: 1.45rem;
  line-height: 1.3;
}

.iam-steps__intro {
  margin: 0;
  line-height: 1.65;
}

.iam-steps__list {
  position: relative;
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: iam-step;
}

.iam-step {
  position: relative;
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  gap: 1rem;
  counter-increment: iam-step;
  min-width: 0;
  padding: 1.4rem;
  border: 1px solid #e4e8ed;
  border-radius: 14px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.18);
}

.iam-step__number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
}

.iam-step__number::before {
  content: counter(iam-step);
}

.iam-step__body {
  min-width: 0;
}

.iam-step__heading {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 0.75rem;
}

.iam-step__icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  font-size: 0.95rem;
}

.iam-step__icon i {
  color: inherit !important;
  line-height: 1;
}

.iam-step__title {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.3;
}

.iam-step__content > :first-child {
  margin-top: 0;
}

.iam-step__content > :last-child {
  margin-bottom: 0;
}

.iam-step__content ul,
.iam-step__content ol {
  margin: 1rem 0;
  padding-left: 1.25rem;
}

.iam-step__content li + li {
  margin-top: 0.45rem;
}

.iam-step__content a {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.iam-step__check {
  margin: 1rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(31, 32, 36, 0.14);
  font-size: 0.94rem;
  line-height: 1.55;
}

.iam-step--blue {
  border-color: #dbeaf7;
  background: #f7fbff;
}

.iam-step--blue .iam-step__number,
.iam-step--blue .iam-step__icon {
  background: rgba(40, 120, 185, 0.12);
  color: #2878b9 !important;
}

.iam-step--green {
  border-color: #dcebdc;
  background: #f7fcf7;
}

.iam-step--green .iam-step__number,
.iam-step--green .iam-step__icon {
  background: rgba(73, 138, 75, 0.12);
  color: #498a4b !important;
}

.iam-step--orange {
  border-color: #f2dccd;
  background: #fff8f3;
}

.iam-step--orange .iam-step__number,
.iam-step--orange .iam-step__icon {
  background: rgba(185, 92, 35, 0.12);
  color: #b95c23 !important;
}

.iam-step--red {
  border-color: #f1d2cf;
  background: #fff6f4;
}

.iam-step--red .iam-step__number,
.iam-step--red .iam-step__icon {
  background: rgba(178, 58, 45, 0.12);
  color: #b23a2d !important;
}

@media (max-width: 640px) {
  .iam-steps {
    margin: 1.5rem 0;
  }

  .iam-steps__header {
    margin-bottom: 1.125rem;
  }

  .iam-steps__title {
    font-size: 1.25rem;
  }

  .iam-step {
    grid-template-columns: 2.75rem minmax(0, 1fr);
    gap: 0.75rem;
    padding: 1.125rem;
  }

  .iam-step__number {
    width: 2.35rem;
    height: 2.35rem;
  }

  .iam-step__title {
    font-size: 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .iam-step,
  .iam-step * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }
}