/* Base styles */
:root {
    --primary: #FF6B6B;
    --primary-dark: #FF5252;
    --secondary: #4ECDC4;
    --bg-dark: #1A1A1A;
    --bg-darker: #232323;
    --text: #FFFFFF;
    --text-muted: #9CA3AF;
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Navigation */
nav {
    position: absolute;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 1.5rem 0;
    background-color: transparent;
}

nav.scrolled {
    background-color: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo img {
    width: 60px;
    height: 60px;
}

.gamepad-icon {
    color: var(--primary);
}

.nav-links {
    display: none;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-size: 1.125rem;
    transition: color 0.3s ease;
    margin-left: 2rem;
}

.nav-links a:hover {
    color: var(--primary);
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text);
    transition: 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu */
.mobile-menu {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--bg-dark);
    padding: 1rem 1.5rem;
    display: none;
    flex-direction: column;
    gap: 1rem;
    z-index: 999;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    color: var(--text);
    text-decoration: none;
    font-size: 1.125rem;
    transition: color 0.3s ease;
}

.mobile-menu a:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('photo_profil_2.png');
    background-size: cover;
    background-position: center;
    will-change: transform;
    animation: zoom 20s infinite alternate;
}

@keyframes zoom {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.1);
    }
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg-dark), transparent);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 1.5rem;
}

.hero h1 {
    font-size: clamp(4rem, 15vw, 9rem);
    font-weight: bold;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(1.5rem, 5vw, 2rem);
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text);
}

.hero-description {
    font-size: clamp(1rem, 3vw, 1.25rem);
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--gradient);
    color: var(--text);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
}

/* Histoire Section */
.histoire {
    padding: 8rem 0;
    background-color: var(--bg-darker);
}

.histoire h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 4rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.histoire-content {
    display: grid;
    gap: 4rem;
    align-items: center;
}

.histoire-text {
    font-size: 1.125rem;
    line-height: 1.8;
}

.histoire-text p {
    margin-bottom: 1.5rem;
}

.histoire-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Projet Section */
.projet {
    padding: 8rem 0;
    background-color: var(--bg-dark);
}

.projet h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 4rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.projet-grid {
    display: grid;
    gap: 3rem;
}

.projet-card {
    background: var(--bg-darker);
    padding: 2rem;
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.projet-card:hover {
    transform: translateY(-10px);
}

.projet-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.projet-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.projet-card p {
    color: var(--text-muted);
}

/* Galerie Section */
.galerie {
    padding: 8rem 0;
    background-color: var(--bg-darker);
}

.galerie h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 4rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.galerie-grid {
    display: grid;
    gap: 2rem;
}

.galerie-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.galerie-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.galerie-item:hover img {
    transform: scale(1.05);
}

.galerie-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.galerie-item:hover .galerie-overlay {
    opacity: 1;
}

.galerie-overlay p {
    color: var(--text);
    font-size: 1.25rem;
    font-weight: 600;
}

/* Équipe Section */
.equipe {
    padding: 8rem 0;
    background-color: var(--bg-dark);
}

.equipe h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 4rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.equipe-grid {
    display: grid;
    gap: 2rem;
}

.equipe-card {
    background: var(--bg-darker);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.equipe-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.equipe-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.equipe-card:hover::before {
    opacity: 0.1;
}

.equipe-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    color: var(--primary);
    position: relative;
    z-index: 2;
}

.equipe-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.equipe-role {
    color: var(--text-muted);
    font-size: 1rem;
    position: relative;
    z-index: 2;
}

/* Footer */
footer {
    background-color: var(--bg-darker);
    padding: 3rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-logo img {
    width: 60px;
}

/* Responsive Design */
@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }

    .menu-toggle {
        display: none;
    }

    .histoire-content {
        grid-template-columns: 1fr 1fr;
    }

    .projet-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .galerie-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .equipe-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .equipe-grid {
        grid-template-columns: 1fr;
    }
}

/* Jouer Section */
.jouer {
    padding: 8rem 0;
    background-color: var(--bg-darker);
}

.jouer h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 4rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.jouer-content {
    display: grid;
    gap: 3rem;
}

.jouer-description {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.jouer-description p {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.jouer-controls {
    background: var(--bg-dark);
    padding: 2rem;
    border-radius: 20px;
    text-align: left;
}

.jouer-controls p {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary);
}

.jouer-controls ul {
    list-style: none;
    padding: 0;
}

.jouer-controls li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.jouer-controls li::before {
    content: '•';
    color: var(--primary);
    position: absolute;
    left: 0;
}

.jouer-frame {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    aspect-ratio: 16/9;
    background: var(--bg-dark);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.jouer-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.jouer-download {
    margin-top: 2rem;
    text-align: center;
}

.download-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--gradient);
    color: var(--text);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.download-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.download-button svg {
    width: 24px;
    height: 24px;
}

.jouer-preview {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    aspect-ratio: 16/9;
    background: var(--bg-dark);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.jouer-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (min-width: 768px) {
    .jouer-content {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
    
    .jouer-description {
        text-align: left;
        margin: 0;
    }
}