/* Hero Section Styles - Standardisé */
.hero {
    position: relative !important;
    min-height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%) !important;
}

.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 170, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 170, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-move 20s linear infinite;
    z-index: 1;
    pointer-events: none !important;
}

@keyframes grid-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.9) 0%, 
        rgba(0, 50, 100, 0.8) 50%, 
        rgba(0, 0, 0, 0.9) 100%);
    z-index: 2;
    pointer-events: none !important;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, 
        rgba(0, 170, 255, 0.1) 0%, 
        transparent 70%);
    z-index: 3;
    pointer-events: none !important;
}

/* Pluie Matrix */
.matrix-rain {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    font-family: 'Courier New', monospace !important;
    font-size: 12px !important;
    color: #00aaff !important;
    opacity: 0.3 !important;
    z-index: 4 !important;
    pointer-events: none !important;
}

.matrix-column {
    position: absolute !important;
    top: -100px !important;
    animation: matrix-fall 8s linear infinite !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
    will-change: transform, opacity !important;
    transform: translateZ(0) !important;
    font-family: 'Courier New', monospace !important;
    color: #00aaff !important;
    text-shadow: 0 0 5px #00aaff !important;
}

@keyframes matrix-fall {
    0% {
        transform: translateY(-100vh) !important;
        opacity: 1 !important;
    }
    100% {
        transform: translateY(100vh) !important;
        opacity: 0 !important;
    }
}

/* Binaires qui se baladent */
.binary-wanderer {
    position: absolute !important;
    color: #00aaff !important;
    font-family: 'Courier New', monospace !important;
    font-size: 10px !important;
    font-weight: bold !important;
    text-shadow: 0 0 15px #00aaff, 0 0 30px rgba(0, 170, 255, 0.5) !important;
    animation: binary-wander 15s linear infinite !important;
    z-index: 5 !important;
    opacity: 0.8 !important;
    transition: all 0.3s ease !important;
    will-change: transform, opacity !important;
    transform: translateZ(0) !important;
    pointer-events: none !important;
}

.binary-wanderer:hover {
    opacity: 1;
    text-shadow: 0 0 20px #00aaff, 0 0 40px rgba(0, 170, 255, 0.8);
    transform: scale(1.2);
}

@keyframes binary-wander {
    0% {
        transform: translate(0, 0) rotate(0deg) !important;
        opacity: 0 !important;
    }
    10% {
        opacity: 0.8 !important;
    }
    90% {
        opacity: 0.8 !important;
    }
    100% {
        transform: translate(100vw, 100vh) rotate(360deg) !important;
        opacity: 0 !important;
    }
}

/* Cube 3D */
        .cube-container {
            position: absolute !important;
            top: 80% !important;
            left: 50% !important;
            transform: translate(-50%, -50%) translateX(-20%) !important;
            perspective: 1000px !important;
            z-index: 9999 !important;
            opacity: 0.3 !important;
            pointer-events: none !important;
        }

.cube {
    position: relative;
    width: 300px;
    height: 300px;
    transform-style: preserve-3d;
    animation: cube-rotate 20s linear infinite;
    will-change: transform;
    transform: translateZ(0);
}

@keyframes cube-rotate {
    0% { transform: rotateX(0deg) rotateY(0deg); }
    100% { transform: rotateX(360deg) rotateY(360deg); }
}

