/* ===============================================
   VARIABLES ET CONFIGURATION GLOBALE
   =============================================== */

   :root {
    --primary-blue: #3B82F6;
    --primary-blue-dark: #2563EB;
    --cyber-cyan: #22D3EE;
    --dark-bg: #020617;
    --card-bg: rgba(15, 23, 42, 0.8);
    --border-color: rgba(71, 85, 105, 0.3);
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --glow-blue: rgba(59, 130, 246, 0.3);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ===============================================
   ANIMATIONS ET EFFETS
   =============================================== */

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px var(--glow-blue); }
    50% { box-shadow: 0 0 40px var(--glow-blue); }
}

.fade-in {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.fade-in-left {
    animation: fadeInLeft 0.8s ease-out forwards;
    opacity: 0;
}

.fade-in-right {
    animation: fadeInRight 0.8s ease-out forwards;
    opacity: 0;
}

/* Délais d'animation échelonnés */
.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.2s; }
.fade-in:nth-child(3) { animation-delay: 0.3s; }
.fade-in:nth-child(4) { animation-delay: 0.4s; }

/* ===============================================
   HERO SECTION
   =============================================== */

.hero {
    position: relative;
    background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
                linear-gradient(180deg, var(--dark-bg) 0%, #0F172A 100%);
}

/* Grille de fond cyber */
.grid-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(59, 130, 246, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: float 6s ease-in-out infinite;
    opacity: 0.3;
}

/* Orbes flottants */
.floating-orbs {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, var(--glow-blue), transparent 70%);
    animation: float 8s ease-in-out infinite;
}

.orb-1 {
    width: 200px;
    height: 200px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.orb-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 60%;
    animation-delay: 4s;
}

.hero-badge {
    backdrop-filter: blur(10px);
    animation: pulse-glow 2s ease-in-out infinite;
}

.hero-title {
    font-weight: 900;
    letter-spacing: -0.02em;
    text-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
}

.highlight {
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--cyber-cyan));
    border-radius: 2px;
    opacity: 0.8;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-secondary);
}

/* ===============================================
   STATS SECTION
   =============================================== */

.stats-section {
    position: relative;
    backdrop-filter: blur(10px);
}

.stats-container {
    position: relative;
    backdrop-filter: blur(20px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.stat-item {
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-icon {
    transition: all 0.3s ease;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.counter {
    display: inline-block;
    transition: all 0.3s ease;
}

/* ===============================================
   ARGUMENTS SECTION
   =============================================== */

.argument-card {
    position: relative;
    backdrop-filter: blur(20px);
    overflow: hidden;
}

.argument-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.5), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.argument-card:hover::before {
    transform: translateX(100%);
}

.icon-container {
    transition: all 0.3s ease;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.argument-card:hover .icon-container {
    transform: scale(1.1);
}

/* ===============================================
   EVENTS SECTION
   =============================================== */

.events-section {
    position: relative;
}

.event-card {
    position: relative;
    backdrop-filter: blur(20px);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.event-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.event-card:hover::after {
    opacity: 1;
}

.event-badge {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.event-prize {
    text-shadow: 0 0 10px rgba(234, 179, 8, 0.5);
}

.btn-event {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-event::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.btn-event:hover::before {
    left: 100%;
}

/* ===============================================
   SPONSORS SECTION
   =============================================== */

.sponsors-container {
    backdrop-filter: blur(20px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.sponsor-logo {
    transition: all 0.3s ease;
    border: 1px solid rgba(71, 85, 105, 0.2);
    backdrop-filter: blur(10px);
}

.sponsor-item:hover .sponsor-logo {
    border-color: var(--primary-blue);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.2);
}

.become-sponsor {
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.become-sponsor:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* ===============================================
   CTA SECTION
   =============================================== */

.cta-section {
    background: 
        radial-gradient(circle at 30% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(34, 211, 238, 0.1) 0%, transparent 50%),
        linear-gradient(180deg, transparent 0%, var(--dark-bg) 100%);
}

.cta-primary {
    position: relative;
    overflow: hidden;
}

.cta-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.cta-primary:hover::before {
    left: 100%;
}

.cta-secondary {
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

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

@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        padding: 2rem;
    }
    
    .arguments-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        padding: 1.5rem;
        gap: 1.5rem;
    }
    
    .stat-item h2 {
        font-size: 2rem;
    }
    
    .arguments-container,
    .events-container {
        grid-template-columns: 1fr;
    }
    
    .sponsors-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .hero-buttons,
    .cta-section .flex {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .stats-container {
        padding: 1rem;
        gap: 1rem;
    }
    
    .stat-item h2 {
        font-size: 1.5rem;
    }
    
    .stat-icon {
        width: 3rem;
        height: 3rem;
    }
    
    .stat-icon i {
        width: 1.5rem;
        height: 1.5rem;
    }
    
    .argument-card,
    .event-card {
        padding: 1.5rem;
    }
    
    .sponsors-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* ===============================================
   EFFETS DE GLASSMORPHISM
   =============================================== */

.glass-effect {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-hover:hover {
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(59, 130, 246, 0.3);
}

/* ===============================================
   ANIMATIONS AU SCROLL
   =============================================== */

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.animate-on-scroll.animate {
    opacity: 1;
    transform: translateY(0);
}

/* ===============================================
   BOUTONS PERSONNALISÉS
   =============================================== */

.btn-cyber {
    position: relative;
    background: linear-gradient(45deg, var(--primary-blue), var(--cyber-cyan));
    border: none;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-cyber::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.btn-cyber:hover::before {
    left: 100%;
}

.btn-cyber:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
}

/* ===============================================
   PARTICLES EFFECT (optionnel)
   =============================================== */

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--primary-blue);
    border-radius: 50%;
    animation: float-particle 15s linear infinite;
}

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