/* Bannière logistique : image + cadrage (arrondi, filtre = style.css / cours.css comme index) */
.banner-cours {
  background-image: url("images/entrepot.jpg");
  background-position: 62% center;
}

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

/* Page logistique : même fond que le site (feuille logistique.css = cette page seule) */
body.page-cours {
  background-color: #f9f5f1;
}

/* --- Contenu sous la bannière --- */
.logistique-main {
  --log-navy: #1a2b48;
  --log-blue: #6888b1;
  --log-blue-soft: #dce8f5;
  --log-green: #16a34a;
  --log-radius: 14px;
  background: #f9f5f1;
}

.logistique-block {
  padding: clamp(2.5rem, 5vw, 4.5rem) 1.25rem;
}

.logistique-block:nth-child(even) {
  background: transparent;
}

/* Même fond que le main (pas de bande plus claire) */
.logistique-block.logistique-process {
  background: transparent;
  padding-top: clamp(1.15rem, 2.35vw, 1.65rem);
  padding-bottom: clamp(1.35rem, 3vw, 2.25rem);
}

/* Intro : moins d’espace au-dessus du titre + chapô, contenu calé à gauche */
.logistique-block.logistique-intro {
  padding-top: clamp(0.75rem, 2.25vw, 1.75rem);
  padding-bottom: clamp(1.5rem, 3vw, 2.25rem);
  padding-left: 0;
  padding-right: 1.25rem;
}

/* Mon approche : coller davantage au bloc « Déroulement des cours » */
.logistique-block.logistique-outro {
  padding-top: clamp(0.75rem, 2vw, 1.35rem);
}

/* Un peu plus large que le gabarit générique des pages cours (1080px) */
.page-cours main.logistique-main {
  max-width: 1160px;
}

.logistique-wrap {
  max-width: 1160px;
  margin: 0 auto;
}

/* En-têtes pleine largeur (surcharge du `header` global flex row de style.css) */
.logistique-intro-header,
.logistique-process-header {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  width: 100%;
  max-width: 100%;
  padding: 0;
  box-sizing: border-box;
}

.logistique-intro-header {
  margin-top: -1.1rem;
  margin-bottom: clamp(0.55rem, 1.35vw, 0.95rem);
}

.logistique-process-header {
  margin-bottom: clamp(1.25rem, 2.5vw, 2rem);
}

.logistique-intro-header h2,
.logistique-process-header h2 {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.5rem, 2.8vw, 2.15rem);
  font-weight: 700;
  color: var(--log-navy);
  line-height: 1.2;
  margin: 0 0 1rem;
}

.logistique-intro-header h2 {
  margin-bottom: clamp(0.35rem, 0.85vw, 0.55rem);
}

.logistique-intro-header .logistique-intro-lead,
.logistique-process-header .logistique-process-lead {
  max-width: none;
}

.logistique-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

/* Intro : ligne image+texte, puis cartes pleine largeur */
.logistique-intro .logistique-intro-grid {
  grid-template-columns: 1fr;
  grid-template-areas:
    "body"
    "situations";
  gap: 0;
  align-items: start;
}

/* Intro : image à gauche, texte à droite (colonne texte un peu plus large qu’avant) */
.logistique-intro-body {
  grid-area: body;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  column-gap: clamp(1rem, 2.25vw, 1.75rem);
  row-gap: 0;
  align-items: start;
  justify-content: start;
  width: 100%;
  max-width: 100%;
  margin-top: clamp(-0.5rem, -1vw, -0.25rem);
  margin-left: clamp(0.65rem, 1.75vw, 1.1rem);
  box-sizing: border-box;
}

.logistique-intro-body .logistique-col-media {
  margin: 0;
  padding: 0;
  line-height: 0;
  overflow: hidden;
  border-radius: var(--log-radius);
  box-shadow: 0 4px 14px rgba(26, 43, 72, 0.08);
  width: min(20rem, 44vw);
  aspect-ratio: 724 / 808;
  align-self: start;
}

