/* ================================
   VARIABLES CSS CYBERPUNK
   ================================ */
:root {
    --cyber-blue: #00d9ff;
    --cyber-pink: #ff0080;
    --cyber-purple: #b400ff;
    --cyber-green: #00ff88;
    --cyber-orange: #ff6b00;
    --cyber-dark: #0a0e17;
    --cyber-darker: #050812;
}

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

body {
    font-family: 'JetBrains Mono', monospace;
    background-color: var(--cyber-dark);
    color: #ffffff;
    line-height: 1.6;
}

/* ================================
   UTILITAIRES TAILWIND RÉPLIQUÉS
   ================================ */

/* Container */
.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.max-w-7xl {
    max-width: 80rem;
}

.max-w-4xl {
    max-width: 56rem;
}

.max-w-2xl {
    max-width: 42rem;
}

/* Flexbox */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.items-center {
    align-items: center;
}

.items-start {
    align-items: flex-start;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

/* Grid */
.grid {
    display: grid;
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Gap */
.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

.gap-12 {
    gap: 3rem;
}

.gap-16 {
    gap: 4rem;
}

/* Spacing - Padding */
.p-2 {
    padding: 0.5rem;
}

.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.p-8 {
    padding: 2rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.py-20 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.py-24 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.pt-6 {
    padding-top: 1.5rem;
}

.pt-8 {
    padding-top: 2rem;
}

.pb-3 {
    padding-bottom: 0.75rem;
}

.pb-4 {
    padding-bottom: 0.75rem;
}

.pl-4 {
    padding-left: 1rem;
}

/* Spacing - Margin */
.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.mb-16 {
    margin-bottom: 4rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-12 {
    margin-top: 3rem;
}

.mr-2 {
    margin-right: 0.5rem;
}

.mr-3 {
    margin-right: 0.75rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Width & Height */
.w-2 {
    width: 0.5rem;
}

.w-3 {
    width: 0.75rem;
}

.w-10 {
    width: 2.5rem;
}

.w-12 {
    width: 3rem;
}

.w-16 {
    width: 4rem;
}

.h-2 {
    height: 0.5rem;
}

.h-3 {
    height: 0.75rem;
}

.h-10 {
    height: 2.5rem;
}

.h-12 {
    height: 3rem;
}

.h-16 {
    height: 4rem;
}

.h-20 {
    height: 5rem;
}

.min-h-screen {
    min-height: 100vh;
}

/* Display */
.block {
    display: block;
}

.inline-block {
    inline-block: inline-block;
}

.hidden {
    display: none;
}

/* Position */
.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.top-0 {
    top: 0;
}

.top-20 {
    top: 5rem;
}

.right-0 {
    right: 0;
}

.right-20 {
    right: 5rem;
}

.bottom-0 {
    bottom: 0;
}

.bottom-40 {
    bottom: 10rem;
}

.left-0 {
    left: 0;
}

.left-20 {
    left: 5rem;
}

.z-10 {
    z-index: 10;
}

/* Overflow */
.overflow-hidden {
    overflow: hidden;
}

/* Text */
.text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
}

.text-5xl {
    font-size: 3rem;
    line-height: 1;
}

.font-bold {
    font-weight: 700;
}

.font-mono {
    font-family: 'JetBrains Mono', monospace;
}

.font-cyber {
    font-family: 'Orbitron', sans-serif;
}

.tracking-wider {
    letter-spacing: 0.05em;
}

.tracking-widest {
    letter-spacing: 0.1em;
}

.leading-tight {
    line-height: 1.25;
}

.leading-relaxed {
    line-height: 1.625;
}

.text-center {
    text-align: center;
}

.text-white {
    color: #ffffff;
}

.text-gray-300 {
    color: #d1d5db;
}

.text-gray-400 {
    color: #9ca3af;
}

.text-gray-500 {
    color: #6b7280;
}

.text-transparent {
    color: transparent;
}

.italic {
    font-style: italic;
}

/* Background */
.bg-transparent {
    background-color: transparent;
}

.bg-cyber-dark {
    background-color: var(--cyber-dark);
}

.bg-cyber-darker {
    background-color: var(--cyber-darker);
}

.bg-gradient-hero {
    background: linear-gradient(180deg, var(--cyber-darker) 0%, var(--cyber-dark) 100%);
}

.bg-gradient-contact {
    background: linear-gradient(135deg, #0a0e17 0%, #050812 50%, #0f1419 100%);
}

.bg-gradient-btn {
    background: linear-gradient(135deg, var(--cyber-blue) 0%, var(--cyber-purple) 100%);
}

.bg-gradient-to-br-blue {
    background: linear-gradient(to bottom right, rgba(0, 217, 255, 0.3), rgba(0, 217, 255, 0.1));
}

.bg-gradient-to-br-blue-30 {
    background: linear-gradient(to bottom right, rgba(0, 217, 255, 0.3), transparent);
}

.bg-gradient-to-br-pink {
    background: linear-gradient(to bottom right, rgba(255, 0, 128, 0.3), rgba(255, 0, 128, 0.1));
}

.bg-gradient-to-br-orange {
    background: linear-gradient(to bottom right, rgba(255, 107, 0, 0.3), rgba(255, 107, 0, 0.1));
}

.bg-gradient-to-br-purple {
    background: linear-gradient(to bottom right, rgba(180, 0, 255, 0.3), rgba(180, 0, 255, 0.1));
}

.bg-blue-5 {
    background-color: rgba(0, 217, 255, 0.05);
}

.bg-blue-10 {
    background-color: rgba(0, 217, 255, 0.1);
}

.bg-blue-20 {
    background-color: rgba(0, 217, 255, 0.2);
}

.bg-pink-5 {
    background-color: rgba(255, 0, 128, 0.05);
}

.bg-pink-10 {
    background-color: rgba(255, 0, 128, 0.1);
}

.bg-pink-20 {
    background-color: rgba(255, 0, 128, 0.2);
}

.bg-orange-5 {
    background-color: rgba(255, 107, 0, 0.05);
}

.bg-orange-20 {
    background-color: rgba(255, 107, 0, 0.2);
}

.bg-green-5 {
    background-color: rgba(0, 255, 136, 0.05);
}

.bg-green-10 {
    background-color: rgba(0, 255, 136, 0.1);
}

.bg-cyber-darker-90 {
    background-color: rgba(5, 8, 18, 0.9);
}

.bg-clip-text {
    -webkit-background-clip: text;
    background-clip: text;
}

.backdrop-blur {
    backdrop-filter: blur(12px);
}

/* Gradients de texte */
.bg-gradient-text {
    background: linear-gradient(135deg, var(--cyber-blue) 0%, var(--cyber-purple) 50%, var(--cyber-pink) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.bg-gradient-text-2 {
    background: linear-gradient(135deg, var(--cyber-pink) 0%, var(--cyber-orange) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.bg-gradient-text-3 {
    background: linear-gradient(135deg, var(--cyber-green) 0%, var(--cyber-blue) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Borders */
.border {
    border-width: 1px;
}

.border-t {
    border-top-width: 1px;
}

.border-t-2 {
    border-top-width: 2px;
}

.border-b {
    border-bottom-width: 1px;
}

.border-cyber-blue-20 {
    border-color: rgba(0, 217, 255, 0.2);
}

.border-cyber-blue-30 {
    border-color: rgba(0, 217, 255, 0.3);
}

.border-cyber-blue-30-solid {
    border: 1px solid rgba(0, 217, 255, 0.3);
}

.border-cyber-pink-30-solid {
    border: 1px solid rgba(255, 0, 128, 0.3);
}

.border-cyber-green-30-solid {
    border: 1px solid rgba(0, 255, 136, 0.3);
}

/* Rounded */
.rounded-full {
    border-radius: 9999px;
}

/* Shadow */
.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Blur */
.blur-3xl {
    filter: blur(64px);
}

/* Opacity */
.opacity-15 {
    opacity: 0.15;
}

.opacity-20 {
    opacity: 0.2;
}

.opacity-30 {
    opacity: 0.3;
}

/* Transitions */
.transition-colors {
    transition-property: color, background-color, border-color;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-transform {
    transition-property: transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* ================================
   CLASSES PERSONNALISÉES
   ================================ */

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(10, 14, 23, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 217, 255, 0.2);
}

.nav-link {
    position: relative;
    color: #9ca3af;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--cyber-blue);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--cyber-blue);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-mobile-menu {
    background: rgba(5, 8, 18, 0.98);
    border-bottom: 1px solid rgba(0, 217, 255, 0.3);
}

.nav-mobile-link {
    color: #9ca3af;
    transition: color 0.3s;
    padding: 0.5rem 0;
    display: block;
}

.nav-mobile-link:hover {
    color: var(--cyber-blue);
}

/* Hero */
.hero {
    padding-top: 8rem;
}

.hero-code-ml {
    margin-left: 1rem;
}

/* Clip Corner Effect */
.clip-corner {
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px));
}

/* Neon Borders */
.neon-border-blue {
    border: 1px solid var(--cyber-blue);
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.5), inset 0 0 10px rgba(0, 217, 255, 0.1);
}

.neon-border-pink {
    border: 1px solid var(--cyber-pink);
    box-shadow: 0 0 10px rgba(255, 0, 128, 0.5), inset 0 0 10px rgba(255, 0, 128, 0.1);
}

.neon-border-orange {
    border: 1px solid var(--cyber-orange);
    box-shadow: 0 0 10px rgba(255, 107, 0, 0.5), inset 0 0 10px rgba(255, 107, 0, 0.1);
}

.neon-border-purple {
    border: 1px solid var(--cyber-purple);
    box-shadow: 0 0 10px rgba(180, 0, 255, 0.5), inset 0 0 10px rgba(180, 0, 255, 0.1);
}

.neon-border-green {
    border: 1px solid var(--cyber-green);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5), inset 0 0 10px rgba(0, 255, 136, 0.1);
}

/* Cyber Grid */
.cyber-grid {
    position: relative;
    background-image: 
        linear-gradient(rgba(0, 217, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 217, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
}

.cyber-grid-perspective {
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(90deg, transparent 0%, rgba(0, 217, 255, 0.05) 50%, transparent 100%),
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 217, 255, 0.1) 2px, rgba(0, 217, 255, 0.1) 4px);
    transform: perspective(500px) rotateX(60deg);
    transform-origin: center bottom;
    pointer-events: none;
    opacity: 0.3;
}

/* Scanlines */
.scanlines::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 1;
}

/* Particles */
.particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--cyber-blue);
    border-radius: 50%;
    animation: particleFloat 20s infinite linear;
    opacity: 0.6;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100px) translateX(100px);
        opacity: 0;
    }
}

/* Halos lumineux */
.halo-blue {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--cyber-blue) 0%, transparent 70%);
    pointer-events: none;
}

.halo-pink {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--cyber-pink) 0%, transparent 70%);
    pointer-events: none;
}

