/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-green: #00ff41;
    --primary-blue: #00bfff;
    --secondary-green: #00cc33;
    --secondary-blue: #0099cc;
    --dark-bg: #0a0a0a;
    --darker-bg: #050505;
    --grid-color: rgba(0, 255, 65, 0.1);
    --text-light: #ffffff;
    --text-gray: #cccccc;
    --text-dark: #666666;
    --neon-glow: 0 0 10px currentColor, 0 0 20px currentColor, 0 0 40px currentColor;
    --neon-glow-strong: 0 0 20px currentColor, 0 0 40px currentColor, 0 0 80px currentColor;
}

body {
    font-family: 'Share Tech Mono', monospace;
    background: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typographie */
h1, h2, h3 {
    font-family: 'Orbitron', monospace;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-green);
    text-shadow: var(--neon-glow);
    margin-bottom: 2rem;
    text-align: center;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
    overflow: hidden;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 65, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 65, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

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

.hero-content {
    text-align: center;
    z-index: 2;
    position: relative;
}

.logo {
    max-width: 420px;
    height: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 20px var(--primary-green));
    animation: logoGlow 3s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    0% { filter: drop-shadow(0 0 20px var(--primary-green)); }
    100% { filter: drop-shadow(0 0 40px var(--primary-green)) drop-shadow(0 0 60px var(--primary-blue)); }
}

.hero-title {
    font-size: 4rem;
    color: var(--primary-green);
    text-shadow: var(--neon-glow-strong);
    margin-bottom: 1rem;
    animation: titlePulse 2s ease-in-out infinite alternate;
}

@keyframes titlePulse {
    0% { text-shadow: var(--neon-glow); }
    100% { text-shadow: var(--neon-glow-strong); }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: 3rem;
    text-shadow: 0 0 10px var(--primary-blue);
}

.cta-button {
    background: linear-gradient(45deg, var(--primary-green), var(--secondary-green));
    border: 2px solid var(--primary-green);
    color: var(--dark-bg);
    padding: 15px 30px;
    font-size: 1.2rem;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.5);
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    background: linear-gradient(45deg, var(--secondary-green), var(--primary-green));
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.8);
    transform: translateY(-2px);
}

.cta-button:active {
    transform: translateY(0);
}

.cta-button i {
    margin-right: 10px;
}

.scan-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        transparent 50%,
        rgba(0, 255, 65, 0.03) 50%
    );
    background-size: 100% 4px;
    animation: scanMove 0.1s linear infinite;
    pointer-events: none;
}

@keyframes scanMove {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

/* Sections générales */
section {
    padding: 80px 0;
    position: relative;
}

.about {
    background: var(--darker-bg);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.lead {
    font-size: 1.3rem;
    color: var(--primary-blue);
    margin-bottom: 2rem;
    text-shadow: 0 0 10px var(--primary-blue);
}

.features {
    margin-top: 2rem;
}

.feature {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(0, 255, 65, 0.05);
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.feature:hover {
    background: rgba(0, 255, 65, 0.1);
    border-color: var(--primary-green);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.2);
}

.feature-icon {
    font-size: 2rem;
    color: var(--primary-green);
    margin-right: 1rem;
    text-shadow: 0 0 10px var(--primary-green);
}

.feature-content h3 {
    color: var(--primary-green);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.about-visuals {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.game-screenshots {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.screenshot {
    aspect-ratio: 16/9;
    background: linear-gradient(45deg, var(--darker-bg), var(--dark-bg));
    border: 2px solid var(--primary-blue);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    font-weight: bold;
    text-shadow: 0 0 10px var(--primary-blue);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.screenshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: all 0.3s ease;
}

.screenshot:hover {
    border-color: var(--primary-green);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
}

.screenshot:hover img {
    transform: scale(1.05);
}

.lan-setup {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.crt-monitor, .cables {
    padding: 1rem;
    background: linear-gradient(45deg, var(--darker-bg), var(--dark-bg));
    border: 2px solid var(--primary-green);
    border-radius: 8px;
    color: var(--primary-green);
    font-weight: bold;
    text-shadow: 0 0 10px var(--primary-green);
}

/* Shop Section */
.shop {
    background: var(--dark-bg);
}

.shop-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.shop-display {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.game-box {
    aspect-ratio: 3/4;
    background: linear-gradient(45deg, var(--darker-bg), var(--dark-bg));
    border: 2px solid var(--primary-blue);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    font-weight: bold;
    text-shadow: 0 0 10px var(--primary-blue);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.game-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: all 0.3s ease;
}

.game-box:hover {
    border-color: var(--primary-green);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
}

.game-box:hover img {
    transform: scale(1.05);
}

.coming-soon {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-blue);
    font-weight: bold;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 191, 255, 0.1);
    border: 1px solid var(--primary-blue);
    border-radius: 20px;
}

/* OS Section */
.os {
    background: var(--darker-bg);
}

.os-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.mockup-screen {
    background: var(--dark-bg);
    border: 3px solid var(--primary-green);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.3);
}

.mockup-header {
    background: linear-gradient(90deg, var(--primary-green), var(--secondary-green));
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mockup-title {
    color: var(--dark-bg);
    font-weight: bold;
    font-family: 'Orbitron', monospace;
}

.mockup-controls {
    display: flex;
    gap: 0.5rem;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--dark-bg);
}

.mockup-content {
    padding: 2rem;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.game-tile {
    aspect-ratio: 1;
    background: linear-gradient(45deg, var(--darker-bg), var(--dark-bg));
    border: 2px solid var(--primary-blue);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    font-weight: bold;
    text-shadow: 0 0 10px var(--primary-blue);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.game-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: all 0.3s ease;
}

.game-tile:hover {
    border-color: var(--primary-green);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
}

.game-tile:hover img {
    transform: scale(1.05);
}

/* Newsletter Section */
.newsletter {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-blue));
    color: var(--dark-bg);
    text-align: center;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-icon {
    font-size: 4rem;
    margin-bottom: 2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.newsletter-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.newsletter-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.newsletter-form {
    margin-top: 2rem;
}

.form-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-family: 'Share Tech Mono', monospace;
    background: rgba(255, 255, 255, 0.9);
    color: var(--dark-bg);
}

.form-group input:focus {
    outline: none;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.submit-btn {
    background: var(--dark-bg);
    color: var(--primary-green);
    border: 2px solid var(--dark-bg);
    padding: 15px 30px;
    border-radius: 5px;
    font-family: 'Orbitron', monospace;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    background: var(--primary-green);
    color: var(--dark-bg);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.form-message {
    margin-top: 1rem;
    font-weight: bold;
    min-height: 1.5rem;
}

/* Footer */
.footer {
    background: var(--darker-bg);
    padding: 2rem 0;
    border-top: 1px solid rgba(0, 255, 65, 0.2);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo-img {
    width: 40px;
    height: auto;
    filter: drop-shadow(0 0 10px var(--primary-green));
}

.footer-text {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-link {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--primary-green);
    text-shadow: 0 0 10px var(--primary-green);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
    border: 2px solid var(--primary-green);
    border-radius: 15px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    position: relative;
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.3);
    transform: scale(0.8) translateY(50px);
    transition: all 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden;
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 255, 65, 0.3);
}

.modal-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    color: var(--primary-green);
    text-shadow: var(--neon-glow);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: var(--primary-green);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(0, 255, 65, 0.1);
    color: var(--primary-blue);
    text-shadow: 0 0 10px var(--primary-blue);
    transform: rotate(90deg);
}

.modal-body {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 1.1rem;
}

.modal-icon {
    font-size: 3rem;
    color: var(--primary-blue);
    text-align: center;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px var(--primary-blue);
    animation: bounce 2s infinite;
}

.modal-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 255, 65, 0.3);
    text-align: center;
}

.modal-button {
    background: linear-gradient(45deg, var(--primary-green), var(--secondary-green));
    border: 2px solid var(--primary-green);
    color: var(--dark-bg);
    padding: 10px 20px;
    font-family: 'Orbitron', monospace;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.3);
}

.modal-button:hover {
    background: linear-gradient(45deg, var(--secondary-green), var(--primary-green));
    box-shadow: 0 0 25px rgba(0, 255, 65, 0.5);
    transform: translateY(-2px);
}

/* Styles pour le formulaire de contact */
.contact-form {
    max-width: 100%;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-green);
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--primary-blue);
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-light);
    font-family: 'Share Tech Mono', monospace;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.3);
    background: rgba(0, 0, 0, 0.5);
}

