/* ============================================
   Composant Tooltip réutilisable
   ============================================ */

/* Conteneur principal */
.tooltip_component {
    display: none;
    position: absolute;
    z-index: 10000;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    padding: 12px 15px;
}

/* Position fixed (pour tooltips sur bottom bar etc.) */
.tooltip_component.tooltip_fixed {
    position: fixed;
}

/* Header : icone + texte + bouton */
.tooltip_header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.tooltip_icone {
    width: 35px;
    height: 35px;
}

.tooltip_texte {
    flex: 1;
}

.tooltip_titre {
    font-weight: bold;
    font-size: 15px;
    color: #333;
    margin-bottom: 4px;
}

.tooltip_desc {
    font-size: 12px;
    color: #666;
    line-height: 1.3;
}

.tooltip_fermer {
    background: #e0e0e0;
    border: none;
    border-radius: 15px;
    padding: 6px 14px;
    font-size: 12px;
    color: #333;
    cursor: pointer;
    white-space: nowrap;
}

.tooltip_fermer:active {
    background: #ccc;
}

/* ============================================
   Flèches (pointent vers l'élément cible)
   ============================================ */
.tooltip_fleche {
    position: absolute;
    width: 0;
    height: 0;
}

/* Flèche vers le haut */
.tooltip_fleche_haut {
    top: -10px;
    right: 12px;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid white;
}

/* Flèche vers le bas */
.tooltip_fleche_bas {
    bottom: -10px;
    right: 25px;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid white;
}

/* Flèche vers le bas centrée */
.tooltip_fleche_bas_centre {
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid white;
}

/* Flèche vers la droite */
.tooltip_fleche_droite {
    right: -10px;
    bottom: 15px;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 10px solid white;
}

/* Flèche vers la gauche */
.tooltip_fleche_gauche {
    left: -10px;
    bottom: 15px;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 10px solid white;
}
