.custom-card-title {
    position: relative;
    z-index: 3; /* Mettre un z-index plus élevé pour que le titre soit au-dessus du popup */
}


.custom-card {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.custom-hover-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none; /* Empêche l'élément de bloquer les interactions */
    white-space: nowrap;
}

/* Afficher le texte lorsqu'on survole la carte */
.custom-card:hover .custom-hover-text {
    opacity: 1;
}


.custom-popup {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%); 
    background-color: rgba(246, 166, 75, 1);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: left;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto; /* Active le défilement si le contenu dépasse */
    width: 100%;
    padding: 30px;
 
}

 
 
 
@media only screen and (min-width: 320px) and (max-width: 375px) {
  .custom-popup {
    
    height: 82% ;
  }
 }

 
@media only screen and (min-width: 375px) and (max-width: 480px) {
  .custom-popup {
    
    height: 80% ;
  }
 }


@media only screen and (min-width: 481px) and (max-width: 768px) { 
  .custom-popup {
    
    height: 75% ;
  }
}
 
@media only screen and (min-width: 769px) and (max-width: 920px) { 
  .custom-popup {
    
    height: 82% ;
  }
}
@media only screen and (min-width: 921px) and (max-width: 1100px) { 
  .custom-popup {
    
    height: 82% ;
  }
}

 
@media only screen and (min-width: 1101px) and (max-width: 1200px) {
      .custom-popup {
    
    height: 82% ;
  }
}
@media only screen and (min-width: 1201px) and (max-width: 1300px) {
      .custom-popup {
     
    height: 82% ;
  }
}

 
@media only screen and (min-width: 1301px) and (max-width: 1400px) {
      .custom-popup {
    
    height: 83% ;
  }

}
@media only screen and (min-width: 1401px) and (max-width: 1500px) { 
  .custom-popup {
    
    height: 84% ;
  }
}
@media only screen and (min-width: 1501px) and (max-width: 1600px) { 
  .custom-popup {
    
    height: 86% ;
  }
}

 
@media only screen and (min-width: 1601px) and (max-width: 1700px) { 
  .custom-popup {
   
    height: 87% ;
  }
}
@media only screen and (min-width: 1701px) and (max-width: 1800px) {
  .custom-popup {
    
    height: 88% ;
  }
  }
@media only screen and (min-width: 1801px) and (max-width: 2000px) {  .custom-popup {
    padding: 10px;
    height: 89% ;
  }
}
@media only screen and (min-width: 2001px) {
      .custom-popup {
    
    height: 90% ;
  }

}




/* Assurer que le popup est au-dessus du fond semi-transparent */
.custom-active .custom-popup {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* Ajustement du texte */
#text-bio {
    font-size: 13px;
    line-height: 21px;
    font-family: 'Avenir LT Std', sans-serif;
    text-align: left; 
    overflow-y: auto; /* Active le défilement vertical */
    max-height: 82%; /* Limite la hauteur du texte */
    margin: 0;
    padding-right: 10px; /* Espace pour le défilement */

}

/* Styliser la barre de défilement */
#text-bio::-webkit-scrollbar {
    width: 8px; /* Taille de la barre de défilement */
    height: 8px; /* Si tu veux aussi un défilement horizontal */
}

/* Styliser le "thumb" (partie déplaçable de la barre de défilement) */
#text-bio::-webkit-scrollbar-thumb {
    background-color: white; /* Couleur de la barre de défilement */
    border-radius: 10px; /* Bords arrondis de 10px */
}

/* Styliser la piste de la barre de défilement */
#text-bio::-webkit-scrollbar-track {
    background-color: rgba(0, 0, 0, 0.1); /* Couleur de la piste */
    border-radius: 10px; /* Bords arrondis de 10px pour la piste */
}



  .custom-close-btn {
    position: absolute;
    top: 8px;
    right: 8px;  /* Déplace le bouton à droite */
    background-color: #C0392B;
    color: white;
    border: none;
    width: 30px;  /* Largeur fixe pour un bouton rond */
    height: 30px; /* Hauteur fixe pour un bouton rond */
    border-radius: 50%; /* Rend le bouton parfaitement rond */
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

hr {
    width: 100%;
    height: 1px;
    background-color: rgba(0, 0, 0, 0.2);
    margin: 40px 0 20px 0;
    border: none;

}
