.atd-tooltip {
    cursor: help;
    text-decoration: none;
}

.atd-tooltip-text {
    border-bottom: 1px dotted var(--wp--preset--color--text-muted, #9CA3AF);
}

.atd-tooltip-icon {
    display: inline-block;
    width: 0.7em;
    height: 0.7em;
    margin-left: 3px;
    vertical-align: middle;
    color: var(--wp--preset--color--primary, #B0001D);
    position: relative;
    top: -1px;
}

.atd-tooltip-bubble {
    position: absolute;
    z-index: var(--wp--custom--z-index--tooltip, 600);
    background: var(--wp--preset--color--text-dark, #1A1A1A);
    color: var(--wp--preset--color--white, #FFFFFF);
    font-family: var(--wp--preset--font-family--poppins, 'Poppins', sans-serif);
    font-size: 14px;
    line-height: var(--wp--custom--line-height--body, 1.6);
    padding: 16px 20px;
    border-radius: var(--wp--custom--border-radius--lg, 12px);
    max-width: min(420px, calc(100vw - 32px));
    width: max-content;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--wp--custom--transition--default, 0.15s ease);
}

.atd-tooltip-bubble.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.atd-tooltip-bubble-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.atd-tooltip-bubble-header .atd-label {
    color: var(--wp--preset--color--primary, #B0001D);
}

.atd-tooltip-bubble-header .atd-term {
    color: var(--wp--preset--color--white, #FFFFFF);
    opacity: 0.7;
    font-weight: 400;
}

.atd-tooltip-close {
    background: none;
    border: none;
    color: var(--wp--preset--color--white, #FFFFFF);
    opacity: 0.5;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 0;
    margin-left: 12px;
    flex-shrink: 0;
}

.atd-tooltip-close:hover {
    opacity: 1;
}

.atd-tooltip-video {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease;
}

.atd-tooltip-video:hover {
    background: rgba(255, 255, 255, 0.18);
    text-decoration: none;
}

.atd-tooltip-video svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Flèche */
.atd-tooltip-bubble::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
}

.atd-tooltip-bubble.pos-top::after {
    top: 100%;
    border-top-color: var(--wp--preset--color--text-dark, #1A1A1A);
}

.atd-tooltip-bubble.pos-bottom::after {
    bottom: 100%;
    border-bottom-color: var(--wp--preset--color--text-dark, #1A1A1A);
}

@media (max-width: 480px) {
    .atd-tooltip-bubble {
        font-size: 13px;
        padding: 14px 16px;
        max-width: calc(100vw - 24px);
    }
}
