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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #0a2e88 0%, #1e3c72 100%);
    color: white;
    min-height: 100vh;
}

.container {
    width: calc(100% - 250px);
    margin: 0 auto;
    max-width: 1200px;
}

.container > * {
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .container {
        margin: 0;
        width: 100%;
        padding-top: 4rem;
    }
}

header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    margin-top: 40px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

header .season-subtitle {
    margin-top: -0.4rem;
    margin-bottom: 1rem;
    opacity: 0.9;
    font-size: 1.05rem;
    font-weight: 600;
}

header p {
    margin-bottom: 20px;
}

.main-layout {
    display: block;
}

.cards-area {
    position: relative;
}

.booster-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.booster {
    width: 300px;
    height: 400px;
    position: relative;
    transform-style: preserve-3d;
    cursor: pointer;
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}

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

.booster-front {
    display: none;
}

.booster-top {
    position: absolute;
    top: 0;
    width: 100%;
    height: 10%;
    background: linear-gradient(
        90deg,
        #002395 0%,
        #002395 33.33%,
        #FFFFFF 33.33%,
        #FFFFFF 66.66%,
        #ED2939 66.66%,
        #ED2939 100%
    );
    border-radius: 15px 15px 0 0;
    border: 4px solid #fff;
    border-bottom: none;
    transition: all 0.5s ease-in-out;
}

.booster-bottom {
    position: absolute;
    top: 10%;
    width: 100%;
    height: 90%;
    background: linear-gradient(
        90deg,
        #002395 0%,
        #002395 33.33%,
        #FFFFFF 33.33%,
        #FFFFFF 66.66%,
        #ED2939 66.66%,
        #ED2939 100%
    );
    border-radius: 0 0 15px 15px;
    border: 4px solid #fff;
    border-top: none;
    transition: all 0.5s ease-in-out;
}

.booster.opening .booster-top {
    background: transparent;
    border-color: transparent;
    transform: perspective(1000px) rotateX(60deg) translateY(-150%);
    opacity: 0;
}

.booster.opening .booster-bottom {
    background: none;
    border: none;
}

.booster.opening .booster-bottom::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 0;
    width: 100%;
    height: calc(100% + 4px);
    background: linear-gradient(
        90deg,
        #002395 0%,
        #002395 33.33%,
        #FFFFFF 33.33%,
        #FFFFFF 66.66%,
        #ED2939 66.66%,
        #ED2939 100%
    );
    clip-path: polygon(
        0% 0%,
        5% 8%,
        10% 0%,
        15% 8%,
        20% 0%,
        25% 8%,
        30% 0%,
        35% 8%,
        40% 0%,
        45% 8%,
        50% 0%,
        55% 8%,
        60% 0%,
        65% 8%,
        70% 0%,
        75% 8%,
        80% 0%,
        85% 8%,
        90% 0%,
        95% 8%,
        100% 0%,
        100% 100%,
        0% 100%
    );
}

.booster.opening .booster-bottom::after {
    content: '';
    position: absolute;
    top: -8px;
    left: -4px;
    width: calc(100% + 12px);
    height: calc(100% + 12px);
    background: #000;
    z-index: -1;
    clip-path: polygon(
        0% 0%,
        5% 8%,
        10% 0%,
        15% 8%,
        20% 0%,
        25% 8%,
        30% 0%,
        35% 8%,
        40% 0%,
        45% 8%,
        50% 0%,
        55% 8%,
        60% 0%,
        65% 8%,
        70% 0%,
        75% 8%,
        80% 0%,
        85% 8%,
        90% 0%,
        95% 8%,
        100% 0%,
        100% 100%,
        0% 100%
    );
    border-radius: 0 0 15px 15px;
}

.booster.opened .booster-top {
    display: none;
}

.booster.opened .booster-bottom {
    clip-path: polygon(
        0% 0%,
        10% 15%,
        20% 0%,
        30% 15%,
        40% 0%,
        50% 15%,
        60% 0%,
        70% 15%,
        80% 0%,
        90% 15%,
        100% 0%,
        100% 100%,
        0% 100%
    );
}

/* Ajout d'ombres pour l'effet de profondeur */
.booster-top::after,
.booster-bottom::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 10px;
    background: rgba(0, 0, 0, 0.2);
    filter: blur(3px);
}

.booster-top::after {
    bottom: -5px;
}

.booster-bottom::after {
    top: -5px;
}

.booster-back {
    display: none;
}