.halo-purple {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--cyber-purple) 0%, transparent 70%);
    pointer-events: none;
}

.halo-green {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--cyber-green) 0%, transparent 70%);
    pointer-events: none;
}

/* Holographic Card */
.holo-card {
    position: relative;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.05) 0%, rgba(180, 0, 255, 0.05) 100%);
    border: 1px solid rgba(0, 217, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.holo-card:hover {
    border-color: var(--cyber-blue);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 217, 255, 0.3);
}

/* Buttons */
.btn-cyber {
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px));
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    padding: 1rem 2rem;
}

.btn-cyber::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-cyber:hover::before {
    opacity: 1;
}

.btn-cyber:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.5);
}

/* Tags */
.tag-blue {
    padding: 0.25rem 0.75rem;
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 0.25rem;
    font-size: 0.75rem;
    color: var(--cyber-blue);
    font-family: 'JetBrains Mono', monospace;
}

.tag-pink {
    padding: 0.25rem 0.75rem;
    background: rgba(255, 0, 128, 0.1);
    border: 1px solid rgba(255, 0, 128, 0.3);
    border-radius: 0.25rem;
    font-size: 0.75rem;
    color: var(--cyber-pink);
    font-family: 'JetBrains Mono', monospace;
}

.tag-orange {
    padding: 0.25rem 0.75rem;
    background: rgba(255, 107, 0, 0.1);
    border: 1px solid rgba(255, 107, 0, 0.3);
    border-radius: 0.25rem;
    font-size: 0.75rem;
    color: var(--cyber-orange);
    font-family: 'JetBrains Mono', monospace;
}

