﻿/* =====================================================
   🌈 SynesthésIA STYLESHEET - RAINBOW CYBERPUNK EDITION
   Version: 3.2 - TAILLES RÉDUITES (Divisé par 2.5-3)
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;900&family=Exo+2:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Rajdhani:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Couleurs cyberpunk améliorées */
    --primary-color: #00D9FF;
    --primary-glow: #00D9FF;
    --secondary-color: #FFD700;
    --secondary-glow: #FFA500;
    --accent-color: #FF00FF;
    --accent-glow: #FF00FF;
    --success-color: #00FF88;
    --danger-color: #FF0044;
    /* Noir profond avec variations */
    --dark-bg: #050505;
    --section-bg: #0a0a0a;
    --card-bg: #0f0f0f;
    --hover-bg: #1a1a1a;
    /* Textes avec plus de nuances */
    --text-primary: #ffffff;
    --text-secondary: #b8b8b8;
    --text-muted: #666666;
    /* Gradients épiques */
    --gradient-rainbow: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff0062, #ff0000);
    --gradient-cyber: linear-gradient(135deg, #00D9FF 0%, #FF00FF 50%, #FFD700 100%);
    --gradient-neon: linear-gradient(90deg, #00D9FF, #00FF88, #FFD700, #FF00FF);
    --gradient-dark: radial-gradient(circle at center, rgba(0, 217, 255, 0.1) 0%, transparent 70%);
}

/* ===== BACKGROUND ÉPIQUE ===== */
body {
    font-family: 'Exo 2', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
    min-height: 100vh;
}

/* =====================================================
   🎨 CLASSES MANQUANTES POUR LES EFFETS GLOBAUX
   Ajouter ces styles à votre StyleSheet.css
   ===================================================== */

/* ===== EFFETS APPLIQUÉS AUX ÉLÉMENTS HERO ===== */
.hero-title.glow-effect,
#heroTitle.glow-effect {
    filter: drop-shadow(0 0 calc(var(--glow-intensity, 1) * 20px) var(--glow-color, #00FFFF)) !important;
    text-shadow: 0 0 calc(var(--glow-intensity, 1) * 30px) var(--glow-color, #00FFFF) !important;
}

.hero-subtitle.animation-effect,
#heroSubtitle.animation-effect {
    animation: floatAnimation var(--animation-speed, 3s) ease-in-out infinite !important;
}

/* ===== EFFETS SUR LES STATS ===== */
.stat-number.pulse-effect {
    animation: statPulse var(--pulse-speed, 2s) ease-in-out infinite !important;
}

@keyframes statPulse {
    0%, 100% {
        transform: scale(1);
        text-shadow: 0 0 20px currentColor;
    }

    50% {
        transform: scale(var(--pulse-scale, 1.1));
        text-shadow: 0 0 40px currentColor;
    }
}

.stat-item.animation-effect {
    animation: statFloat 4s ease-in-out infinite !important;
    animation-delay: calc(var(--index, 0) * 0.3s) !important;
}

@keyframes statFloat {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* ===== EFFETS SUR LA NAVIGATION ===== */
.nav-links a.glow-effect {
    position: relative;
    overflow: visible !important;
}

    .nav-links a.glow-effect::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 100%;
        height: 100%;
        transform: translate(-50%, -50%);
        background: radial-gradient(circle, var(--glow-color, #00FFFF) 0%, transparent 70%);
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
        z-index: -1;
    }

    .nav-links a.glow-effect:hover::after {
        opacity: calc(var(--glow-intensity, 1) * 0.5);
    }

/* ===== EFFETS SUR LES BOUTONS DE MODE ===== */
.mode-btn.pulse-effect,
.theme-btn.pulse-effect {
    animation: buttonPulse var(--pulse-speed, 2s) ease-in-out infinite !important;
}

@keyframes buttonPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 10px currentColor;
    }

    50% {
        transform: scale(var(--pulse-scale, 1.05));
        box-shadow: 0 0 20px currentColor, 0 0 30px currentColor;
    }
}

/* ===== EFFETS SUR LE CHAT ===== */
.chat-interface.shadow-effect {
    box-shadow: 0 0 calc(var(--shadow-intensity, 1) * 30px) var(--shadow-color, #FF00FF), inset 0 0 calc(var(--shadow-intensity, 1) * 15px) var(--shadow-color, #FF00FF) !important;
}

.chat-message.blink-effect {
    animation: messageBlink var(--blink-speed, 1s) step-end infinite !important;
}

@keyframes messageBlink {
    0%, 50% {
        opacity: 1;
        border-color: var(--primary-color);
    }

    51%, 100% {
        opacity: 0.7;
        border-color: transparent;
    }
}

/* ===== EFFETS SUR LES TOGGLES ===== */
.effect-toggle.animation-effect,
.graphics-toggle.animation-effect {
    animation: toggleFloat var(--animation-speed, 3s) ease-in-out infinite !important;
    animation-delay: calc(var(--index, 0) * 0.1s) !important;
}

/* ===== EFFETS SUR LES CONTENEURS ===== */
.demo-container.glow-effect,
.effects-panel.glow-effect,
#effectsPanel.glow-effect,
#graphicsPanel.glow-effect {
    box-shadow: 0 0 calc(var(--glow-intensity, 1) * 40px) var(--glow-color, #00FFFF), inset 0 0 calc(var(--glow-intensity, 1) * 20px) rgba(0, 217, 255, 0.1) !important;
}

/* ===== EFFETS SUR LES PARTICULES ===== */
.particle.pulse-effect {
    animation: particlePulse var(--pulse-speed, 2s) ease-in-out infinite !important;
}

@keyframes particlePulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.7;
    }
}

/* ===== EFFETS COMBINÉS ===== */
.glow-effect.pulse-effect {
    animation: glowPulseCombined var(--pulse-speed, 2s) ease-in-out infinite !important;
}

@keyframes glowPulseCombined {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 calc(var(--glow-intensity, 1) * 10px) var(--glow-color, #00FFFF));
    }

    50% {
        transform: scale(var(--pulse-scale, 1.1));
        filter: drop-shadow(0 0 calc(var(--glow-intensity, 1) * 30px) var(--glow-color, #00FFFF));
    }
}

/* ===== FOOTER EFFECTS ===== */
.footer-links a.animation-effect {
    display: inline-block;
    animation: footerLinkFloat var(--animation-speed, 3s) ease-in-out infinite !important;
    animation-delay: calc(var(--index, 0) * 0.2s) !important;
}

/* ===== CONTEXT DISPLAY EFFECTS ===== */
.context-number.glow-effect,
.context-mode.glow-effect {
    text-shadow: 0 0 calc(var(--glow-intensity, 1) * 10px) var(--glow-color, #00FFFF), 0 0 calc(var(--glow-intensity, 1) * 20px) var(--glow-color, #00FFFF) !important;
}

/* ===== EFFETS SPÉCIAUX POUR ÉLÉMENTS CRITIQUES ===== */
.hero h1,
.hero-title,
#heroTitle {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    background: var(--gradient-rainbow);
    background-size: 200% 200%;
    -webkit-background-clip: content-box !important; /* ✅ CORRIGÉ */
    -webkit-text-fill-color: transparent !important;
    background-clip: content-box !important; /* ✅ CORRIGÉ */
    text-transform: uppercase;
    letter-spacing: 4px;
    line-height: 1.2;
    animation: rainbowText 5s ease infinite, glitchText 10s infinite;
    filter: drop-shadow(0 0 15px rgba(0, 217, 255, 0.8));
    position: relative;
    z-index: 100 !important; /* ✅ AJOUTÉ pour être au-dessus */
}
.logo {
    --glow-color: var(--primary-color);
    --glow-intensity: 1.2;
}

.btn-primary {
    --glow-color: var(--primary-color);
    --shadow-color: var(--primary-color);
}

.btn-secondary {
    --glow-color: var(--secondary-color);
    --shadow-color: var(--secondary-color);
}

/* ===== VARIABLES D'INDEX POUR DÉLAIS ===== */
.stat-item:nth-child(1) {
    --index: 0;
}

.stat-item:nth-child(2) {
    --index: 1;
}

.stat-item:nth-child(3) {
    --index: 2;
}

.nav-links li:nth-child(1) {
    --index: 0;
}

.nav-links li:nth-child(2) {
    --index: 1;
}

.nav-links li:nth-child(3) {
    --index: 2;
}

.nav-links li:nth-child(4) {
    --index: 3;
}

.nav-links li:nth-child(5) {
    --index: 4;
}

.nav-links li:nth-child(6) {
    --index: 5;
}

.effect-toggle:nth-child(1) {
    --index: 0;
}

.effect-toggle:nth-child(2) {
    --index: 1;
}

.effect-toggle:nth-child(3) {
    --index: 2;
}

.effect-toggle:nth-child(4) {
    --index: 3;
}

.effect-toggle:nth-child(5) {
    --index: 4;
}

.effect-toggle:nth-child(6) {
    --index: 5;
}

.effect-toggle:nth-child(7) {
    --index: 6;
}

/* ===== PARTICULES FLOTTANTES AMÉLIORÉES ===== */
.floating-particles {
    position: fixed;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: var(--neon-shadow-primary);
    animation: particleFloat 20s infinite linear;
}

    .particle:nth-child(odd) {
        background: var(--secondary-color);
        box-shadow: var(--neon-shadow-secondary);
        animation-duration: 25s;
    }

    .particle:nth-child(3n) {
        background: var(--accent-color);
        box-shadow: var(--neon-shadow-accent);
        animation-duration: 30s;
    }

/* Animation des particules - VÉRIFIER QUE C'EST PRÉSENT */
@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
        transform: translateY(90vh) translateX(10px) scale(1);
    }

    90% {
        opacity: 1;
        transform: translateY(10vh) translateX(-10px) scale(1);
    }

    100% {
        transform: translateY(-10vh) translateX(0) scale(0);
        opacity: 0;
    }
}

/* Animation des bulles - VÉRIFIER QUE C'EST PRÉSENT */
@keyframes holoBubbleFloat {
    0% {
        transform: translateY(100vh) translateX(0) scale(0) rotate(0deg);
        opacity: 0;
    }

    20% {
        opacity: 0.6;
        transform: translateY(70vh) translateX(50px) scale(1) rotate(180deg);
    }

    80% {
        opacity: 0.6;
        transform: translateY(30vh) translateX(-50px) scale(1.2) rotate(360deg);
    }

    100% {
        transform: translateY(-20vh) translateX(0) scale(0) rotate(540deg);
        opacity: 0;
    }
}

/* ===== NAVIGATION CYBERPUNK ===== */
nav {
    position: fixed;
    width: 100%;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.95) 0%, rgba(10, 10, 10, 0.8) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    z-index: 1000;
    padding: 0.4rem 0;
    transition: all var(--animation-speed) cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid transparent;
    background-clip: padding-box;
}

    nav::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: var(--gradient-neon);
        opacity: 0.5;
        animation: neonPulse 3s infinite;
    }

    nav.scrolled {
        background: rgba(5, 5, 5, 0.98);
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.8), var(--neon-shadow-primary);
        padding: 0.3rem 0;
    }

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Orbitron', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    background: var(--gradient-rainbow);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 3px;
    text-transform: uppercase;
    animation: rainbowText 5s ease infinite;
    filter: drop-shadow(0 0 10px rgba(0, 217, 255, 0.5));
}