.logistique-intro-body .logistique-col-text {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: none;
  min-width: 0;
  box-sizing: border-box;
}

.logistique-intro-header .logistique-intro-lead {
  margin-top: 0;
  margin-bottom: clamp(0.45rem, 1vw, 0.75rem);
}

.logistique-intro .logistique-col-text > .logistique-intro-subtitle {
  margin-top: 0;
  margin-bottom: clamp(0.65rem, 1.25vw, 0.85rem);
}

.logistique-intro .logistique-col-text .logistique-intro-detail {
  margin-top: 0;
  margin-bottom: clamp(1rem, 2vw, 1.35rem);
  width: 100%;
  max-width: none;
  font-family: var(--cours-body-font);
  font-size: var(--cours-body-size);
  font-weight: var(--cours-body-weight);
  line-height: var(--cours-body-leading);
  color: var(--cours-body-color);
  text-align: justify;
}

.logistique-intro .logistique-col-text .logistique-intro-detail + .audience-roadmap-title {
  margin-top: clamp(0.75rem, 1.5vw, 1.1rem);
}

.logistique-intro .logistique-situations {
  grid-area: situations;
  grid-column: 1 / -1;
  align-self: start;
  width: 100%;
  max-width: 100%;
  margin-top: clamp(1.15rem, 2.25vw, 1.65rem);
}

.logistique-situations .audience-roadmap-title {
  margin-top: 0;
  margin-bottom: 0.65rem;
}

.logistique-situations-lead {
  margin: 0 0 clamp(1.1rem, 2vw, 1.5rem);
  max-width: none;
}

.logistique-situations-lead p {
  margin: 0 0 0.65rem;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.2rem, 1.35vw, 1.3rem);
  line-height: 1.48;
  color: #474747;
  text-align: justify;
}

.logistique-situations-lead p:last-child {
  margin-bottom: 0;
}

.logistique-col-text h2 {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.5rem, 2.8vw, 2.15rem);
  font-weight: 700;
  color: var(--log-navy);
  line-height: 1.2;
  margin: 0 0 1rem;
}

/* Chapôs / sous-titres sous les h2 de section (intro, déroulement, outro) */
.logistique-intro-lead,
.logistique-process-lead,
.logistique-outro-lead {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.2rem, 1.35vw, 1.3rem);
  line-height: 1.48;
  color: #474747;
  text-align: justify;
  margin-top: 6px;
  margin-bottom: 6px;
}

.logistique-main .audience-roadmap-title {
  font-family: "Montserrat", sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.2;
  color: #1a2b48;
  text-align: left;
  margin: 14px 0 8px;
}

/* Situations travaillées : même disposition que « Mon approche » (5 cartes pleine largeur) */
.logistique-situations .logistique-situations-cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(0.85rem, 2vw, 1.35rem);
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: visible;
  flex-wrap: unset;
  scroll-snap-type: none;
}

.logistique-situations .logistique-situations-cards .learning-steps-item {
  flex: none;
  min-width: 0;
  max-width: none;
  width: 100%;
}

.logistique-situations .learning-step-card {
  align-items: center;
  padding: clamp(1.15rem, 2vw, 1.5rem);
  border: none;
  border-radius: 14px;
  box-shadow: 0 2px 14px rgba(21, 27, 38, 0.07);
}

.logistique-situations .learning-step-card-icon {
  position: static;
  transform: none;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  margin-top: -0.35rem;
  margin-bottom: 0.65rem;
  border-radius: 50%;
  background: #e8edf3;
  color: var(--log-navy);
  box-shadow: none;
}

.logistique-situations .learning-step-card-icon svg {
  width: 22px;
  height: 22px;
}

.logistique-situations .learning-step-card-title {
  min-height: 3em;
  align-items: flex-start;
  font-size: clamp(0.95rem, 1.15vw, 1.05rem);
}

