:root {
    --primary-color: #ffffff;
    --secondary-color: #0a0a0a;
    --accent-color: #ff6b6b;
    --text-color: #ffffff;
    --background-color: #0a0a0a;
    --card-background: rgba(255, 255, 255, 0.05);
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Space Grotesk', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    color: var(--text-color);
    background-color: var(--background-color);
    overflow-x: hidden;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    scroll-behavior: smooth;
}

html {
    height: 100%;
    scroll-behavior: smooth;
}

/* Curseur personnalisé */
.cursor {
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid var(--accent-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Header - Styles harmonisés dans navigation.css */

/* Styles de navigation déplacés dans navigation.css */

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 2rem;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.9) 0%, rgba(26, 26, 26, 0.9) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 107, 107, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-family: var(--font-serif);
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(20px);
}

.hero .subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 107, 107, 0.2);
}

/* Intro Section */
.intro {
    padding: 8rem 2rem;
    background: var(--primary-color);
    color: var(--secondary-color);
}

.intro-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.intro h2 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.intro p {
    font-size: 1.2rem;
    line-height: 1.6;
}

/* Footer */
footer {
    padding: 2rem;
    text-align: center;
    background: var(--primary-color);
    color: var(--secondary-color);
    position: relative;
    z-index: 10;
}

/* Animations */
.reveal-text {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-text.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Collection Page Styles */
.collection-header {
    padding: 6rem 2rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.9) 0%, rgba(26, 26, 26, 0.9) 100%);
    position: relative;
    z-index: 2;
}

.collection-header h1 {
    font-family: var(--font-serif);
    font-size: 3rem;
    margin-bottom: 2rem;
}

.filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    padding: 1rem;
    position: sticky;
    top: 80px;
    z-index: 90;
    background: transparent;
    backdrop-filter: none;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    border: 1px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    font-size: 0.9rem;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--accent-color);
    color: var(--secondary-color);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.oeuvres-grid {
    padding: 2rem;
    background: var(--background-color);
    position: relative;
    z-index: 1;
    margin-bottom: 16rem;
}

.oeuvres-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    align-items: start;
    justify-items: center;
    width: 100%;
}

/* Alternative flexbox si la grille pose problème */
@supports not (display: grid) {
    .oeuvres-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 2rem;
    }
    
    .oeuvre-card {
        flex: 0 0 280px;
        max-width: 300px;
    }
}

.oeuvre-card {
    background: var(--card-background);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-self: start;
}

.oeuvre-card:hover {
    transform: translateY(-10px);
}

.oeuvre-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.oeuvre-card:hover img {
    transform: scale(1.05);
}

.oeuvre-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.oeuvre-info h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.oeuvre-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* Oeuvre Detail Modal */
.oeuvre-detail {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.oeuvre-detail.active {
    display: flex;
    opacity: 1;
}

.detail-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    margin: auto;
    background: var(--card-background);
    border-radius: 10px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--primary-color);
    cursor: pointer;
    z-index: 1;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.close-btn:hover {
    transform: rotate(90deg);
}

.detail-image img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.detail-image:hover img {
    transform: scale(1.02);
}

.detail-info {
    overflow-y: auto;
    max-height: 80vh;
    padding-right: 1rem;
}

.detail-info h2 {
    font-family: var(--font-serif);
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.metadata {
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.description,
.analyse,
.fun-fact {
    margin-bottom: 2rem;
}

.description h3,
.analyse h3,
.fun-fact h3 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.audio-guide {
    width: 100%;
    margin-top: 2rem;
    background: var(--card-background);
    border-radius: 5px;
    padding: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero .subtitle {
        font-size: 1.2rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .detail-content {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    
    .collection-header {
        padding: 5rem 1rem 1.5rem;
    }
    
    .collection-header h1 {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }
    
    .filters {
        gap: 0.5rem;
        top: 70px;
        margin-bottom: 1.5rem;
    }
    
    .filter-btn {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }
    
    .oeuvres-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
        padding: 1rem;
        align-items: start;
        justify-items: center;
    }
}

/* Message d'erreur et de chargement */
.error-message, .loading-message {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 10px;
    margin: 2rem auto;
    max-width: 600px;
}

.loading-message {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
}

.error-message p {
    margin: 0.5rem 0;
    color: var(--accent-color);
}

.error-message p:first-child {
    font-size: 1.2rem;
    font-weight: 500;
}

[data-scroll-container] {
    min-height: 100vh;
    overflow: visible;
}

[data-scroll-section] {
    position: relative;
    overflow: visible;
}

[data-scroll] {
    will-change: transform;
}

.collection-separator {
    display: none;
}

/* ===== PODCAST PAGE ===== */

.podcast-page {
    background: #000;
}

/* Hero Episode Section */
.podcast-hero-episode {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12rem 2rem 8rem;
    background: #000;
}

.hero-episode-content {
    max-width: 700px;
    width: 100%;
}

.episode-label {
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 2rem;
    font-weight: 500;
}

.episode-title {
    font-family: var(--font-serif);
    font-size: 4rem;
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    letter-spacing: -0.03em;
}

.episode-meta {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 4rem;
    font-weight: 300;
}

/* Hero Player */
.hero-player {
    margin: 4rem 0 3rem;
}

.hero-cover {
    max-width: 420px;
    margin: 0 auto 3rem;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5), 0 20px 60px rgba(255, 107, 107, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-cover:hover {
    transform: translateY(-8px);
    box-shadow: 0 50px 120px rgba(0, 0, 0, 0.6), 0 30px 80px rgba(255, 107, 107, 0.2);
}

.hero-cover img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

/* Player Controls Hero */
.player-controls-hero {
    max-width: 500px;
    margin: 0 auto;
    padding: 0 1rem;
}

.progress-bar {
    width: 100%;
    height: 5px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.12);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    margin-bottom: 0.875rem;
    transition: height 0.2s ease;
}

.progress-bar:hover {
    height: 7px;
}

.progress-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
}

.progress-bar::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
}

.progress-bar:hover::-webkit-slider-thumb,
.progress-bar:hover::-moz-range-thumb {
    transform: scale(1.2);
    box-shadow: 0 0 0 6px rgba(255, 107, 107, 0.15), 0 2px 12px rgba(255, 107, 107, 0.5);
}

.time-display {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.time {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.45);
    font-variant-numeric: tabular-nums;
    font-weight: 300;
}

.play-button-hero {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--accent-color);
    border: none;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 0 auto;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.4);
}