@keyframes rainbowText {
    0%, 100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.nav-links {
    display: flex;
    gap: 1rem;
    list-style: none;
}

    .nav-links a {
        color: var(--text-primary);
        text-decoration: none;
        font-weight: 500;
        font-family: 'Rajdhani', sans-serif;
        transition: all var(--transition-speed) ease;
        position: relative;
        text-transform: uppercase;
        letter-spacing: 1px;
        font-size: 0.8rem;
        padding: 0.2rem 0;
    }

        .nav-links a::before {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 0;
            height: 1px;
            background: var(--gradient-neon);
            transition: width var(--transition-speed) ease;
        }

        .nav-links a::after {
            content: '';
            position: absolute;
            top: -2px;
            right: 0;
            width: 0;
            height: 1px;
            background: var(--gradient-neon);
            transition: width var(--transition-speed) ease;
        }

        .nav-links a:hover {
            color: var(--primary-color);
            text-shadow: var(--neon-shadow-primary);
        }

            .nav-links a:hover::before {
                width: 100%;
            }

            .nav-links a:hover::after {
                width: 100%;
            }

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes slideOutLeft {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.effects-content {
    display: block;
}

    .effects-content.collapsed {
        display: none !important;
    }

/* ===== HERO SECTION FUTURISTE ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at center, rgba(0, 217, 255, 0.05) 0%, transparent 50%);
}

    /* Grille cyberpunk en background */
    .hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: linear-gradient(rgba(0, 217, 255, 0.1) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 217, 255, 0.1) 1px, transparent 1px);
        background-size: 50px 50px;
        animation: gridMove 10s linear infinite;
        z-index: 1;
    }

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

.hero-content {
    position: relative;
    z-index: 100 !important; /* ✅ AU-DESSUS DE TOUT */
    background: rgba(0, 0, 0, 0.1); /* ✅ LÉGER BG POUR CONTRASTE */
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(5px);
}

@keyframes heroEntry {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    background: var(--gradient-rainbow);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 4px;
    line-height: 1.2;
    animation: rainbowText 5s ease infinite, glitchText 10s infinite;
    filter: drop-shadow(0 0 15px rgba(0, 217, 255, 0.8));
}

