* { margin:0; padding:0; box-sizing:border-box; }
body { height: 1000vh; background: black; overflow-x: hidden; font-family: monospace; }

/* Console Son discrète */
#sound-console {
    position: fixed; bottom: 20px; right: 20px; z-index: 99999;
    background: rgba(0, 0, 0, 0.9); border: 1px solid #444; color: white;
}
#sound-header { padding: 10px 15px; cursor: pointer; background: #222; letter-spacing: 2px; text-align: center; }
#sound-controls { display: none; padding: 15px; border-top: 1px solid #444; }
#sound-controls.active { display: block; }
.control-group { margin-bottom: 15px; }
.control-group label { display: block; margin-bottom: 5px; color: #888; font-size: 9px; }
input[type=range] { width: 100%; cursor: pointer; }
#mute-btn { padding: 5px; text-align: center; border: 1px solid #555; cursor: pointer; font-size: 10px; transition: 0.3s; }
#mute-btn:hover { background: white; color: black; }

/* Parallax et images */
.parallax-wrapper { position: fixed; width: 100%; height: 100vh; z-index: 1; pointer-events: none; }
.background { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.plan {
    
    position: absolute; 
    width: 8000px; 
    height: 34000px; /* Garde cette valeur cohérente avec le JS */
    left: 50%; 
    top: 0;

    transform-origin: top center;
    transform: translateX(-50%);
}

.plan img {
    position: absolute; transform: translate(-50%, -50%);
    cursor: pointer; pointer-events: auto;
    transition: filter 0.3s ease, transform 0.3s ease;
}
.plan img:hover {
    filter: drop-shadow(0 0 30px white) brightness(1.2);
    transform: translate(-50%, -50%) scale(1.05);
}
/* Calque invisible qui contient les lignes et labels */
#hover-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100; /* Doit être au-dessus des images */
    pointer-events: none; /* Important : laisse passer le clic vers les images */
}

#pointer-svg {
    width: 100%;
    height: 100%;
}

#pointer-label {
    position: absolute;
    color: white;
    font-family: monospace;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: rgba(0, 0, 0, 0.5); /* Petit fond pour la lisibilité */
    padding: 4px 8px;
    display: none; /* Caché par défaut, activé par le JS */
    pointer-events: none;
}