.play-button-hero:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(255, 107, 107, 0.5);
}

.play-button-hero:active {
    transform: scale(1.05);
}

.episode-description {
    margin-top: 3rem;
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.65);
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
}

/* Previous Episodes Section */
.previous-episodes {
    max-width: 1000px;
    margin: 0 auto;
    padding: 6rem 2rem 10rem;
    background: #000;
}

.previous-episodes h2 {
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 3rem;
    font-weight: 500;
}

.episodes-list-simple {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.episode-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 2rem;
    padding: 2rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.episode-item:hover {
    background: rgba(255, 255, 255, 0.03);
    padding-left: 2rem;
}

.episode-item-title {
    font-family: var(--font-sans);
    font-size: 1.2rem;
    color: var(--text-color);
    margin: 0;
    font-weight: 400;
}

.episode-item-duration {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.35);
    font-variant-numeric: tabular-nums;
    font-weight: 300;
    min-width: 60px;
    text-align: right;
}

.episode-item-play {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.episode-item:hover .episode-item-play {
    background: var(--accent-color);
    color: #000;
    border-color: var(--accent-color);
    transform: scale(1.08);
    box-shadow: 0 4px 16px rgba(255, 107, 107, 0.3);
}

.episode-item-play svg {
    width: 22px;
    height: 22px;
}

/* Responsive */
@media (max-width: 768px) {
    .episode-title {
        font-size: 2.5rem;
    }
    
    .hero-cover {
        max-width: 300px;
    }
    
    .play-button-hero {
        width: 70px;
        height: 70px;
    }
    
    .episode-item {
        grid-template-columns: 1fr auto;
        gap: 1rem;
        padding: 1.5rem 1rem;
    }
    
    .episode-item-duration {
        grid-column: 1 / 2;
        grid-row: 2;
        font-size: 0.9rem;
        text-align: left;
        margin-top: 0.25rem;
    }
    
    .episode-item-play {
        grid-column: 2;
        grid-row: 1 / 3;
        width: 48px;
        height: 48px;
    }
    
    .episode-item-title {
        font-size: 1.05rem;
    }
    
    .previous-episodes {
        padding: 4rem 1rem 8rem;
    }
}

/* ===== MINI JEUX PAGE - Design Minimaliste ===== */

.minijeux-main {
    min-height: 100vh;
    background: var(--background-color);
}

.minijeux-hero {
    padding: 12rem 2rem 6rem;
    text-align: center;
    position: relative;
}

.minijeux-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 8rem;
    background: linear-gradient(to bottom, transparent, var(--accent-color), transparent);
}

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

.minijeux-title {
    font-family: var(--font-serif);
    font-size: 4.5rem;
    font-weight: 400;
    color: var(--primary-color);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.minijeux-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 300;
    letter-spacing: 0.05em;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Games Section */
.minijeux-games {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 2rem 8rem;
}

.games-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.game-item {
    position: relative;
    display: block;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: inherit;
}

.game-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 0;
    background: var(--accent-color);
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.game-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateX(8px);
}

.game-item:hover::before {
    height: 100%;
}

.game-item-content {
    padding: 3rem;
}

.game-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.game-number {
    font-family: var(--font-serif);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.1em;
}

.game-status {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-color);
    padding: 0.4rem 1rem;
    border: 1px solid var(--accent-color);
    border-radius: 2px;
    font-weight: 500;
}

.game-status-soon {
    color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.15);
}

.game-item-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.game-item-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
    font-weight: 300;
    margin-bottom: 2rem;
}

.game-item-footer {
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.game-item:hover .game-item-footer {
    opacity: 1;
    transform: translateX(0);
}

.game-play-text {
    font-size: 0.9rem;
    color: var(--accent-color);
    letter-spacing: 0.05em;
    font-weight: 500;
}

/* Game item disabled */
.game-item-disabled {
    cursor: default;
    opacity: 0.4;
}

.game-item-disabled:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.08);
}