@keyframes glitchText {
    0%, 90%, 100% {
        text-shadow: none;
        transform: translate(0);
    }

    92% {
        text-shadow: 1px 1px 0 rgba(255, 0, 0, 0.8), -1px -1px 0 rgba(0, 255, 0, 0.8);
        transform: translate(1px, -1px);
    }

    94% {
        text-shadow: -1px 1px 0 rgba(0, 0, 255, 0.8), 1px -1px 0 rgba(255, 255, 0, 0.8);
        transform: translate(-1px, 1px);
    }
}

.hero-subtitle {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    letter-spacing: 2px;
    opacity: 0.9;
    text-transform: uppercase;
    animation: subtitlePulse 2s ease-in-out infinite;
}

@keyframes subtitlePulse {
    0%, 100% {
        opacity: 0.9;
    }

    50% {
        opacity: 1;
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    }
}

/* ===== CTA BUTTONS NÉON ===== */
.cta-buttons {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.btn {
    padding: 0.4rem 1.2rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: 'Rajdhani', sans-serif;
    text-decoration: none;
    transition: all var(--animation-speed) cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid transparent;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    isolation: isolate;
}

    .btn::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        transform: translate(-50%, -50%);
        border-radius: 50%;
        transition: all var(--animation-speed) ease;
        z-index: -1;
    }

    .btn:hover::before {
        width: 300%;
        height: 300%;
    }

.btn-primary {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.2) 0%, rgba(0, 217, 255, 0.1) 100%);
    color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: inset 0 0 5px rgba(0, 217, 255, 0.2), 0 0 5px rgba(0, 217, 255, 0.3);
}

    .btn-primary::before {
        background: radial-gradient(circle, rgba(0, 217, 255, 0.3) 0%, rgba(0, 217, 255, 0.1) 100%);
    }

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: inset 0 0 10px rgba(0, 217, 255, 0.4), 0 3px 10px rgba(0, 217, 255, 0.4), var(--neon-shadow-primary);
        text-shadow: 0 0 5px rgba(0, 217, 255, 0.8);
    }

.btn-secondary {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 215, 0, 0.1) 100%);
    color: var(--secondary-color);
    border-color: var(--secondary-color);
    box-shadow: inset 0 0 5px rgba(255, 215, 0, 0.2), 0 0 5px rgba(255, 215, 0, 0.3);
}

    .btn-secondary::before {
        background: radial-gradient(circle, rgba(255, 215, 0, 0.3) 0%, rgba(255, 215, 0, 0.1) 100%);
    }

    .btn-secondary:hover {
        transform: translateY(-2px);
        box-shadow: inset 0 0 10px rgba(255, 215, 0, 0.4), 0 3px 10px rgba(255, 215, 0, 0.4), var(--neon-shadow-secondary);
        text-shadow: 0 0 5px rgba(255, 215, 0, 0.8);
    }

@supports not (-webkit-background-clip: text) {
    .panel-title,
    .hero h1,
    .hero-title,
    #heroTitle,
    .section-title {
        -webkit-text-fill-color: var(--primary-color) !important;
        color: var(--primary-color) !important;
        text-shadow: 0 0 20px var(--primary-glow) !important;
    }
}
/* ===== SECTIONS AMÉLIORÉES ===== */
.demo-section, .architecture-section, .modes-section, .specs-section, .download-section {
    padding: 2rem 0;
    position: relative;
    z-index: 10;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 217, 255, 0.02) 50%, transparent 100%);
}

.section-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    -webkit-background-clip: content-box !important; /* ✅ CORRIGÉ */
    -webkit-text-fill-color: transparent !important;
    background-clip: content-box !important; /* ✅ CORRIGÉ */
    animation: rainbowText 5s ease infinite;
    z-index: 50 !important; /* ✅ AJOUTÉ */
}

    .section-title::after {
        content: '';
        position: absolute;
        bottom: -8px;
        left: 50%;
        transform: translateX(-50%);
        width: 100px;
        height: 2px;
        background: var(--gradient-neon);
        border-radius: 1px;
        animation: neonPulse 2s infinite;
    }

@keyframes neonPulse {
    0%, 100% {
        opacity: 0.5;
        transform: translateX(-50%) scaleX(1);
    }

    50% {
        opacity: 1;
        transform: translateX(-50%) scaleX(1.2);
    }
}

/* ===== FEATURE CARDS HOLOGRAPHIQUES ===== */
.features-grid, .modes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.feature-card, .mode-card, .component-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1rem;
    transition: all var(--animation-speed) cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

    .feature-card::before,
    .mode-card::before,
    .component-card::before {
        content: '';
        position: absolute;
        top: -1px;
        left: -1px;
        right: -1px;
        bottom: -1px;
        background: var(--gradient-rainbow);
        border-radius: 10px;
        opacity: 0;
        z-index: -1;
        transition: opacity var(--animation-speed) ease;
        background-size: 300% 300%;
        animation: rainbowBorder 10s ease infinite;
    }

@keyframes rainbowBorder {
    0%, 100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.feature-card:hover::before,
.mode-card:hover::before,
.component-card:hover::before {
    opacity: 0.6;
}

.feature-card:hover,
.mode-card:hover,
.component-card:hover {
    transform: translateY(-3px) scale(1.02);
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 217, 255, 0.3), inset 0 0 10px rgba(255, 255, 255, 0.05);
}

.feature-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: block;
    filter: drop-shadow(0 0 10px currentColor);
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.feature-card h3,
.mode-card h3,
.component-card h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== DEMO CONTAINER ULTRA ===== */
.demo-container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(10, 10, 10, 0.8);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(0, 217, 255, 0.05);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

    .demo-container::before {
        content: '';
        position: absolute;
        top: -1px;
        left: -1px;
        right: -1px;
        bottom: -1px;
        background: var(--gradient-neon);
        border-radius: 15px;
        opacity: 0.5;
        z-index: -1;
        animation: neonPulse 3s infinite;
    }

/* ===== CHAT INTERFACE FUTURISTE ===== */
.chat-interface {
    background: rgba(5, 5, 5, 0.8);
    border-radius: 10px;
    padding: 1rem;
    height: 380px;
    overflow-y: auto;
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 217, 255, 0.2);
    position: relative;
    box-shadow: inset 0 0 10px rgba(0, 217, 255, 0.05);
}

    /* Scrollbar personnalisée */
    .chat-interface::-webkit-scrollbar {
        width: 4px;
    }

    .chat-interface::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.02);
        border-radius: 2px;
    }

    .chat-interface::-webkit-scrollbar-thumb {
        background: linear-gradient(180deg, var(--primary-color), var(--accent-color));
        border-radius: 2px;
        box-shadow: 0 0 5px rgba(0, 217, 255, 0.5);
    }

        .chat-interface::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
        }

