/* ===== BODY ===== */
body {
    background: url('opengates4backM.png') no-repeat center center fixed;
    background-size: cover;
    color: #00ffe1;
    font-family: 'Orbitron', monospace;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
}

/* ===== HEADER ===== */
header h1 {
    text-align: center;
    margin: 5px;
    font-size: 3em;
    color: #00ffe1;
    text-shadow: 0 0 15px #00ffe1, 0 0 30px #00bcd4;
}

header h2 {
    text-align: center;
    margin: 5px;
    font-size: 1.2em;
    color: #00bcd4;
    text-shadow: 0 0 12px #00bcd4, 0 0 25px #00ffe1;
}

/* ===== OSCILLATEURS HORIZONTAUX ===== */
#controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    width: 95%;
    max-width: 1200px;
}

/* Cases modules */
.module {
    flex: 1 1 18%;
    min-width: 120px;
    max-width: 200px;
    padding: 10px;
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.85), rgba(15, 15, 30, 0.9));
    border: 2px solid #00ffe1;
    box-shadow: 0 0 15px #00ffe1 inset, 0 0 20px #00bcd4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.module:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 0 30px #00ffe1 inset, 0 0 35px #00bcd4;
}

/* ===== INPUTS, SELECTS ET BOUTONS ===== */
input, select, button {
    width: 100%;
    margin-top: 5px;
    padding: 6px 10px;
    border-radius: 6px;
    font-family: 'Orbitron', monospace;
    background: linear-gradient(145deg, #0d0d1f, #17173b);
    color: #00ffe1;
    border: 1px solid #00ffe1;
    box-shadow: 0 0 8px #00ffe1, inset 0 0 5px #00bcd4;
    transition: all 0.2s ease;
}

input:focus, select:focus {
    box-shadow: 0 0 15px #00ffe1, inset 0 0 10px #00bcd4;
    border-color: #00bcd4;
}

button {
    font-weight: 700;
    cursor: pointer;
    background: linear-gradient(145deg, #00ffe1, #00bcd4);
    color: #001;
    border-radius: 10px;
    border: none;
    box-shadow: 0 0 15px #00ffe1, 0 0 25px #00bcd4;
}

button:hover {
    transform: translateY(-2px) scale(1.05);
    background: linear-gradient(145deg, #00bcd4, #00ffe1);
    box-shadow: 0 0 25px #00ffe1, 0 0 40px #00bcd4;
}

/* ===== VISUALISATION 3D ET PORTAL ===== */
#visualization {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 15px;
    width: 95%;
    max-width: 1200px;
    margin-bottom: 15px;
}

#pyramid, #portal {
    flex: 1 1 48%;
    max-width: 100%;
    aspect-ratio: 1.5;
}

#visualization canvas {
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid #00ffe1;
    border-radius: 10px;
    box-shadow: 0 0 20px #00ffe1 inset, 0 0 25px #00bcd4;
}

/* ===== SPECTRE 2D AUDIO ===== */
#visualizer {
    width: 95%;
    max-width: 1200px;
    height: 200px;
    background: rgba(0,0,0,0.6);
    border: 2px solid #00ffe1;
    border-radius: 10px;
    box-shadow: 0 0 20px #00ffe1 inset, 0 0 25px #00bcd4;
    margin-bottom: 20px;
}

/* ===== GLOBAL CONTROLS ===== */
#globalControls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .module { flex: 1 1 22%; }
    #pyramid, #portal { flex: 1 1 100%; aspect-ratio: 1.2; }
    #visualizer { width: 95%; height: 150px; }
}

@media (max-width: 800px) {
    .module { flex: 1 1 45%; min-width: 100px; }
    #pyramid, #portal { width: 90%; height: auto; aspect-ratio: 1.1; }
    #visualizer { width: 90%; height: 120px; }
}

@media (max-width: 500px) {
    .module { flex: 1 1 90%; min-width: 80px; }
    #pyramid, #portal { width: 95%; height: auto; aspect-ratio: 1; }
    #visualizer { width: 95%; height: 100px; }
}
