/* ===== MAIN.CSS - VERSION OPTIMISÉE PERFORMANCE ===== */

/* ===== IMPORTS & FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ===== VARIABLES CSS COSMIQUES ===== */
:root {
    /* Couleurs principales */
    --cosmic-primary: #00ff88;
    --cosmic-secondary: #00ccff;
    --cosmic-accent: #ff6b7a;
    --cosmic-warning: #ffa502;
    --cosmic-error: #ff4757;
    
    /* Arrière-plans */
    --cosmic-dark: #000011;
    --cosmic-darker: #000008;
    --cosmic-space: #001122;
    --cosmic-nebula: #002244;
    
    /* Gradients */
    --gradient-cosmic: linear-gradient(135deg, var(--cosmic-primary), var(--cosmic-secondary));
    --gradient-space: linear-gradient(135deg, var(--cosmic-dark), var(--cosmic-space));
    --gradient-nebula: radial-gradient(ellipse at center, var(--cosmic-nebula) 0%, var(--cosmic-dark) 70%);
    
    /* Effets vitrés */
    --glass-bg: rgba(0, 255, 136, 0.1);
    --glass-border: rgba(0, 255, 136, 0.2);
    --glass-backdrop: blur(15px);
    
    /* Ombres optimisées */
    --shadow-cosmic: 0 8px 32px rgba(0, 255, 136, 0.25);
    --shadow-deep: 0 16px 48px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 24px rgba(0, 255, 136, 0.4);
    
    /* Transitions optimisées */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Espacements */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-xxl: 4rem;
    
    /* Z-index */
    --z-background: 1;
    --z-stars: 2;
    
    /* Icônes SVG personnalisées */
    --icon-size: 20px;
    --z-effects: 3;
    --z-content: 10;
    --z-header: 100;
    --z-navigation: 200;
    --z-modal: 1000;
    --z-cursor: 9999;
}

/* ===== OPTIMISATIONS PERFORMANCE ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* GPU Acceleration pour tous les éléments animés */
.gpu-accelerated,
.space-cursor,
.stars-field,
.shooting-stars,
.nebula,
.floating-particles,
.cosmic-visualization,
.space-station,
.crypto-orbit,
.crypto-satellite {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* ===== BASE OPTIMISÉE ===== */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    background: var(--cosmic-dark);
    color: #ffffff;
    line-height: 1.6;
    cursor: none;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

/* Curseur normal sur mobile */
@media (max-width: 768px) {
    body {
        cursor: auto;
    }
}

/* ===== CURSEUR SPATIAL OPTIMISÉ ===== */
.space-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    pointer-events: none;
    z-index: var(--z-cursor);
    transform: translate(-50%, -50%);
    transition: transform 0.08s ease-out;
    opacity: 1;
}

.cursor-core {
    width: 8px;
    height: 8px;
    background: var(--cosmic-primary);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 16px var(--cosmic-primary);
    transition: all 0.15s ease;
}

.cursor-ring {
    width: 20px;
    height: 20px;
    border: 2px solid var(--cosmic-primary);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.2s ease;
    opacity: 0.7;
}

.space-cursor.hover .cursor-core {
    transform: translate(-50%, -50%) scale(1.5);
    background: var(--cosmic-secondary);
}

.space-cursor.hover .cursor-ring {
    transform: translate(-50%, -50%) scale(2);
    border-color: var(--cosmic-secondary);
    opacity: 1;
}

.space-cursor.click .cursor-core {
    transform: translate(-50%, -50%) scale(0.8);
}

/* ===== GLASS EFFECT OPTIMISÉ ===== */
.cosmic-glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    -webkit-backdrop-filter: var(--glass-backdrop);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.cosmic-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cosmic-primary), transparent);
    opacity: 0.5;
}