/* ===== MESSAGES HOLOGRAPHIQUES ===== */
.chat-message {
    margin-bottom: 0.8rem;
    padding: 0.5rem 0.8rem;
    border-radius: 10px;
    font-family: 'Exo 2', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
    position: relative;
    animation: messageSlide 0.5s ease-out;
    backdrop-filter: blur(5px);
}

@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.chat-message.SynesthésIA {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.1) 0%, rgba(0, 217, 255, 0.05) 100%);
    border: 1px solid rgba(0, 217, 255, 0.3);
    box-shadow: inset 0 0 8px rgba(0, 217, 255, 0.1), 0 2px 8px rgba(0, 217, 255, 0.2);
}

    .chat-message.SynesthésIA::before {
        content: '';
        position: absolute;
        top: -1px;
        left: -1px;
        right: -1px;
        bottom: -1px;
        background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
        opacity: 0;
        z-index: -1;
        border-radius: 10px;
        animation: borderGlow 3s linear infinite;
    }

@keyframes borderGlow {
    0%, 100% {
        opacity: 0;
        transform: translateX(-100%);
    }

    50% {
        opacity: 0.5;
    }

    100% {
        transform: translateX(100%);
    }
}
.chat-message.user {
    margin-bottom: 0.8rem;
    padding: 0.5rem 0.8rem;
    border-radius: 10px;
    font-family: 'Exo 2', sans-serif;
    font-size: 1.1rem; /* Augmenté de 18px à ~1.1rem */
    font-weight: 400;
    line-height: 1.5;
    position: relative;
    animation: messageSlide 0.5s ease-out;
    backdrop-filter: blur(5px);
}

    .chat-message strong {
        font-weight: 600;
        font-size: 1.2rem; /* Augmenté de 20px à ~1.2rem */
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: currentColor;
        filter: brightness(1.3);
    }

/* ===== CHAT CONTROLS CYBERPUNK ===== */
.chat-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.chat-input {
    flex: 1;
    padding: 0.5rem 0.8rem;
    background: rgba(5, 5, 5, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-family: 'Exo 2', sans-serif;
    font-weight: 400;
    transition: all var(--transition-speed) ease;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.3);
}

    .chat-input:focus {
        outline: none;
        border-color: var(--primary-color);
        background: rgba(0, 217, 255, 0.05);
        box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.3), 0 0 15px rgba(0, 217, 255, 0.3);
    }

    .chat-input::placeholder {
        color: rgba(255, 255, 255, 0.3);
        font-style: italic;
    }

/* ===== MODE SELECTOR NÉON ===== */
.mode-selector {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    justify-content: center;
}

.mode-btn {
    padding: 0.3rem 0.8rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.75rem;
    font-weight: 500;
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

    .mode-btn::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
        transform: translate(-50%, -50%);
        transition: all var(--transition-speed) ease;
        border-radius: 50%;
    }

    .mode-btn:hover::before {
        width: 100%;
        height: 100%;
    }

    .mode-btn.active {
        background: rgba(0, 217, 255, 0.1);
        color: var(--primary-color);
        border-color: var(--primary-color);
        box-shadow: 0 0 10px rgba(0, 217, 255, 0.4), inset 0 0 10px rgba(0, 217, 255, 0.2);
        animation: activeModePulse 2s infinite;
    }

@keyframes activeModePulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(0, 217, 255, 0.4), inset 0 0 10px rgba(0, 217, 255, 0.2);
    }

    50% {
        box-shadow: 0 0 15px rgba(0, 217, 255, 0.6), inset 0 0 15px rgba(0, 217, 255, 0.3);
    }
}

.mode-btn:hover {
    transform: translateY(-1px);
    border-color: var(--primary-color);
    color: var(--text-primary);
    box-shadow: 0 3px 10px rgba(0, 217, 255, 0.3);
}

/* ===== CONTEXT DISPLAY HOLOGRAPHIQUE ===== */
.context-display {
    text-align: center;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: rgba(0, 217, 255, 0.05);
    border-radius: 25px;
    border: 1px solid rgba(0, 217, 255, 0.2);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: inset 0 0 10px rgba(0, 217, 255, 0.1);
}

.context-number {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    text-shadow: 0 0 5px rgba(0, 217, 255, 0.8);
    animation: numberGlow 2s ease-in-out infinite;
}

@keyframes numberGlow {
    0%, 100% {
        filter: brightness(1);
    }

    50% {
        filter: brightness(1.5);
    }
}

/* ===== FOOTER CYBERPUNK ===== */
footer {
    background: linear-gradient(180deg, transparent 0%, var(--section-bg) 50%);
    padding: 1.5rem 0 1rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

    footer::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: var(--gradient-neon);
        animation: neonPulse 3s infinite;
    }

.footer-content {
    position: relative;
    z-index: 1;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

    .footer-links a {
        color: var(--text-secondary);
        text-decoration: none;
        transition: all var(--transition-speed) ease;
        font-weight: 500;
        font-family: 'Rajdhani', sans-serif;
        text-transform: uppercase;
        letter-spacing: 1px;
        font-size: 0.8rem;
        position: relative;
        padding: 0.2rem 0;
    }

        .footer-links a::after {
            content: '';
            position: absolute;
            bottom: -3px;
            left: 50%;
            width: 0;
            height: 1px;
            background: var(--gradient-neon);
            transform: translateX(-50%);
            transition: width var(--transition-speed) ease;
        }

        .footer-links a:hover {
            color: var(--primary-color);
            text-shadow: 0 0 5px rgba(0, 217, 255, 0.8);
        }

            .footer-links a:hover::after {
                width: 100%;
            }

/* ===== ÉTOILES AMÉLIORÉES ===== */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}

.stars-layer-1 .star {
    width: 1px;
    height: 1px;
    animation: twinkle1 4s infinite;
}

.stars-layer-2 .star {
    width: 2px;
    height: 2px;
    animation: twinkle2 5s infinite;
}

.stars-layer-3 .star {
    width: 1px;
    height: 1px;
    animation: twinkle3 6s infinite;
}

