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

/* Console Son */
#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 */
.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; 
    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;
}

/* Lueur standard pour Chrome/Firefox */
.plan img:hover {
    filter: drop-shadow(0 0 30px white) brightness(1.2);
    transform: translate(-50%, -50%) scale(1.05);
}

/* Version optimisée pour Safari (activée par le JS) */
.is-safari .plan img:hover {
    filter: none !important;
    outline: 2px solid white;
    outline-offset: 5px;
}

#hover-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 100; pointer-events: none; }
#pointer-svg { width: 100%; height: 100%; }
#pointer-label {
    position: absolute; color: white; font-size: 14px; text-transform: uppercase;
    letter-spacing: 2px; background: rgba(0, 0, 0, 0.5); padding: 4px 8px; display: none;
}

/* LOADER */

#loader{
    position: fixed;
    inset: 0;
    background: black;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-content{
    text-align:center;
}

.loader-text{
    color:white;
    font-family: monospace;
    letter-spacing:4px;
    font-size:12px;
    margin-top:15px;
}

.loader-line{
    width:200px;
    height:1px;
    background:white;
    animation: loading 1.2s infinite;
}

@keyframes loading{
    0%{ transform:scaleX(0); transform-origin:left; }
    50%{ transform:scaleX(1); transform-origin:left; }
    51%{ transform-origin:right; }
    100%{ transform:scaleX(0); transform-origin:right; }
}