:root {
    --primary-neon: #00ff88;
    --secondary-neon: #ff0080;
    --accent-blue: #0080ff;
    --dark-bg: #0a0a0a;
    --card-bg: #1a1a1a;
    --text-light: #e0e0e0;
    --glow-primary: 0 0 20px var(--primary-neon);
    --glow-secondary: 0 0 20px var(--secondary-neon);
    --cyber-gradient: linear-gradient(135deg, #00ff88, #0080ff, #ff0080);
    --dark-gradient: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
}

* {
    box-sizing: border-box;
}

/* Animation de fond cyber */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(0, 255, 136, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 0, 128, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 80%, rgba(0, 128, 255, 0.1) 0%, transparent 50%);
    animation: cyberPulse 8s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes cyberPulse {
    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.7;
    }
}

/* Grille cyber en arrière-plan */
.cyber-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(0, 255, 136, 0.1) 1px, transparent 1px),
                linear-gradient(90deg, rgba(0, 255, 136, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

.contact-section {
    padding: 100px 0;
    position: relative;
    z-index: 2;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.contact-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.contact-title h1 {
    font-size: 4rem;
    font-weight: 900;
    background: var(--cyber-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 20px;
    animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
    0%,
    100% {
        filter: drop-shadow(0 0 10px var(--primary-neon));
    }

    50% {
        filter: drop-shadow(0 0 30px var(--secondary-neon));
    }
}

.contact-title p {
    font-size: 1.3rem;
    color: var(--text-light);
    opacity: 0.8;
}

.cyber-form {
    background: rgba(26, 26, 26, 0.95);
    border: 2px solid transparent;
    border-radius: 25px;
    padding: 50px;
    position: relative;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.cyber-form::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--cyber-gradient);
    border-radius: 25px;
    z-index: -1;
    animation: borderPulse 4s ease-in-out infinite;
}

@keyframes borderPulse {
    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

.cyber-form::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.1), transparent);
    animation: scanLine 6s infinite;
}

@keyframes scanLine {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.form-group {
    margin-bottom: 30px;
    position: relative;
}

.form-label-cyber {
    display: block;
    color: var(--primary-neon);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    position: relative;
}

.form-label-cyber::before {
    content: '▶';
    margin-right: 8px;
    color: var(--secondary-neon);
    animation: blink 2s infinite;
}

@keyframes blink {
    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

.form-control-cyber {
    width: 100%;
    padding: 20px 25px;
    background: rgba(10, 10, 10, 0.8);
    border: 2px solid rgba(0, 255, 136, 0.3);
    border-radius: 15px;
    color: var(--text-light);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
}

.form-control-cyber:focus {
    outline: none;
    border-color: var(--primary-neon);
    box-shadow: var(--glow-primary);
    background: rgba(10, 10, 10, 1);
    transform: translateY(-2px);
}

.form-control-cyber::placeholder {
    color: rgba(224, 224, 224, 0.5);
    transition: opacity 0.3s ease;
}

.form-control-cyber:focus::placeholder {
    opacity: 0.2;
}

.input-group-cyber {
    position: relative;
}

.input-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-neon);
    font-size: 1.2rem;
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-control-cyber:focus + .input-icon {
    color: var(--secondary-neon);
    animation: iconPulse 1s ease-in-out;
}

@keyframes iconPulse {
    0%,
    100% {
        transform: translateY(-50%) scale(1);
    }

    50% {
        transform: translateY(-50%) scale(1.2);
    }
}

.checkbox-cyber {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin: 40px 0;
    padding: 20px;
    background: rgba(0, 255, 136, 0.05);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 15px;
    position: relative;
}

.checkbox-cyber::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid var(--primary-neon);
    border-radius: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.checkbox-cyber:hover::before {
    opacity: 0.5;
}

.cyber-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-neon);
    border-radius: 4px;
    background: transparent;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.cyber-checkbox:checked {
    background: var(--primary-neon);
    box-shadow: var(--glow-primary);
}

.cyber-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--dark-bg);
    font-weight: bold;
    font-size: 12px;
}

.privacy-text {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

.privacy-link {
    color: var(--primary-neon);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
}

.privacy-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-neon);
    transition: width 0.3s ease;
}

.privacy-link:hover {
    color: var(--secondary-neon);
    text-shadow: 0 0 10px var(--secondary-neon);
}

.privacy-link:hover::after {
    width: 100%;
}

.submit-btn {
    width: 100%;
    padding: 20px;
    background: var(--cyber-gradient);
    border: none;
    border-radius: 50px;
    color: var(--dark-bg);
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-top: 20px;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 255, 136, 0.4),
                0 5px 15px rgba(255, 0, 128, 0.3);
}

.submit-btn:active {
    transform: translateY(-1px);
}

/* Modal cyber */
.modal-cyber .modal-content {
    background: var(--dark-gradient);
    border: 2px solid var(--primary-neon);
    border-radius: 25px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8),
                0 0 50px rgba(0, 255, 136, 0.3);
    position: relative;
    overflow: hidden;
}

.modal-cyber .modal-content::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--cyber-gradient);
    border-radius: 25px;
    z-index: -1;
    animation: modalBorderGlow 3s ease-in-out infinite;
}

@keyframes modalBorderGlow {
    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

.modal-cyber .modal-header {
    border: none;
    padding: 30px 30px 0;
}

.modal-cyber .modal-body {
    padding: 30px;
    text-align: center;
    color: var(--text-light);
}

.success-icon-cyber {
    font-size: 5rem;
    color: var(--primary-neon);
    margin-bottom: 30px;
    animation: successAnimation 1.5s ease-out;
    filter: drop-shadow(var(--glow-primary));
}

@keyframes successAnimation {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 0;
    }

    50% {
        transform: scale(1.2) rotate(180deg);
        opacity: 1;
    }

    100% {
        transform: scale(1) rotate(360deg);
        opacity: 1;
    }
}

.modal-title-cyber {
    background: var(--cyber-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    font-size: 2rem;
    margin-bottom: 20px;
}

.modal-text {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.close-btn-cyber {
    background: var(--cyber-gradient);
    border: none;
    border-radius: 25px;
    padding: 12px 30px;
    color: var(--dark-bg);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.close-btn-cyber:hover {
    transform: scale(1.05);
    box-shadow: var(--glow-primary);
}

/* Animations responsives */
@media (max-width: 768px) {
    .contact-title h1 {
        font-size: 2.5rem;
    }

    .cyber-form {
        padding: 30px 20px;
    }

    .form-control-cyber {
        padding: 15px 20px;
    }
}

/* Particules flottantes */
.floating-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-neon);
    border-radius: 50%;
    animation: floatParticle 10s infinite linear;
    box-shadow: 0 0 10px var(--primary-neon);
}

.particle:nth-child(even) {
    background: var(--secondary-neon);
    box-shadow: 0 0 10px var(--secondary-neon);
    animation-duration: 8s;
}

.particle:nth-child(3n) {
    background: var(--accent-blue);
    box-shadow: 0 0 10px var(--accent-blue);
    animation-duration: 12s;
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}