/* Background commun avec particules pour toutes les pages */

/* Canvas de particules - Configuration unique et optimisée */
#particles-bg {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 0 !important;
    pointer-events: none !important;
    display: block !important;
    background: transparent !important;
    will-change: auto !important;
    transform: translateZ(0) !important;
    backface-visibility: hidden !important;
}

/* Styles de base pour le body */
body {
    background: #181c2b !important;
    color: #ffffff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    line-height: 1.6;
}

body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(24,28,43,0.35);
    z-index: 0;
    pointer-events: none;
}

/* Scrollbar personnalisée */
html, body {
    scrollbar-width: none; /* Firefox */
}

html::-webkit-scrollbar, body::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
    width: 0;
    background: transparent;
}

/* Conteneur principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Sections avec effet glassmorphism */
.section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: none;
    margin: 3rem 0;
    padding: 3rem;
    transform: translateY(50px);
    opacity: 0;
    animation: slideInUp 0.8s ease-out forwards;
}

.section:nth-child(even) { 
    animation-delay: 0.2s; 
}

.section:nth-child(odd) { 
    animation-delay: 0.4s; 
}

/* Animations */
@keyframes slideInUp {
    to { 
        transform: translateY(0); 
        opacity: 1; 
    }
}

@keyframes titleGlow {
    from { 
        filter: brightness(1); 
    }
    to { 
        filter: brightness(1.2); 
    }
}

/* Titres avec gradient */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(102, 126, 234, 0.3);
    margin-bottom: 1rem;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

/* Titres principaux */
.title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(102, 126, 234, 0.3);
    margin-bottom: 1rem;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

/* Sous-titres */
.subtitle {
    font-size: 1.2rem;
    color: #a0a9c0;
    margin-bottom: 2rem;
    animation: slideInUp 1s ease-out 0.5s both;
}

/* Header */
.header {
    text-align: center;
    padding: 4rem 2rem 2rem;
    position: relative;
}

/* Gestion du scroll */
body.no-scroll {
    overflow-y: hidden !important;
}

/* Optimisations mobile pour les particules */
@media (max-width: 768px) {
    #particles-bg {
        will-change: auto !important;
        transform: translateZ(0) !important;
        backface-visibility: hidden !important;
        -webkit-transform: translateZ(0) !important;
        -webkit-backface-visibility: hidden !important;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .section {
        padding: 2rem;
        margin: 2rem 0;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
} 