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

:root {
    --cube-size: 400px;
    --wireframe-color: rgba(235, 196, 22, 0.274);
    --wireframe-thickness: 1px;
    --rotation-speed: 20s;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #000000;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

/* ===========================
   CUBE EN ARRIÈRE-PLAN
   =========================== */
.cube-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.3;
}

.scene {
    width: 100%;
    height: 100%;
    perspective: 1200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cube-wrapper {
    width: var(--cube-size);
    height: var(--cube-size);
    position: relative;
    transform-style: preserve-3d;
}

.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(-25deg) rotateY(-35deg);
    animation: rotateCube var(--rotation-speed) linear infinite;
}

@keyframes rotateCube {
    from {
        transform: rotateX(-25deg) rotateY(-35deg);
    }
    to {
        transform: rotateX(-25deg) rotateY(325deg);
    }
}

/* ===========================
   FACES DU CUBE (WIREFRAME BLANC)
   =========================== */
.cube-face {
    position: absolute;
    width: var(--cube-size);
    height: var(--cube-size);
    background: transparent;
    border: var(--wireframe-thickness) solid var(--wireframe-color);
    opacity: 1;
}

.cube-face.front {
    transform: translateZ(calc(var(--cube-size) / 2));
}

.cube-face.back {
    transform: translateZ(calc(var(--cube-size) / -2)) rotateY(180deg);
}

.cube-face.right {
    transform: rotateY(90deg) translateZ(calc(var(--cube-size) / 2));
}

.cube-face.left {
    transform: rotateY(-90deg) translateZ(calc(var(--cube-size) / 2));
}

.cube-face.top {
    transform: rotateX(90deg) translateZ(calc(var(--cube-size) / 2));
}

.cube-face.bottom {
    transform: rotateX(-90deg) translateZ(calc(var(--cube-size) / 2));
}

/* Quadrillage sur les faces */
.cube-face::before,
.cube-face::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0.5;
}

.cube-face::before {
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 49px,
        var(--wireframe-color) 49px,
        var(--wireframe-color) 50px
    );
}

.cube-face::after {
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 49px,
        var(--wireframe-color) 49px,
        var(--wireframe-color) 50px
    );
}

/* ===========================
   CONTENU PRINCIPAL
   =========================== */
.content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    animation: fadeIn 1.5s ease-in;
}

.logo {
    width: 150px;
    height: auto;
    margin-bottom: 30px;
    filter: drop-shadow(0 0 20px rgba(228, 213, 8, 0.3));
    animation: float 4s ease-in-out infinite;
}

h1 {
    font-size: 4em;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 3px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #ffffff 0%, #e4d508 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

p {
    font-size: 1.5em;
    margin-bottom: 30px;
    opacity: 0.9;
    font-weight: 300;
}

.tagline {
    font-size: 0.9em;
    opacity: 0.6;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ===========================
   ANIMATIONS
   =========================== */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px); 
    }
    50% { 
        transform: translateY(-10px); 
    }
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 768px) {
    :root {
        --cube-size: 250px;
    }
    
    .logo {
        width: 100px;
        margin-bottom: 20px;
    }
    
    h1 {
        font-size: 2.5em;
    }
    
    p {
        font-size: 1.1em;
    }
    
    .tagline {
        font-size: 0.75em;
    }
}

@media (max-width: 480px) {
    :root {
        --cube-size: 180px;
    }
    
    .logo {
        width: 80px;
    }
    
    h1 {
        font-size: 2em;
    }
    
    p {
        font-size: 1em;
    }
}
