/* Page formation_page : schéma formations */

.formation-map{
  width: min(1200px, 92vw);
  margin: 0 auto;
  padding: 3rem 0 4rem;
}

/* Top bar */
.formation-map__top{
  background: #6f97c7;
  border-radius: 18px;
  height: 64px;
  display: grid;
  place-items: center;
  margin-bottom: 2.2rem;
}
.formation-map__topLabel{
  color: #fff;
  font-weight: 800;
  font-size: 1.35rem;
}

/* Slot */
.formation-map__slot{
  min-height: 24px;
  margin-bottom: 2.2rem;
}

/* Main layout */
.formation-map__grid{
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 3rem;
  align-items: start;
}

/* Left / Right columns */
.formation-map__col{
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.formation-map__groupTitle span{
  display: inline-block;
  font-weight: 800;
  opacity: .75;
}

/* Right column rows */
.formation-map__rowTop{
  display: flex;
  justify-content: center;
}
.formation-map__bar{
  width: 100%;
  max-width: 560px;
  background: #4f7fb6;
  color: #fff;
  font-weight: 800;
  text-align: center;
  padding: 1.1rem 1.2rem;
  border-radius: 18px;
}

.formation-map__rowBottom{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* Pillars (vertical bars) */
.formation-map__pillars{
  display: flex;
  gap: 1.2rem;
  align-items: stretch;
  height: 380px;
}

.pillar{
  flex: 1;
  min-width: 70px;
  height: 440px;
  border-radius: 22px;
  background: #7ea2cf;
  display: grid;
  place-items: center;
  text-decoration: none;
  position: relative;
}
.pillar span{
  color: #fff;
  font-weight: 800;
  letter-spacing: .3px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  text-align: center;
}

/* Shorter pillars for techno */
.formation-map__pillars--short .pillar{
  height: 380px;
}

/* Dark variant for general */
.pillar--dark{
  background: #2f5d92;
  height: 380px;
  max-width: 130px;
  margin: 0 auto;
}

/* Hover */
.pillar:hover{
  filter: brightness(0.95);
  transform: translateY(-2px);
  transition: transform .15s ease, filter .15s ease;
}

/* Responsive */
@media (max-width: 980px){
  .formation-map__grid{
    grid-template-columns: 1fr;
  }
  .formation-map__rowBottom{
    grid-template-columns: 1fr;
  }
  .pillar--dark{
    max-width: none;
    width: 100%;
  }
}

@media (max-width: 560px){
  /* On évite le vertical-rl sur mobile : ça devient illisible */
  .formation-map__pillars{
    flex-wrap: wrap;
  }
  .pillar{
    height: auto;
    min-height: 54px;
    border-radius: 16px;
    padding: .9rem 1rem;
    min-width: 0;
  }
  .pillar span{
    writing-mode: initial;
    transform: none;
  }

  .formation-map__pillars--short .pillar{
    min-height: 54px;
  }
  .pillar--dark{
    height: auto;
  }
}