.btn-open {
    padding: 1rem 2rem;
    font-size: 1.2rem;
    background: #f6b73c;
    border: none;
    border-radius: 50px;
    color: white;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-open:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.card-reveal {
    position: absolute;
    top: 200px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    pointer-events: none;
}

/* Mode "saison épuisée" : booster ouvert à gauche, cartes à droite */
body.season-exhausted .container {
    max-width: none;
    /* Garder l'espace du menu (seasons-panel) à gauche */
    width: calc(100% - 250px);
    margin-left: 250px;
}

body.season-exhausted .container > * {
    max-width: none;
}

body.season-exhausted header {
    margin-bottom: 1.5rem;
}

body.season-exhausted .main-layout {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    padding: 0 1rem 2rem;
}

body.season-exhausted .booster-container {
    flex: 0 0 25%;
    max-width: 25%;
    margin: 0;
    position: sticky;
    top: 1rem;
    align-items: flex-start;
}

body.season-exhausted .booster {
    width: 100%;
    max-width: 280px;
    aspect-ratio: 3 / 4;
    height: auto;
    margin-bottom: 0;
}

body.season-exhausted .cards-area {
    flex: 1 1 75%;
    max-width: 75%;
}

body.season-exhausted .card-reveal {
    display: none;
}

body.season-exhausted .collection {
    padding: 0;
}

body.season-exhausted .collection-content {
    display: block;
}

body.season-exhausted .collection-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

@media (max-width: 768px) {
    body.season-exhausted .container {
        width: 100%;
        margin-left: 0;
    }

    body.season-exhausted .main-layout {
        display: block;
        padding: 0;
    }

    body.season-exhausted .booster-container,
    body.season-exhausted .cards-area {
        max-width: 100%;
    }

    body.season-exhausted .booster-container {
        position: relative;
        top: auto;
        align-items: center;
        margin-bottom: 1rem;
    }
}

@media (min-width: 1460px) {
    .card-reveal {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .card-reveal {
        left: 50%;
        transform: translateX(-50%);
    }
}

.card-reveal .minister-card {
    pointer-events: all;
    transform-style: preserve-3d;
    transition: transform 0.3s ease-out;
}

.card-reveal .minister-card:not(.revealing) {
    transform: perspective(1000px);
}

.card-reveal .minister-card:not(.revealing):hover {
    transform: perspective(1000px) rotateX(10deg) rotateY(10deg) scale(1.05);
}

.card-reveal .minister-card.revealing {
    animation: revealFromBooster 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    pointer-events: all;
}

.minister-card {
    width: 250px;
    height: 400px;
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    color: #333;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transform: perspective(1000px);
}

.minister-card::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 45%,
        rgba(255, 255, 255, 0.5) 50%,
        rgba(255, 255, 255, 0.1) 55%,
        transparent 100%
    );
    transition: all 0.6s;
    animation: holographic 3s ease infinite;
    pointer-events: none;
    mix-blend-mode: color-dodge;
    filter: brightness(1.5) contrast(1.2);
}

.minister-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        125deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 30%,
        rgba(255, 255, 255, 0.4) 40%,
        rgba(255, 255, 255, 0) 60%
    );
    opacity: 0;
    transition: opacity 0.3s;
    mix-blend-mode: overlay;
}

.minister-card:hover {
    transform: perspective(1000px) rotateX(10deg) rotateY(10deg) scale(1.05);
}

.minister-card:hover::after {
    opacity: 1;
}

.minister-image {
    position: relative;
    width: 100%;
    height: 200px;
    margin: 0.8rem 0;
    overflow: hidden;
    border-radius: 5px;
    background: linear-gradient(45deg, #f3f3f3, #e6e6e6);
}

.minister-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: contrast(1.1) saturate(1.2);
}

.minister-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: #1a1a1a;
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.minister-role {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
    text-align: center;
}

.minister-rarity {
    font-size: 0.9rem;
    color: #ff6b6b;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.minister-stars {
    font-size: 1rem;
    text-align: center;
    margin-bottom: 0.8rem;
}

.minister-description {
    font-size: 0.9rem;
    color: #777;
    text-align: center;
    line-height: 1.4;
    margin-top: 0.8rem;
}

@keyframes holographic {
    0% {
        transform: translateY(-60%) rotate(0deg);
        opacity: 0.5;
    }
    50% {
        transform: translateY(60%) rotate(180deg);
        opacity: 0.8;
    }
    100% {
        transform: translateY(-60%) rotate(360deg);
        opacity: 0.5;
    }
}

