.bargraph {
    display: flex;
    flex-direction: column; /* Change pour s'assurer que les enfants sont empilés verticalement */
    width: 100%;
}

.bargraph-row {
    display: flex;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 15px;  /* Si vous voulez de l'espace entre chaque ligne */
}

.bargraph .barimglabel {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px; /* La hauteur combinée du label et de la barre */
    margin-right: 10px;
    overflow: hidden;
}

.bargraph .barimglabel img {
    width: 100%;  /* L'image ne dépassera pas la largeur de la div parente */
    height: 100%;  /* L'image ne dépassera pas la hauteur de la div parente */
    object-fit: cover;  /* Conserve le ratio de l'image */
    border-radius: 5px;
}

.bargraph .bar-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.bargraph .bar-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bargraph .bar {
    height: 20px;
    background-color: #007BFF;
    width: 0%; /* Initialisé à 0 pour l'animation */
    transition: width 1s ease-out; /* Effet d'animation */
    color: white;
    text-align: left;
    font-size: 16px;
    position: relative;
}

.bargraph .bar-value {
    font-size: 22px;
    font-weight: bold;
	font-family: 'Roboto Condensed', sans-serif;
    color: white;
}

.bargraph .barlabel {
    color: #FFF;
    font-size: 16px;
    font-family: Arial, sans-serif;
    text-align: left; /* Centre le texte horizontalement */
    width: 100%; /* Prend toute la largeur du segment parent */
    display: block;
    margin-top: 10px;
}

.bargraph .bar-label {
    color: #FFF;
    font-size: clamp(7px, 3vw, 22px);
    font-weight: bold;
    font-family: Arial, sans-serif;
    white-space: nowrap;
    overflow: hidden; /* Si le label est trop grand pour le segment, il sera tronqué */
    text-overflow: ellipsis; /* Ajoute des points de suspension à la fin si le label est tronqué */
    text-align: left; /* Centre le texte horizontalement */
    width: 100%; /* Prend toute la largeur du segment parent */
    line-height: 40px; /* Centre le texte verticalement. Assurez-vous que cela corresponde à la hauteur du segment */
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}


.bargraphvertical {
    display: flex;
    flex-direction: row; /* Aligner les barres horizontalement */
    width: 100%; /* Largeur spécifique pour le graph */
    height: 300px;
}

.bargraphvertical .bar {
	width: 100% !important;
    background-color: #007BFF;
    height: 0%; /* Initialisé à 0 pour l'animation */
    transition: height 1s ease-out; /* Effet d'animation */
    align-self: flex-end; /* Pour que la barre grandisse vers le haut */
    max-width: 100%; /* Garantit que la barre ne dépasse pas son conteneur */
}

.bargraphvertical .bar-container {
    flex: 1;
    display: flex;
    flex-direction: column-reverse;
    align-items: center; /* Centre horizontalement les éléments enfants */
}

.bargraphvertical .bar-value {
    font-size: 8px;
    font-weight: light;
    font-family: Arial;
    color: #555555;
    max-width: 100%; /* Ajoutez ceci pour garantir qu'il ne déborde pas */
    text-align: center; /* Centrer le pourcentage */
    white-space: nowrap; /* Empêche le texte de passer à la ligne */
    overflow: hidden; /* Cache tout contenu débordant */
    margin-top: 5px;
}

.bargraphcumule {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
}

.bargraphcumule .bar {
    display: flex;
    height: 40px;
    width: 100%; /* Ou toute autre largeur désirée */
}

.segment {
    position: relative; /* Ajout de cette ligne */
    transition: width 1s ease-out;
    width: 0%; /* Initialisé à 0 pour l'animation */
    height: 50px;
}

.segment-label {
    color: #FFF;
    font-size: 14px;
    font-weight: bold;
    font-family: Arial, sans-serif;
    white-space: nowrap;
    overflow: hidden; /* Si le label est trop grand pour le segment, il sera tronqué */
    text-overflow: ellipsis; /* Ajoute des points de suspension à la fin si le label est tronqué */
    text-align: center; /* Centre le texte horizontalement */
    width: 100%; /* Prend toute la largeur du segment parent */
    line-height: 20px; /* Centre le texte verticalement. Assurez-vous que cela corresponde à la hauteur du segment */
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
align-items: center;
justify-content: center;

}

