.booster-opening-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
}

/* Modifier aussi le conteneur d'animation pour un meilleur centrage */
.booster-animation {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.booster-pack {
    position: relative;
    width: 200px;  /* Taille originale du booster */
    height: 375px;  /* Taille originale du booster */
    perspective: 1000px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.booster-top, .booster-bottom {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.booster-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 25%;
    background-size: 100% 400%;  /* 400% car c'est 100/25 pour que l'image complète tienne dans les 25% */
    background-position: top;
    transform-origin: bottom;
    transition: transform 1s ease-in;
    z-index: 1;
}

.booster-bottom {
    position: absolute;
    top: 25%;  /* Commence là où finit le top */
    left: 0;
    width: 100%;
    height: 75%;  /* Prend le reste de la hauteur */
    background-size: 100% 133.33%;  /* 100/75 pour que l'image s'adapte à la zone */
    background-position: bottom;  /* Aligne le bas de l'image */
    z-index: 2;
}

.booster-top.torn {
    transform: rotateX(120deg);
    opacity: 0;
}

.torn-shadow {
    position: absolute;
    top: 25%;
    left: 0;
    width: 100%;
    height: 20px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent);
    opacity: 0;
    transition: opacity 0.5s;
}

.torn-shadow.visible {
    opacity: 1;
}

/* Modification du conteneur de cartes */
.cards-container {
    position: absolute;
    display: grid;
    gap: 20px;
    padding: 20px;
    width: calc(100% - 40px);
    height: calc(100% - 100px); /* Espace pour le bouton en bas */
    perspective: 1000px; /* Ajout de la perspective au container */
    left: 50%;
    transform: translateX(-50%);
    justify-content: center; /* Centre la grille elle-même */
    align-items: center;
}

/* Mise à jour des styles de carte pour inclure l'espace pour le label */
.card {
    position: relative;
    width: 100%;
    height: 100%;
    perspective: 1000px;
    cursor: pointer;
    padding-top: 30px; /* Espace pour le label "Nouveau!" */
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

.card.flipped .card-inner {
    transform: rotateY(180deg);
}

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.card-front {
    transform: rotateY(180deg);
}

/* Style du label "Nouveau!" */
.new-card-label {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    color: gold;
    font-weight: bold;
    font-size: 1.2em;
    text-shadow: 0 0 10px gold;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 10;
    animation: glowAnimation 2s infinite;
}

.card.flipped .new-card-label {
    opacity: 1;
}

@keyframes glowAnimation {
    0% {
        text-shadow: 0 0 5px gold,
                     0 0 10px gold,
                     0 0 15px #FFD700,
                     0 0 20px #FFD700;
    }
    50% {
        text-shadow: 0 0 10px gold,
                     0 0 20px gold,
                     0 0 25px #FFD700,
                     0 0 30px #FFD700;
    }
    100% {
        text-shadow: 0 0 5px gold,
                     0 0 10px gold,
                     0 0 15px #FFD700,
                     0 0 20px #FFD700;
    }
}

/* Mise à jour du style du bouton "Tout révéler" */
.reveal-all-button {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.8rem 1.5rem;
    background: var(--primary-color);
    color: var(--text-color);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Cinzel', serif;
    min-width: 150px;
    transition: filter 0.3s ease;
    z-index: 2001;
}

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

/* Style des sections de boosters par set */
.boosters-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);
}

.boosters-section h2 {
    color: var(--accent-color);
    margin-bottom: 2rem;
    text-align: center;
    font-family: 'Cinzel', serif;
}

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

.booster-item {
    background: var(--background);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.booster-image {
    width: 200px;
    height: 375px;
    margin-bottom: 1.5rem;
}

.booster-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

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

.booster-info h3 {
    color: var(--text-color);
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
}

.booster-description {
    color: var(--text-color);
    opacity: 0.9;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.buy-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: filter 0.3s ease;
    min-width: 150px;
}

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

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

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

    .booster-image {
        width: 160px;
        height: 300px;
    }
}

@media screen and (max-width: 576px) {
    .boosters-section {
        padding: 1rem;
    }

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

    .booster-image {
        width: 140px;
        height: 262px;
    }

    .booster-info h3 {
        font-size: 1.1rem;
    }

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

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