/*
═══════════════════════════════════════════════════════════════════
  NOVILISYA QUANTUM - TITRE ÉPIQUE "L'INNOVATION COMMENCE ICI"
  Police INCROYABLE avec effets super IA 🔥
═══════════════════════════════════════════════════════════════════
*/

/* Import de polices ultra-modernes et futuristes */
@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@900&family=Teko:wght@700&family=Audiowide&family=Michroma&display=swap');

/* Titre Hero avec police INCROYABLE */
.hero-title-quantum {
    font-family: 'Exo 2', 'Orbitron', sans-serif !important;
    font-size: 7rem !important; /* ÉNORME */
    font-weight: 900 !important; /* ULTRA BOLD */
    line-height: 1.1 !important;
    letter-spacing: -0.02em !important; /* Serré pour impact */
    text-transform: uppercase;
    margin-bottom: 50px;
    position: relative;
    
    /* Effet de profondeur 3D */
    text-shadow: 
        0 1px 0 rgba(139, 92, 246, 0.3),
        0 2px 0 rgba(139, 92, 246, 0.3),
        0 3px 0 rgba(139, 92, 246, 0.3),
        0 4px 0 rgba(139, 92, 246, 0.3),
        0 5px 0 rgba(139, 92, 246, 0.3),
        0 6px 1px rgba(0, 0, 0, 0.1),
        0 0 5px rgba(139, 92, 246, 0.3),
        0 1px 3px rgba(0, 0, 0, 0.3),
        0 3px 5px rgba(0, 0, 0, 0.2),
        0 5px 10px rgba(0, 0, 0, 0.25),
        0 10px 20px rgba(0, 0, 0, 0.2),
        0 20px 40px rgba(0, 0, 0, 0.15);
    
    /* Animation d'apparition spectaculaire */
    animation: epicTitleAppear 1.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    transform-origin: center;
}

@keyframes epicTitleAppear {
    0% {
        opacity: 0;
        transform: scale(0.5) rotateX(-90deg);
        filter: blur(20px);
    }
    50% {
        opacity: 0.8;
        filter: blur(5px);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotateX(0deg);
        filter: blur(0);
    }
}

/* Lignes du titre avec effet décalé */
.title-line {
    display: block;
    margin-bottom: 0.1em;
    position: relative;
    overflow: visible;
    
    /* Animation décalée pour chaque ligne */
    animation: lineSlideIn 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    opacity: 0;
}

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

.title-line:nth-child(2) {
    animation-delay: 0.4s;
}

.title-line:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes lineSlideIn {
    0% {
        opacity: 0;
        transform: translateX(-100px) skewX(-10deg);
    }
    100% {
        opacity: 1;
        transform: translateX(0) skewX(0deg);
    }
}

/* Mots individuels avec effets chromatic aberration */
.word-quantum {
    display: inline-block;
    position: relative;
    font-weight: 900 !important;
    opacity: 1 !important;
    
    /* Effet chrome/métal brillant */
    background: linear-gradient(
        135deg,
        #ffffff 0%,
        #f0f0f0 25%,
        #ffffff 50%,
        #d0d0d0 75%,
        #ffffff 100%
    );
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    
    /* Animation de brillance qui se déplace */
    animation: chromeShine 3s ease-in-out infinite;
    
    /* Effet de pulse subtil */
    animation: wordPulse 4s ease-in-out infinite;
}

@keyframes chromeShine {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes wordPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

/* Effet chromatic aberration (RGB split) sur hover du Hero */
.hero-quantum:hover .word-quantum {
    animation: chromeShine 3s ease-in-out infinite, chromaticShift 0.5s ease-in-out infinite;
}

@keyframes chromaticShift {
    0%, 100% {
        text-shadow: 
            -2px 0 0 rgba(255, 0, 0, 0.3),
            2px 0 0 rgba(0, 255, 255, 0.3),
            0 0 30px rgba(139, 92, 246, 0.5);
    }
    50% {
        text-shadow: 
            2px 0 0 rgba(255, 0, 0, 0.3),
            -2px 0 0 rgba(0, 255, 255, 0.3),
            0 0 50px rgba(6, 182, 212, 0.5);
    }
}

/* Mot gradient (celui du milieu) avec effet arc-en-ciel holographique */
.word-quantum.gradient-text {
    background: linear-gradient(
        135deg,
        #8B5CF6 0%,
        #06B6D4 25%,
        #FBBF24 50%,
        #06B6D4 75%,
        #8B5CF6 100%
    ) !important;
    background-size: 300% 300% !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    
    /* Animation de dégradé qui se déplace */
    animation: gradientFlow 4s ease infinite, wordPulse 4s ease-in-out infinite !important;
    
    /* Lueur plus intense */
    filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.8))
            drop-shadow(0 0 40px rgba(6, 182, 212, 0.5));
}

@keyframes gradientFlow {
    0%, 100% {
        background-position: 0% 50%;
        filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.8))
                drop-shadow(0 0 40px rgba(6, 182, 212, 0.5));
    }
    25% {
        background-position: 50% 50%;
        filter: drop-shadow(0 0 25px rgba(6, 182, 212, 0.9))
                drop-shadow(0 0 50px rgba(251, 191, 36, 0.6));
    }
    50% {
        background-position: 100% 50%;
        filter: drop-shadow(0 0 30px rgba(251, 191, 36, 1))
                drop-shadow(0 0 60px rgba(139, 92, 246, 0.7));
    }
    75% {
        background-position: 50% 50%;
        filter: drop-shadow(0 0 25px rgba(6, 182, 212, 0.9))
                drop-shadow(0 0 50px rgba(251, 191, 36, 0.6));
    }
}

