/* Styles pour le container */
.container- {
  display: none;
  background-color: #fff;
  width: 70%;
  max-height: 80%;
  padding: 20px;
 /* border: 1px solid #888;*/
  overflow-y: auto;
  margin: 20px auto;
}

/* Styles pour le contenu du programme */
.modal-content_ {
  background-color: transparent;
  margin-top: 60px;
  
 }
.h2-padding{
 padding-top: 10px;
}
.programme-info {
  background-color: black;
  padding: 10px;
  color: white;
}

a[href*="admissionfp.com"] + *:not(.info-button,.admsionBtn2) {
  display: none;
}

a[href*="inforoutefpt.org"] + *:not(.info-button,.admsionBtn2){
  display: none;
}

.programme-subtitle {
  font-size: 20px;
  font-weight: bold;
  color: rgb(255, 255, 255);
  text-align: left;
  margin-top: 10px;
}

.programme-text {
  font-size: 16px;
  color: black;
  text-align: center;
}
.modal-body_ {
  position: relative;
  padding-top: 15px;
}

/* Styles pour la liste des programmes */

#list-formation-inscription .list-group{
    justify-content: flex-start !important;
    border-radius: 30px 30px 30px 30px !important;
    background-color: #f4f4f4 !important;
}

#list-formation-inscription .formation-pagination{
display: none !important;
}

.programme-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.programme-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid black;
  padding: 10px 0;
}

.programme-left {
  flex: 70%;
}

.programme-right {
  display: flex;
  justify-content: flex-start;
  align-items: center;

}

.programme-date {
  font-size: 18px;
  font-weight: bold;
  color: black;
  margin: 0;
}

.programme-disponibilite {
  font-size: 16px;
  color: black;
  margin: 0;
}

.programme-cout {
  font-size: 16px;
  color: black;
  margin: 0;
}
.programme-horaire {
  font-size: 16px;
  color: black;
  margin: 0;
}

.programme-cfp {
  font-size: 16px;
  color: black;
  margin: 0;
}

.inscription-button {
  background-color: #BFA68C;
  color: white;
  border: none;
  padding: 10px 40px;
  font-size: 16px;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  transition: background-color 0.3s;
  text-align: left !important;
  padding-left: 10px;

 
}

.inscription-button::after {
  content: '\2192';
  font-size: 20px;
  margin-left: 5px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 10px;
}

.inscription-button:hover {
  background-color: black;
}

.disabled-button {
  pointer-events: none;
  background-color: #ccc;
  color: #666;
  cursor: not-allowed;
  text-decoration: none;
}
/* Style pour les boutons en résolution responsive */
@media screen and (max-width: 1024px) and (min-width: 320px) {
  .inscription-button ,.inscription-button.clicked ,.inscription-button:hover {
    background-color: #BFA68C;
    color: transparent;
    padding: 10px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
  }

  /* Style de la flèche en résolution responsive */
  .inscription-button::after ,.inscription-button.clicked::after, .inscription-button:hover::after {
    content: '\2192';
    font-size: 20px;
    color: rgb(255, 255, 255);
    margin-left: 0;
    
  }
/* Masquez le texte du lien lorsqu'il est cliqué en résolution responsive */
  .inscription-button.clicked::before ,  .inscription-button:hover::before {
    content: none !important;
    display: none !important;
  }
  /* Style au survol du bouton en résolution responsive */
  .inscription-button:hover::after {
    color: white;
  }
    .disabled-button {
  pointer-events: none;
  background-color: #ccc;
  color: #666;
  cursor: not-allowed;
  text-decoration: none;
 
    font-size: 0;
}

  
  
}
/* Styles pour le loader */
.loader-container {
  text-align: center;
   
  padding: 20px;
}

.loader-programme {
  border: 4px solid #000;
  border-top: 4px solid #BFA68C;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 2s linear infinite;
  margin: 0 auto;
  display: none;
  margin-top: 20px;
  margin-bottom: 20px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.pointer {
  cursor: pointer;
}
/* Style pour le bouton "Plus d'informations" */

.info-button {
  color: black; /* Couleur du texte en noir */
  text-decoration: underline; /* Soulignement du texte */
  cursor: pointer; /* Curseur au survol */
  transition: color 0.3s; /* Transition de la couleur du texte */
  display: block; /* Afficher en tant que bloc pour passer à la ligne suivante */
  margin-top: 10px; /* Espacement en haut pour séparer le lien de "Coût" */
  font-weight: bold; /* Épaisseur de la police (peut varier selon la police d'icônes) */
  font-size: 14px; 
}

 

.info-button:hover {
  color: #BFA68C; /* Couleur du texte au survol */

}
 
#list-formation-inscription .eicon-chevron-right:before{
    color: #000 !important;
    opacity: 0.4 !important;
    transition: color 0.3s !important;
}
#list-formation-inscription .eicon-chevron-left:before{
    color: #000 !important;
    opacity: 0.4 !important;
    transition: color 0.3s !important;
}

