/**
 * STYLES POUR LE TOUR GUIDÉ ET TOOLTIPS
 */

/* === DÉSACTIVER LE BLUR GLOBAL === */
body.driver-active,
body.driver-active * {
    /* Aucun filtre global pendant le tour */
}

/* === TOUR GUIDÉ POPOVER === */
.driver-popover {
    background: rgba(20, 20, 30, 0.98) !important;
    backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(255, 215, 0, 0.3) !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5),
                0 0 20px rgba(255, 215, 0, 0.15) !important;
    max-width: 400px !important;
    z-index: 10002 !important;
}

.driver-popover-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #FFD700 !important;
    margin-bottom: 12px !important;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.driver-popover-description {
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

.driver-popover-progress-text {
    font-size: 12px !important;
    color: rgba(255, 215, 0, 0.8) !important;
    font-weight: 600 !important;
}

/* Boutons du tour */
.driver-popover-btn {
    padding: 8px 16px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    transition: all 0.2s ease !important;
}

.driver-popover-next-btn {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%) !important;
    color: #000 !important;
    border: none !important;
}

.driver-popover-next-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4) !important;
}

.driver-popover-prev-btn {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.driver-popover-prev-btn:hover {
    background: rgba(255, 255, 255, 0.15) !important;
}

/* Overlay sombre - SANS BLUR pour netteté maximale */
.driver-overlay,
.driver-overlay svg,
.driver-overlay path,
.driver-overlay * {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    filter: none !important;
    -webkit-filter: none !important;
}

/* Forcer l'opacité de l'overlay */
.driver-overlay path {
    fill: rgba(0, 0, 0, 0.6) !important;
    fill-opacity: 1 !important;
}

/* Élément mis en avant - 100% NET, AUCUN FLOU */
.driver-active-element {
    position: relative !important;
    z-index: 10001 !important;
    box-shadow: 0 0 0 5px rgba(255, 215, 0, 0.9),
                0 0 40px rgba(255, 215, 0, 0.7),
                0 0 80px rgba(255, 215, 0, 0.5),
                0 8px 32px rgba(0, 0, 0, 0.5) !important;
    border-radius: 8px !important;
    /* Aucun filtre, aucun flou - netteté absolue */
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-filter: none !important;
    -webkit-backdrop-filter: none !important;
    animation: tour-highlight-pulse 2s ease-in-out infinite !important;
    /* Isolation pour éviter les effets de blend */
    isolation: isolate !important;
    /* Conserver l'apparence d'origine */
    will-change: transform, box-shadow !important;
}

/* Animation de pulsation intense */
@keyframes tour-highlight-pulse {
    0%, 100% {
        box-shadow: 0 0 0 5px rgba(255, 215, 0, 0.9),
                    0 0 40px rgba(255, 215, 0, 0.7),
                    0 0 80px rgba(255, 215, 0, 0.5),
                    0 8px 32px rgba(0, 0, 0, 0.5);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 7px rgba(255, 215, 0, 1),
                    0 0 50px rgba(255, 215, 0, 0.9),
                    0 0 100px rgba(255, 215, 0, 0.6),
                    0 12px 40px rgba(0, 0, 0, 0.6);
        transform: scale(1.02);
    }
}

/* Élément actif - NETTETÉ ABSOLUE */
.driver-active-element * {
    opacity: 1 !important;
    visibility: visible !important;
    filter: none !important;
    backdrop-filter: none !important;
}

/* Container de l'élément actif - isolation complète */
.driver-active-element,
.driver-active-element::before,
.driver-active-element::after {
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* === TOOLTIPS === */
.tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
}

.tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: rgba(255, 215, 0, 0.15);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    color: #FFD700;
    margin-left: 6px;
    transition: all 0.2s ease;
}

.tooltip-icon:hover {
    background: rgba(255, 215, 0, 0.25);
    transform: scale(1.1);
}

.tooltip-content {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(20, 20, 30, 0.98);
    backdrop-filter: blur(15px);
    color: #fff;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
    white-space: nowrap;
    z-index: 10000;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 215, 0, 0.2);
    pointer-events: none;
    transition: all 0.2s ease;
}

.tooltip:hover .tooltip-content {
    visibility: visible;
    opacity: 1;
    bottom: 135%;
}

.tooltip-content::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(20, 20, 30, 0.98);
}

/* Tooltip à droite pour le menu */
.tooltip-right .tooltip-content {
    bottom: auto;
    left: 110%;
    top: 50%;
    transform: translateY(-50%);
}

.tooltip-right:hover .tooltip-content {
    left: 120%;
}

.tooltip-right .tooltip-content::after {
    top: 50%;
    left: -6px;
    transform: translateY(-50%) rotate(90deg);
}

/* === BADGE "NOUVEAU" === */
.badge-new {
    display: inline-block;
    background: linear-gradient(135deg, #FF6B6B 0%, #FF4757 100%);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse 2s ease infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.7);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(255, 71, 87, 0);
    }
}
