/* ========================================
   VISITE GUIDÉE FULGUR'ZONE - STYLES CSS
   Version: 1.0 | Dossier: guide_tour/
   ======================================== */

/* Système de visite guidée */
#guided-tour-system {
    display: none;
}

/* Overlay principal */
#tour-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    pointer-events: auto;
}

#tour-prev,
#tour-next {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Tooltip principal */
#tour-tooltip {
    position: fixed;
    background: linear-gradient(135deg, #1a2332, #2c3e50);
    border: 2px solid #4fc3f7;
    border-radius: 15px;
    padding: 20px;
    max-width: 400px;
    z-index: 100000;
    color: white;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.9);
}

/* Header du tooltip - ISOLÉ */
#tour-tooltip > div:first-child {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

/* Compteur d'étapes */
#tour-step-counter {
    color: #4fc3f7;
    font-weight: bold;
}

/* Bouton de fermeture X - TOTALEMENT ISOLÉ */
#tour-tooltip > div:first-child > button {
    background: #607d8b !important;
    color: white !important;
    border: none !important;
    width: 25px !important;
    height: 25px !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    font-size: 16px !important;
    flex: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Titre du tooltip */
#tour-title {
    color: #4fc3f7;
    margin: 0 0 10px 0;
    font-size: 18px;
}

/* Description */
#tour-description {
    margin: 0 0 15px 0;
    line-height: 1.6;
    color: #eee;
}

/* Container des boutons de navigation - ISOLÉ */
#tour-tooltip > div:last-child {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
}

/* BOUTONS DE NAVIGATION - IDENTIQUES ET ISOLÉS */
#tour-tooltip > div:last-child > #tour-prev,
#tour-tooltip > div:last-child > #tour-next {
    border: none !important;
    padding: 8px 15px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    font-weight: bold !important;
    flex: 1 !important;
    max-width: 150px !important;
    min-width: 80px !important;
    text-align: center !important;
    box-sizing: border-box !important;
    height: auto !important;
    width: auto !important;
    font-size: 14px !important;
    margin: 0 !important;
}

/* Couleur bouton précédent */
#tour-tooltip > div:last-child > #tour-prev {
    background: #607d8b !important;
    color: white !important;
    display: none;
}

/* Couleur bouton suivant */
#tour-tooltip > div:last-child > #tour-next {
    background: #4fc3f7 !important;
    color: #000 !important;
}

/* Animation du spotlight */
@keyframes tourPulse {
    0%, 100% {
        box-shadow: 0 0 15px rgba(79, 195, 247, 0.6);
    }
    50% {
        box-shadow: 0 0 30px rgba(79, 195, 247, 0.9);
    }
}

/* Overlay de completion */
#completion-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Popup de completion */
#completion-popup {
    background: linear-gradient(135deg, #1a2332, #2c3e50);
    border: 3px solid #4fc3f7;
    border-radius: 15px;
    padding: 15px;
    max-width: 420px;
    width: calc(100vw - 40px);
    color: white;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.9);
    animation: popupSlideIn 0.5s ease-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    max-height: calc(100vh - 40px);
}

/* Contenu du popup */
#completion-popup > div:first-child {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 0;
}

/* Icône de célébration */
#completion-popup > div:first-child > div:first-child {
    font-size: 32px;
    margin-bottom: 12px;
    animation: bounce 2s infinite;
}

/* Titre de félicitations */
#completion-popup h2 {
    color: #4fc3f7;
    margin: 0 0 10px 0;
    font-size: 18px;
}

/* Description du popup */
#completion-popup p {
    margin: 0 0 15px 0;
    line-height: 1.4;
    font-size: 13px;
    color: #eee;
}

/* Texte en surbrillance */
#completion-popup strong {
    color: #4fc3f7;
}

/* Container des boutons du popup */
#completion-popup > div:last-child {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
}

/* Boutons du popup */
#completion-popup button {
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    width: 100%;
}

/* Bouton premier impact */
#completion-popup button:first-child {
    background: linear-gradient(135deg, #4fc3f7, #03a9f4);
    color: #000;
}

/* Bouton explorer */
#completion-popup button:last-child {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
}

/* Animations */
@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-6px);
    }
    60% {
        transform: translateY(-3px);
    }
}

@keyframes popupSlideOut {
    from {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    to {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8) translateY(20px);
    }
}

/* Responsive - Desktop */
@media (min-width: 480px) {
    #completion-popup {
        max-width: 400px !important;
        width: auto !important;
        padding: 25px !important;
    }
    
    #completion-popup > div:last-child {
        flex-direction: row !important;
        gap: 12px !important;
    }
    
    #completion-popup button {
        flex: 1 !important;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    #tour-tooltip {
        max-width: calc(100vw - 40px);
        padding: 15px;
    }
    
    #tour-title {
        font-size: 16px;
    }
    
    #tour-description {
        font-size: 14px;
    }
}

.filter-circle {
    display: inline-block !important;
    width: 8px;
    height: 8px;
    border-radius: 50% !important;
    border: 2px solid #ffffff !important; /* Couleur par défaut pour éviter les cercles transparents */
    background: transparent !important;
    margin-left: 4px;
    vertical-align: middle;
    box-sizing: border-box !important; /* Important pour mobile */
}

/* Couleurs spécifiques avec maximum de priorité */
.filter-circle.positive {
    border-color: #ff4757 !important;
}

.filter-circle.negative {
    border-color: #00aeff !important; 
}

.filter-circle.featured {
    border-color: #FFD700 !important;
    animation: pulse 2s infinite;
}

/* Media queries mobile avec spécificité renforcée */
@media screen and (max-width: 768px) {
    .filter-circle {
        width: 10px !important;
        height: 10px !important;
        border-width: 2px !important;
        border-style: solid !important;
        border-radius: 50% !important;
        box-sizing: border-box !important;
    }
    
    /* Triple spécificité pour mobile */
    .tour-tooltip .filter-circle.positive,
    #tour-tooltip .filter-circle.positive {
        border-color: #ff4757 !important;
    }
    
    .tour-tooltip .filter-circle.negative,
    #tour-tooltip .filter-circle.negative {
        border-color: #00aeff !important;
    }
    
    .tour-tooltip .filter-circle.featured,
    #tour-tooltip .filter-circle.featured {
        border-color: #FFD700 !important;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