.tag-purple {
    padding: 0.25rem 0.75rem;
    background: rgba(180, 0, 255, 0.1);
    border: 1px solid rgba(180, 0, 255, 0.3);
    border-radius: 0.25rem;
    font-size: 0.75rem;
    color: var(--cyber-purple);
    font-family: 'JetBrains Mono', monospace;
}

/* Line Separators */
.line-separator-blue {
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--cyber-blue) 50%, transparent 100%);
}

.line-separator-pink {
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--cyber-pink) 50%, transparent 100%);
}

/* Terminal Text Animation */
.terminal-text {
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

/* Glitch Effect */
.glitch {
    position: relative;
    animation: glitch 3s infinite;
}

@keyframes glitch {
    0%, 90%, 100% {
        transform: translate(0);
    }
    91% {
        transform: translate(-2px, -2px);
    }
    92% {
        transform: translate(2px, 2px);
    }
    93% {
        transform: translate(-2px, 2px);
    }
    94% {
        transform: translate(2px, -2px);
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease-out forwards;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.delay-500 {
    animation-delay: 0.5s;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 217, 255, 0.8);
    }
}

.animate-pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite;
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Footer */
.footer-link:hover {
    color: var(--cyber-blue);
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 217, 255, 0.5);
}

/* Group Hover */
.holo-card:hover .group-hover-translate {
    transform: translateX(5px);
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */

/* Small screens (sm) */
@media (min-width: 640px) {
    .sm\:flex-row {
        flex-direction: row;
    }
}

/* Medium screens (md) */
@media (min-width: 768px) {
    .md\:hidden {
        display: none;
    }
    
    .md\:flex {
        display: flex;
    }
    
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Large screens (lg) */
@media (min-width: 1024px) {
    .lg\:block {
        display: block;
    }
    
    .lg\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .lg\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    
    .lg\:p-12 {
        padding: 3rem;
    }
}

/* Hide on mobile (moins de md) */
@media (max-width: 767px) {
    .md\:hidden {
        display: none !important;
    }
    
    .hidden {
        display: none;
    }
    
    .block {
        display: block;
    }
}