/**
 * CYBERPUNK FOOTER - Le CSS le plus spectaculaire
 */

/* Variables */
:root {
    --footer-bg: #0a0a0a;
    --neon-cyan: #00f5ff;
    --neon-pink: #ff006e;
    --neon-purple: #bd00ff;
    --neon-green: #00ff88;
    --matrix-green: #00ff00;
    --cyber-yellow: #ffff00;
}

/* Matrix rain canvas */
.footer-matrix-rain {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 600px;
    pointer-events: none;
    opacity: 0.3;
    z-index: 1;
}

/* Cyber grid background */
.footer-cyber-grid {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 600px;
    overflow: hidden;
    pointer-events: none;
    z-index: 2;
}

.grid-line {
    position: absolute;
    width: 1px;
    height: 100%;
    background: linear-gradient(to top, var(--neon-cyan), transparent);
    left: calc(var(--index) * 20%);
    animation: gridPulse 3s ease-in-out infinite;
    animation-delay: calc(var(--index) * 0.2s);
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.5; }
}

/* Main footer */
.cyberpunk-footer {
    position: relative;
    background: var(--footer-bg);
    margin-top: 100px;
    padding-top: 80px;
    overflow: hidden;
    z-index: 10;
    clip-path: polygon(0 40px, 100% 0, 100% 100%, 0 100%);
}

/* Scan line effect */
.footer-scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--neon-cyan), 
        transparent
    );
    animation: scanFooter 8s linear infinite;
}

@keyframes scanFooter {
    0% { transform: translateY(0); }
    100% { transform: translateY(600px); }
}

/* Particles */
.footer-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.footer-particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--neon-cyan);
    border-radius: 50%;
    left: var(--x);
    animation: particleFloat var(--duration) linear infinite;
    animation-delay: var(--delay);
    box-shadow: 0 0 6px var(--neon-cyan);
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Top section */
.footer-top-section {
    position: relative;
    padding: 6px 0;
    border-bottom: 1px solid rgba(0, 245, 255, 0.3);
}

/* Hologram effect */
.footer-hologram-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(0, 245, 255, 0.05) 50%,
        transparent 70%
    );
    background-size: 200% 200%;
    animation: hologramSweep 4s ease-in-out infinite;
}

@keyframes hologramSweep {
    0% { background-position: 200% 200%; }
    100% { background-position: -200% -200%; }
}

/* Logo container */
.footer-logo-container {
    text-align: center;
    margin-bottom: 5px;
}

.footer-logo-glitch {
    font-size: 48px;
    font-weight: bold;
    text-transform: uppercase;
    position: relative;
    color: #fff;
    letter-spacing: 5px;
}

.footer-logo-main {
    position: relative;
    z-index: 3;
}

.footer-logo-shadow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.footer-logo-shadow-1 {
    color: var(--neon-cyan);
    animation: glitchLogo1 2s infinite;
}

.footer-logo-shadow-2 {
    color: var(--neon-pink);
    animation: glitchLogo2 2s infinite;
}

@keyframes glitchLogo1 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

@keyframes glitchLogo2 {
    0%, 100% { transform: translate(0); }
    25% { transform: translate(2px, -2px); }
    50% { transform: translate(-2px, 2px); }
    75% { transform: translate(-2px, -2px); }
}

.footer-logo-tagline {
    font-size: 14px;
    color: var(--neon-cyan);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-top: 10px;
    animation: taglinePulse 2s ease-in-out infinite;
}

@keyframes taglinePulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* Terminal navigation */
.footer-terminal {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--neon-cyan);
    border-radius: 8px;
    overflow: hidden;
    margin: 3px auto;
	height: 240px;
    /* max-width: 800px; */
}

.terminal-header {
    background: linear-gradient(90deg, #1a1a1a, #2a2a2a);
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--neon-cyan);
}

.terminal-title {
    color: var(--neon-cyan);
    font-size: 12px;
    font-family: monospace;
    text-transform: uppercase;
}

.terminal-controls {
    display: flex;
    gap: 8px;
}

.terminal-controls span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: block;
}