/* Effet de particules énergétiques autour du titre */
.hero-title-quantum::before,
.hero-title-quantum::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: -1;
}

.hero-title-quantum::before {
    background: radial-gradient(
        circle at 20% 50%,
        rgba(139, 92, 246, 0.15) 0%,
        transparent 50%
    );
    animation: energyPulse1 3s ease-in-out infinite;
}

.hero-title-quantum::after {
    background: radial-gradient(
        circle at 80% 50%,
        rgba(6, 182, 212, 0.15) 0%,
        transparent 50%
    );
    animation: energyPulse2 3s ease-in-out infinite 1.5s;
}

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

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

/* Effet scanline subtil qui traverse le titre */
.title-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(6, 182, 212, 0.8),
        rgba(251, 191, 36, 0.6),
        transparent
    );
    animation: scanlineSlide 4s linear infinite;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.8);
}

.title-line:nth-child(1)::after { animation-delay: 0s; }
.title-line:nth-child(2)::after { animation-delay: 1.3s; }
.title-line:nth-child(3)::after { animation-delay: 2.6s; }

@keyframes scanlineSlide {
    0% {
        left: -100%;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        left: 100%;
        opacity: 0;
    }
}

/* Effet de distorsion glitch aléatoire */
@keyframes glitchEffect {
    0%, 90%, 100% {
        transform: translate(0, 0) skew(0deg);
        clip-path: inset(0 0 0 0);
    }
    92% {
        transform: translate(-2px, 2px) skew(-1deg);
        clip-path: inset(0 0 80% 0);
    }
    94% {
        transform: translate(2px, -1px) skew(1deg);
        clip-path: inset(80% 0 0 0);
    }
    96% {
        transform: translate(-1px, 1px) skew(-0.5deg);
        clip-path: inset(0 0 0 0);
    }
}

/* Applique le glitch aléatoirement */
.word-quantum:nth-child(odd) {
    animation: chromeShine 3s ease-in-out infinite, 
               wordPulse 4s ease-in-out infinite,
               glitchEffect 8s ease-in-out infinite;
}

/* Effet holographique sur le container du titre */
.hero-title-quantum {
    position: relative;
    padding: 20px 0;
}

/* Lignes holographiques horizontales */
.hero-quantum-content::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(139, 92, 246, 0.3) 20%,
        rgba(6, 182, 212, 0.5) 50%,
        rgba(139, 92, 246, 0.3) 80%,
        transparent 100%
    );
    transform: translateY(-150px);
    animation: holoLineMove 5s linear infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes holoLineMove {
    0%, 100% {
        opacity: 0;
        transform: translateY(-200px) scaleX(0.5);
    }
    50% {
        opacity: 1;
        transform: translateY(-100px) scaleX(1);
    }
}

/* Effet de réfraction lumineuse */
.word-quantum::before {
    content: attr(data-word);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 50%,
        rgba(255, 255, 255, 0.05) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.3;
    animation: refractionShift 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes refractionShift {
    0%, 100% {
        transform: translateX(0);
        opacity: 0.3;
    }
    50% {
        transform: translateX(2px);
        opacity: 0.6;
    }
}

/* Effet de perspective 3D au hover */
.hero-quantum:hover .hero-title-quantum {
    transform: perspective(1000px) rotateX(2deg);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Responsive - ajustements pour mobile */
@media (max-width: 1200px) {
    .hero-title-quantum {
        font-size: 5rem !important;
    }
}

@media (max-width: 768px) {
    .hero-title-quantum {
        font-size: 3.5rem !important;
        text-shadow: 
            0 1px 0 rgba(139, 92, 246, 0.3),
            0 2px 0 rgba(139, 92, 246, 0.3),
            0 3px 1px rgba(0, 0, 0, 0.1),
            0 0 5px rgba(139, 92, 246, 0.3),
            0 1px 3px rgba(0, 0, 0, 0.3); /* Simplifié pour mobile */
    }
    
    /* Désactive certaines animations lourdes sur mobile */
    .word-quantum::before,
    .hero-title-quantum::before,
    .hero-title-quantum::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title-quantum {
        font-size: 2.5rem !important;
    }
}

/* Effet de focus/glow quand on scroll vers le hero */
.hero-quantum.in-view .hero-title-quantum {
    animation: epicTitleAppear 1.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
               titleGlowPulse 3s ease-in-out infinite 1.5s;
}

@keyframes titleGlowPulse {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 40px rgba(6, 182, 212, 0.5));
    }
}

/* Effet de dégradé animé sur le fond du titre */
.hero-title-quantum {
    background: 
        linear-gradient(
            135deg,
            rgba(139, 92, 246, 0.03) 0%,
            transparent 50%,
            rgba(6, 182, 212, 0.03) 100%
        );
    background-size: 200% 200%;
    animation: bgGradientMove 10s ease infinite;
    padding: 30px 0;
    border-radius: 10px;
}

@keyframes bgGradientMove {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Effet de lueur sur les bords du container titre */
.hero-quantum-content {
    position: relative;
}

.hero-quantum-content::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 200px;
    background: radial-gradient(
        ellipse at center,
        rgba(139, 92, 246, 0.1) 0%,
        transparent 70%
    );
    z-index: 0;
    pointer-events: none;
    animation: glowExpand 4s ease-in-out infinite;
}

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