@import url('https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --dark-bg: #1b1a1f;
    --accent: #ffb641;
    --accent-light: #FFF480;
    --text-light: #ffffff;
    --text-secondary: #b1b1b1;
    --border-radius: 10px;
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 3rem;
    --space-xl: 5rem;
    --transition: all 0.3s ease;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    --hover-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    --container-width: 1200px;
    
    /* Compatibilité anciennes variables */
    --bg-color: #1b1a1f;
    --card-bg: rgba(255, 255, 255, 0.03);
    --text-color: #ffffff;
    --border-color: rgba(255, 255, 255, 0.05);
    --success-color: #48bb78;
    --warning-color: #ed8936;
    --danger-color: #f56565;
    --shadow-lg: 0 15px 35px rgba(0, 0, 0, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Figtree', sans-serif;
    background: var(--dark-bg);
    color: var(--text-light);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Quadrillage de pointillés oranges */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--accent) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.1;
    z-index: -1;
    pointer-events: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-sm);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: var(--space-md);
    width: 90%;
}

/* Header */
.header {
    text-align: center;
    padding: var(--space-xl) var(--space-md);
    color: var(--text-light);
    margin-bottom: var(--space-lg);
}

.header h1 {
    font-size: 3.5rem;
    margin-bottom: var(--space-sm);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    color: var(--text-light);
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    color: var(--text-secondary);
}

/* Main content */
.main-content {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius);
    padding: var(--space-lg);
    box-shadow: var(--shadow);
    min-height: 400px;
    border: 1px solid var(--border-color);
}

/* Games list */
.games-list h2 {
    text-align: center;
    margin-bottom: var(--space-lg);
    color: var(--text-light);
    font-size: 2.5rem;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.game-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
    border-color: rgba(255, 182, 65, 0.3);
    background-color: rgba(255, 255, 255, 0.05);
}

.game-card-header {
    background: linear-gradient(135deg, rgba(255, 182, 65, 0.2) 0%, rgba(255, 182, 65, 0.1) 100%);
    color: var(--text-light);
    padding: var(--space-md);
    border-bottom: 2px solid var(--accent);
}

.game-card-header h3 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--text-light);
}

.game-card-body {
    padding: var(--space-md);
    min-height: 100px;
}

.game-card-body p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.game-card-footer {
    padding: var(--space-md);
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.btn-play {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--dark-bg);
    color: var(--accent);
    border: 2px solid var(--accent);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-play::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: var(--accent);
    transition: all 0.4s cubic-bezier(0.42, 0, 0.58, 1);
    z-index: -1;
    border-radius: 50px;
}

.btn-play:hover::before {
    width: 100%;
}

.btn-play:hover {
    color: var(--dark-bg);
    transform: scale(1.05);
}

.no-games {
    text-align: center;
    padding: var(--space-xl);
    color: var(--text-secondary);
    font-size: 1.2rem;
}

/* Footer */
.footer {
    text-align: center;
    padding: var(--space-lg) var(--space-md);
    color: var(--text-secondary);
    margin-top: var(--space-xl);
    border-top: 1px solid var(--border-color);
}

.footer p {
    margin: 0;
}

/* Responsive */
@media (max-width: 1200px) {
    :root {
        --container-width: 90%;
    }
}

@media (max-width: 992px) {
    .header h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 2.2rem;
    }

    .main-content {
        padding: var(--space-md);
    }

    .games-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
}

@media (max-width: 576px) {
    .header h1 {
        font-size: 1.8rem;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
}

/* Badges "Nouveau" */
.badge-new {
    display: inline-block;
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 0.5rem;
    vertical-align: middle;
    box-shadow: 0 2px 8px rgba(72, 187, 120, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

.badge-new-small {
    display: inline-block;
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: #ffffff;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 0.4rem;
    vertical-align: middle;
    box-shadow: 0 2px 6px rgba(72, 187, 120, 0.3);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(72, 187, 120, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 2px 12px rgba(72, 187, 120, 0.5);
        transform: scale(1.05);
    }
}

@media (max-width: 768px) {
    .badge-new {
        font-size: 0.65rem;
        padding: 0.25rem 0.6rem;
    }
    
    .badge-new-small {
        font-size: 0.55rem;
        padding: 0.15rem 0.4rem;
    }
}