.logistique-situations .learning-step-card-rule {
  margin: -1.15rem auto 0.5rem;
}

.logistique-situations .learning-step-card-desc {
  font-size: clamp(0.82rem, 0.95vw, 0.92rem);
}

.logistique-list {
  list-style: none;
  margin: 0 0 0.25rem;
  padding: 0;
  font-family: var(--cours-body-font);
  font-size: var(--cours-body-size);
  font-weight: var(--cours-body-weight);
  line-height: var(--cours-body-leading);
  color: var(--cours-body-color);
}

.logistique-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.55rem;
}

.logistique-list--green li {
  background: url("icons/check-circle-green.svg")
    0 0.4em / 1.05rem 1.05rem no-repeat;
}

.logistique-list--blue li {
  padding-left: 2rem;
  background: url("icons/check-circle-blue.svg")
    0 0.35em / 1.1rem 1.1rem no-repeat;
}

.logistique-col-media {
  margin: 0;
}

.logistique-intro-body .logistique-col-media img {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 44%;
}

/* Desktop : hauteur image calée sur la colonne texte */
@media (min-width: 901px) {
  .logistique-intro-body {
    align-items: stretch;
    column-gap: clamp(1.15rem, 2.5vw, 2rem);
  }

  .logistique-intro-body .logistique-col-media {
    display: block;
    align-self: start;
  }

  .logistique-intro-body .logistique-col-text {
    margin-left: 0;
    align-self: start;
  }

  .logistique-intro-body .logistique-col-media img {
    margin-right: 0;
  }
}

/* Visio « cours » : taille réduite, pas de crop (ne pas réutiliser la règle intro ci-dessus) */
.logistique-process .logistique-col-media--wide {
  justify-self: center;
  align-self: end;
  display: flex;
  justify-content: center;
  align-items: center;
  width: fit-content;
  max-width: min(100%, 560px);
  margin: 0;
}

.logistique-process .logistique-col-media--wide img {
  display: block;
  box-sizing: border-box;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: contain;
  border-radius: var(--log-radius);
  box-shadow: 0 12px 40px rgba(26, 43, 72, 0.12);
}

.logistique-process-cta {
  margin-top: 0.35rem;
}

.logistique-process-cta .logistique-cta {
  margin-top: 0.75rem !important;
}

.logistique-cta.cta-cours {
  margin: 1.75rem 0 0 !important;
  display: inline-block;
  width: fit-content;
  border-radius: 10px;
  text-decoration: none;
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  padding: 9px 18px !important;
}

/* Timeline déroulement */
.logistique-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.logistique-timeline-item {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: 0.85rem 1rem;
  position: relative;
  padding-bottom: 1.5rem;
}

.logistique-timeline-item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 0.85rem;
  top: 2.1rem;
  bottom: 0.35rem;
  width: 2px;
  background: #c5ced9;
  border-radius: 1px;
}

.logistique-process .logistique-timeline-item:last-child {
  padding-bottom: 0.35rem;
}

.logistique-timeline-num {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--log-blue-soft);
  color: var(--log-blue);
  font-family: "Montserrat", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

/* Même rendu que .audience-roadmap-item-text small + .hotellerie-service-texte .audience-roadmap-item-text small (carte « Présentez vos services ») */
.logistique-timeline-body p {
  display: block;
  margin: 0;
  margin-top: 1px;
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.48;
  font-weight: inherit;
  color: #5f6670;
}

.logistique-timeline-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logistique-timeline-title {
  font-family: "Montserrat", sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--log-navy);
}

/* Outro : titre pleine largeur au-dessus, colonne texte + visuel élargie */
.logistique-outro-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  max-width: min(100%, 1320px);
  margin: 0 auto clamp(1.25rem, 2.5vw, 2rem);
  padding: 0;
  box-sizing: border-box;
}

.logistique-outro-header h2 {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.5rem, 2.8vw, 2.15rem);
  font-weight: 700;
  color: var(--log-navy);
  line-height: 1.2;
  margin: 0;
  text-align: left;
  max-width: 100%;
}