@keyframes twinkle1 {
    0%, 100% {
        opacity: 0;
        transform: scale(0.5);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

@keyframes twinkle2 {
    0%, 100% {
        opacity: 0.2;
        transform: scale(0.8);
    }

    50% {
        opacity: 0.8;
        transform: scale(1);
    }
}

@keyframes twinkle3 {
    0%, 100% {
        opacity: 0.1;
        transform: scale(0.5);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

/* Mouvement parallax des étoiles */
.stars-layer {
    position: absolute;
    width: 100%;
    height: 200%;
    animation: starsMove linear infinite;
}

.stars-layer-1 {
    animation-duration: 100s;
    filter: blur(0.5px);
}

.stars-layer-2 {
    animation-duration: 150s;
    opacity: 0.6;
}

.stars-layer-3 {
    animation-duration: 200s;
    opacity: 0.4;
    filter: blur(1px);
}

@keyframes starsMove {
    from {
        transform: translateY(0) translateX(0);
    }

    to {
        transform: translateY(-100%) translateX(-50px);
    }
}

/* ===== LOADING DOTS AMÉLIORÉS ===== */
.loading-dots {
    display: inline-block;
    position: relative;
    width: 60px;
    height: 15px;
}

    .loading-dots::before,
    .loading-dots::after,
    .loading-dots span {
        content: '';
        position: absolute;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--primary-color);
        animation: loadingPulse 1.4s infinite ease-in-out both;
        box-shadow: 0 0 5px var(--primary-color);
    }

    .loading-dots::before {
        left: 0;
        animation-delay: -0.32s;
    }

    .loading-dots span {
        left: 50%;
        transform: translateX(-50%);
        animation-delay: -0.16s;
    }

    .loading-dots::after {
        right: 0;
        animation-delay: 0;
    }

@keyframes loadingPulse {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* ===== RESPONSIVE CYBERPUNK ===== */
@media (max-width: 1080px) {
    .hero h1 {
        font-size: 1.3rem;
        letter-spacing: 3px;
    }

    .section-title {
        font-size: 1.2rem;
    }

    .nav-links {
        display: none;
    }

    .logo {
        font-size: 1rem;
    }

    .chat-controls {
        flex-direction: column;
        gap: 0.5rem;
    }

    .chat-input {
        width: 100%;
    }

    .mode-selector {
        justify-content: center;
    }

    .btn {
        padding: 0.4rem 1rem;
        font-size: 0.75rem;
    }

    .demo-container {
        padding: 1rem 0.8rem;
        margin: 0 0.5rem;
    }

    .features-grid,
    .modes-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .feature-card,
    .mode-card,
    .component-card {
        padding: 0.8rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .footer-links {
        gap: 1rem;
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.1rem;
        letter-spacing: 2px;
    }

    .hero-subtitle {
        font-size: 0.8rem;
    }

    .section-title {
        font-size: 1rem;
    }

    .chat-interface {
        height: 300px;
        padding: 0.5rem;
    }

    .mode-btn {
        padding: 0.25rem 0.6rem;
        font-size: 0.7rem;
    }
}

/* ===== ANIMATIONS SUPPLÉMENTAIRES ===== */
@keyframes floatUpDown {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulseScale {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* ===== EFFETS SPÉCIAUX ===== */
.glitch-effect {
    animation: glitchAnimation 2s infinite;
}

@keyframes glitchAnimation {
    0%, 90%, 100% {
        clip-path: inset(0 0 0 0);
        transform: translate(0);
    }

    20% {
        clip-path: inset(10% 0 80% 0);
        transform: translate(-2px, 2px);
    }

    40% {
        clip-path: inset(50% 0 20% 0);
        transform: translate(2px, -2px);
    }

    60% {
        clip-path: inset(80% 0 10% 0);
        transform: translate(-2px, 0);
    }
}

/* ===== UTILITIES ===== */
.text-gradient {
    background: var(--gradient-rainbow);
    -webkit-background-clip: content-box !important; /* ✅ CORRIGÉ */
    -webkit-text-fill-color: transparent !important;
    background-clip: content-box !important; /* ✅ CORRIGÉ */
    background-size: 200% 200%;
    animation: rainbowText 5s ease infinite;
}
.neon-glow {
    text-shadow: var(--neon-shadow-primary);
}

.holographic {
    background: linear-gradient(45deg, rgba(255, 0, 0, 0.1), rgba(255, 127, 0, 0.1), rgba(255, 255, 0, 0.1), rgba(0, 255, 0, 0.1), rgba(0, 0, 255, 0.1), rgba(75, 0, 130, 0.1), rgba(148, 0, 211, 0.1));
    background-size: 400% 400%;
    animation: holographicShift 10s ease infinite;
}

@keyframes holographicShift {
    0%, 100% {
        background-position: 0% 50%;
    }

    25% {
        background-position: 100% 50%;
    }

    50% {
        background-position: 100% 100%;
    }

    75% {
        background-position: 0% 100%;
    }
}

/* =====================================================
   🎨 SYSTÈME DE THÈMES DYNAMIQUES AVEC RANDOMISATION
   Version Compacte avec tailles réduites
   ===================================================== */

/* ===== VARIABLES DE RANDOMISATION ===== */
:root {
    /* Variables de thème dynamique */
    --theme-gradient: var(--gradient-dark);
    --theme-opacity: 0.15;
    --theme-glow-intensity: 1;
    --theme-angle: 45deg;
    --theme-variation: 0;
}

/* ===== THEME SELECTOR ===== */
.theme-selector {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    padding: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--primary-color);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
    animation: themeBarPulse 4s ease-in-out infinite;
}

@keyframes themeBarPulse {
    0%, 100% {
        border-bottom-color: var(--primary-color);
    }

    33% {
        border-bottom-color: var(--secondary-color);
    }

    66% {
        border-bottom-color: var(--accent-color);
    }
}

.theme-label {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-right: 0.5rem;
    animation: labelGlow 3s ease-in-out infinite;
}

@keyframes labelGlow {
    0%, 100% {
        text-shadow: 0 0 3px rgba(255, 255, 255, 0.5);
    }

    50% {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    }
}

.theme-buttons {
    display: flex;
    gap: 0.5rem;
}

.theme-btn {
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.7rem;
    font-weight: 600;
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    outline: none;
}

    .theme-btn::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        background: radial-gradient(circle, currentColor 0%, transparent 70%);
        transform: translate(-50%, -50%);
        transition: all var(--transition-speed) ease;
        border-radius: 50%;
        opacity: 0.3;
    }

    .theme-btn:hover::before {
        width: 150%;
        height: 150%;
    }

    .theme-btn::after {
        content: '';
        position: absolute;
        top: -1px;
        left: -1px;
        right: -1px;
        bottom: -1px;
        background: var(--gradient-rainbow);
        opacity: 0;
        z-index: -1;
        border-radius: 20px;
        transition: opacity 0.3s ease;
    }

    .theme-btn:hover::after {
        opacity: 0.3;
        animation: rainbowBorder 5s linear infinite;
    }

    /* Bouton actif avec variations aléatoires */
    .theme-btn.active {
        animation: activeButtonPulse 2s ease-in-out infinite;
    }

@keyframes activeButtonPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 10px currentColor, inset 0 0 10px rgba(255, 255, 255, 0.1);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 15px currentColor, inset 0 0 15px rgba(255, 255, 255, 0.2);
    }
}

/* ===== AJUSTEMENTS BODY ===== */
body {
    padding-top: 45px;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Navigation sous le theme selector */
nav {
    top: 40px !important;
}

/* Hero ajusté */
.hero {
    min-height: calc(100vh - 45px);
    margin-top: 30px;
}

/* ===== THÈME 1: DEEP OCEAN (RADIAL) ===== */
/* Variation 1 - Standard */
body.theme-deepocean {
    --primary-color: #000080;
    --secondary-color: #4169E1;
    --accent-color: #0000CD;
    --primary-glow: #4169E1;
    --secondary-glow: #6495ED;
    --accent-glow: #0000CD;
}

    body.theme-deepocean::before {
        background: radial-gradient(circle at 50% 50%, rgba(0, 0, 128, calc(0.08 + var(--theme-variation) * 0.02)) 0%, rgba(65, 105, 225, calc(0.06 + var(--theme-variation) * 0.02)) 20%, rgba(0, 0, 205, calc(0.04 + var(--theme-variation) * 0.01)) 40%, rgba(25, 25, 112, calc(0.02 + var(--theme-variation) * 0.01)) 60%, rgba(100, 149, 237, calc(0.01 + var(--theme-variation) * 0.005)) 80%, transparent 100%) !important;
        opacity: calc(1.1 + var(--theme-variation) * 0.2) !important;
        animation: oceanWave 20s ease-in-out infinite !important;
    }

    /* Variation 2 - Tempête */
    body.theme-deepocean.variation-storm::before {
        background: radial-gradient(ellipse at 30% 70%, rgba(25, 25, 112, 0.12) 0%, rgba(0, 0, 128, 0.09) 25%, rgba(70, 130, 180, 0.06) 50%, rgba(0, 0, 205, 0.03) 75%, transparent 100%) !important;
        animation: stormWave 15s ease-in-out infinite !important;
    }

    /* Variation 3 - Abysses */
    body.theme-deepocean.variation-abyss::before {
        background: radial-gradient(circle at 80% 20%, rgba(0, 0, 50, 0.15) 0%, rgba(0, 0, 128, 0.10) 30%, rgba(25, 25, 112, 0.07) 60%, rgba(0, 0, 0, 0.05) 100%) !important;
        animation: abyssFloat 25s linear infinite !important;
    }

/* Éléments Deep Ocean */
body.theme-deepocean .particle {
    background: #4169E1;
    box-shadow: 0 0 8px #4169E1, 0 0 15px #4169E1;
}

    body.theme-deepocean .particle:nth-child(odd) {
        background: #6495ED;
        box-shadow: 0 0 8px #6495ED, 0 0 15px #6495ED;
    }

    body.theme-deepocean .particle:nth-child(3n) {
        background: #0000CD;
        box-shadow: 0 0 8px #0000CD, 0 0 15px #0000CD;
    }

body.theme-deepocean .btn-primary {
    background: linear-gradient(135deg, rgba(0, 0, 128, 0.2) 0%, rgba(0, 0, 128, 0.1) 100%);
    color: #4169E1;
    border-color: #4169E1;
}

body.theme-deepocean .theme-btn[data-theme="deepocean"] {
    color: #4169E1;
    border-color: #4169E1;
    box-shadow: 0 0 10px rgba(65, 105, 225, 0.5), inset 0 0 10px rgba(65, 105, 225, 0.2);
}

/* ===== THÈME 2: CYBER NEON (DIAGONAL) ===== */
/* Variation 1 - Standard */
body.theme-cyberneon {
    --primary-color: #00FFFF;
    --secondary-color: #FF0080;
    --accent-color: #8000FF;
    --primary-glow: #00FFFF;
    --secondary-glow: #FF0080;
    --accent-glow: #8000FF;
    --theme-angle: calc(45deg + var(--theme-variation) * 15deg);
}

    body.theme-cyberneon::before {
        background: linear-gradient(var(--theme-angle), rgba(0, 255, 255, calc(0.09 + var(--theme-variation) * 0.03)) 0%, rgba(255, 0, 128, calc(0.07 + var(--theme-variation) * 0.02)) 25%, rgba(128, 0, 255, calc(0.05 + var(--theme-variation) * 0.02)) 50%, rgba(0, 255, 0, calc(0.03 + var(--theme-variation) * 0.01)) 75%, rgba(255, 255, 0, calc(0.02 + var(--theme-variation) * 0.01)) 100%) !important;
        opacity: 0.6 !important;
        animation: cyberPulse 15s linear infinite !important;
    }

    /* Variation 2 - Matrix */
    body.theme-cyberneon.variation-matrix::before {
        background: linear-gradient(calc(90deg + var(--theme-variation) * 30deg), rgba(0, 255, 0, 0.12) 0%, rgba(0, 255, 255, 0.08) 33%, rgba(0, 128, 255, 0.05) 66%, rgba(0, 255, 128, 0.02) 100%) !important;
        animation: matrixRain 10s linear infinite !important;
    }

    /* Variation 3 - Synthwave */
    body.theme-cyberneon.variation-synthwave::before {
        background: linear-gradient(calc(135deg - var(--theme-variation) * 20deg), rgba(255, 0, 255, 0.10) 0%, rgba(0, 255, 255, 0.08) 20%, rgba(255, 0, 128, 0.06) 40%, rgba(128, 0, 255, 0.04) 60%, rgba(255, 255, 0, 0.02) 80%, rgba(0, 255, 0, 0.01) 100%) !important;
        animation: synthwaveFlow 20s ease-in-out infinite !important;
    }

@keyframes matrixRain {
    0% {
        transform: rotate(0deg) scale(1.5) translateY(-100%);
    }

    100% {
        transform: rotate(0deg) scale(1.5) translateY(100%);
    }
}

@keyframes synthwaveFlow {
    0%, 100% {
        transform: scale(1.5) translateX(0) skewY(0deg);
    }

    25% {
        transform: scale(1.6) translateX(5%) skewY(2deg);
    }

    50% {
        transform: scale(1.7) translateX(-5%) skewY(-2deg);
    }

    75% {
        transform: scale(1.6) translateX(3%) skewY(1deg);
    }
}

/* Éléments CyberNeon */
body.theme-cyberneon .particle {
    background: #00FFFF;
    box-shadow: 0 0 10px #00FFFF, 0 0 20px #00FFFF;
}

    body.theme-cyberneon .particle:nth-child(odd) {
        background: #FF0080;
        box-shadow: 0 0 10px #FF0080, 0 0 20px #FF0080;
    }

    body.theme-cyberneon .particle:nth-child(3n) {
        background: #8000FF;
        box-shadow: 0 0 10px #8000FF, 0 0 20px #8000FF;
    }

body.theme-cyberneon .btn-primary {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.2) 0%, rgba(0, 255, 255, 0.1) 100%);
    color: #00FFFF;
    border-color: #00FFFF;
}

body.theme-cyberneon .theme-btn[data-theme="cyberneon"] {
    color: #00FFFF;
    border-color: #00FFFF;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5), inset 0 0 10px rgba(0, 255, 255, 0.2);
}

/* ===== THÈME 3: SUNSET BLAZE (VERTICAL) ===== */
/* Variation 1 - Standard */
body.theme-sunsetblaze {
    --primary-color: #FF69B4;
    --secondary-color: #FF1493;
    --accent-color: #FF6347;
    --primary-glow: #FF69B4;
    --secondary-glow: #FFA500;
    --accent-glow: #FFD700;
}

    body.theme-sunsetblaze::before {
        background: linear-gradient(180deg, rgba(255, 105, 180, calc(0.12 + var(--theme-variation) * 0.03)) 0%, rgba(255, 20, 147, calc(0.09 + var(--theme-variation) * 0.02)) 20%, rgba(255, 99, 71, calc(0.07 + var(--theme-variation) * 0.02)) 40%, rgba(255, 127, 80, calc(0.05 + var(--theme-variation) * 0.01)) 60%, rgba(255, 165, 0, calc(0.03 + var(--theme-variation) * 0.01)) 80%, rgba(255, 215, 0, calc(0.02 + var(--theme-variation) * 0.005)) 100%) !important;
        opacity: calc(1.4 + var(--theme-variation) * 0.2) !important;
        animation: sunsetGlow 25s ease-in-out infinite !important;
    }

    /* Variation 2 - Phoenix */
    body.theme-sunsetblaze.variation-phoenix::before {
        background: linear-gradient(170deg, rgba(255, 0, 0, 0.15) 0%, rgba(255, 69, 0, 0.12) 15%, rgba(255, 140, 0, 0.09) 30%, rgba(255, 165, 0, 0.06) 50%, rgba(255, 215, 0, 0.03) 70%, rgba(255, 255, 0, 0.01) 100%) !important;
        animation: phoenixRise 20s ease-in-out infinite !important;
    }

    /* Variation 3 - Twilight */
    body.theme-sunsetblaze.variation-twilight::before {
        background: linear-gradient(190deg, rgba(138, 43, 226, 0.10) 0%, rgba(255, 20, 147, 0.08) 20%, rgba(255, 105, 180, 0.06) 40%, rgba(255, 182, 193, 0.04) 60%, rgba(255, 218, 185, 0.02) 80%, rgba(255, 250, 205, 0.01) 100%) !important;
        animation: twilightFade 30s ease-in-out infinite !important;
    }

@keyframes sunsetGlow {
    0%, 100% {
        transform: translateY(0) scale(1.5);
    }

    50% {
        transform: translateY(-10%) scale(1.6);
    }
}

@keyframes phoenixRise {
    0%, 100% {
        transform: translateY(10%) scale(1.5) rotate(0deg);
    }

    25% {
        transform: translateY(-5%) scale(1.7) rotate(2deg);
    }

    50% {
        transform: translateY(-15%) scale(1.8) rotate(-2deg);
    }

    75% {
        transform: translateY(-5%) scale(1.6) rotate(1deg);
    }
}

@keyframes twilightFade {
    0%, 100% {
        transform: scale(1.5) translateY(0);
        opacity: 1.4;
    }

    33% {
        transform: scale(1.6) translateY(-5%);
        opacity: 1.2;
    }

    66% {
        transform: scale(1.7) translateY(-3%);
        opacity: 1.6;
    }
}

/* Éléments Sunset Blaze */
body.theme-sunsetblaze .particle {
    background: #FF69B4;
    box-shadow: 0 0 8px #FF69B4, 0 0 15px #FF69B4;
}

    body.theme-sunsetblaze .particle:nth-child(odd) {
        background: #FFA500;
        box-shadow: 0 0 8px #FFA500, 0 0 15px #FFA500;
    }

    body.theme-sunsetblaze .particle:nth-child(3n) {
        background: #FFD700;
        box-shadow: 0 0 8px #FFD700, 0 0 15px #FFD700;
    }

body.theme-sunsetblaze .btn-primary {
    background: linear-gradient(135deg, rgba(255, 105, 180, 0.2) 0%, rgba(255, 105, 180, 0.1) 100%);
    color: #FF69B4;
    border-color: #FF69B4;
}

body.theme-sunsetblaze .theme-btn[data-theme="sunsetblaze"] {
    color: #FF69B4;
    border-color: #FF69B4;
    box-shadow: 0 0 10px rgba(255, 105, 180, 0.5), inset 0 0 10px rgba(255, 105, 180, 0.2);
}

/* ===== TRANSITIONS ET EFFETS GLOBAUX ===== */
/* Transitions pour tous les éléments */
body * {
    transition: color 0.5s ease, background-color 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease, filter 0.5s ease, transform 0.3s ease;
}

/* Effet de changement de thème */
body.theme-transitioning::before {
    animation: themeTransition 0.8s ease-out !important;
}

@keyframes themeTransition {
    0% {
        opacity: 0;
        transform: scale(2) rotate(180deg);
    }

    50% {
        opacity: 0.8;
    }

    100% {
        opacity: var(--theme-opacity);
        transform: scale(1.5) rotate(360deg);
    }
}

/* Logo avec effets de thème */
.logo {
    transition: filter 0.5s ease;
}

body.theme-deepocean .logo {
    filter: drop-shadow(0 0 10px rgba(65, 105, 225, 0.8));
}

body.theme-cyberneon .logo {
    filter: drop-shadow(0 0 15px rgba(0, 255, 255, 0.9));
    animation: cyberGlitch 10s infinite;
}

body.theme-sunsetblaze .logo {
    filter: drop-shadow(0 0 10px rgba(255, 105, 180, 0.8));
    animation: sunsetPulse 3s ease-in-out infinite;
}

@keyframes cyberGlitch {
    0%, 90%, 100% {
        transform: translate(0);
    }

    91% {
        transform: translate(1px, -1px);
    }

    92% {
        transform: translate(-1px, 1px);
    }

    93% {
        transform: translate(0.5px, 0.5px);
    }
}

@keyframes sunsetPulse {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(255, 105, 180, 0.8));
    }

    50% {
        filter: drop-shadow(0 0 15px rgba(255, 165, 0, 1));
    }
}

