/* public/css/formations-optimise.css */

/* ==== Styles Généraux & Sections ==== */
section {
  margin-top: 40px !important;
  margin-bottom: 40px !important;
  padding-top: 40px !important;
  padding-bottom: 40px !important;
}
.formation-section {
  background: url('/assets_style/images/Formationg.webp') center top/120% no-repeat;
  min-height: 130vh;
  position: relative;
  overflow: hidden;
}
.formation-section .gradient-bg {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(to right, #000 0%, rgba(0,0,0,0) 100%);
  z-index: 1;
}
.formation-section .text-block {
  position: absolute;
  left: 0;
  bottom: 0;
  max-width: 50%;
  padding: 2rem;
  z-index: 3;
  color: white;
}
.formation-section .text-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: -15px;
  right: 40%;
  bottom: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.95) 10%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0) 100%);
  filter: drop-shadow(-20px 0 30px rgba(0,0,0,0.6));
  z-index: -1;
}
.formation-section .text-block h1, .formation-section .text-block p {
  position: relative;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* ==== Fil d'Ariane ==== */
.breadcrumb-item + .breadcrumb-item::before {
  content: ">";
  color: white !important;
}
.breadcrumb {
  --bs-breadcrumb-divider: "n";
  padding: 0.5rem 0;
}

/* ==== Section Features ==== */
.formation-features { background-color: #fff; }
.feature-card {
  border: 1px solid #FFA500;
  transition: transform .2s;
  margin: 0.5rem;
  border-radius: 1px !important;
  background: #fff;
}
.feature-card:hover { transform: translateY(-7px); }
.feature-card i { color: #FFA500; }
.feature-card h5 { font-weight: 600; }

/* ==== Section Projet ==== */
.project-section { display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem; padding: 3rem 1rem; }
.project-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; animation: fadeIn 0.8s ease-out forwards; opacity: 0; animation-delay: 0.1s; }
.project-header h2 { font-size: 1.55rem; font-weight: 600; color: #222; line-height: 1.2; }

/* ==== Cartes Post ==== */
.post-boxed { height: 100%; display: flex; flex-direction: column; }
.post-boxed__image-wrap { flex: 1; min-height: 300px; position: relative; overflow: hidden; }
.post-boxed__image { width: 100%; height: 100%; object-fit: cover; }
.post-boxed__main { padding: 1.5rem; background: #fff; flex-shrink: 0; }

/* ==== Bannière CTA ==== */
.image-banner-section {
  position: relative;
  background: linear-gradient(rgba(0,0,0,0.9), rgba(0,0,0,0.9)), url("/assets_style/images/service_contactez.webp");
  background-size: cover;
  background-position: center;
  height: 250px;
  margin: 60px auto;
  max-width: 92%;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
}
.image-banner-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: -1;
}
.image-banner-section .content-box { position: relative; z-index: 2; padding: 30px 20px; max-width: 850px; text-align: center; }
.image-banner-section .content-box h3 { font-size: 26px; font-weight: bold; margin-bottom: 20px; }
.image-banner-section .button-group { display: inline-flex; gap: 15px; }
.image-banner-section .btn, .image-banner-section .btn-primary { padding: 12px 25px; border-radius: 5px; font-size: 16px; font-weight: bold; text-decoration: none; white-space: nowrap; }
.image-banner-section .btn { background-color: #F08214; color: #000; }
.image-banner-section .btn-primary { background-color: #fff; color: #333; }
.image-banner-section .btn:hover, .image-banner-section .btn-primary:hover { opacity: 0.9; }

/* ==== Utilitaires ==== */
.ratio-4x3 { aspect-ratio: 4 / 3; }
.object-fit-cover { object-fit: cover; }
.legend-text { margin-top: 20px; font-family: "Montserrat", Helvetica, Arial, sans-serif; font-size: 1.3rem; color: black; }

/* ==== Styles Responsives (regroupés) ==== */
@media (max-width: 991px) {
  .formation-section { min-height: 50vh; background-size: cover; background-position: 60% center; }
  .image-banner-section { max-width: 90%; height: auto; padding: 60px 0; }
  .image-banner-section .content-box { padding: 20px; }
  .image-banner-section .content-box h3 { font-size: 22px; }
}
@media (max-width: 767px) {
  .formation-section { min-height: 50vh;background-position: center; background-size: 140% !important;}
  .formation-section .gradient-bg { width: 80%; }
  .formation-section .text-block { max-width: 100%; width: 100%; padding: 1.5rem !important; }
  .formation-section h1 { font-size: 1.75rem; }
  .formation-section .lead { font-size: 0.95rem; }
  .feature-card { margin-bottom: 1.7rem !important; text-align: center; }
  .feature-card .d-flex.align-items-center { justify-content: center; }
  .post-boxed__image-wrap { min-height: 250px; }
  .button-group { flex-direction: column; gap: 10px; }
  .image-banner-section .btn, .image-banner-section .btn-primary { display: block; width: 100%; }
}
@media (min-width: 768px) {
  .project-section { padding: 6rem 2rem; }
  .project-header h2 { font-size: 1.3rem; }
  .project-text p { font-size: 1.125rem; }
}
@media (min-width: 1200px) {
  .project-section { padding: 8rem 4rem; }
  .project-header h2 { font-size: 2.5rem; }
  .project-text p { font-size: 1.25rem; }
}
/* ======================================================= */
/* === AJUSTEMENTS RESPONSIVES POUR LA PAGE FORMATIONS === */
/* ======================================================= */
@media (max-width: 767px) {

  /* --- HERO SECTION ("Nos Formations") --- */

  /* Augmentation de la taille du titre principal et de son paragraphe */
  .formation-section .text-block h1 {
    font-size: 2.3rem !important; /* Plus grand pour plus d'impact */
    line-height: 1.2;
  }

  .formation-section .text-block p {
    font-size: 1.1rem !important; /* Paragraphe un peu plus grand */
    font-weight: 600 !important;
  }


  /* --- TITRES DE SECTION PRINCIPAUX --- */
  
  /* Réduction importante de la taille des grands titres H2 */
  .project-section .project-header h2 {
    font-size: 1.6rem !important;
    line-height: 1.3;
  }
  
  .project-section .project-header h2 span {
    font-size: 1.6rem !important; /* On s'assure que les spans aussi sont réduits */
  }


  /* --- CARTES DE PRÉSENTATION (Features) --- */
  
  /* Ajustement de la taille du texte dans les 3 cartes de features */
  .feature-card h5 {
    font-size: 1.1rem !important;
  }
  
  .feature-card p {
    font-size: 0.95rem !important;
  }
  
  /* --- ARTICLES DE FORMATION (Posts en bas) --- */
  
  /* Réduction du texte dans les articles avec images */
  .post-boxed__title {
    font-size: 0.9rem !important;
    line-height: 1.5;
  }

}