.shop-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);
}

.shop-section h2 {
    color: var(--accent-color);
    margin-bottom: 2rem;
    text-align: center;
}

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

.shop-item {
    background: var(--background);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.shop-item:hover {
    transform: translateY(-5px);
}

.shop-item img {
    width: 85px;
    height: 85px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.shop-item h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
}

.shop-item .price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.shop-item .price img {
    width: 24px;
    height: 24px;
    margin: 0;
}

.buy-button {
    background: var(--primary-color);
    color: var(--text-color);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Cinzel', serif;
    transition: filter 0.3s ease;
}

.buy-button:hover {
    filter: brightness(1.2);
}

.buy-button:disabled {
    background: #666;
    cursor: not-allowed;
    filter: none;
}

.card-preview {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
}

.card-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.buy-button.owned {
    background: var(--secondary-color);
    border: 1px solid var(--primary-color);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.refresh-button {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--primary-color);
    color: var(--text-color);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Cinzel', serif;
    transition: filter 0.3s ease;
}

.refresh-button:hover {
    filter: brightness(1.2);
}

.refresh-button:disabled {
    background: #666;
    cursor: not-allowed;
    filter: none;
}

.refresh-button .price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.refresh-button .price img {
    width: 24px;
    height: 24px;
}

/* Ajouter avant les media queries */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Supprimer tous les styles de navbar et garder uniquement les styles spécifiques au shop */
@media screen and (min-width: 577px) and (max-width: 992px) {
    .shop-section {
        margin-top: 140px;
    }

    .shop-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }

    .shop-item {
        padding: 1.2rem;
    }

    .shop-item img {
        width: 75px;
        height: 75px;
    }
}

@media screen and (max-width: 576px) {
    .shop-section {
        margin-top: 120px;
        padding: 1.5rem;
    }

    .shop-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 1rem;
        padding: 0.5rem;
    }

    .shop-item {
        padding: 1rem;
    }

    .shop-item img {
        width: 65px;
        height: 65px;
    }

    .buy-button, .refresh-button {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

@media screen and (min-width: 577px) and (max-width: 620px) {
    .shop-section {
        margin-top: 140px;
    }
}

/* Styles des onglets */
.shop-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem auto;
    max-width: 1200px;
    padding: 0 1rem;
}

.tab-button {
    background: var(--secondary-color);
    color: var(--text-color);
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    font-family: 'Cinzel', serif;
    transition: all 0.3s ease;
}

.tab-button:hover {
    filter: brightness(1.2);
}

.tab-button.active {
    background: var(--primary-color);
}

.shop-section {
    display: block;
}

.shop-section.hidden {
    display: none;
}

/* Media queries pour les onglets */
@media screen and (max-width: 768px) {
    .shop-tabs {
        flex-direction: column;
        gap: 0.5rem;
    }

    .tab-button {
        width: 100%;
        border-radius: 8px;
    }
}

/* 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;
}

/* Styles pour l'onglet Secrets */
.secret-code-form {
    max-width: 500px;
    margin: 2rem auto;
    padding: 1.5rem;
    background: var(--background);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.input-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

#secretCodeInput {
    flex-grow: 1;
    padding: 0.8rem;
    border: 1px solid var(--secondary-color);
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.2);
    color: var(--text-color);
    font-family: inherit;
}

.secret-code-button {
    background: var(--primary-color);
    color: var(--text-color);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Cinzel', serif;
    transition: filter 0.3s ease;
}

.secret-code-button:hover {
    filter: brightness(1.2);
}

.secret-code-result {
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 4px;
    text-align: center;
    display: none;
}

.secret-code-result.success {
    background-color: rgba(0, 128, 0, 0.2);
    border: 1px solid green;
    display: block;
}

.secret-code-result.error {
    background-color: rgba(128, 0, 0, 0.2);
    border: 1px solid darkred;
    display: block;
}

.secret-code-result.warning {
    background-color: rgba(255, 165, 0, 0.2);
    border: 1px solid orange;
    display: block;
}

.secrets-intro {
    text-align: center;
    margin: 1rem 0 2rem;
    color: var(--text-color);
    opacity: 0.9;
}

@media screen and (max-width: 576px) {
    .input-group {
        flex-direction: column;
    }
    
    .secret-code-button {
        width: 100%;
    }
}