/* ==========================================================
   PILOTECSE — INTRODUCTION PEDAGOGIQUE MODULE ODJ
   Version : 1.0.2
   Objet :
   - améliorer l’entrée dans le module ODJ
   - rendre le bloc plus compact
   - centrer proprement le titre et l’introduction
   - améliorer la lisibilité du bloc "Bon à savoir"
   - conserver une cohérence sobre et crédible
   ========================================================== */

.pcse-odj-intro {
  margin: 0 0 22px 0;
}

.pcse-odj-intro__inner {
  background: linear-gradient(180deg, #f9fbfd 0%, #ffffff 100%);
  border: 1px solid #d9e5ef;
  border-top: 4px solid #0b72b5;
  border-radius: 18px;
  padding: 22px 24px 18px;
  box-shadow: 0 6px 18px rgba(12, 45, 72, 0.05);
  box-sizing: border-box;
}

.pcse-odj-intro__eyebrow {
  display: inline-block;
  margin: 0 auto 10px;
  padding: 5px 12px;
  background: #eaf4fb;
  color: #0b72b5;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  border-radius: 999px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.pcse-odj-intro__title {
  margin: 0 0 10px 0;
  color: #17324a;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 800;
  text-align: center;
}

.pcse-odj-intro__text {
  margin: 0 auto 18px auto;
  color: #355066;
  font-size: 16px;
  line-height: 1.6;
  max-width: 940px;
  text-align: center;
}

.pcse-odj-intro__steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 16px 0;
}

.pcse-odj-intro__step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #ffffff;
  border: 1px solid #dbe7f0;
  border-radius: 14px;
  padding: 16px 14px;
  min-height: 100%;
  box-sizing: border-box;
}

.pcse-odj-intro__step-number {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #0b72b5;
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  line-height: 32px;
  text-align: center;
}

.pcse-odj-intro__step-content {
  min-width: 0;
}

.pcse-odj-intro__step-title {
  margin: 0 0 5px 0;
  color: #17324a;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.pcse-odj-intro__step-text {
  margin: 0;
  color: #51697d;
  font-size: 14px;
  line-height: 1.5;
}

.pcse-odj-intro__reassurance {
  display: block;
  clear: both;
  width: 100%;
  margin-top: 0;
  padding: 15px 18px;
  background: #fff8ee;
  border: 1px solid #ecd4a8;
  border-left: 4px solid #d9a441;
  border-radius: 12px;
  color: #5a4a30;
  font-size: 14px;
  line-height: 1.65;
  box-sizing: border-box;
}

.pcse-odj-intro__reassurance strong {
  display: inline;
  color: #3f331f;
  font-weight: 700;
}

/* ----------------------------------------------------------
   Ajustements Gutenberg / contenu
   ---------------------------------------------------------- */
.entry-content .pcse-odj-intro h2,
.post-content .pcse-odj-intro h2,
.site-main .pcse-odj-intro h2 {
  margin-top: 0;
}

/* ----------------------------------------------------------
   Harmonisation visuelle avec la page ODJ
   ---------------------------------------------------------- */
.page .pcse-odj-intro + .forminator-ui,
.page .pcse-odj-intro + div .forminator-ui {
  margin-top: 0;
}

/* ----------------------------------------------------------
   Responsive
   ---------------------------------------------------------- */
@media (max-width: 991px) {
  .pcse-odj-intro__inner {
    padding: 20px 20px 17px;
  }

  .pcse-odj-intro__title {
    font-size: 22px;
  }

  .pcse-odj-intro__text {
    font-size: 15px;
    max-width: 100%;
  }

  .pcse-odj-intro__steps {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .pcse-odj-intro__reassurance {
    padding: 14px 16px;
  }
}

@media (max-width: 640px) {
  .pcse-odj-intro {
    margin-bottom: 18px;
  }

  .pcse-odj-intro__inner {
    padding: 18px 15px 15px;
    border-radius: 14px;
  }

  .pcse-odj-intro__eyebrow {
    font-size: 11px;
    padding: 5px 10px;
    margin-bottom: 8px;
  }

  .pcse-odj-intro__title {
    font-size: 21px;
    line-height: 1.25;
    margin-bottom: 8px;
  }

  .pcse-odj-intro__text {
    font-size: 14px;
    line-height: 1.55;
    margin-bottom: 15px;
  }

  .pcse-odj-intro__step {
    padding: 14px 12px;
    gap: 10px;
    border-radius: 12px;
  }

  .pcse-odj-intro__step-number {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
    line-height: 30px;
    font-size: 14px;
  }

  .pcse-odj-intro__step-title {
    font-size: 15px;
  }

  .pcse-odj-intro__step-text,
  .pcse-odj-intro__reassurance {
    font-size: 13px;
    line-height: 1.6;
  }

  .pcse-odj-intro__reassurance {
    padding: 13px 14px;
  }
}