/* File: /bootik24_evo/frontends/admin-bff/public/css/tooltips.css */
/* Tooltips CSS — système Bootik24 unifié (fond blanc, 4 positions) */

:root {
    --tt-bg:        #ffffff;
    --tt-color:     #1f2937;
    --tt-border:    rgba(15, 23, 42, 0.10);
    --tt-shadow:    0 6px 24px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(15, 23, 42, 0.06);
    --tt-radius:    10px;
    --tt-padding:   20px 24px;
    --tt-min-w:     260px;
    --tt-max-w:     480px;
    --tt-font:      13px;
    --tt-z:         99999999;
}

/* Base */
.tooltip-wrapper {
    display: inline-block;
    position: relative;
    text-align: left;
}
.tooltip-wrapper .text-content { padding: var(--tt-padding); text-transform: none; letter-spacing: normal; }
.tooltip-wrapper img { width: 100%; max-width: var(--tt-max-w); display: block; border-radius: var(--tt-radius) var(--tt-radius) 0 0; }

/* Styles internes — surcharge les défauts du navigateur ET de Bootstrap */
.tooltip-wrapper .text-content h3 {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--tt-color);
    line-height: 1.3;
}
.tooltip-wrapper .text-content h4 {
    margin: 8px 0 4px;
    font-size: 13px;
    font-weight: 700;
    color: var(--tt-color);
}
.tooltip-wrapper .text-content p {
    margin: 0 0 8px;
    line-height: 1.5;
    color: var(--tt-color);
}
.tooltip-wrapper .text-content p:last-child { margin-bottom: 0; }
.tooltip-wrapper .text-content ul,
.tooltip-wrapper .text-content ol {
    margin: 0 0 8px;
    padding-left: 18px;
    list-style-position: outside;
}
.tooltip-wrapper .text-content ul { list-style: disc; }
.tooltip-wrapper .text-content ol { list-style: decimal; }
.tooltip-wrapper .text-content li {
    margin: 0 0 3px;
    line-height: 1.5;
    color: var(--tt-color);
}
.tooltip-wrapper .text-content li:last-child { margin-bottom: 0; }
.tooltip-wrapper .text-content strong,
.tooltip-wrapper .text-content b {
    font-weight: 700;
    color: var(--tt-color);
}
.tooltip-wrapper .text-content em,
.tooltip-wrapper .text-content i {
    font-style: italic;
}
.tooltip-wrapper .text-content code {
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    background: rgba(15,23,42,0.06);
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 0.92em;
    color: var(--tt-color);
}
.tooltip-wrapper .text-content a {
    color: rgb(15 90 117);
    text-decoration: underline;
}

/* Bloc tooltip commun aux 4 positions */
.tooltip-wrapper .top,
.tooltip-wrapper .right,
.tooltip-wrapper .bottom,
.tooltip-wrapper .left {
    min-width: var(--tt-min-w);
    max-width: var(--tt-max-w);
    padding: 0;
    background-color: var(--tt-bg);
    color: var(--tt-color);
    font-size: var(--tt-font);
    font-weight: normal;
    line-height: 1.5;
    border: 1px solid var(--tt-border);
    border-radius: var(--tt-radius);
    box-shadow: var(--tt-shadow);
    box-sizing: border-box;
    position: absolute;
    z-index: var(--tt-z);
}

/* Flèche commune (carré tourné de 45°) */
.tooltip-wrapper .top i,
.tooltip-wrapper .right i,
.tooltip-wrapper .bottom i,
.tooltip-wrapper .left i {
    position: absolute;
    overflow: hidden;
}
.tooltip-wrapper .top i::after,
.tooltip-wrapper .right i::after,
.tooltip-wrapper .bottom i::after,
.tooltip-wrapper .left i::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: var(--tt-bg);
    border: 1px solid var(--tt-border);
}

/* TOP — masquage par défaut, affiché au hover direct */
.tooltip-wrapper .top {
    top: -20px;
    left: 50%;
    transform: translate(-30%, -100%);
    display: none;
}
.tooltip-wrapper:hover > .top { display: block; }
.tooltip-wrapper .top i { top: 100%; left: 30%; margin-left: -12px; width: 24px; height: 12px; }
.tooltip-wrapper .top i::after { left: 50%; transform: translate(-50%, -50%) rotate(45deg); }

/* RIGHT — fade in/out */
.tooltip-wrapper .right {
    top: 50%;
    left: 100%;
    margin-left: 20px;
    transform: translate(0, -50%);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}
.tooltip-wrapper:hover > .right {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.25s ease, visibility 0s linear 0s;
}
.tooltip-wrapper .right i { top: 50%; right: 100%; margin-top: -12px; width: 12px; height: 24px; }
.tooltip-wrapper .right i::after { left: 0; top: 50%; transform: translate(50%, -50%) rotate(-45deg); }

/* BOTTOM */
.tooltip-wrapper .bottom {
    top: calc(100% + 12px);
    left: 50%;
    transform: translate(-50%, 0);
    display: none;
}
.tooltip-wrapper:hover > .bottom { display: block; }
.tooltip-wrapper .bottom i { bottom: 100%; left: 50%; margin-left: -12px; width: 24px; height: 12px; }
.tooltip-wrapper .bottom i::after { left: 50%; transform: translate(-50%, 50%) rotate(45deg); }

/* LEFT */
.tooltip-wrapper .left {
    top: 50%;
    right: 100%;
    margin-right: 20px;
    transform: translate(0, -50%);
    display: none;
}
.tooltip-wrapper:hover > .left { display: block; }
.tooltip-wrapper .left i { top: 50%; left: 100%; margin-top: -12px; width: 12px; height: 24px; }
.tooltip-wrapper .left i::after { left: 0; top: 50%; transform: translate(-50%, -50%) rotate(-45deg); }

/* Responsive adjustments */
@media (max-width: 768px) {
    .tooltip-wrapper .top,
    .tooltip-wrapper .right,
    .tooltip-wrapper .bottom,
    .tooltip-wrapper .left {
        max-width: 300px;
    }
}