.terminal-controls span:nth-child(1) {
    background: #ff5f57;
}

.terminal-controls span:nth-child(2) {
    background: #ffbd2e;
}

.terminal-controls span:nth-child(3) {
    background: #28ca42;
}

.terminal-content {
    padding: 5px;
    font-family: 'Courier New', monospace;
    color: var(--matrix-green);
}

.terminal-line {
    margin: 0 0 15px 0;
    font-size: 14px;
}

.terminal-line::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 14px;
    background: var(--matrix-green);
    margin-right: 5px;
    animation: cursorBlink 1s infinite;
}

/* Terminal output - Navigation links */
.terminal-output a,
.footer-nav-links a {
    color: var(--neon-cyan);
    text-decoration: none;
    display: inline-block;
    padding: 5px 10px;
    margin: 5px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    font-size: 14px;
}

.terminal-output a:hover,
.footer-nav-links a:hover {
    border-color: var(--neon-cyan);
    background: rgba(0, 245, 255, 0.1);
    transform: translateX(5px);
    box-shadow: 0 0 15px rgba(0, 245, 255, 0.5);
}

/* Footer nav links layout */
.footer-nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 0;
}

/* Grid pour 4 colonnes dans le terminal */
.footer-columns-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 10px 0;
    width: 100%;
}

.footer-column {
    min-width: 0;
	height: 250px;
}

.footer-column .column-title {
    color: var(--neon-cyan);
    font-size: 14px;
    margin-bottom: 8px;
    text-transform: uppercase;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 5px;
}

.footer-column .column-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-cyan), transparent);
}

.footer-column .column-links {
    list-style: none;
    padding: 0;
    margin: 0;
    line-height: 0.2;
}

.footer-column .column-links li {
    margin: 2px 0;
    line-height: 0.2;
}

.footer-column .column-links a {
    display: block;
    padding: 2px 0;
    font-size: 13px;
    line-height: 0.2;
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.footer-column .column-links a:hover {
    color: var(--neon-cyan);
    padding-left: 10px;
}

.footer-column .column-links a::before {
    content: '>';
    position: absolute;
    left: -15px;
    opacity: 0;
    color: var(--neon-cyan);
    transition: all 0.3s ease;
}

.footer-column .column-links a:hover::before {
    left: 0;
    opacity: 1;
}

/* Responsive pour les colonnes du footer */
@media (max-width: 992px) {
    .footer-columns-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .footer-columns-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .footer-column .column-title {
        font-size: 13px;
    }
    
    .footer-column .column-links a {
        font-size: 12px;
    }
}

/* Middle section */
.footer-middle-section {
    padding: 6px 0;
    border-bottom: 1px solid rgba(0, 245, 255, 0.3);
}

/* Footer blocks */
.footer-block {
    margin-bottom: 40px;
}

.footer-block-title {
    font-size: 20px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
    color: var(--neon-cyan);
    position: relative;
}

.footer-icon-terminal {
    color: var(--matrix-green);
    margin-right: 10px;
}

/* Contact block */
.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    color: #ccc;
    transition: all 0.3s ease;
}

.contact-item:hover {
    color: var(--neon-cyan);
    transform: translateX(10px);
}

.contact-icon {
    font-size: 20px;
}

.pulse-neon {
    animation: neonPulse 2s ease-in-out infinite;
}

@keyframes neonPulse {
    0%, 100% {
        filter: drop-shadow(0 0 2px currentColor);
    }
    50% {
        filter: drop-shadow(0 0 10px currentColor);
    }
}

/* Social links */
.social-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* Social links horizontaux */
.horizontal-social {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
}

.horizontal-social .social-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid var(--neon-cyan);
    color: var(--neon-cyan);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border-radius: 50%;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-icon {
    font-size: 20px;
}

.horizontal-social .social-icon {
    font-size: 24px;
}

.social-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--neon-cyan);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
    opacity: 0.3;
}

.social-link:hover .social-effect {
    width: 200px;
    height: 200px;
}

.social-link:hover {
    color: var(--footer-bg);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 245, 255, 0.5);
}

