/* Styles de base */
::selection {
    background: #00F5FF;
    color: #0A0A0A;
}

body {
    overflow-x: hidden;
}


/* Effet Glitch */
.glitch-text {
    position: relative;
    animation: glitch 1s infinite;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-text::before {
    left: 2px;
    text-shadow: -2px 0 #00F5FF;
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim 3s infinite linear alternate-reverse;
}

.glitch-text::after {
    left: -2px;
    text-shadow: -2px 0 #ff00ff;
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim2 2s infinite linear alternate-reverse;
}

/* Grid Overlay */
.grid-overlay {
    background-image: linear-gradient(rgba(0, 245, 255, 0.05) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(0, 245, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    width: 100%;
    height: 100%;
    animation: gridMove 20s linear infinite;
}

/* Animations */
@keyframes glitch-anim {
    0% {
        clip: rect(42px, 9999px, 44px, 0);
    }
    100% {
        clip: rect(32px, 9999px, 162px, 0);
    }
}

@keyframes glitch-anim2 {
    0% {
        clip: rect(12px, 9999px, 124px, 0);
    }
    100% {
        clip: rect(62px, 9999px, 82px, 0);
    }
}

@keyframes gridMove {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(50px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem !important;
        line-height: 1.2 !important;
    }
    
    h2 {
        font-size: 2rem !important;
    }
    
    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .grid {
        gap: 1.5rem !important;
    }
    
    section {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0A0A0A;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader-text {
    font-size: 2rem;
    font-weight: bold;
    color: #00F5FF;
    opacity: 0;
}

/* Ajouts pour plus de style */
.gradient-text {
    background: linear-gradient(45deg, #00F5FF, #0066FF);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.card {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 245, 255, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 245, 255, 0.3);
}

.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Menu mobile amélioré */
.mobile-menu {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
}

/* Scrollbar personnalisée */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0A0A0A;
}

::-webkit-scrollbar-thumb {
    background: #00F5FF;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #00c6cc;
}

/* Notifications */
.notification {
    transition: transform 0.3s ease-in-out;
}

.notification.show {
    transform: translateX(0);
} 