body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    color: Yellow;
    font-family: "Segoe UI", Tahoma, sans-serif;
    text-align: center;
    position: relative; /* Important pour le positionnement du calque */
    background: #1a1a2e; /* Couleur de secours si l'image ne charge pas */
}

body::before {
    content: "";
    position: fixed; /* Reste en place même au scroll */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* Ton image et ton filtre */
    background-image: linear-gradient(rgba(26, 26, 46, 0.7), rgba(26, 26, 46, 0.7)), 
                      url("../images/jukebox-UdXTki2.jpg");
    
    background-size: cover;
    background-position: center;
    z-index: -1; /* Place l'image DERRIÈRE le contenu */
    pointer-events: none; /* Empêche le calque de bloquer les clics sur les boutons */
}

.jukebox-container {
    max-width: 600px;
    /* min-width: 30%; */
    margin: 40px auto;
    background: #16213e;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(233, 69, 96, 0.5); /* Effet Néon Rouge */
    border: 4px solid #e94560;
}

/* --- Le Vinyle --- */
.vinyl-wrapper {
    position: relative;
    width: 250px;
    height: 250px;
    margin: 0 auto 30px auto;
}

.vinyl-record {
    width: 100%;
    height: 100%;
    background-color: #111;
    border-radius: 50%;
    border: 5px solid #333;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
    /* L'animation CSS qui fait tourner le disque */
    animation: spin 3s linear infinite;
    animation-play-state: paused; /* En pause par défaut */
    display: flex;
    align-items: center;
    justify-content: center;
}

.vinyl-record.playing {
    animation-play-state: running; /* Tourne quand la classe 'playing' est ajoutée */
}

.vinyl-center {
    width: 80px;
    height: 80px;
    background-color: #e94560;
    border-radius: 50%;
    border: 2px solid white;
}

.hight {
    position: absolute;
    margin-top:5px ;
    padding-top: 20%;
    /*border: 5px solid yellow;*/
}
/*.bottom {*/
/*    position: absolute;*/
    /*padding-top: 1%;*/
    /*bottom: 15px;*/
/*}*/

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* --- Les Boutons --- */
.btn-play {
    background: #0f3460;
    color: white;
    border: 2px solid #43d8c9;
    padding: 15px 30px;
    font-size: 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    transition: 0.3s;
    margin: 10px;
}
.btn-play:hover {
    background: #43d8c9;
    color: #0f3460;
}

.btn-reveal {
    background: #e94560;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    margin-top: 20px;
    display: none; /* Caché au début */
}

/* --- La Solution --- */
.solution-card {
    display: none; /* Cachée au début */
    margin-top: 30px;
    background: #0f3460;
    padding: 20px;
    border-radius: 15px;
    animation: fadeIn 1s;
}

.solution-card img {
    max-width: 200px;
    border-radius: 10px;
    margin-bottom: 15px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
