/* ===== SPACE-EFFECTS.CSS - EFFETS SPATIAUX AVANCÉS ===== */

/* ===== CONTENEUR SPATIAL PRINCIPAL ===== */
.space-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-background);
    background: var(--gradient-nebula);
    overflow: hidden;
}

/* ===== NÉBULEUSE D'ARRIÈRE-PLAN ===== */
.nebula {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: 
        radial-gradient(ellipse 800px 400px at 20% 30%, rgba(0, 255, 136, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 600px 300px at 80% 70%, rgba(0, 204, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 400px 800px at 40% 80%, rgba(255, 107, 122, 0.06) 0%, transparent 50%);
    animation: nebulaFloat 60s ease-in-out infinite;
    opacity: 0.7;
}

@keyframes nebulaFloat {
    0%, 100% { 
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    25% { 
        transform: translate(-2%, -1%) rotate(1deg) scale(1.02);
    }
    50% { 
        transform: translate(-1%, 2%) rotate(-0.5deg) scale(0.98);
    }
    75% { 
        transform: translate(1%, -1%) rotate(0.8deg) scale(1.01);
    }
}

/* ===== CHAMP D'ÉTOILES INTERACTIF ===== */
.stars-field {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: var(--z-stars);
}

.star {
    position: absolute;
    background: #ffffff;
    border-radius: 50%;
    animation: starTwinkle 3s ease-in-out infinite;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.7;
    cursor: pointer;
}

/* Tailles variées d'étoiles */
.star.size-1 { width: 1px; height: 1px; }
.star.size-2 { width: 2px; height: 2px; }
.star.size-3 { width: 3px; height: 3px; }
.star.size-4 { width: 4px; height: 4px; }

/* Animation de scintillement */
@keyframes starTwinkle {
    0%, 100% { 
        opacity: 0.3; 
        transform: scale(1);
    }
    25% { 
        opacity: 0.6; 
        transform: scale(1.2);
    }
    50% { 
        opacity: 1; 
        transform: scale(1.5);
        box-shadow: 0 0 15px currentColor;
    }
    75% { 
        opacity: 0.8; 
        transform: scale(1.3);
    }
}

/* Effet hover sur les étoiles */
.star:hover {
    transform: scale(3) !important;
    opacity: 1 !important;
    background: var(--cosmic-primary) !important;
    box-shadow: 
        0 0 30px var(--cosmic-primary),
        0 0 60px var(--cosmic-primary),
        0 0 90px var(--cosmic-primary) !important;
    animation: starExplosion 0.6s ease-out !important;
    z-index: 100;
}

@keyframes starExplosion {
    0% { 
        transform: scale(1);
        filter: brightness(1);
    }
    50% { 
        transform: scale(4);
        filter: brightness(2);
    }
    100% { 
        transform: scale(3);
        filter: brightness(1.5);
    }
}

/* Étoiles proches du curseur */
.star.near-cursor {
    transform: scale(2);
    opacity: 1;
    background: var(--cosmic-secondary);
    box-shadow: 0 0 20px var(--cosmic-secondary);
    animation: none;
}

/* ===== ÉTOILES FILANTES ===== */
.shooting-stars {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: var(--z-stars);
    overflow: hidden;
}

.shooting-star {
    position: absolute;
    width: 4px;
    height: 100px;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 1) 0%,
        rgba(0, 255, 136, 0.8) 30%,
        rgba(0, 204, 255, 0.6) 60%,
        transparent 100%
    );
    border-radius: 50%;
    filter: blur(0.5px);
    animation: shootingStar 3s linear;
    pointer-events: none;
    box-shadow: 
        0 0 10px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(0, 255, 136, 0.6),
        0 0 30px rgba(0, 204, 255, 0.4);
}

@keyframes shootingStar {
    0% {
        opacity: 0;
        transform: translateX(-100px) translateY(-100px) rotate(45deg);
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateX(calc(100vw + 100px)) translateY(calc(100vh + 100px)) rotate(45deg);
    }
}

/* Variantes d'étoiles filantes */
.shooting-star.variant-1 {
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 107, 122, 0.8) 30%,
        rgba(255, 165, 2, 0.6) 60%,
        transparent 100%
    );
    animation-duration: 4s;
    animation-delay: 1s;
}

.shooting-star.variant-2 {
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 1) 0%,
        rgba(0, 204, 255, 0.9) 30%,
        rgba(153, 69, 255, 0.7) 60%,
        transparent 100%
    );
    animation-duration: 2.5s;
    animation-delay: 2s;
}

/* ===== PARTICULES FLOTTANTES ===== */
.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: var(--z-effects);
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: particleFloat 15s ease-in-out infinite;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-50px) translateX(20px) scale(1.2);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-100px) translateX(-10px) scale(0.8);
        opacity: 1;
    }
    75% {
        transform: translateY(-70px) translateX(30px) scale(1.1);
        opacity: 0.7;
    }
}

