/* Bannière IT : image + cadrage (arrondi, taille = style.css / cours.css) */
.banner-cours {
  background-image: url("images/it.jpg");
  background-position: 58% center;
}

/* Voile un peu plus léger que les autres pages (0.6 par défaut dans cours.css) */
.banner-cours::before {
  background: rgba(0, 0, 0, 0.4);
}

body.page-cours .banner-cours-contenu p {
  margin-bottom: 24px;
}

body.page-cours {
  background-color: #f9f5f1;
}

body.page-cours .banner-cours {
  margin-bottom: 12px;
}

/* --- Bloc « Pourquoi l'anglais est essentiel dans l'IT » (sous la bannière) --- */
.it-essentiel {
  --it-navy: #1a2b48;
  --it-icon-blue: #125a82;
  --it-text: #4a5568;
  padding: clamp(0.75rem, 2vw, 1.35rem) clamp(1.25rem, 3vw, 2rem) clamp(1rem, 2vw, 1.5rem);
}

.it-essentiel-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: clamp(1.75rem, 3.5vw, 3rem);
  max-width: 1160px;
  margin: 0 auto;
}

.it-essentiel-media {
  flex: 1 1 38%;
  min-width: min(100%, 280px);
}

.it-essentiel-media img {
  display: block;
  width: 100%;
  max-width: 520px;
  height: auto;
  border-radius: 14px;
  object-fit: cover;
  object-position: center;
}

.it-essentiel-content {
  flex: 1 1 52%;
  min-width: min(100%, 300px);
}

.it-essentiel-content h2 {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--it-navy);
  margin: 0 0 clamp(1rem, 2vw, 1.35rem);
}

.it-essentiel-text p {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(0.92rem, 1.15vw, 1rem);
  font-weight: 400;
  line-height: 1.55;
  color: var(--it-text);
  margin: 0 0 0.85rem;
  text-align: left;
}

.it-essentiel-text p:last-child {
  margin-bottom: clamp(1.25rem, 2.5vw, 1.75rem);
}

.it-essentiel-icons {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: space-between;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: clamp(0.75rem, 1.5vw, 1rem) 0 0;
  border-top: 1px solid rgba(26, 43, 72, 0.12);
}

.it-essentiel-icons li {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  padding: 0 clamp(0.35rem, 1.2vw, 0.85rem);
  text-align: center;
  border-right: 1px solid rgba(26, 43, 72, 0.14);
}

.it-essentiel-icons li:last-child {
  border-right: none;
}

.it-essentiel-icons img {
  display: block;
  width: auto;
  height: clamp(38px, 4.35vw, 48px);
  max-width: 100%;
  object-fit: contain;
}

.it-essentiel-icon-svg {
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(30px, 3.35vw, 36px);
  color: var(--it-icon-blue);
}

.it-essentiel-icon-svg svg {
  display: block;
  width: clamp(24px, 2.75vw, 30px);
  height: clamp(24px, 2.75vw, 30px);
  color: var(--it-icon-blue);
  fill: var(--it-icon-blue);
}

.it-essentiel-icon-svg svg path {
  fill: var(--it-icon-blue);
  stroke: var(--it-icon-blue);
  stroke-width: 0.35px;
  stroke-linecap: round;
  stroke-linejoin: round;
  paint-order: stroke fill;
}

/* Libellés uniquement (pas .it-essentiel-icon-svg, aussi un <span>) */
.it-essentiel-icons li > span:last-child {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(0.68rem, 0.95vw, 0.82rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--it-navy);
}

@media (max-width: 900px) {
  .it-essentiel {
    padding-top: clamp(0.5rem, 1.5vw, 0.85rem);
    padding-bottom: clamp(0.75rem, 1.6vw, 1.1rem);
  }

  .it-essentiel-inner {
    flex-direction: column;
    gap: clamp(0.85rem, 2vw, 1.15rem);
  }

  /* Mobile : titre + 1er paragraphe sous la bannière, puis l’image, puis le reste */
  .it-essentiel-content,
  .it-essentiel-text {
    display: contents;
  }

  .it-essentiel-content h2 {
    order: 1;
    margin-bottom: clamp(0.45rem, 1vw, 0.65rem);
  }

  .it-essentiel-text p:first-of-type {
    order: 2;
  }

  .it-essentiel-media {
    order: 3;
  }

  .it-essentiel-text p:nth-of-type(n + 2) {
    order: 4;
  }

  .it-essentiel-icons {
    order: 5;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 0.5rem;
    border-top: none;
    padding-top: 0.5rem;
  }

  .it-essentiel-icons li {
    border-right: none;
    padding: 0 0.5rem;
  }

  .it-essentiel-icons li:nth-child(odd) {
    border-right: 1px solid rgba(26, 43, 72, 0.14);
  }

  .it-essentiel-icons li:nth-child(-n + 2) {
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(26, 43, 72, 0.14);
  }

  .it-essentiel-media img {
    max-width: 100%;
  }
}

