/* ============================================================
   FORMATIONS UPC — VERSION FINALE HARMONISÉE
   Structure identique à partenaires.css / memorial.css
   ============================================================ */

/* === HERO FORMATIONS (clair UPC) === */
.formations-hero {
  background: var(--pierre-2);
  text-align: center;
  padding: 60px 0;
}

.formations-hero .tag {
  background: var(--rouge);
  color: #fff;
  padding: 4px 10px;
  font-size: 0.8rem;
  border-radius: 4px;
}

.formations-hero h1 {
  font-size: 2.6rem;
  font-weight: 800;
  margin: 20px 0 10px;
  color: var(--noir);
}

.formations-hero .lead {
  max-width: 60ch;
  margin: 0 auto;
  color: #444;
}

/* === CHEVRONS DARK UPC === */
.chevrons.dark {
  background: var(--noir);
  height: 40px;
}

/* === SECTION FORMATIONS SOMBRE UPC === */
.formations-section.dark-section {
  background: var(--noir);
  padding: 60px 0;
}

.formations-section.dark-section .section-head {
  margin-bottom: 40px;
}

.formations-section.dark-section .section-head .tag {
  background: var(--rouge);
  color: #fff;
  padding: 4px 10px;
  font-size: 0.8rem;
  border-radius: 4px;
}

.formations-section.dark-section .section-head h2 {
  margin: 0;
  font-weight: 700;
  color: var(--texte-clair);
}

.formations-section.dark-section .section-head p {
  margin-top: 10px;
  color: #d6d3cd;
}

/* === GRID FORMATIONS === */
.formations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

/* === CARTES FORMATIONS SOMBRES UPC === */
.formation-card {
  background: #2a2926;
  color: var(--texte-clair);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex;
  flex-direction: column;
}

.formation-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.45);
}

.formation-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  filter: brightness(0.85);
  transition: transform .4s ease;
}

.formation-card:hover img {
  transform: scale(1.06);
}

/* === CONTENU DES CARTES === */
.formation-body {
  padding: 1.4rem 1.4rem;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.formation-body h3 {
  margin: 0 0 .6rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--texte-clair);
}

.formation-body p {
  margin: .4rem 0;
  line-height: 1.45;
  color: #d6d3cd;
}

.formation-price {
  font-weight: 700;
  color: #ff3b3b;
  margin-top: .6rem;
  font-size: 1.2rem;
}

.formation-date {
  font-size: .95rem;
  color: #d6d3cd;
}
