/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #000; /* Fond noir */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* SCENE POUR LE CUBE */
.scene {
    perspective: 800px;
    width: 200px;
    height: 200px;
}

/* CUBE 3D */
.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateCube 10s infinite linear;
}

/* FACES DU CUBE */
.face {
    position: absolute;
    width: 200px;
    height: 200px;
    background: #ffffff; /* Blanc */
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.3); /* Ombres internes */
}

/* POSITION DES FACES */
.front  { transform: translateZ(100px); }
.back   { transform: rotateY(180deg) translateZ(100px); }
.right  { transform: rotateY(90deg) translateZ(100px); }
.left   { transform: rotateY(-90deg) translateZ(100px); }
.top    { transform: rotateX(90deg) translateZ(100px); }
.bottom { transform: rotateX(-90deg) translateZ(100px); }

/* ANIMATION DU CUBE */
@keyframes rotateCube {
    0%   { transform: rotateX(0deg) rotateY(0deg); }
    100% { transform: rotateX(360deg) rotateY(360deg); }
}
