/* ==========================================
   SECTION : IMPORTANCE FORMATION
========================================== */

.importance-section {
  padding: 90px 0;
  background: #f4f7fb;
}

.importance-title {
  text-align: center;
  font-size: 30px;
  font-weight: 700;
  color: #1c2b4a;
  max-width: 900px;
  margin: 0 auto 60px auto;
  line-height: 1.4;
  position: relative;
}

/* Ligne décorative sous le titre */
.importance-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: #007bff;
  margin: 20px auto 0 auto;
  border-radius: 2px;
}

/* Grid layout */
.importance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

/* Texte */
.importance-text p {
  font-size: 16px;
  line-height: 1.8;
  color: #444;
  margin-bottom: 20px;
}

/* Sous-titre à côté des vidéos */
.importance-subtitle {
  font-size: 20px;
  font-weight: 700;
  color: #1c2b4a;
  margin-bottom: 20px;
  position: relative;
}

/* Petite ligne décorative */
.importance-subtitle::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background: #007bff;
  margin-top: 10px;
  border-radius: 2px;
}

/* Vidéo */
.importance-video video {
  width: 100%;
  height: 350px; 
  max-height: 500px; /* optionnel : limite max */
  border-radius: 15px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  object-fit: contain;
  background: #000; /* zone vide noire autour si ratios différents */
  transition: transform 0.3s ease;
}

.importance-video video:hover {
  transform: scale(1.02);
}


/* Animation cohérente avec ton site */
.importance-section .animate {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.importance-section .visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive tablette */
@media (max-width: 992px) {
  .importance-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .importance-video iframe {
    height: 300px;
  }
}

/* Responsive mobile */
@media (max-width: 576px) {
  .importance-section {
    padding: 60px 0;
  }

  .importance-title {
    font-size: 22px;
  }

  .importance-video iframe {
    height: 250px;
  }
}