@keyframes shine {
    0% {
        background-position: -100% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Effet spécial pour les cartes Ultra Rares */
.minister-card[data-rarity="Ultra Rare"]::before {
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(255, 215, 0, 0.1) 45%,
        rgba(255, 215, 0, 0.5) 50%,
        rgba(255, 215, 0, 0.1) 55%,
        transparent 100%
    );
}

.collection-content {
    display: none;  /* Masqué par défaut */
}

.collection {
    text-align: center;
    padding: 0 2rem;
}

.collection h2 {
    margin-bottom: 2rem;
}

.collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    max-width: 1200px;
    gap: 2rem;
    padding: 1rem;
    margin: 0 auto;
}

@media (min-width: 1200px) {
    .collection-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .collection-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
}

@keyframes reveal {
    from {
        transform: scale(0.1) rotate(0deg);
        opacity: 0;
    }
    to {
        transform: scale(1) rotate(360deg);
        opacity: 1;
    }
}

@keyframes revealFromBooster {
    0% {
        transform: translateY(-150px) scale(0.8);
        opacity: 0;
    }
    60% {
        transform: translateY(-400px) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Ajout du style pour le bouton de réinitialisation */
.btn-reset {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    width: 50px;
    height: 50px;
    padding: 0;
    font-size: 1.2rem;
    background: #dc3545;
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99;
}

.btn-reset:hover {
    transform: translateY(-2px) rotate(5deg);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    background: #c82333;
}

.btn-reset:active {
    transform: translateY(0) rotate(0deg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-reset i {
    transition: transform 0.3s ease;
}

.btn-reset:hover i {
    transform: scale(1.1);
}

.btn-reset::before {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform: translateY(5px);
}

.btn-reset:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Effet pour les cartes First Edition */
.minister-card[data-rarity="First Edition"] {
    border: 2px solid #b8860b;
}

.minister-card[data-rarity="First Edition"]::before {
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(184, 134, 11, 0.1) 45%,
        rgba(184, 134, 11, 0.5) 50%,
        rgba(184, 134, 11, 0.1) 55%,
        transparent 100%
    );
}

.minister-card[data-rarity="First Edition"] .minister-rarity {
    color: #b8860b;
    text-shadow: 0 0 3px rgba(184, 134, 11, 0.3);
}

.minister-card[data-rarity="First Edition"]::after {
    content: "1st";
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.8rem;
    color: #b8860b;
    font-weight: bold;
    border: 1px solid #b8860b;
    padding: 2px 6px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
}

/* Effet pour les cartes Shiny */
.minister-card[data-rarity="Shiny"] {
    background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 50%, #ffffff 100%);
}

.minister-card[data-rarity="Shiny"]::before {
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(255, 255, 255, 0) 30%,
        rgba(255, 215, 0, 0.5) 48%,
        rgba(255, 255, 255, 1) 50%,
        rgba(255, 215, 0, 0.5) 52%,
        rgba(255, 255, 255, 0) 70%,
        transparent 100%
    );
    animation: holographic 3s ease infinite, rainbow 5s linear infinite;
}

.minister-card[data-rarity="Shiny"] .minister-rarity {
    color: #ffd700;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
    animation: glow 2s ease-in-out infinite;
}

/* Effet pour les cartes Shadowless */
.minister-card[data-rarity="Shadowless"] {
    box-shadow: none;
    border: 3px solid #2c3e50;
}

.minister-card[data-rarity="Shadowless"]::before {
    display: none;
}

.minister-card[data-rarity="Shadowless"] .minister-image {
    box-shadow: none;
    border: 1px solid #2c3e50;
}

.minister-card[data-rarity="Shadowless"] .minister-rarity {
    color: #2c3e50;
    font-style: italic;
}

@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
    }
    50% {
        text-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
    }
}

.remaining-cards {
    position: absolute;
    width: 90%;
    height: 90%;
    background: linear-gradient(
        90deg,
        #002395 0%,
        #002395 33.33%,
        #FFFFFF 33.33%,
        #FFFFFF 66.66%,
        #ED2939 66.66%,
        #ED2939 100%
    );
    border-radius: 15px;
    top: 5%;
    left: 5%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid #000;
}

.booster.opening .remaining-cards,
.booster:not([data-empty="true"]) .remaining-cards {
    opacity: 1;
}

/* S'assurer que le cadre disparaît uniquement quand il n'y a plus de cartes */
.booster[data-empty="true"] .remaining-cards {
    opacity: 0;
    transition: opacity 0.5s ease-out;
}