.game-item-disabled::before {
    display: none;
}

.game-item-disabled .game-item-footer {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .minijeux-hero {
        padding: 10rem 2rem 4rem;
    }
    
    .minijeux-title {
        font-size: 3rem;
    }
    
    .minijeux-subtitle {
        font-size: 1rem;
    }
    
    .minijeux-games {
        padding: 3rem 1.5rem 6rem;
    }
    
    .game-item-content {
        padding: 2rem 1.5rem;
    }
    
    .game-item-title {
        font-size: 2rem;
    }
    
    .game-item:hover {
        transform: translateX(4px);
    }
    
    .game-item-footer {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== SUIKA BOOBS GAME - Design Minimaliste ===== */

.game-body {
    margin: 0;
    padding: 0;
    background: var(--background-color);
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Header du jeu */
.game-header {
    padding: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.game-header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.game-back {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.game-back:hover {
    color: var(--accent-color);
    transform: translateX(-4px);
}

.game-back-arrow {
    font-size: 1.2rem;
}

.game-page-title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--primary-color);
    margin: 0;
    letter-spacing: -0.02em;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.game-info-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-info-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: rgba(255, 107, 107, 0.05);
}

/* Layout principal du jeu */
.game-layout {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 1rem;
    overflow: hidden;
}

/* Sidebars */
.game-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.game-stat-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    padding: 1rem;
    text-align: center;
    min-width: 120px;
}

.game-stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.game-stat-value {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 400;
    color: var(--accent-color);
    line-height: 1;
}

.game-stat-value-small {
    font-size: 1.5rem;
}

/* Zone principale du jeu */
.game-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.game-next-preview {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.game-next-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
}

.game-next-ball {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.game-canvas-container {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    background: #0a0a0a;
}

#gameCanvas {
    display: block;
    cursor: crosshair;
}

/* Évolution */
.game-evolution-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    padding: 1rem;
    max-width: 200px;
}

.game-evolution-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 1rem;
    font-weight: 500;
    text-align: center;
}

.game-evolution-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.evolution-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.evolution-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.evolution-emoji {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.evolution-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.evolution-level {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.evolution-points {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
}

/* Game Over Overlay */
.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.game-overlay.active {
    display: flex;
}

.game-overlay-content {
    text-align: center;
    padding: 3rem;
    animation: fadeInUp 0.5s ease;
}

.game-overlay-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--primary-color);
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.game-overlay-score {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 3rem;
}

.game-overlay-score-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
}

.game-overlay-score-value {
    font-family: var(--font-serif);
    font-size: 4rem;
    font-weight: 400;
    color: var(--accent-color);
    line-height: 1;
}

.game-overlay-btn {
    padding: 1rem 3rem;
    background: transparent;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    border-radius: 4px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.game-overlay-btn:hover {
    background: var(--accent-color);
    color: var(--background-color);
}

/* Modal d'instructions */
.game-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.game-modal.active {
    display: flex;
}

.game-modal-content {
    background: var(--background-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: fadeInUp 0.5s ease;
    padding: 3rem;
}

.game-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-modal-close:hover {
    color: var(--accent-color);
}

.game-modal-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 400;
    color: var(--primary-color);
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.game-modal-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.game-modal-rule {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.game-modal-rule-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.game-modal-rule-text {
    flex: 1;
}

.game-modal-rule-text strong {
    display: block;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.game-modal-rule-text p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.game-modal-btn {
    width: 100%;
    padding: 1rem;
    background: transparent;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    border-radius: 4px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.game-modal-btn:hover {
    background: var(--accent-color);
    color: var(--background-color);
}

/* Merge Effect */
.merge-effect {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    pointer-events: none;
    animation: mergeExplosion 0.5s ease-out;
    z-index: 1000;
}

@keyframes mergeExplosion {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(3);
        opacity: 0;
    }
}

/* Responsive pour le jeu */
@media (max-width: 1200px) {
    .game-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .game-sidebar {
        flex-direction: row;
        justify-content: center;
    }
    
    .game-stat-card {
        flex: 1;
        max-width: 200px;
    }
    
    .game-evolution-card {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .game-evolution-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 768px) {
    .game-header {
        padding: 1.5rem;
    }
    
    .game-page-title {
        font-size: 1.5rem;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .game-back-text {
        display: none;
    }
    
    .game-layout {
        padding: 2rem 1rem;
        gap: 1.5rem;
    }
    
    .game-stat-card {
        padding: 1rem;
    }
    
    .game-stat-value {
        font-size: 2.5rem;
    }
    
    .game-canvas-container {
        width: 100%;
        max-width: 350px;
    }
    
    #gameCanvas {
        width: 100%;
        height: auto;
    }
    
    .game-evolution-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .game-overlay-title {
        font-size: 2rem;
    }
    
    .game-overlay-score-value {
        font-size: 3rem;
    }
    
    .game-modal-content {
        padding: 2rem 1.5rem;
    }
    
    .game-modal-title {
        font-size: 1.5rem;
    }
}
