/*
 * IA & Marketing Editorial Blocks
 * Chronologies : iam_timeline et iam_timeline_item.
 */

.iam-timeline,
.iam-timeline *,
.iam-timeline-item,
.iam-timeline-item * {
  box-sizing: border-box;
}

.iam-timeline {
  margin: 2rem 0;
  padding: 1.5rem;
  border: 1px solid #3a4049;
  border-radius: 14px;
  background: #1f2024;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.18);
}

.iam-timeline,
.iam-timeline h1,
.iam-timeline h2,
.iam-timeline h3,
.iam-timeline h4,
.iam-timeline h5,
.iam-timeline h6,
.iam-timeline p,
.iam-timeline li,
.iam-timeline strong,
.iam-timeline span,
.iam-timeline a {
  color: #f5f7fa !important;
}

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

.iam-timeline__eyebrow {
  margin: 0 0 0.65rem;
  color: #a9d6ff !important;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
}

.iam-timeline__title {
  margin: 0 0 0.55rem;
  color: #f5f7fa !important;
  font-size: 1.35rem;
  line-height: 1.3;
}

.iam-timeline__intro {
  margin: 0;
  color: #c9d1d9 !important;
  line-height: 1.6;
}

.iam-timeline__list {
  position: relative;
  display: grid;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.iam-timeline__list::before {
  position: absolute;
  top: 0.65rem;
  bottom: 0.65rem;
  left: 2rem;
  width: 2px;
  content: "";
  background: #3a4049;
}

.iam-timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.iam-timeline-item__marker {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 999px;
  background: #2878b9;
  color: #ffffff !important;
  font-size: 0.9rem;
  line-height: 1;
}

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

.iam-timeline-item__body {
  min-width: 0;
  padding: 1rem 1.1rem;
  border: 1px solid #3a4049;
  border-radius: 10px;
  background: #25282e;
}

.iam-timeline-item__date {
  margin: 0 0 0.45rem;
  color: #a9d6ff !important;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
}

.iam-timeline-item__title {
  margin: 0 0 0.6rem;
  color: #f5f7fa !important;
  font-size: 1.12rem;
  line-height: 1.35;
}

.iam-timeline-item__status {
  margin: 0 0 0.75rem;
  color: #c9d1d9 !important;
  font-size: 0.92rem;
  line-height: 1.5;
}

.iam-timeline-item__status strong {
  color: #f5f7fa !important;
}

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

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

.iam-timeline-item__content p,
.iam-timeline-item__content li {
  color: #c9d1d9 !important;
  line-height: 1.6;
}

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

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

.iam-timeline-item__content a {
  color: #a9d6ff !important;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.iam-timeline-item--green .iam-timeline-item__marker {
  background: #498a4b;
}

.iam-timeline-item--green .iam-timeline-item__date {
  color: #b8e6ba !important;
}

.iam-timeline-item--orange .iam-timeline-item__marker {
  background: #b95c23;
}

.iam-timeline-item--orange .iam-timeline-item__date {
  color: #ffd0ad !important;
}

.iam-timeline-item--red .iam-timeline-item__marker {
  background: #b23a2d;
}

.iam-timeline-item--red .iam-timeline-item__date {
  color: #ffc0b9 !important;
}

.iam-timeline-item--neutral .iam-timeline-item__marker {
  background: #64707d;
}

.iam-timeline-item--neutral .iam-timeline-item__date {
  color: #c9d1d9 !important;
}

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

  .iam-timeline__title {
    font-size: 1.2rem;
  }

  .iam-timeline-item {
    grid-template-columns: 2.1rem minmax(0, 1fr);
    gap: 0.75rem;
  }

  .iam-timeline__list::before {
    left: 1.9rem;
  }

  .iam-timeline-item__marker {
    width: 2.1rem;
    height: 2.1rem;
  }

  .iam-timeline-item__body {
    padding: 0.9rem;
  }
}

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