/* Délais variés pour les particules */
.particle:nth-child(1) { animation-delay: 0s; }
.particle:nth-child(2) { animation-delay: -3s; }
.particle:nth-child(3) { animation-delay: -6s; }
.particle:nth-child(4) { animation-delay: -9s; }
.particle:nth-child(5) { animation-delay: -12s; }

/* ===== STATION SPATIALE & VISUALISATION ===== */
.cosmic-visualization {
    position: relative;
    width: 100%;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.space-station {
    position: relative;
    width: 400px;
    height: 400px;
    animation: stationRotation 30s linear infinite;
}

.station-core {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    transform: translate(-50%, -50%);
    background: var(--gradient-cosmic);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 0 30px var(--cosmic-primary),
        inset 0 0 20px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.core-ring {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid var(--cosmic-primary);
    border-radius: 50%;
    animation: coreRingPulse 3s ease-in-out infinite;
}

@keyframes coreRingPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

.core-center {
    font-size: 2rem;
    animation: coreGlow 2s ease-in-out infinite alternate;
}

@keyframes coreGlow {
    from {
        text-shadow: 0 0 10px var(--cosmic-primary);
        filter: brightness(1);
    }
    to {
        text-shadow: 0 0 20px var(--cosmic-primary);
        filter: brightness(1.5);
    }
}

@keyframes stationRotation {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===== ORBITES CRYPTO ===== */
.crypto-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.orbit-1 {
    width: 200px;
    height: 200px;
    animation: orbitRotation1 20s linear infinite;
}

.orbit-2 {
    width: 280px;
    height: 280px;
    animation: orbitRotation2 25s linear infinite reverse;
}

.orbit-3 {
    width: 360px;
    height: 360px;
    animation: orbitRotation3 30s linear infinite;
}

.orbit-4 {
    width: 440px;
    height: 440px;
    animation: orbitRotation4 35s linear infinite reverse;
}

@keyframes orbitRotation1 {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes orbitRotation2 {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes orbitRotation3 {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes orbitRotation4 {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ===== SATELLITES CRYPTO ===== */
.crypto-satellite {
    position: absolute;
    width: 60px;
    height: 60px;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
    animation: satelliteFloat 4s ease-in-out infinite;
}

.crypto-satellite:hover {
    transform: translateX(-50%) scale(1.2);
    border-color: var(--cosmic-primary);
    box-shadow: 
        0 20px 40px rgba(0, 255, 136, 0.4),
        inset 0 0 30px rgba(0, 255, 136, 0.2);
    z-index: 20;
}

@keyframes satelliteFloat {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
        box-shadow: 
            0 10px 30px rgba(0, 0, 0, 0.3),
            inset 0 0 20px rgba(255, 255, 255, 0.1);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
        box-shadow: 
            0 20px 40px rgba(0, 0, 0, 0.4),
            inset 0 0 30px rgba(255, 255, 255, 0.15);
    }
}

.crypto-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
}

.crypto-satellite:hover .crypto-logo {
    filter: drop-shadow(0 6px 12px rgba(0, 255, 136, 0.4));
    transform: scale(1.1);
}

/* Traînées des satellites */
.satellite-trail {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 20px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 255, 136, 0.6) 50%,
        rgba(0, 204, 255, 0.8) 100%
    );
    transform: translate(-50%, -50%);
    border-radius: 1px;
    opacity: 0;
    transition: all 0.3s ease;
    animation: trailPulse 2s ease-in-out infinite;
}

.crypto-satellite:hover .satellite-trail {
    opacity: 1;
    height: 40px;
}

@keyframes trailPulse {
    0%, 100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scaleY(1);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scaleY(1.2);
    }
}

/* ===== RAYONS D'ÉNERGIE ===== */
.energy-beams {
    display: none; /* On les cache */
}


@keyframes beamPulse {
    0%, 100% {
        opacity: 0.2;
        transform: scale(1) rotate(var(--beam-rotation, 0deg));
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1) rotate(var(--beam-rotation, 0deg));
    }
}

/* ===== NAVIGATION SPATIALE FLOTTANTE ===== */
.space-navigation {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: var(--z-navigation);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.nav-item {
    width: 50px;
    height: 50px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-cosmic);
    opacity: 0;
    transition: all 0.3s ease;
    border-radius: 50%;
    transform: scale(0);
}

.nav-item:hover::before,
.nav-item.active::before {
    opacity: 0.2;
    transform: scale(1);
}

.nav-item:hover {
    transform: scale(1.1);
    border-color: var(--cosmic-primary);
    box-shadow: var(--shadow-cosmic);
}

.nav-item.active {
    border-color: var(--cosmic-primary);
    box-shadow: var(--shadow-cosmic);
    transform: scale(1.15);
}

.nav-icon {
    font-size: 1.5rem;
    position: relative;
    z-index: 2;
    animation: iconFloat 3s ease-in-out infinite;
}

.nav-item.active .nav-icon {
    animation: activeIconPulse 2s ease-in-out infinite;
}

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

@keyframes activeIconPulse {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.1);
        filter: brightness(1.3);
    }
}