.contact-form input.error,
.contact-form select.error,
.contact-form textarea.error {
    border-color: #ff4444;
    box-shadow: 0 0 15px rgba(255, 68, 68, 0.3);
}

.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-form select {
    cursor: pointer;
}

.contact-form select option {
    background: var(--dark-bg);
    color: var(--text-light);
}

.error-message {
    color: #ff4444;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    min-height: 1rem;
    text-shadow: 0 0 5px #ff4444;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 255, 65, 0.3);
}

.modal-button.secondary {
    background: transparent;
    border: 2px solid var(--text-gray);
    color: var(--text-gray);
}

.modal-button.secondary:hover {
    background: var(--text-gray);
    color: var(--dark-bg);
    box-shadow: 0 0 15px rgba(204, 204, 204, 0.3);
}

.modal-button.primary {
    background: linear-gradient(45deg, var(--primary-green), var(--secondary-green));
    border: 2px solid var(--primary-green);
    color: var(--dark-bg);
}

.modal-button.primary:hover {
    background: linear-gradient(45deg, var(--secondary-green), var(--primary-green));
    box-shadow: 0 0 25px rgba(0, 255, 65, 0.5);
}

.modal-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Message de succès */
.success-message {
    text-align: center;
    padding: 2rem 0;
}

.success-icon {
    font-size: 4rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
    text-shadow: 0 0 20px var(--primary-green);
    animation: bounce 2s infinite;
}

.success-message h3 {
    color: var(--primary-green);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.success-message p {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-content,
    .shop-content,
    .os-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .form-group {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .game-screenshots {
        grid-template-columns: 1fr;
    }
    
    .game-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Modal responsive */
    .modal-content {
        width: 95%;
        max-height: 95vh;
        padding: 1.5rem;
        margin: 10px;
    }
    
    .modal-header {
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
    }
    
    .modal-title {
        font-size: 1.2rem;
    }
    
    .contact-form .form-group {
        margin-bottom: 1rem;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .modal-button {
        width: 100%;
        padding: 12px 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .cta-button {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    .game-grid {
        grid-template-columns: 1fr;
    }
    
    /* Modal très petit écran */
    .modal-content {
        width: 98%;
        max-height: 98vh;
        padding: 1rem;
        margin: 5px;
    }
    
    .modal-title {
        font-size: 1rem;
    }
    
    .contact-form input,
    .contact-form select,
    .contact-form textarea {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .contact-form textarea {
        min-height: 80px;
    }
}

/* Animations d'entrée */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

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

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--primary-green);
    border-radius: 50%;
    animation: float 6s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(100px);
        opacity: 0;
    }
}