/* Variables CSS personnalisées pour la page d'ouverture */
:root {
    --primary-color: #6366f1;
    --secondary-color: #10b981;
    --accent-color: #f97316;
    --dark-bg: #0f172a;
    --text-light: #ffffff;
}

/* Arrière-plan futuriste avec animations */
.futuristic-bg {
    background: 
        radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(249, 115, 22, 0.2) 0%, transparent 50%),
        linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    position: relative;
    overflow: hidden;
    animation: backgroundShift 15s ease-in-out infinite;
}

@keyframes backgroundShift {
    0%, 100% {
        background-position: 0% 0%, 100% 100%, 50% 50%, 0% 0%;
    }
    50% {
        background-position: 100% 100%, 0% 0%, 80% 20%, 0% 0%;
    }
}

/* Particules technologiques flottantes */
.tech-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    opacity: 0.7;
}

.particle:nth-child(2n) {
    background: var(--secondary-color);
    animation-duration: 8s;
    animation-delay: -2s;
}

.particle:nth-child(3n) {
    background: var(--accent-color);
    animation-duration: 10s;
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-20px) translateX(10px);
        opacity: 1;
    }
}

/* Grille technologique animée */
.tech-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(99, 102, 241, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    opacity: 0.3;
}

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

/* Formes géométriques flottantes */
.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border: 2px solid;
    border-radius: 50%;
    animation: rotate 15s linear infinite;
}

.shape:nth-child(1) {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 10%;
    border-color: var(--primary-color);
    animation-duration: 20s;
}

.shape:nth-child(2) {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 15%;
    border-color: var(--secondary-color);
    border-radius: 0;
    animation-duration: 25s;
    animation-direction: reverse;
}

.shape:nth-child(3) {
    width: 80px;
    height: 80px;
    bottom: 30%;
    left: 70%;
    border-color: var(--accent-color);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    border-radius: 0;
    animation-duration: 18s;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: rotate(180deg) scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: rotate(360deg) scale(1);
        opacity: 0.5;
    }
}

/* Effet de lueur pulsante */
.glow-effect {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse-glow 4s ease-in-out infinite;
    opacity: 0.1;
}

.glow-effect:nth-child(2) {
    background: radial-gradient(circle, var(--secondary-color) 0%, transparent 70%);
    animation-delay: -2s;
    top: 60%;
    right: 20%;
}

@keyframes pulse-glow {
    0%, 100% {
        transform: scale(1);
        opacity: 0.1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.3;
    }
}

/* Texte avec effet néon réduit pour meilleure lisibilité */
.neon-text {
    color: var(--text-light);
    text-shadow: 
        0 0 3px currentColor,
        0 0 6px currentColor,
        0 0 10px var(--primary-color);
    animation: neonPulse 4s ease-in-out infinite;
    position: relative;
    font-weight: 700;
}



@keyframes neonPulse {
    0%, 100% {
        text-shadow: 
            0 0 3px currentColor,
            0 0 6px currentColor,
            0 0 10px var(--primary-color);
        opacity: 1;
    }
    50% {
        text-shadow: 
            0 0 2px currentColor,
            0 0 4px currentColor,
            0 0 6px var(--primary-color);
        opacity: 0.9;
    }
}



/* Bouton futuriste */
.futuristic-btn {
    position: relative;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border: none;
    padding: 15px 40px;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 50px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
    cursor: pointer;
}

.futuristic-btn::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.5s;
}

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

.futuristic-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.5);
}

/* Animation d'apparition */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out forwards;
}

.fade-in-up.delay-1 {
    animation-delay: 0.5s;
}

.fade-in-up.delay-2 {
    animation-delay: 1s;
}

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

/* Effet de scan technologique */
.scan-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    animation: scan 3s linear infinite;
    opacity: 0.7;
}

@keyframes scan {
    0% {
        top: 0;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        top: 100%;
        opacity: 0;
    }
}

/* Vagues énergétiques */
.energy-waves {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
}

.wave {
    position: absolute;
    width: 200%;
    height: 200%;
    border-radius: 50%;
    border: 2px solid;
    animation: waveExpand 4s linear infinite;
    opacity: 0;
}

.wave:nth-child(1) {
    border-color: rgba(99, 102, 241, 0.6);
    animation-delay: 0s;
}

.wave:nth-child(2) {
    border-color: rgba(16, 185, 129, 0.6);
    animation-delay: 1s;
}

.wave:nth-child(3) {
    border-color: rgba(249, 115, 22, 0.6);
    animation-delay: 2s;
}

.wave:nth-child(4) {
    border-color: rgba(99, 102, 241, 0.4);
    animation-delay: 3s;
}

@keyframes waveExpand {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
}

/* Particules orbitales */
.orbital-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.orbital {
    position: absolute;
    width: 300px;
    height: 300px;
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: orbitRotate 20s linear infinite;
}

.orbital:nth-child(2) {
    width: 400px;
    height: 400px;
    border-color: rgba(16, 185, 129, 0.2);
    animation-duration: 30s;
    animation-direction: reverse;
}

.orbital:nth-child(3) {
    width: 500px;
    height: 500px;
    border-color: rgba(249, 115, 22, 0.15);
    animation-duration: 40s;
}

.orbital::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: currentColor;
    border-radius: 50%;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 10px currentColor;
}

@keyframes orbitRotate {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Indicateurs technologiques */
.tech-indicator {
    transition: transform 0.3s ease;
}

.tech-indicator:hover {
    transform: translateY(-5px);
}

.tech-indicator .fas {
    transition: all 0.3s ease;
}

.tech-indicator:hover .fas {
    transform: scale(1.2);
}

/* Responsive design */
@media (max-width: 768px) {
    .neon-text {
        font-size: 2.5rem !important;
    }
    
    .shape {
        display: none;
    }
    
    .tech-grid {
        background-size: 30px 30px;
    }
    
    .futuristic-btn {
        padding: 12px 30px;
        font-size: 0.9rem;
    }
    
    .glow-effect {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 480px) {
    .neon-text {
        font-size: 2rem !important;
    }
    
    .tech-particles {
        display: none; /* Masquer les particules sur très petits écrans pour les performances */
    }
}