/* Effets sur les sections */
body.theme-deepocean .section-title::after {
    background: linear-gradient(90deg, #000080, #4169E1, #6495ED);
}

body.theme-cyberneon .section-title::after {
    background: linear-gradient(90deg, #00FFFF, #FF0080, #8000FF);
}

body.theme-sunsetblaze .section-title::after {
    background: linear-gradient(90deg, #FF69B4, #FFA500, #FFD700);
}

/* Particules avec vitesse variable selon le thème */
body.theme-deepocean .particle {
    animation-duration: calc(20s + var(--theme-variation) * 5s);
}

body.theme-cyberneon .particle {
    animation-duration: calc(15s + var(--theme-variation) * 3s);
}

body.theme-sunsetblaze .particle {
    animation-duration: calc(25s + var(--theme-variation) * 5s);
}

/* ===== RESPONSIVE POUR THEME SELECTOR ===== */
@media (max-width: 768px) {
    .theme-selector {
        padding: 0.3rem;
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .theme-label {
        font-size: 0.7rem;
        margin-right: 0.3rem;
        width: 100%;
        text-align: center;
    }

    .theme-buttons {
        flex-wrap: wrap;
        gap: 0.3rem;
        justify-content: center;
        width: 100%;
    }

    .theme-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.65rem;
    }

    body {
        padding-top: 65px;
    }

    nav {
        top: 60px !important;
    }
}

/* ===== CLASSES UTILITAIRES POUR RANDOMISATION ===== */
.variation-1 {
    --theme-variation: 0.2;
}

.variation-2 {
    --theme-variation: 0.4;
}

.variation-3 {
    --theme-variation: 0.6;
}

.variation-4 {
    --theme-variation: 0.8;
}

.variation-5 {
    --theme-variation: 1.0;
}

/* ===== ANIMATIONS BONUS ===== */
@keyframes randomPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }

    25% {
        transform: scale(1.05) rotate(0.5deg);
        opacity: 0.9;
    }

    50% {
        transform: scale(0.98) rotate(-0.5deg);
        opacity: 1;
    }

    75% {
        transform: scale(1.02) rotate(0.25deg);
        opacity: 0.85;
    }
}

/* Effet de particules randomisées */
.particle:nth-child(4n) {
    animation-delay: calc(var(--theme-variation) * 2s);
}

.particle:nth-child(5n) {
    animation-duration: calc(25s + var(--theme-variation) * 10s);
}

/* Boutons avec variations */
body[class*="variation-"] .btn:hover {
    transform: translateY(-2px) rotate(calc(var(--theme-variation) * 1deg));
}

/* Cards avec effets variables */
body[class*="variation-"] .feature-card:hover,
body[class*="variation-"] .mode-card:hover {
    transform: translateY(calc(-3px - var(--theme-variation) * 2px)) scale(calc(1.02 + var(--theme-variation) * 0.01));
}

/* ===== PERFORMANCE ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* =====================================================
   🎯 ANIMATIONS DE MOUVEMENT POUR TOUS LES ÉLÉMENTS
   ===================================================== */

/* Animation de respiration globale */
@keyframes breathe {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

/* Animation de flottement */
@keyframes floatAnimation {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-10px) rotate(0.5deg);
    }

    75% {
        transform: translateY(10px) rotate(-0.5deg);
    }
}

