

.hero-formations {
  background-image: url("../../assets/images/hero-formations2.jpg");
  background-size: cover; 
  background-position: center;
  background-repeat: no-repeat; 
}

/* WHY ? */
.section-benefits {
  padding: 4rem 1.5rem;
  background-color: #f9f9f9;
  text-align: center;
  
}

.section-benefits h2 {
 text-align: center;
  font-size: 2rem;
  margin-bottom: 2.5rem;
  color: #333333;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.benefit h3 {
  color: var(--color-primary);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.benefit p {
  color: #555;
}

.benefit {
  text-align: center;
  padding: 1rem;
}

.benefit-icon {
  font-size: 4rem;
  color: var(--color-secondary);
  display: block;
  margin-bottom: 1rem;
  transition: transform 0.3s ease, color 0.3s ease, filter 0.3s ease;
}

.benefit:hover .benefit-icon {
  transform: translateY(-5px) rotate(-10deg) scale(1.1);
  color: #e1bf8c; /* un vert un peu plus clair */
  filter: drop-shadow(0 4px 6px rgba(241, 142, 76, 0.2));
}

/* FORMATEURS */
.section-trainers {
  padding: 4rem 1.5rem;
  background-color: #f1f7f2; /* légère nuance différente pour distinguer la section */
  text-align: center;
}
.section-trainers .trainers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-trainers h2 {
  font-size: 2rem;
  color: #333333;
  margin-bottom: 2.5rem;
}

.trainer-card img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 1rem;
}
.trainer-card h3 {
  margin: 0.5rem 0;
  color: var(--color-primary);
}
.trainer-card p {
  font-size: 0.95rem;
  color: #555;
}

/* ATELIERS & FORMATIONS */

.section-workshop {
  padding: 4rem 1.5rem;
  background-color: #f1f7f2; /* légère nuance différente pour distinguer la section */
  text-align: center;
}

.section-workshop h2 {
  font-size: 2rem;
  color: #333333;
  margin-bottom: 2.5rem;
}

.workshop-comparison {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto 2rem;
}

.workshop-card {
  background-color: #fff;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-align: left;
}

.workshop-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.workshop-card h3 {
  color: var(--color-secondary);
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.workshop-card p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 0.5rem;
}

.workshop-info {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
}

.workshop-info a {
  color: var(--color-accent, #99CC66);
  font-weight: 600;
  text-decoration: none;
}

.workshop-info a:hover {
  text-decoration: underline;
}

.cta-workshop {
  text-align: center;
  margin: 2.5rem 0;
}

.workshop-button {
  display: inline-block;
  padding: 0.9rem 2rem;
  background-color: var(--color-accent, #99CC66);
  color: #13162f;
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  border-radius: 30px;
  text-decoration: none;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.workshop-button:hover,
.workshop-button:focus {
  background-color: #b7e18c;
  transform: translateY(-2px);
  color: white;
}

/* EXEMPLES DE THEMATIQUES ATELIERS */

.section-topics {
  padding: 4rem 1.5rem;
  background-color: #f9f9f9;
}

.section-topics h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2.5rem;
  color: #333333;
}

.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.topic-card {
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.topic-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.topic-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.topic-card h3 {
  margin: 1rem 0 0.5rem;
  color: var(--color-primary);
  font-size: 1.2rem;
}

.topic-card p {
  font-size: 0.95rem;
  color: #555;
  padding: 0 1rem 1rem;
}

/* EVENEMENTS A VENIR */

.section-formations {
  padding: 4rem 1.5rem;          /* espace autour de la section */
  background-color: #f9f9f9;     /* couleur de fond claire */
}

.section-formations h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 2rem;
  color: #333333; /* couleur NEO ETHO */
  font-family: var(--font-heading, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif);
  position: relative;
}

/* Option : barre décorative sous le titre */
.section-formations h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--color-secondary, #99CC66);
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

/* Variante “alternée” (section-alt) */
.section-alt {
  background-color: #f1f7f2; /* légère nuance différente */
}

/* Grid des cards (reuse news-grid) */
.section-formations .news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Cards (reprend le style news-card existant) */
.section-formations .news-card {
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.section-formations .news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* Contenu de la card */
.section-formations .news-content {
  padding: 1.5rem;
}

.section-formations .news-date {
  font-size: 0.85rem;
  color: #888;
  display: block;
  margin-bottom: 0.5rem;
}

.section-formations .news-content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  color: #333;
}

.section-formations .news-content p {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.section-formations .news-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.section-formations .news-actions a {
  color: var(--color-primary, #5a8f7b);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.25s ease;
}

.section-formations .news-actions a:hover {
  color: white;
}