/* --- Quatre cartes situations IT (sous le bloc essentiel) --- */
.it-situations {
  --it-navy: #1a2b48;
  --it-text: #4a5568;
  background: transparent;
  padding: clamp(0.4rem, 1vw, 0.7rem) clamp(1.25rem, 3vw, 2rem) clamp(1rem, 2vw, 1.5rem);
}

.it-situations-inner {
  max-width: 1160px;
  margin: 0 auto;
}

.it-situations-title {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.45rem, 2.5vw, 2.1rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--it-navy);
  text-align: left;
  margin: 0 0 0.75rem;
}

.it-situations-lead {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1rem, 1.15vw, 1.15rem);
  font-weight: 400;
  line-height: 1.55;
  color: var(--it-text);
  text-align: left;
  margin: 0 0 clamp(1.5rem, 2.5vw, 2rem);
  max-width: 72rem;
}

.it-situations-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 18px);
  align-items: stretch;
}

.it-situation-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(1.15rem, 2vw, 1.5rem);
  background: #fefdfb;
  border: none;
  border-radius: 14px;
  box-shadow: 0 2px 14px rgba(21, 27, 38, 0.07);
  font-family: "Montserrat", sans-serif;
  box-sizing: border-box;
}

.it-situation-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  margin-bottom: 0.85rem;
  border-radius: 50%;
  background: #e8edf3;
  color: var(--it-navy, #1a2b48);
}

.it-situation-card-icon svg {
  display: block;
  width: 22px;
  height: 22px;
}

.it-situation-card-title {
  width: 100%;
  margin: 0;
  min-height: 3.9em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: clamp(0.88rem, 1.05vw, 0.98rem);
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  color: var(--it-navy, #1a2b48);
}

.it-situation-card-rule {
  display: block;
  width: 100%;
  max-width: 6rem;
  height: 1px;
  margin: 0.5rem auto 0.65rem;
  flex-shrink: 0;
  background: rgba(85, 103, 126, 0.28);
  border: none;
}

.it-situation-card-intro {
  width: 100%;
  margin: 0 0 0.85rem;
  font-size: clamp(0.78rem, 0.92vw, 0.86rem);
  font-weight: 400;
  line-height: 1.45;
  text-align: left;
  color: var(--it-text, #4a5568);
}

.it-situation-list {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  text-align: left;
  align-self: stretch;
}

.it-situation-list li {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.45rem;
  margin-bottom: 0.45rem;
  font-size: clamp(0.74rem, 0.88vw, 0.82rem);
  font-weight: 400;
  line-height: 1.4;
  text-align: left;
  color: var(--it-text, #4a5568);
}

.it-situation-list li:last-child {
  margin-bottom: 0;
}

.it-situation-check {
  flex-shrink: 0;
  display: flex;
  margin-top: 0.1em;
  line-height: 0;
  color: var(--it-navy, #1a2b48);
}

.it-situation-check svg {
  display: block;
}

@media (max-width: 1024px) {
  .it-situations-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(14px, 2vw, 20px);
  }
}

@media (max-width: 560px) {
  .it-situations-cards {
    grid-template-columns: 1fr;
  }
}

/* --- Mon approche --- */
.it-approche {
  --it-navy: #1a2b48;
  --it-approche-text: #2d3748;
  --it-approche-icon: #1a2b48;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 3vw, 2rem) clamp(2.5rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  column-gap: clamp(1.25rem, 2.5vw, 2.25rem);
  align-items: start;
}

.it-approche h2 {
  grid-column: 1 / -1;
  grid-row: 1;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.45rem, 2.5vw, 2.1rem);
  font-weight: 700;
  color: var(--it-navy);
  margin: 0 0 clamp(0.4rem, 0.75vw, 0.55rem);
  line-height: 1.2;
}

.it-approche-copy {
  grid-column: 1;
  grid-row: 2;
}

.it-approche p {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(0.92rem, 1.15vw, 1rem);
  font-weight: 400;
  line-height: 1.55;
  color: #4a5568;
  margin: 0 0 1rem;
}

.it-approche p:last-child {
  margin-bottom: 0;
}

.it-approche-card {
  grid-column: 2;
  grid-row: 2;
  align-self: stretch;
  margin: 0;
  padding: 0.35rem 0.9rem;
  background: #faf7f3;
  border-radius: 14px;
  box-shadow: 0 2px 14px rgba(21, 27, 38, 0.07);
  box-sizing: border-box;
  width: max-content;
  max-width: 100%;
  justify-self: end;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.it-approche-list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.it-approche-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  text-align: left;
  gap: 0.65rem;
  padding: 0.28rem 0;
}

.it-approche-item + .it-approche-item {
  border-top: 1px solid rgba(118, 139, 165, 0.18);
}

.it-approche-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e8edf3;
  color: var(--it-approche-icon);
  flex-shrink: 0;
}

.it-approche-icon svg {
  display: block;
  width: 16px;
  height: 16px;
}

.it-approche-text {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(0.8rem, 0.9vw, 0.88rem);
  font-weight: 400;
  line-height: 1.35;
  color: var(--it-approche-text);
}

/* --- Comment se déroulent les cours (5 cartes, même disposition que logistique « Mon approche ») --- */
.it-process.learning-steps-section {
  --it-navy: #1a2b48;
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(1rem, 2vw, 1.5rem) clamp(1.25rem, 3vw, 2rem) clamp(2.5rem, 5vw, 3.5rem);
  overflow: visible;
}

.it-process .learning-steps-intro {
  text-align: left;
  width: 100%;
  max-width: none;
  margin: 0 0 1.75rem;
  box-sizing: border-box;
}

.it-process .learning-steps-intro h2 {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.45rem, 2.5vw, 2.1rem);
  font-weight: 700;
  color: var(--it-navy);
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

.it-process .learning-steps-intro p {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1rem, 1.15vw, 1.15rem);
  color: #474747;
  line-height: 1.48;
  margin: 0;
}