/* ===== GRADIENT COSMIQUE ===== */
.cosmic-gradient {
    background: var(--gradient-cosmic);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

/* ===== HEADER SPATIAL OPTIMISÉ ===== */
.space-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-header);
    padding: var(--space-sm) 0;
    background: rgba(0, 0, 17, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
}

.space-header.scrolled {
    background: rgba(0, 0, 17, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    box-shadow: var(--shadow-cosmic);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ===== LOGO HOLOGRAPHIQUE ===== */
.logo-container {
    position: relative;
}

.logo-hologram {
    position: relative;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient-cosmic);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    position: relative;
    z-index: 2;
    display: inline-block;
}

.logo-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-cosmic);
    opacity: 0;
    filter: blur(10px);
    transition: var(--transition-smooth);
    z-index: 1;
    border-radius: 8px;
}

.logo-hologram:hover .logo-glow {
    opacity: 0.6;
    transform: scale(1.1);
}

.logo-hologram:hover .logo-text {
    transform: scale(1.05);
    filter: drop-shadow(0 0 20px var(--cosmic-primary));
}

/* ===== ICÔNES SVG PERSONNALISÉES ===== */
.nav-icon {
    width: var(--icon-size);
    height: var(--icon-size);
    margin-right: 8px;
    fill: currentColor;
    transition: var(--transition-smooth);
    display: inline-block;
    vertical-align: middle;
}

.nav-icon:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px currentColor);
}

/* ===== NAVIGATION PRINCIPALE ===== */
.nav-links {
    display: flex;
    list-style: none;
    gap: 4px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border-radius: 30px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    align-items: center;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    margin: 0 2px;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-cosmic);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    border-radius: 25px;
}

.nav-link:hover::before,
.nav-link.active::before {
    opacity: 1;
}

.nav-link:hover,
.nav-link.active {
    color: var(--cosmic-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-cosmic);
}

/* ===== BOUTONS COSMIQUES OPTIMISÉS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-sm) var(--space-lg);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    z-index: 1;
    white-space: nowrap;
    min-height: 48px;
}

.btn-cosmic {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    -webkit-backdrop-filter: var(--glass-backdrop);
    border: 2px solid var(--glass-border);
    color: #ffffff;
}

.btn-primary {
    background: var(--gradient-cosmic);
    color: var(--cosmic-dark);
    border: 2px solid transparent;
    box-shadow: var(--shadow-cosmic);
}

.btn-secondary,
.btn-outline {
    background: transparent;
    color: var(--cosmic-primary);
    border: 2px solid var(--cosmic-primary);
}

/* Effets hover optimisés */
.btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-cosmic);
}

.btn-primary:hover {
    box-shadow: 0 16px 32px rgba(0, 255, 136, 0.4);
    filter: brightness(1.1);
}

.btn-secondary:hover,
.btn-outline:hover {
    background: var(--cosmic-primary);
    color: var(--cosmic-dark);
}

/* ===== SECTIONS PRINCIPALES ===== */
.main-content {
    position: relative;
    z-index: var(--z-content);
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

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

.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: var(--space-md);
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===== SECTION HÉRO OPTIMISÉE ===== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: var(--space-xxl) 0;
    position: relative;
}

.hero-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xxl);
    align-items: center;
}

.hero-left {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    margin-top: 3rem;
}

.title-line {
    display: block;
    animation: titleSlideIn 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

.title-line:nth-child(1) { animation-delay: 0.1s; }
.title-line:nth-child(2) { animation-delay: 0.2s; }
.title-line:nth-child(3) { animation-delay: 0.3s; }

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

.hero-description {
    font-size: 1.2rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-xl);
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* ===== SHOWCASE CRYPTO OPTIMISÉ ===== */
.crypto-showcase {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    -webkit-backdrop-filter: var(--glass-backdrop);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: var(--space-lg);
    margin-bottom: var(--space-xl);
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

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

.crypto-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

.crypto-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-sm);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    transition: var(--transition-smooth);
    cursor: pointer;
    text-align: center;
}

