/*
 * IA & Marketing Editorial Blocks
 * Études de cas : iam_case_study.
 *
 * Direction visuelle :
 * - conteneur anthracite ;
 * - bandeau bleu nuit ;
 * - corps sombre légèrement contrasté ;
 * - texte principal blanc cassé ;
 * - accents colorés selon le ton.
 */

.iam-case-study,
.iam-case-study * {
  box-sizing: border-box;
}

/*
 * Conteneur.
 */
.iam-case-study {
  margin: 2rem 0;
  overflow: hidden;
  border: 1px solid #3a4049;
  border-radius: 14px;
  background: #25282e;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.18);
}

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

/*
 * Bandeau supérieur.
 */
.iam-case-study__hero {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  border-bottom: 1px solid #3a4049;
  background: #172b4d;
}

.iam-case-study__icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 10px;
  font-size: 1.15rem;
  line-height: 1;
}

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

.iam-case-study__hero-content {
  min-width: 0;
}

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

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

/*
 * Corps et sections.
 */
.iam-case-study__body {
  padding: 1.5rem;
}

.iam-case-study__section {
  padding: 0 0 0 1.25rem;
  border-left: 4px solid #2878b9;
}

.iam-case-study__section + .iam-case-study__section {
  margin-top: 1.3rem;
  padding-top: 1.3rem;
  border-top: 1px solid rgba(245, 247, 250, 0.14);
}

.iam-case-study__section-label {
  margin: 0 0 0.55rem;
  color: #a9d6ff !important;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
}

.iam-case-study__section > p:last-child {
  margin-bottom: 0;
}

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

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

.iam-case-study__content p,
.iam-case-study__content li {
  color: #c9d1d9 !important;
}

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

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

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

/*
 * Bloc de conclusion.
 */
.iam-case-study__takeaway {
  padding: 1rem 1rem 1rem 1.25rem;
  border-top: 1px solid rgba(245, 247, 250, 0.14);
  border-right: 1px solid #3a4049;
  border-bottom: 1px solid #3a4049;
  border-left-width: 4px;
  border-radius: 0 10px 10px 0;
  background: rgba(169, 214, 255, 0.08);
}

/*
 * Variantes de ton : bleu.
 */
.iam-case-study--blue .iam-case-study__icon {
  background: rgba(40, 120, 185, 0.20);
  color: #a9d6ff !important;
}

.iam-case-study--blue .iam-case-study__section {
  border-left-color: #2878b9;
}

.iam-case-study--blue .iam-case-study__section-label {
  color: #a9d6ff !important;
}

.iam-case-study--blue .iam-case-study__takeaway {
  border-left-color: #2878b9;
  background: rgba(169, 214, 255, 0.08);
}

/*
 * Variantes de ton : vert.
 */
.iam-case-study--green .iam-case-study__icon {
  background: rgba(73, 138, 75, 0.25);
  color: #b8e6ba !important;
}

.iam-case-study--green .iam-case-study__section {
  border-left-color: #498a4b;
}

.iam-case-study--green .iam-case-study__section-label {
  color: #b8e6ba !important;
}

.iam-case-study--green .iam-case-study__takeaway {
  border-left-color: #498a4b;
  background: rgba(184, 230, 186, 0.08);
}

/*
 * Variantes de ton : orange.
 */
.iam-case-study--orange .iam-case-study__icon {
  background: rgba(185, 92, 35, 0.25);
  color: #ffd0ad !important;
}

.iam-case-study--orange .iam-case-study__section {
  border-left-color: #b95c23;
}

.iam-case-study--orange .iam-case-study__section-label {
  color: #ffd0ad !important;
}

.iam-case-study--orange .iam-case-study__takeaway {
  border-left-color: #b95c23;
  background: rgba(255, 208, 173, 0.08);
}

/*
 * Variantes de ton : neutre.
 */
.iam-case-study--neutral .iam-case-study__icon {
  background: rgba(201, 209, 217, 0.15);
  color: #c9d1d9 !important;
}

.iam-case-study--neutral .iam-case-study__section {
  border-left-color: #64707d;
}

.iam-case-study--neutral .iam-case-study__section-label {
  color: #c9d1d9 !important;
}

.iam-case-study--neutral .iam-case-study__takeaway {
  border-left-color: #64707d;
  background: rgba(201, 209, 217, 0.08);
}

/*
 * Mobile.
 */
@media (max-width: 640px) {
  .iam-case-study {
    margin: 1.5rem 0;
  }

  .iam-case-study__hero,
  .iam-case-study__body {
    padding: 1.125rem;
  }

  .iam-case-study__title {
    font-size: 1.2rem;
  }

  .iam-case-study__section {
    padding-left: 1rem;
  }

  .iam-case-study__section + .iam-case-study__section {
    margin-top: 1.125rem;
    padding-top: 1.125rem;
  }

  .iam-case-study__takeaway {
    padding-left: 1rem;
  }
}

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