body {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: linear-gradient(135deg, #a8c0ff, #d4aaff); /* Bleu pastel vers violet doux */
    font-family: 'Roboto', Arial, sans-serif;
    margin: 0;
    flex-direction: column;
}

.game-container {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

#des1, #des2, #des3, #des4 {
    width: 90px;
    height: 90px;
    background: url('oeufs.jpg') no-repeat;
    background-size: 90px 550px;
    background-position: 0 0;
    border-radius: 15px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    cursor: pointer;
}

#des1:hover, #des2:hover, #des3:hover, #des4:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(140, 158, 255, 0.6); /* Lueur bleu-violet douce */
}

.puzzle {
    display: block;
    text-align: center;
    font-size: 22px;
    font-weight: bold;
    color: #333; /* Noir doux pour contraste */
    cursor: pointer;
    transition: transform 0.3s, color 0.3s;
}

.puzzle:hover {
    transform: scale(1.15);
    color: #6a5acd; /* Bleu lavande au survol */
}

#valider {
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, #809fff, #957DAD); /* Bleu pastel vers lavande */
    color: white;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, background 0.4s, box-shadow 0.3s;
}

#valider:hover {
    transform: scale(1.1);
    background: linear-gradient(135deg, #6c85d6, #7c6fb5); /* Bleu doux assombri */
    box-shadow: 0 8px 20px rgba(140, 158, 255, 0.6);
}

#resultat {
    margin-top: 25px;
    font-size: 38px;
    font-weight: bold;
    color: #2c3e50; /* Bleu nuit pour contraste */
    display: none;
    text-shadow: 4px 4px 10px rgba(0, 0, 0, 0.5); /* Ombre renforcée */
    animation: pop 0.6s ease-out;
}

@keyframes pop {
    0% { transform: scale(0.5); opacity: 0; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

/* Texte de victoire bien visible */
#resultat.gagne {
    color: #16a34a; /* Vert éclatant */
    text-shadow: 0 0 25px rgba(22, 163, 74, 1), 0 0 10px rgba(255, 255, 255, 0.8);
}

/* Texte d'échec bien visible */
#resultat.perdu {
    color: #dc2626; /* Rouge vif */
    text-shadow: 0 0 25px rgba(220, 38, 38, 1), 0 0 10px rgba(255, 255, 255, 0.8);
}