.it-process .learning-steps-row {
  --it-bubble-size: 48px;
  --it-flow-gap: clamp(0.45rem, 1.4vw, 0.75rem);
  --it-row-top-pad: calc(var(--it-bubble-size) / 2 + 0.5rem);
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: center;
  gap: var(--it-flow-gap);
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: visible;
  padding: var(--it-row-top-pad) 6px 1rem;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.it-process .learning-steps-item {
  position: relative;
  flex: 1 1 0;
  min-width: 148px;
  max-width: 224px;
  scroll-snap-align: start;
}

.it-process .learning-step-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fefdfb;
  border: 1px solid rgba(52, 82, 124, 0.18);
  border-radius: 12px;
  padding: calc(0.45rem + var(--it-bubble-size) / 2) 1.05rem 1.35rem;
  text-align: center;
  height: 100%;
  box-shadow: 0 2px 12px rgba(21, 27, 38, 0.06);
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
}

.it-process .learning-step-card-number {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -50%);
  width: var(--it-bubble-size, 48px);
  height: var(--it-bubble-size, 48px);
  border-radius: 50%;
  background: var(--it-navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(50, 49, 49, 0.12);
  z-index: 2;
}

.it-process .learning-step-card-title {
  width: 100%;
  margin: 0;
  min-height: 4.35em;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-shrink: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--it-navy);
}

.it-process .learning-step-card-rule {
  display: block;
  width: 100%;
  max-width: 6rem;
  height: 1px;
  margin: -0.55rem auto 0.55rem;
  align-self: center;
  flex-shrink: 0;
  background: rgba(85, 103, 126, 0.28);
  border: none;
}

.it-process .learning-step-card-desc {
  margin: 0;
  flex-grow: 1;
  width: 100%;
  max-width: 100%;
  text-align: center;
  font-size: clamp(0.9rem, 1.05vw, 0.97rem);
  line-height: 1.45;
  color: #4a5568;
}

.it-process-cta.cta-cours {
  margin: 0.35rem auto 0;
  display: block;
  width: fit-content;
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  padding: 9px 18px;
  border-radius: 10px;
  background: #6888b1;
  color: #fff !important;
  text-decoration: none;
  text-align: center;
}

.it-process-cta.cta-cours:hover,
.it-process-cta.cta-cours:focus-visible {
  background: #1a2b48;
}

@media (max-width: 1100px) {
  .it-process .learning-steps-row {
    justify-content: flex-start;
    padding-top: var(--it-row-top-pad);
  }

  .it-process .learning-steps-item {
    flex: 0 0 min(49vw, 200px);
  }
}

@media (max-width: 700px) {
  .it-process .learning-steps-row {
    flex-direction: column;
    align-items: stretch;
    overflow: visible;
    padding-top: 0.5rem;
    gap: 1.65rem;
    scroll-snap-type: none;
  }

  .it-process .learning-steps-item {
    max-width: none;
    flex: none;
    width: 100%;
    min-width: 0;
    /* Espace pour la moitié supérieure de la bulle */
    padding-top: calc(var(--it-bubble-size) / 2);
  }
}

@media (max-width: 900px) {
  .it-process-cta.cta-cours {
    font-size: 0.88rem;
    padding: 8px 16px;
  }

  .it-process .learning-steps-intro h2,
  .it-approche h2 {
    font-size: clamp(1.35rem, 4.2vw, 1.85rem);
  }

  .it-approche {
    grid-template-columns: 1fr;
  }

  .it-approche-card {
    grid-column: 1;
    grid-row: 3;
    width: auto;
    max-width: none;
    justify-self: stretch;
    height: auto;
    margin-top: 1.15rem;
  }
}

/* Retour en haut : foncé au repos, plus clair au survol */
.back-to-top {
  background: #1a2b48;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: #6888b1;
}