/* ===== GRILLES DE CONTENU ===== */
.features-grid,
.pricing-grid {
    display: grid;
    gap: var(--space-xl);
    margin-top: var(--space-xxl);
}

.features-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    align-items: stretch;
    grid-auto-rows: 1fr;
}

.pricing-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== CARTES FONCTIONNALITÉS ===== */
.feature-card {
    padding: var(--space-xl);
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    opacity: 1;
    transform: translateY(0);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    height: 100%;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.3s; }
.feature-card:nth-child(3) { animation-delay: 0.5s; }

@keyframes cardSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--cosmic-primary);
    box-shadow: var(--shadow-cosmic);
}

.feature-icon {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-container {
    font-size: 2.5rem;
    position: relative;
    z-index: 2;
    animation: iconFloatBig 4s ease-in-out infinite;
}

.icon-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-cosmic);
    border-radius: 50%;
    opacity: 0;
    filter: blur(15px);
    transition: all 0.4s ease;
}

.feature-card:hover .icon-glow {
    opacity: 0.6;
    transform: scale(1.3);
}

@keyframes iconFloatBig {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-5px) rotate(2deg);
    }
    75% {
        transform: translateY(5px) rotate(-2deg);
    }
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--cosmic-primary);
    margin-bottom: var(--space-md);
    text-align: center;
}

.feature-description {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    text-align: center;
    margin-bottom: var(--space-lg);
    flex: 1;
}

.feature-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    margin-top: auto;
}

.stat {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--cosmic-secondary);
    padding: var(--space-xs) var(--space-sm);
    background: rgba(0, 204, 255, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(0, 204, 255, 0.2);
}

/* ===== SECTIONS PRICING & CONTACT ===== */
.features-section,
.pricing-section,
.about-section,
.contact-section {
    padding: var(--space-xxl) 0;
    position: relative;
}

.pricing-card {
    padding: var(--space-xl);
    border-radius: 25px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: cardSlideUp 0.8s ease-out;
    animation-fill-mode: both;
}

.pricing-card:nth-child(1) { animation-delay: 0.2s; }
.pricing-card:nth-child(2) { animation-delay: 0.4s; }
.pricing-card:nth-child(3) { animation-delay: 0.6s; }

.pricing-card.featured {
    transform: scale(1.05);
    border-color: var(--cosmic-primary);
    box-shadow: var(--shadow-cosmic);
}

.popular-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-cosmic);
    color: var(--cosmic-dark);
    padding: var(--space-xs) var(--space-md);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: var(--shadow-cosmic);
}

.card-header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--cosmic-primary);
    margin-bottom: var(--space-md);
}

.card-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: var(--space-xs);
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 900;
    color: #ffffff;
}

.price-period {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.features-list {
    list-style: none;
    margin-bottom: var(--space-xl);
}

.features-list li {
    padding: var(--space-sm) 0;
    color: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.features-list li:hover {
    color: var(--cosmic-primary);
    transform: translateX(5px);
}

/* ===== RESPONSIVE SPACE EFFECTS ===== */
@media (max-width: 1200px) {
    .cosmic-visualization {
        height: 500px;
    }
    
    .space-station {
        width: 350px;
        height: 350px;
    }
    
    .crypto-satellite {
        width: 50px;
        height: 50px;
    }
    
    .crypto-logo {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 768px) {
    .space-navigation {
        bottom: 20px;
        right: 50%;
        top: auto;
        transform: translateX(50%);
        flex-direction: row;
        gap: 10px;
    }
    
    .nav-item {
        width: 40px;
        height: 40px;
    }
    
    .nav-icon {
        font-size: 1.2rem;
    }
    
    .cosmic-visualization {
        height: 400px;
    }
    
    .space-station {
        width: 280px;
        height: 280px;
    }
    
    .features-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    /* Réduire les effets sur mobile pour les performances */
    .nebula {
        opacity: 0.3;
        animation-duration: 120s;
    }
    
    .star {
        animation-duration: 4s;
    }
    
    .shooting-star {
        display: none;
    }
    
    .floating-particles {
        display: none;
    }
}

@media (max-width: 480px) {
    .cosmic-visualization {
        height: 300px;
    }
    
    .space-station {
        width: 220px;
        height: 220px;
    }
    
    .station-core {
        width: 60px;
        height: 60px;
    }
    
    .crypto-satellite {
        width: 40px;
        height: 40px;
    }
    
    .crypto-logo {
        width: 24px;
        height: 24px;
    }
    
    .nav-item {
        width: 35px;
        height: 35px;
    }
    
    .nav-icon {
        font-size: 1rem;
    }
}