:root {
    --bg-color: #030305;
    --text-main: #ffffff;
    --text-muted: #888890;
    --primary: #00ff88;
    --primary-glow: rgba(0, 255, 136, 0.2);
    --card-bg: rgba(255, 255, 255, 0.02);
    --card-border: rgba(255, 255, 255, 0.05);
}

body,
html {
    margin: 0;
    padding: 0;
    background: var(--bg-color);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* --- ARRIÈRE-PLAN 3D --- */
#webgl-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
}

.vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center, transparent 20%, rgba(3, 3, 5, 0.9) 100%);
    z-index: 2;
    pointer-events: none;
}

/* --- CONTENEUR PRINCIPAL --- */
.main-wrapper {
    position: relative;
    z-index: 10;
}

/* --- NAVIGATION --- */
nav {
    padding: 2.5rem 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    width: 100%;
    box-sizing: border-box;
    z-index: 20;
}

.logo {
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo img {
    height: 35px;
    width: auto;
    max-width: 180px;
    display: block;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #fff;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.3s, text-shadow 0.3s;
}

.back-button:hover {
    transform: translateX(-5px);
    text-shadow: 0 0 15px var(--primary-glow);
}

/* --- HERO SECTION (Accueil) --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 8%;
}

.hero-section h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
    background: linear-gradient(180deg, #ffffff 0%, #888888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-section p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 3rem auto;
    line-height: 1.6;
}

/* --- BOUTON PRINCIPAL --- */
.cta-button {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    padding: 1rem 3rem;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    transform: translateY(-3px);
    background: rgba(0, 255, 136, 0.05);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.2);
    color: var(--primary);
}

/* --- SECTION JEUX (Portfolio) --- */
.games-section {
    background: linear-gradient(to bottom, transparent, var(--bg-color) 10%);
    padding: 8rem 8% 10rem 8%;
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    margin-bottom: 5rem;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Cartes de jeux (Glassmorphism) */
.game-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 1.5rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.game-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 255, 136, 0.3);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 40px var(--primary-glow);
}

.card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    background: #111;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.game-card:hover .card-image img {
    transform: scale(1.08);
}

.card-content h3 {
    font-size: 1.5rem;
    font-weight: 900;
    margin: 0 0 0.5rem 0;
    color: #fff;
}

.card-content p {
    font-size: 1rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* --- PAGES LÉGALES & SUCCESS --- */
.legal-wrapper,
.success-container {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 8rem auto 5rem auto;
    padding: 4rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.success-container {
    text-align: center;
    max-width: 600px;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem auto;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-icon svg {
    width: 40px;
    height: 40px;
    stroke: var(--primary);
}

.success-container h1 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 1rem;
    color: #fff;
}

.success-container p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.home-btn {
    display: inline-block;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 1rem 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.home-btn:hover {
    background: var(--primary);
    color: var(--bg-color);
    box-shadow: 0 0 20px var(--primary-glow);
}

/* --- PAGE CONTACT --- */
.contact-container {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 8rem auto 5rem auto;
    padding: 0 5%;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h1 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.contact-info p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.info-block h3 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.info-block a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.info-block a:hover {
    color: var(--primary);
}

.contact-form {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 3rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.submit-btn {
    width: 100%;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: var(--primary);
    color: var(--bg-color);
    box-shadow: 0 0 20px var(--primary-glow);
}

/* --- TYPO CONTENU LÉGAL --- */
.gsap-anim {
    opacity: 1;
}

.legal-header {
    text-align: center;
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--card-border);
}

.legal-header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -1px;
    margin-bottom: 1rem;
    color: #fff;
}

.legal-header p {
    color: var(--text-muted);
    font-size: 1rem;
}

.legal-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 2.5rem 0 1rem 0;
}

.legal-content p,
.legal-content li {
    font-size: 1.1rem;
    color: #b0b0b5;
    line-height: 1.7;
    margin-bottom: 1rem;
    font-weight: 300;
}

.legal-content ul {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.legal-content a {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

.legal-content a:hover {
    border-color: var(--primary);
}

/* --- FOOTER --- */
footer {
    background: var(--bg-color);
    padding: 3rem 8%;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-info {
    color: #666;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #fff;
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 968px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        margin-top: 6rem;
    }
}

@media (max-width: 768px) {
    nav {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 1.5rem 5%;
    }

    .nav-links {
        gap: 1rem;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }

    .legal-wrapper,
    .success-container {
        margin: 6rem 1.5rem 3rem 1.5rem;
        padding: 2rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    footer {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        padding: 2.5rem 5%;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.8rem;
    }
}