.top-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.image-wrapper {
    position: relative;
}

.laboratory-img {
    width: 100%;
    max-height: 450px;
    display: block;
    object-fit: cover;
    clip-path: inset(0 0 20% 0);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.5); /* blanc semi-transparent */
}

.title {
    position: absolute;
    top: 17%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #0d96a4; /* couleur du texte */
    font-size: 3rem;
    font-weight: bold;
    text-align: center;
    z-index: 2; /* au-dessus de l'overlay */
}

/* Introduction */
.formations-intro {
    margin-left: 10%;
    margin-right: 5%;
    margin-bottom: 70px;
    font-family: 'Work Sans', sans-serif;
    font-size: larger;
    line-height: 1.3;
    color: #212e53;
    text-align: justify;
}



/* Rangées selon le poids */
.top-row {
  order: 1;
}

.bottom-row {
  order: 2;
}

/* Responsive design */
@media (max-width: 768px) {
  .cours-vignette {
    max-width: 100%;
  }
}
/* Grid des formations */
.formations-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  padding: 0 2rem;
  margin-bottom: 3rem;
}

.formations-grid.single-column {
  grid-template-columns: 1fr;
}

/* Carte de formation */
.formation-card {
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.formation-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.card-content {
  padding: 1.5rem;
}

.card-content h2 {
  margin: 0 0 1rem;
  color: #158b9a;
}

/* Tags */
.tags-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.tag {
  background: #e1f5f7;
  color: #158b9a;
  padding: 0.25rem 0.75rem;
  border-radius: 16px;
  font-size: 0.875rem;
}

.summary {
  margin: 1rem 0 0;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
  .formations-grid {
    grid-template-columns: 1fr;
  }
}