/* Animation de balancement */
@keyframes swingAnimation {
    0%, 100% {
        transform: rotate(-5deg);
    }

    50% {
        transform: rotate(5deg);
    }
}

/* ===== EFFETS VISUELS SUR TOUS LES ÉLÉMENTS PRINCIPAUX ===== */

/* Tous les titres animés */
h1, h2, h3, h4, h5, h6 {
    animation: floatAnimation 6s ease-in-out infinite;
    animation-delay: calc(var(--index, 0) * 0.2s);
}

/* Sections avec effet de respiration */
section {
    animation: breathe 8s ease-in-out infinite;
    animation-delay: calc(var(--index, 0) * 0.5s);
}

/* Tous les paragraphes avec flottement léger */
p {
    animation: floatAnimation 10s ease-in-out infinite;
    animation-delay: calc(var(--index, 0) * 0.3s);
}

/* Stats avec pulsation */
.stat-item, .stat-number, .stat-label {
    animation: pulseScale 3s ease-in-out infinite;
    animation-delay: calc(var(--index, 0) * 0.2s);
}

/* Conteneurs avec mouvement subtil */
.container, .demo-container, .chat-interface, .effects-panel, .graphics-panel {
    animation: breathe 12s ease-in-out infinite;
}

/* Images et icônes avec rotation */
img, .icon, .feature-icon {
    animation: swingAnimation 8s ease-in-out infinite;
    animation-delay: calc(var(--index, 0) * 0.4s);
}