.seasons-panel {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 250px;
    background: rgba(0, 0, 0, 0.8);
    padding: 2rem;
    color: white;
    border-right: 2px solid rgba(255, 255, 255, 0.1);
    z-index: 100;
    transition: transform 0.3s ease-in-out;
}

.seasons-panel h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #f6b73c;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.season {
    padding: 0.8rem;
    margin-bottom: 0.8rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: inherit;
}

.season.current {
    background: rgba(246, 183, 60, 0.2);
    border: 1px solid #f6b73c;
}

.season.locked {
    opacity: 0.6;
    cursor: not-allowed;
}

.season i {
    font-size: 1rem;
    min-width: 20px;
    text-align: center;
}

.season-info {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.season-name {
    font-size: 0.9rem;
    white-space: nowrap;
}

.season-status {
    font-size: 0.7rem;
    background: #f6b73c;
    padding: 0.2rem 0.4rem;
    border-radius: 20px;
    white-space: nowrap;
}

.container {
    width: calc(100% - 250px);
}

/* Styles pour mobile */
@media (max-width: 768px) {
    .seasons-panel {
        width: 100%;
        transform: translateX(-100%);
        padding: 1rem;
    }

    .seasons-panel.expanded {
        transform: translateX(0);
    }

    .seasons-panel h2 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .current-season-mobile {
        display: flex;
        position: fixed;
        top: 1rem;
        left: 1rem;
        z-index: 90;
        background: rgba(0, 0, 0, 0.8);
        padding: 0.5rem 1rem;
        border-radius: 8px;
        align-items: center;
        gap: 0.8rem;
        cursor: pointer;
        border: 1px solid #f6b73c;
    }

    .current-season-mobile i {
        font-size: 1rem;
    }

    .current-season-mobile .season-status {
        font-size: 0.6rem;
    }

    .container {
        margin-left: 0;
        width: 100%;
        padding-top: 4rem;
    }

    .card-reveal {
        left: 50%;
    }

    /* Ajustements pour le responsive */
    .minister-card {
        width: 220px;
        height: 385px;
        padding: 1rem;
    }

    .minister-image {
        height: 165px;
    }

    .collection-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    header h1 {
        font-size: 2rem;
    }
}

.seasons-panel .close-button {
    display: none;  /* Caché par défaut en desktop */
}

.current-season-mobile {
    display: none;  /* Caché par défaut en desktop */
}

@media (max-width: 768px) {
    .current-season-mobile {
        display: flex;  /* Affiché uniquement en mobile */
        position: fixed;
        top: 1rem;
        left: 1rem;
        z-index: 90;
        background: rgba(0, 0, 0, 0.8);
        padding: 0.5rem 1rem;
        border-radius: 8px;
        align-items: center;
        gap: 0.8rem;
        cursor: pointer;
        border: 1px solid #f6b73c;
    }

    .seasons-panel .close-button {
        display: block;  /* Affiché uniquement en mobile */
        position: absolute;
        top: 1rem;
        right: 1rem;
        background: none;
        border: none;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
        padding: 0.5rem;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .seasons-panel.expanded .close-button {
        opacity: 1;
        pointer-events: auto;
    }
} 

.copyright {
    text-align: center;
    padding: 1rem;
    font-size: 0.8rem;
    position: fixed;
    bottom: 10px;
    left: 10px;
    z-index: 101;
}

.copyright a {
    color: #bbb;
}

.btn-notify {
    position: fixed;
    top: 1rem;
    right: 1rem;
    width: 50px;
    height: 50px;
    padding: 0;
    font-size: 1.2rem;
    background: #f6b73c;
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99;
}

.btn-notify:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    background: #f5a811;
}

.btn-notify:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-notify i {
    transition: transform 0.3s ease;
}

.btn-notify:hover i {
    transform: scale(1.1);
}

.btn-notify::before {
    content: attr(title);
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform: translateY(5px);
}

.btn-notify:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Ajustement pour mobile */
@media (max-width: 768px) {
    .btn-notify {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

.ministers-seo {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 1rem;
}
.minister-details {
    margin-bottom: 2rem;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.minister-details img {
    display: block;
    margin: 1rem 0;
    object-fit: cover;
}
.minister-details .role {
    color: #f6b73c;
    font-weight: bold;
}
.minister-details .description {
    margin: 0.5rem 0;
    line-height: 1.4;
}