/* Style général */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    overflow: hidden;
    background-color: #000;
    color: #fff;
}

/* Container de l'espace */
.space-background {
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: #000;
    background-image: radial-gradient(white, rgba(255, 255, 255, 0.2) 2px, transparent 2px);
    background-size: 100px 100px;
}

#solar-system {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
}

/* Corps célestes */
.celestial-body {
    position: absolute;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.sun {
    width: 100px;
    height: 100px;
    background: radial-gradient(circle at 30% 30%, #ffd700, #ff8c00);
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.8);
    z-index: 10;
}

.mercury {
    width: 15px;
    height: 15px;
    background: radial-gradient(circle at 30% 30%, #c0c0c0, #8a8a8a);
    box-shadow: 0 0 5px rgba(192, 192, 192, 0.5);
}

.venus {
    width: 25px;
    height: 25px;
    background: radial-gradient(circle at 30% 30%, #e6c98a, #b58741);
    box-shadow: 0 0 10px rgba(230, 201, 138, 0.5);
}

.earth {
    width: 30px;
    height: 30px;
    background: radial-gradient(circle at 30% 30%, #1E90FF, #0000CD);
    box-shadow: 0 0 20px rgba(30, 144, 255, 0.5);
}

.moon {
    width: 10px;
    height: 10px;
    background: radial-gradient(circle at 30% 30%, #D3D3D3, #A9A9A9);
    box-shadow: 0 0 5px rgba(211, 211, 211, 0.5);
}

.mars {
    width: 25px;
    height: 25px;
    background: radial-gradient(circle at 30% 30%, #FF4500, #8B0000);
    box-shadow: 0 0 15px rgba(255, 69, 0, 0.5);
}

.jupiter {
    width: 65px;
    height: 65px;
    background: radial-gradient(circle at 30% 30%, #E0B36F, #CD853F);
    box-shadow: 0 0 25px rgba(224, 179, 111, 0.5);
    background-image: 
        radial-gradient(circle at 30% 30%, #E0B36F, #CD853F),
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(200, 150, 100, 0.5) 10px, rgba(200, 150, 100, 0.5) 20px);
}

.saturn {
    width: 55px;
    height: 55px;
    background: radial-gradient(circle at 30% 30%, #F0E68C, #DAA520);
    box-shadow: 0 0 20px rgba(240, 230, 140, 0.5);
}

.saturn-rings {
    position: absolute;
    width: 120px;
    height: 20px;
    border-radius: 50%;
    border: 4px solid rgba(240, 230, 140, 0.7);
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotateX(75deg);
    box-shadow: 0 0 10px rgba(240, 230, 140, 0.3);
}

.uranus {
    width: 40px;
    height: 40px;
    background: radial-gradient(circle at 30% 30%, #B0E0E6, #5F9EA0);
    box-shadow: 0 0 15px rgba(176, 224, 230, 0.5);
}

.neptune {
    width: 38px;
    height: 38px;
    background: radial-gradient(circle at 30% 30%, #4169E1, #000080);
    box-shadow: 0 0 15px rgba(65, 105, 225, 0.5);
}

/* Orbites */
.orbit {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

/* Étiquettes */
.label {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    white-space: nowrap;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    transition: opacity 0.3s;
}

/* Panneaux d'interface */
.panel {
    position: absolute;
    background-color: rgba(10, 25, 50, 0.8);
    border: 1px solid rgba(100, 150, 255, 0.5);
    border-radius: 10px;
    padding: 15px;
    color: white;
    box-shadow: 0 0 20px rgba(0, 100, 255, 0.2);
    max-width: 350px;
    z-index: 100;
}

.panel-title {
    color: #FFD700;
    margin-bottom: 10px;
    font-weight: bold;
    font-size: 18px;
}

#welcome-panel {
    top: 20px;
    left: 20px;
}

#controls-panel {
    bottom: 20px;
    left: 20px;
}

#destination-panel {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

#options-panel {
    bottom: 20px;
    right: 20px;
}

#info-panel {
    top: 20px;
    right: 20px;
    display: none;
    max-width: 350px;
    background-color: rgba(10, 25, 50, 0.9);
    border: 2px solid rgba(100, 150, 255, 0.7);
}

.planet-info {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.4;
}

.planet-icon {
    font-size: 32px;
    margin-bottom: 10px;
    text-align: center;
}

.planet-name {
    font-size: 24px;
    color: #FFD700;
    margin-bottom: 15px;
    text-align: center;
    font-weight: bold;
}

.planet-facts {
    margin-bottom: 15px;
}

.planet-facts div {
    margin-bottom: 5px;
}

.planet-description {
    margin-bottom: 15px;
    text-align: justify;
}

.fun-fact {
    background-color: rgba(50, 50, 10, 0.7);
    border-radius: 8px;
    padding: 10px;
    margin-top: 15px;
    border-left: 3px solid #FFD700;
}

.fun-fact h3 {
    color: #FFD700;
    margin-bottom: 5px;
    font-size: 16px;
}

.quick-nav {
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100px;
}

/* Boutons */
.close-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: none;
    border: none;
    color: #ccc;
    font-size: 20px;
    cursor: pointer;
}

.close-btn:hover {
    color: white;
}

.destination-buttons, .option-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.destination-btn, .option-btn, .quick-nav-btn {
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background-color: rgba(30, 50, 100, 0.5);
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
}

.destination-btn:hover, .option-btn:hover, .quick-nav-btn:hover {
    background-color: rgba(60, 100, 200, 0.7);
}

.active {
    background-color: rgba(100, 150, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.8);
}

.sun-btn {
    background-color: rgba(255, 150, 0, 0.5);
}

.mercury-btn {
    background-color: rgba(150, 150, 150, 0.5);
}

.venus-btn {
    background-color: rgba(230, 201, 138, 0.5);
}

.earth-btn {
    background-color: rgba(30, 100, 255, 0.5);
}

.moon-btn {
    background-color: rgba(150, 150, 150, 0.5);
}

.mars-btn {
    background-color: rgba(255, 50, 0, 0.5);
}

.jupiter-btn {
    background-color: rgba(224, 179, 111, 0.5);
}

.saturn-btn {
    background-color: rgba(240, 230, 140, 0.5);
}

.uranus-btn {
    background-color: rgba(176, 224, 230, 0.5);
}

.neptune-btn {
    background-color: rgba(65, 105, 225, 0.5);
}

/* Liste de contrôles */
#controls-panel ul {
    list-style-type: none;
}

#controls-panel li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.control-icon {
    margin-right: 10px;
    font-size: 16px;
}

/* Animation */
@keyframes rotate {
    from { transform: rotate(0deg) translateX(200px) rotate(0deg); }
    to { transform: rotate(360deg) translateX(200px) rotate(-360deg); }
}

@keyframes moonRotate {
    from { transform: rotate(0deg) translateX(40px) rotate(0deg); }
    to { transform: rotate(360deg) translateX(40px) rotate(-360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .panel {
        max-width: 250px;
        padding: 10px;
    }
    
    .panel-title {
        font-size: 16px;
    }
    
    .destination-btn, .option-btn, .quick-nav-btn {
        padding: 6px 10px;
        font-size: 14px;
    }
    
    .quick-nav {
        width: 80px;
    }
    
    .destination-buttons {
        max-height: 200px;
        overflow-y: auto;
    }
}