/* ===== STYLE GLOBAL ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f4f6f8;
  color: #333;
  line-height: 1.7;
  font-size: 16px;
  scroll-behavior: smooth;
}

/* ===== HEADER HERO ===== */
header {
  background: linear-gradient(135deg, #4CAF50, #2E7D32),
              url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80') center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 80px 20px;
  position: relative;
  overflow: hidden;
}

/* Overlay sombre pour lisibilité */
header::before {
  content: "";
  position: absolute;
  top:0; left:0; right:0; bottom:0;
  background: rgba(0,0,0,0.45);
  z-index: 1;
}

header h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
  line-height: 1.2;
  letter-spacing: 1px;
}

header p {
  font-size: 1.3rem;
  max-width: 850px;
  margin: 0 auto 25px auto;
  position: relative;
  z-index: 2;
}

header .highlight {
  font-weight: 700;
  color: #FFD700;
}

/* Bannière durée + tarif */
.header-banner {
  display: inline-block;
  background: linear-gradient(90deg, #FFD700, #FFC107);
  color: #2E7D32;
  font-size: 1.2rem;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: bold;
  box-shadow: 0px 6px 20px rgba(0,0,0,0.25);
  position: relative;
  z-index: 2;
  animation: pulse 2s infinite;
}

/* Effet pulse attractif */
@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,215,0,0.6); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(255,215,0,0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,215,0,0); }
}

/* ===== CATALOGUE ===== */
.catalogue {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  padding: 60px 40px;
}

/* ===== CARDS FORMATIONS ===== */
.formation-card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
}

.formation-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.formation-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.formation-card:hover img {
  transform: scale(1.05);
}

.formation-content {
  padding: 25px;
}

.formation-content h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: #2E7D32;
  font-weight: 700;
}

.formation-content p {
  margin: 10px 0;
  color: #555;
  line-height: 1.6;
}

.formation-content a {
  display: inline-block;
  margin-top: 15px;
  padding: 12px 22px;
  background: #4CAF50;
  color: #fff;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 700;
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.formation-content a:hover {
  background: #2E7D32;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

/* ===== FOOTER ===== */
footer {
  background: #2E7D32;
  color: #fff;
  text-align: center;
  padding: 50px 20px;
  margin-top: 60px;
  position: relative;
}

footer h3 {
  margin-bottom: 15px;
  font-size: 1.6rem;
  font-weight: 700;
}

footer p {
  max-width: 720px;
  margin: 0 auto 25px auto;
  font-size: 1rem;
  color: #f0f0f0;
  line-height: 1.6;
}

.footer-btn {
  display: inline-block;
  padding: 14px 28px;
  background: #FFD700;
  color: #2E7D32;
  font-weight: 700;
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.footer-btn:hover {
  background: #FFC107;
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}