.horizontal-social .social-link:hover {
    transform: scale(1.2) rotate(360deg);
}

/* Newsletter */
.newsletter-desc {
    color: #888;
    margin-bottom: 20px;
    font-style: italic;
}

.cyber-input {
    position: relative;
    margin-bottom: 20px;
}

.cyber-input input {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--neon-cyan);
    color: #fff;
    padding: 15px 20px;
    font-size: 14px;
    width: 100%;
    transition: all 0.3s ease;
}

.cyber-input input:focus {
    outline: none;
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.5);
    border-color: var(--neon-green);
}

/* Newsletter input inline avec bouton */
.cyber-input-inline {
    position: relative;
    display: flex;
    margin-bottom: 20px;
    z-index: 5;
}

.cyber-input-inline input {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid var(--neon-cyan);
    color: #fff;
    padding: 15px 120px 15px 20px;
    font-size: 14px;
    width: 100%;
    transition: all 0.3s ease;
    border-radius: 50px;
    position: relative;
    z-index: 1;
}

.cyber-input-inline input:focus {
    outline: none;
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.5);
    border-color: var(--neon-green);
}

.btn-cyber {
    background: linear-gradient(45deg, var(--neon-cyan), var(--neon-purple));
    border: none;
    color: #000;
    padding: 15px 30px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Bouton inline dans l'input */
.btn-cyber-inline {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(45deg, var(--neon-cyan), var(--neon-purple));
    border: none;
    color: #000;
    padding: 10px 25px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    border-radius: 50px;
    z-index: 10;
}

.btn-cyber:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 245, 255, 0.8);
}

.btn-cyber-inline:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 30px rgba(0, 245, 255, 0.8);
}

.btn-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%) scale(0);
    border-radius: 50%;
    transition: transform 0.5s ease;
}

.btn-cyber:hover .btn-effect {
    transform: translate(-50%, -50%) scale(2);
}

.form-feedback {
    display: none;
    align-items: center;
    gap: 10px;
    color: var(--neon-green);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.feedback-icon {
    animation: rotate 2s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Stats section */
.footer-stats-section {
    padding: 40px 0;
    background: rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(0, 245, 255, 0.3);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

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

.stat-value {
    font-size: 36px;
    font-weight: bold;
    color: var(--neon-cyan);
    text-shadow: 0 0 20px rgba(0, 245, 255, 0.5);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #666;
    margin-bottom: 10px;
}

.stat-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.stat-bar span {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-green));
    animation: statFill 3s ease-out forwards;
}

@keyframes statFill {
    0% { width: 0; }
    100% { width: 75%; }
}

/* Bottom section */
.footer-bottom-section {
    padding: 6px 0;
    position: relative;
}

.bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* Matrix text */
.matrix-text {
    font-family: monospace;
    color: var(--matrix-green);
    font-size: 10px;
    opacity: 0.3;
    letter-spacing: 2px;
}

/* Copyright */
.footer-copyright-text {
    color: #888;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
}

/* Legal links */
.legal-links-container {
    margin: 6px 0;
    padding: 20px 0;
    border-top: 1px solid rgba(0, 245, 255, 0.2);
    border-bottom: 1px solid rgba(0, 245, 255, 0.2);
}

.legal-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.legal-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #888;
    text-decoration: none;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 10px 0;
    transition: all 0.3s ease;
}

.legal-link:hover {
    color: var(--neon-cyan);
    transform: translateY(-3px);
}

.link-icon {
    font-size: 16px;
    display: inline-block;
    transition: all 0.3s ease;
}

.legal-link:hover .link-icon {
    animation: iconRotate 0.6s ease;
    color: var(--neon-green);
}

@keyframes iconRotate {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.2); }
    100% { transform: rotate(360deg) scale(1); }
}

.link-text {
    position: relative;
}

.link-line {
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
    transition: width 0.3s ease;
}

.legal-link:hover .link-line {
    width: 100%;
}

/* Effet glitch au survol */
.legal-link:hover .link-text::before,
.legal-link:hover .link-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.legal-link:hover .link-text::before {
    animation: glitchLink1 0.3s infinite;
    color: var(--neon-cyan);
    z-index: -1;
}