.crypto-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-cosmic);
}

.crypto-logo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-bottom: var(--space-xs);
    object-fit: cover;
}

.crypto-symbol {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 2px;
}

.crypto-price {
    font-size: 0.8rem;
    color: var(--cosmic-primary);
    font-weight: 500;
}

.crypto-change {
    font-size: 0.7rem;
    font-weight: 500;
}

.crypto-change.positive { color: var(--cosmic-primary); }
.crypto-change.negative { color: var(--cosmic-error); }

/* ===== ACTIONS HÉRO ===== */
.hero-actions {
    display: flex;
    gap: var(--space-md);
    animation: fadeInUp 0.8s ease-out 0.8s both;
    flex-wrap: wrap;
}

/* ===== ANIMATIONS OPTIMISÉES ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE DESIGN OPTIMISÉ ===== */
@media (max-width: 1200px) {
    .nav-container,
    .section-container,
    .hero-container {
        padding: 0 var(--space-md);
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-top: 4rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .crypto-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    /* Curseur normal sur mobile */
    .space-cursor {
        display: none;
    }
    
    /* Réduire les effets sur mobile */
    .cosmic-glass {
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .crypto-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-container,
    .section-container,
    .hero-container {
        padding: 0 var(--space-sm);
    }
}

/* ===== OPTIMISATIONS PERFORMANCE ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

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

.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));
}

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

.feature-card,
.pricing-card {
    padding: var(--space-xl);
    border-radius: 25px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.feature-card:hover,
.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-cosmic);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-xxl);
}

.contact-card {
    padding: var(--space-xl);
    border-radius: 20px;
    text-align: center;
    transition: var(--transition-smooth);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-cosmic);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
    color: var(--cosmic-primary);
}

/* ===== STATISTIQUES À PROPOS ===== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xxl);
    align-items: center;
}

.about-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-xl);
}

.team-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

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

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--gradient-cosmic);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.team-showcase {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.team-member {
    text-align: center;
    padding: var(--space-lg);
    background: var(--glass-bg);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}

.member-avatar {
    font-size: 3rem;
    margin-bottom: var(--space-md);
}

@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
        text-align: center;
    }
    
    .team-stats {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .team-showcase {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}


button:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

button:disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}




/* ===== STYLES TARIFICATION ===== */
.card-price {
    text-align: center;
    margin: var(--space-md) 0;
}

.price-amount {
    font-size: 3rem;
    font-weight: 900;
    color: var(--cosmic-primary);
}

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

.price-original {
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
}

.original-price {
    text-decoration: line-through;
    color: rgba(255, 255, 255, 0.5);
    font-size: 18px;
}

.popular-badge {
    position: absolute;
    top: -15px;
    right: 15px;
    background: linear-gradient(135deg, #00ff88, #00ccff);
    color: black;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: bold;
    z-index: 2;
    box-shadow: 0 4px 20px rgba(0, 255, 136, 0.3);
    white-space: nowrap;
    min-width: 140px;
    text-align: center;
}

.discount-badge {
    background: linear-gradient(135deg, #ff6b7a, #ff8e53);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 12px;
    text-transform: uppercase;
    box-shadow: 0 2px 10px rgba(255, 107, 122, 0.3);
}

.pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
}

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

.features-list {
    list-style: none;
    margin: var(--space-lg) 0;
    flex-grow: 1;
    text-align: left;
    padding-left: 0;
}

.features-list li {
    padding: 8px 0;
    color: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
}

.features-list li:last-child {
    border-bottom: none;
}

.card-header {
    text-align: center;
    margin-bottom: var(--space-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 120px;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--cosmic-primary);
    white-space: nowrap;
    line-height: 1.2;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Centrer les boutons dans les cartes pricing */
.pricing-card .btn {
    margin: var(--space-md) auto 0;
    width: fit-content;
    min-width: 200px;
    align-self: center;
}