/* Boutons avec flottement au repos */
button, .btn, .mode-btn, .theme-btn {
    animation: floatAnimation 5s ease-in-out infinite;
    animation-delay: calc(var(--index, 0) * 0.1s);
}

    /* ===== EFFETS DE SURVOL AMÉLIORÉS ===== */

    /* Effet de zoom sur tous les éléments cliquables */
    a:hover, button:hover, .btn:hover, .clickable:hover {
        animation: pulseScale 0.5s ease-in-out;
        transform: scale(1.1) !important;
    }

/* Effet de glitch sur les textes au survol */
h1:hover, h2:hover, h3:hover {
    animation: glitchText 0.5s ease-in-out;
}

/* ===== PROPAGATION DES COULEURS DE THÈME ===== */

/* Adaptation des couleurs pour tous les éléments */
body[class*="theme-"] * {
    transition: all 0.5s ease;
}

/* Bordures qui s'adaptent au thème */
body[class*="theme-"] .border,
body[class*="theme-"] [class*="border-"] {
    border-color: var(--primary-color) !important;
}

/* Ombres qui s'adaptent au thème */
body[class*="theme-"] .shadow,
body[class*="theme-"] [class*="shadow-"] {
    box-shadow: 0 0 20px var(--primary-glow) !important;
}

/* Textes qui brillent selon le thème */
body[class*="theme-"] .glow-text,
body[class*="theme-"] [class*="glow"] {
    text-shadow: 0 0 10px var(--primary-glow) !important;
}

/* ===== EFFETS SPÉCIAUX POUR ÉLÉMENTS AVEC CLASSES ===== */

/* Effet néon sur tout élément avec classe neon */
.neon, [class*="neon-"] {
    animation: neonPulse 2s infinite;
    box-shadow: 0 0 20px currentColor;
}

/* Effet holographique sur tout élément avec classe holo */
.holo, [class*="holo-"] {
    animation: holographicShift 10s ease infinite;
}

/* Effet arc-en-ciel sur tout élément avec classe rainbow */
.rainbow, [class*="rainbow-"] {
    animation: rainbowText 5s ease infinite;
}

/* ===== INDICES AUTOMATIQUES POUR DÉLAIS D'ANIMATION ===== */

/* Assignation automatique des indices */
*:nth-child(1) {
    --index: 0;
}

*:nth-child(2) {
    --index: 1;
}

*:nth-child(3) {
    --index: 2;
}

*:nth-child(4) {
    --index: 3;
}

*:nth-child(5) {
    --index: 4;
}

*:nth-child(6) {
    --index: 5;
}

*:nth-child(7) {
    --index: 6;
}

*:nth-child(8) {
    --index: 7;
}

*:nth-child(9) {
    --index: 8;
}

*:nth-child(10) {
    --index: 9;
}