.legal-link:hover .link-text::after {
    animation: glitchLink2 0.3s infinite;
    color: var(--neon-pink);
    z-index: -2;
}

@keyframes glitchLink1 {
    0%, 100% { transform: translate(0); }
    33% { transform: translate(-1px, 1px); }
    66% { transform: translate(1px, -1px); }
}

@keyframes glitchLink2 {
    0%, 100% { transform: translate(0); }
    33% { transform: translate(1px, 1px); }
    66% { transform: translate(-1px, -1px); }
}

/* Responsive pour les liens légaux */
@media (max-width: 768px) {
    .legal-links {
        gap: 15px;
        padding: 0 20px;
    }
    
    .legal-link {
        font-size: 11px;
    }
}

/* Easter egg button */
.easter-egg-trigger {
    background: transparent;
    border: 1px solid var(--neon-purple);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.easter-egg-trigger:hover {
    transform: rotate(360deg) scale(1.2);
    box-shadow: 0 0 30px var(--neon-purple);
}

.egg-icon {
    font-size: 24px;
    animation: bounce 2s ease-in-out infinite;
}

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

/* Border effect */
.footer-border-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.border-line {
    position: absolute;
    background: var(--neon-cyan);
    opacity: 0.5;
}

.border-top, .border-bottom {
    height: 1px;
    width: 100%;
}

.border-left, .border-right {
    width: 1px;
    height: 100%;
}

.border-top {
    top: 0;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
    animation: borderMove 4s linear infinite;
}

.border-right {
    right: 0;
    background: linear-gradient(180deg, transparent, var(--neon-cyan), transparent);
    animation: borderMove 4s linear infinite 1s;
}

.border-bottom {
    bottom: 0;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
    animation: borderMove 4s linear infinite 2s;
}

.border-left {
    left: 0;
    background: linear-gradient(180deg, transparent, var(--neon-cyan), transparent);
    animation: borderMove 4s linear infinite 3s;
}

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

/* Footer Glitch text effect */
.footer-glitch-text {
    position: relative;
}

.footer-glitch-text::before,
.footer-glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.footer-glitch-text::before {
    animation: glitch-1 0.5s infinite;
    color: var(--neon-cyan);
    z-index: -1;
}

.footer-glitch-text::after {
    animation: glitch-2 0.5s infinite;
    color: var(--neon-pink);
    z-index: -2;
}

/* Responsive */
@media (max-width: 768px) {
    .cyberpunk-footer {
        clip-path: none;
        padding-top: 40px;
    }
    
    .footer-logo-glitch {
        font-size: 32px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Easter Egg Message */
.easter-egg-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.95);
    border: 2px solid var(--neon-purple);
    padding: 50px;
    text-align: center;
    z-index: 99999;
    animation: eggAppear 0.5s ease;
    box-shadow: 0 0 100px var(--neon-purple);
}

.easter-egg-message h1 {
    color: var(--neon-purple);
    font-size: 36px;
    margin-bottom: 20px;
    animation: glitchText 0.5s infinite;
}

.easter-egg-message p {
    color: var(--neon-cyan);
    font-size: 18px;
    margin-bottom: 30px;
}

.easter-egg-message button {
    background: var(--neon-purple);
    color: #000;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.easter-egg-message button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px var(--neon-purple);
}

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

/* Cyberpunk overdrive mode */
body.cyberpunk-overdrive {
    animation: overdrive 0.1s infinite;
}

@keyframes overdrive {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

/* Animation texte glitch */
@keyframes textGlitch {
    0%, 100% {
        transform: translate(0);
        opacity: 1;
    }
    20% {
        transform: translate(-2px, 2px);
        opacity: 0.8;
    }
    40% {
        transform: translate(2px, -2px);
        opacity: 0.8;
    }
    60% {
        transform: translate(-1px, 1px);
        opacity: 0.8;
    }
    80% {
        transform: translate(1px, -1px);
        opacity: 0.8;
    }
}