/* Style des sections de jeux */
.games-section {
    margin: 2rem auto;
    max-width: 1200px;
    padding: 2rem;
    background: var(--secondary-color);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.game-item {
    background: var(--background);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.game-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.game-image {
    width: 220px;
    height: 220px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    border-radius: 5px;
    position: relative;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.game-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    flex-grow: 1;
}

.game-info h3 {
    color: var(--accent-color);
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
}

.game-description {
    color: var(--text-color);
    opacity: 0.9;
    font-size: 1rem;
    margin-bottom: 1rem;
    line-height: 1.5;
    flex-grow: 1;
}

.game-button {
    padding: 0.8rem 1.5rem;
    background: var(--primary-color);
    color: var(--text-color);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Cinzel', serif;
    transition: background-color 0.3s ease, transform 0.2s ease;
    min-width: 150px;
    text-decoration: none;
    display: inline-block;
    font-weight: bold;
}

.game-button:hover {
    background-color: var(--accent-color);
    color: var(--background);
    transform: scale(1.05);
}

/* CSS pour l'overlay de compte requis */
.account-required-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.account-required-content {
    background-color: var(--secondary-color, #1a1a1a);
    padding: 2rem;
    border-radius: 5px;
    text-align: center;
    max-width: 90%;
    width: 400px;
    border: 1px solid var(--accent-color, #d4af37);
}

.account-required-content h2 {
    color: var(--accent-color, #d4af37);
    margin-bottom: 1rem;
}

.account-required-content p {
    margin-bottom: 1.5rem;
    color: var(--text-color, #fff);
}

.account-required-content .btn {
    display: inline-block;
    background-color: var(--primary-color, #2b2b2b);
    color: var(--text-color, #fff);
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 3px;
    transition: background-color 0.3s;
}

.account-required-content .btn:hover {
    background-color: var(--accent-color, #d4af37);
    color: #000;
}

/* Responsive design */
@media screen and (max-width: 992px) {
    .games-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media screen and (max-width: 576px) {
    .games-section {
        padding: 1rem;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .game-item {
        padding: 1rem;
    }
    
    .game-image {
        height: 180px;
    }
    
    .game-info h3 {
        font-size: 1.2rem;
    }
    
    .game-button {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}