.cube-face {
    position: absolute;
    width: 300px;
    height: 300px;
    background: #000;
    border: none;
    overflow: hidden;
    font-family: 'Courier New', monospace;
    font-size: 8px;
    line-height: 1;
    color: #00aaff;
    text-shadow: 0 0 5px #00aaff;
    will-change: transform;
}

        .cube-face.front { 
            transform: rotateY(0deg) translateZ(150px) !important;
            background: linear-gradient(45deg, #000 0%, #001133 50%, #000 100%) !important;
            z-index: 10000 !important;
        }
        .cube-face.back { 
            transform: rotateY(180deg) translateZ(150px) !important;
            background: linear-gradient(45deg, #000 0%, #001133 50%, #000 100%) !important;
            z-index: 9998 !important;
        }
        .cube-face.right { 
            transform: rotateY(90deg) translateZ(150px) !important;
            background: linear-gradient(45deg, #000 0%, #001133 50%, #000 100%) !important;
            z-index: 9999 !important;
        }
        .cube-face.left { 
            transform: rotateY(-90deg) translateZ(150px) !important;
            background: linear-gradient(45deg, #000 0%, #001133 50%, #000 100%) !important;
            z-index: 9997 !important;
        }
        .cube-face.top { 
            transform: rotateX(90deg) translateZ(150px) !important;
            background: linear-gradient(45deg, #000 0%, #001133 50%, #000 100%) !important;
            z-index: 10001 !important;
        }
        .cube-face.bottom { 
            transform: rotateX(-90deg) translateZ(150px) !important;
            background: linear-gradient(45deg, #000 0%, #001133 50%, #000 100%) !important;
            z-index: 9996 !important;
        }

/* Code binaire sur les faces */
.binary-face-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    animation: binary-scroll 10s linear infinite;
}

@keyframes binary-scroll {
    0% { transform: translateY(100%); }
    100% { transform: translateY(-100%); }
}

.binary-line {
    display: block;
    white-space: nowrap;
    margin: 0;
    padding: 0;
    opacity: 0.7;
    font-weight: bold;
}

.binary-line:nth-child(odd) {
    opacity: 1;
    text-shadow: 0 0 15px #00aaff, 0 0 25px #00aaff;
    color: #00aaff;
}

.binary-line:nth-child(even) {
    opacity: 0.8;
    text-shadow: 0 0 8px #00aaff;
    color: #0088cc;
}

.binary-line:nth-child(3n) {
    opacity: 0.9;
    text-shadow: 0 0 12px #00aaff, 0 0 20px #00aaff;
    color: #00aaff;
}

.binary-line:nth-child(5n) {
    opacity: 0.6;
    text-shadow: 0 0 6px #00aaff;
    color: #006699;
}

/* Contenu hero */
.hero-content {
    position: relative !important;
    z-index: 10002 !important;
    text-align: center !important;
    max-width: 800px !important;
    margin: 0 auto !important;
    padding: 2rem !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    pointer-events: auto !important;
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-align: center;
    width: 100%;
}

.hero-description {
    font-size: 1.2rem;
    color: #ffffff;
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 600px;
    text-align: center;
    width: 100%;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: linear-gradient(135deg, #00aaff, #0088cc);
    color: #ffffff;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 170, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 170, 255, 0.4);
    background: linear-gradient(135deg, #00bfff, #0099dd);
}

.btn-play {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 1rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-play:hover {
    background: rgba(0, 170, 255, 0.2);
    border-color: #00aaff;
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content {
        padding: 1rem;
        text-align: center;
        align-items: center;
        justify-content: center;
    }
    
    .hero-title {
        font-size: 2rem;
        text-align: center;
        width: 100%;
    }
    
    .hero-description {
        font-size: 1rem;
        text-align: center;
        width: 100%;
        max-width: 100%;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 1rem;
        justify-content: center;
        align-items: center;
        width: 100%;
    }
    
    .cube-container {
        transform: translate(-50%, -50%) translateX(-10%);
    }
    
    .cube {
        width: 200px !important;
        height: 200px !important;
    }
    
    .cube-face {
        width: 200px !important;
        height: 200px !important;
    }
    .cube-face.front { transform: rotateY(0deg) translateZ(100px) !important; }
    .cube-face.back { transform: rotateY(180deg) translateZ(100px) !important; }
    .cube-face.right { transform: rotateY(90deg) translateZ(100px) !important; }
    .cube-face.left { transform: rotateY(-90deg) translateZ(100px) !important; }
    .cube-face.top { transform: rotateX(90deg) translateZ(100px) !important; }
    .cube-face.bottom { transform: rotateX(-90deg) translateZ(100px) !important; }
}

/* Mobile très petit */
@media (max-width: 480px) {
    .hero-content {
        padding: 0.5rem;
    }
    
    .cube {
        width: 150px !important;
        height: 150px !important;
    }
    
    .cube-face {
        width: 150px !important;
        height: 150px !important;
    }
    .cube-face.front { transform: rotateY(0deg) translateZ(75px) !important; }
    .cube-face.back { transform: rotateY(180deg) translateZ(75px) !important; }
    .cube-face.right { transform: rotateY(90deg) translateZ(75px) !important; }
    .cube-face.left { transform: rotateY(-90deg) translateZ(75px) !important; }
    .cube-face.top { transform: rotateX(90deg) translateZ(75px) !important; }
    .cube-face.bottom { transform: rotateX(-90deg) translateZ(75px) !important; }
    
    .hero-title {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .hero-description {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .hero-actions {
        gap: 0.5rem;
    }
}

