/* ============================================================
   TCA Tooltips — Définitions au survol des termes clés
   Charte : #008074 (vert TCA) / #13343b (texte principal)
   ============================================================ */

.tca-tooltip {
    display: inline;
}

/* Le terme souligné en pointillé */
.tca-tooltip__term {
    border-bottom: 1.5px dashed #008074;
    color: inherit;
    cursor: help;
    transition: border-color 0.15s;
}
.tca-tooltip:hover .tca-tooltip__term,
.tca-tooltip--open .tca-tooltip__term {
    border-color: #1a6670;
}

/* ---- Portail unique au niveau du body — jamais coupé par overflow ---- */
#tca-bubble-portal {
    display: none;
    position: fixed;
    width: 280px;
    background: #13343b;
    color: #f5f5f5;
    font-size: 13px;
    line-height: 1.6;
    padding: 10px 14px;
    border-radius: 8px;
    z-index: 99999;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
    pointer-events: none;
    white-space: normal;
    text-align: left;
    font-style: normal;
    font-weight: 400;
}

/* Flèche vers le bas (bulle au-dessus du terme) */
#tca-bubble-portal::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 7px solid transparent;
    border-top-color: #13343b;
}

/* Flèche vers le haut (bulle en dessous du terme, quand manque de place) */
#tca-bubble-portal.tca-bubble--bottom::after {
    top: auto;
    bottom: 100%;
    border-top-color: transparent;
    border-bottom-color: #13343b;
}

/* Mobile */
@media (max-width: 680px) {
    #tca-bubble-portal {
        width: 230px;
    }
}
