/* sae-3.01/app/static/css/guide.css */

/* --- CONTENEUR PRINCIPAL (Overlay) --- */
#guide-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10000;
    display: none; /* Caché par défaut */
    /* IMPORTANT : Permet de scroller et cliquer "à travers" le vide */
    pointer-events: none;
}

#guide-overlay.active {
    display: block;
}

/* --- LES 4 MASQUES (Pour griser autour de l'élément) --- */
.guide-mask {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.6); /* Fond sombre semi-transparent */
    transition: all 0.2s ease-out; /* Animation fluide mais rapide pour suivre le scroll */
    z-index: 10001;
    /* IMPORTANT : Les zones grisées bloquent les clics */
    pointer-events: auto;
}

/* --- CADRE DE SURBRILLANCE (Focus) --- */
#guide-highlight-box {
    position: absolute;
    border: 2px solid var(--color-brand-green); /* Couleur de ton thème */
    box-shadow: 0 0 15px rgba(4, 195, 96, 0.5); /* Lueur verte */
    border-radius: 8px;
    z-index: 10002;
    transition: all 0.2s ease-out;
    /* Le cadre laisse voir mais bloque le clic pour éviter d'activer l'élément par erreur */
    pointer-events: auto;
    background: transparent;
}

/* --- BULLE D'INFO (Tooltip) --- */
#guide-tooltip {
    position: absolute;
    width: 320px;
    background-color: #faf5f1;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 10003;
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
    opacity: 0;
    transform: translateY(10px);
    /* La bulle doit être cliquable */
    pointer-events: auto;
}

#guide-tooltip.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Contenu de la bulle */
#guide-tooltip h4 {
    margin-bottom: 10px;
    color: var(--color-brand-purple);
    font-size: 1.1rem;
    font-weight: 700;
}

#guide-tooltip p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
    margin-bottom: 20px;
}

/* --- CONTROLES (Boutons bas de bulle) --- */
.guide-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.guide-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

#guide-step-count {
    font-size: 0.8rem;
    color: #999;
    font-weight: 600;
}

/* Style des boutons du guide */
.btn-guide {
    border: none;
    background: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background 0.2s;
}

.btn-guide-secondary {
    color: #7f8c8d;
}
.btn-guide-secondary:hover {
    background-color: #f0f0f0;
    color: #333;
}

.btn-guide-primary {
    background-color: var(--color-brand-green);
    color: #faf5f1;
}
.btn-guide-primary:hover {
    background-color: #03a044; /* Un peu plus foncé */
}

/* Bouton déclencheur dans la sidebar */
.nav-link-guide {
    margin-top: auto; /* Pousse le bouton vers le bas si flex column */
    color: var(--color-brand-purple) !important;
    background-color: rgba(135, 45, 132, 0.1);
    border-radius: 8px;
}
.nav-link-guide:hover {
    background-color: rgba(135, 45, 132, 0.2) !important;
}