.logistique-outro-layout {
  width: 100%;
  max-width: min(100%, 1320px);
  margin: 0 auto;
  box-sizing: border-box;
}

/* Cartes « Notre méthode » (même bloc que hôtellerie « Déroulement des cours ») */
.logistique-outro .learning-steps-section {
  margin: 0;
  padding: 0;
}

.logistique-outro .learning-step-card {
  padding-top: 2.15rem;
}

.logistique-outro .learning-step-card-icon {
  width: 50px;
  height: 50px;
  background: #e8edf3;
  color: var(--log-navy);
}

.logistique-outro .learning-step-card-icon svg {
  width: 22px;
  height: 22px;
}

.logistique-outro .learning-step-card-rule {
  margin: -0.85rem auto 0.5rem;
}

.learning-steps-section {
  margin: 2.5rem 0 2rem;
  padding: 0 4px;
}

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

.learning-steps-intro h2,
.logistique-outro .learning-steps-intro .logistique-method-title {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.45rem, 2.5vw, 2.1rem);
  font-weight: 700;
  color: #1a2b48;
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

.learning-steps-intro p {
  font-size: 1.15rem;
  color: #474747;
  line-height: 1.48;
  margin-top: 6px;
  margin-bottom: 6px;
}

.learning-steps-row {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: center;
  gap: clamp(0.45rem, 1.4vw, 0.75rem);
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 2.1rem 6px 1rem;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

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

.learning-step-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: #fefdfb;
  border: 1px solid rgba(52, 82, 124, 0.18);
  border-radius: 12px;
  padding: 2.28rem 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;
}

.learning-step-card-icon {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #f9f5f1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a2b48;
  box-shadow: 0 2px 8px rgba(50, 49, 49, 0.08);
}

.learning-step-card-icon svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.learning-step-card-title {
  margin: 0 0 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: #1a2b48;
}

.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;
}

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

@media (max-width: 1100px) {
  .learning-steps-row {
    justify-content: flex-start;
    padding-top: 2.25rem;
  }

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

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

  .learning-steps-item {
    max-width: none;
    flex: none;
    width: 100%;
    min-width: 0;
  }

  .logistique-situations .logistique-situations-cards {
    grid-template-columns: 1fr;
    gap: 1.65rem;
    padding-top: 0;
  }
}

.logistique-outro-text {
  width: 100%;
  max-width: 100%;
  text-align: left;
}

.logistique-outro-header .logistique-outro-lead {
  text-align: left;
  max-width: 100%;
}

@media (max-width: 900px) {
  .logistique-grid-2 {
    grid-template-columns: 1fr;
  }

  .logistique-situations .logistique-situations-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-top: 0;
  }

  body.page-cours .logistique-situations p.learning-step-card-desc {
    text-align: center;
  }

  .logistique-intro-body {
    display: block;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
  }

  .logistique-intro-body .logistique-col-text {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-top: clamp(0.85rem, 2vw, 1.25rem);
  }

  .logistique-intro-body .logistique-col-media {
    width: min(20rem, 100%);
    margin-inline: auto;
  }

  .logistique-intro-body .logistique-col-media img {
    object-position: center 44%;
  }

  .logistique-process .logistique-col-media {
    order: -1;
    margin: 0 auto 0.5rem;
  }

  .logistique-process .logistique-col-media--wide img {
    max-height: min(440px, 78vh);
    max-width: 100%;
  }

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

/* Bannière « besoins spécifiques » : léger recul (cover + dégradé comme les autres pages) */
.logistique-main .cours-contact-hotel-banner-visual img {
  inset: auto;
  left: 50%;
  top: 50%;
  width: 106%;
  height: 106%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  object-position: 58% 72%;
}

@media (max-width: 900px) {
  .logistique-main .cours-contact-hotel-banner-visual img {
    inset: 0;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    transform: none;
    object-position: center center;
  }
}
