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

body {
    font-family: 'Jersey 25', sans-serif;
}

/* =============================================
   HEADER / NAVIGATION
   ============================================= */
header {
    background-color: black;
}

header a {
    color: white;
}

/* =============================================
   CARTE DE JEU
   ============================================= */
.js-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 colonnes sur mobile */
    gap: 1rem;
    padding: 1rem;
}

@media (min-width: 480px) {
    .js-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

@media (min-width: 1024px) {
    .js-cards {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (min-width: 1280px) {
    .js-cards {
        grid-template-columns: repeat(6, 1fr);
    }
}

.card {
    width: 100%;
    aspect-ratio: 357 / 584;
    background-color: #FF6D00;
    border-radius: 11px;
    display: flex;
    flex-direction: column;
    padding: 3.5% 5.9% 4%;
    gap: 3%;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    will-change: transform;
}

.card:hover {
    transform: scale(1.06);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
    z-index: 1;
    overflow: visible;
}

.card__inner {
    flex: 1;
    min-height: 0;
    background-color: #FCDCB1;
    border-radius: 11px;
    border: 2px solid #000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.card__image {
    flex: 1;
    min-height: 0;
    display: block;
    width: 100%;
    object-fit: cover;
}

.card__title {
    font-size: clamp(8px, 1.1vw, 20px);
    color: #000;
    text-align: center;
    line-height: 1.2;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    padding: 4% 4% 3%;
}

.card__badges {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 4px;
}

.card__genres {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    flex: 1;
}

.card__badge {
    font-size: clamp(9px, 0.85vw, 13px);
    color: #000;
    padding: 2px 6px;   /* padding agrandi (était 1px 4px) */
    border-radius: 8px;
    line-height: 1.5;
    white-space: nowrap;
}

.card__badge--genre { background-color: #FFB57D; }
.card__badge--price { background-color: #FCDCB1; }