#list-formation-inscription .eicon-chevron-right:hover:before {
    opacity: 0.6 !important;  
}
#list-formation-inscription .eicon-chevron-left:hover:before {
    opacity: 0.6 !important;  
}

/*
============================================================
   CSS FINAL - Ajustements d'espacement (Version 4)
============================================================
*/

/* --- 1. Conteneur Principal --- */
#list-formation-inscription {
    display: flex !important;
    flex-direction: row !important;
    /*justify-content: space-between!important;*/
    gap: 30px; /* MODIFIÉ : 20px convertis en rem (20 / 16) */
    /*padding: 0 15px;*/
}

/* --- 2. La Carte Individuelle --- */
.programme-card-dynamic {
    /* Fond et Forme */
    background: linear-gradient(to bottom, #F4F4F4, #E3E1E1);
    
    /* MODIFICATION CI-DESSOUS */
    border-radius: 30px !important; /* Ajout de !important pour forcer l'arrondi */
    
    padding: 30px;    
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.15);
    
    /* Disposition et taille */
    display: flex;
    flex-direction: column;
   
    flex: 1 1 340px;
    max-width: 380px;
    min-height: 420px;
    
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.programme-card-dynamic:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.2);
}

.btn-card:hover{
background-color: #000 !important;
}


/* --- 3. Contenu de la carte --- */

.element-card{
margin-bottom: 20px !important;
}
.element-card p{
margin-top:0px !important;
}


.details-link{
margin-top: 20px !important;
}

.Register-btn{
font-weight: 500 !important;
}

.programme-card-dynamic .elementor-widget-container {
    margin-bottom: 1px;
}

/* Typographie (inchangée) */
.programme-card-dynamic .elementor-icon-box-title span {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    color: #393939;
    font-weight: 400;
}
.programme-card-dynamic .elementor-icon-box-description {
    font-size: clamp(1.1rem, 4vw, 1.25rem);
    font-weight: 700;
    color: #212529;
    margin-top: 2px;
}
.programme-card-dynamic .elementor-icon-box-title a {
    color: #009a9a;
    font-weight: 700;
    font-size: clamp(1rem, 3.5vw, 1.1rem);
    text-decoration: none;
    transition: color 0.2s;
}
.programme-card-dynamic .elementor-icon-box-title a:hover {
    color: #006b6b;
}


/* --- 4. Le Bouton en bas de carte --- */
.programme-card-dynamic .elementor-widget-container:has(.elementor-button-wrapper) {
    margin-top: auto;
    margin-bottom: 0;
    width: 100%;
}
.programme-card-dynamic .elementor-button-wrapper {
    display: flex;
    justify-content: center;
}
.programme-card-dynamic .elementor-button {
    background-color: #008080;
    font-weight: bold;
    border-radius: 50px;
    padding: 14px 35px;
    transition: background-color 0.3s;
    width: 100%;
    max-width: 250px;
}
.programme-card-dynamic .elementor-button-disabled {
    background-color: #b0c4c4 !important; /* Couleur gris-vert très claire */
    color: #6a7f7f !important; /* Texte gris foncé pour un contraste accessible */
    cursor: not-allowed;
    box-shadow: none; /* Retirer toute ombre pour un look "plat" */
}
.programme-card-dynamic .elementor-button-disabled:hover {
    background-color: #b0c4c4 !important;
    transform: none;
}


/* --- 5. Ajustements Spécifiques pour les petits écrans --- */
@media (max-width: 767px) {
    .programme-card-dynamic {
        min-height: auto;
        padding: 1.75rem; 
    }
}
@media (max-width: 400px) {
    #list-formation-inscription {
        padding: 0 10px;
    }
    .programme-card-dynamic .elementor-button {
        padding: 12px 25px;
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    #list-formation-inscription .list-group {
        width: 100% !important; 
    }
    
    .formation-next {
    right: -20px !important;
}
   .formation-prev {
    left: -20px !important;
}
}

/* 
============================================================
   STYLE POUR LA CARTE "AUCUNE OFFRE DISPONIBLE"
============================================================
*/
.no-offer-card {
    flex-basis: 100% !important;
    max-width: 800px !important;
    text-align: center;
    padding: 40px 25px !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-offer-card .no-offer-content p {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.no-offer-card .no-offer-content span {
    font-size: 1rem;
    color: #6c757d;
}