
/* infobulle */
/* Container de l'élément avec infobulle */
.tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
    color: #fff;
    font-size:1em;
    font-weight: bold;
    background-color: ;
    padding: 0px 5px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.tooltip:hover {
    background-color: #;
}

/* Texte de l'infobulle */
.tooltip .tooltiptext {
    visibility: hidden;
    width: 220px;
    background-color: rgba(0, 0, 0, 0.85);
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 12px;
    position: absolute;
    z-index: 1;
    bottom: 125%; /* Position au-dessus du texte */
    left: 50%;
    transform: translateX(-50%);
    
    /* Transition douce pour l'apparition */
    opacity: 0;
    transition: opacity 0.4s, bottom 0.4s;
}

/* Petit triangle en dessous de l'infobulle */
.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%; /* à la base de l'infobulle */
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.85) transparent transparent transparent;
}

/* Affichage de l'infobulle au survol */
.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
    bottom: 150%; /* remonte l'infobulle doucement */
}

/* Animation d'apparition */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.tooltip:hover .tooltiptext {
    animation: fadeInUp 0.4s ease-out forwards;
}