.board-games-page {
    min-height: 100vh;
    background: var(--gj-light);
    color: #341263;
}

.board-games-container {
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
}

.board-games-hero {
    position: relative;
    overflow: hidden;
    padding: 88px 0 72px;
    background:
        radial-gradient(circle at 12% 18%, rgba(218, 114, 29, .16), transparent 28%),
        radial-gradient(circle at 88% 72%, rgba(52, 18, 99, .15), transparent 30%),
        linear-gradient(135deg, #fbf5ee 0%, #f6effa 100%);
}

.board-games-hero::before,
.board-games-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.board-games-hero::before {
    width: 280px;
    height: 280px;
    top: -150px;
    right: 10%;
    background: rgba(218, 114, 29, .10);
    filter: blur(2px);
}

.board-games-hero::after {
    width: 220px;
    height: 220px;
    bottom: -130px;
    left: 8%;
    background: rgba(52, 18, 99, .09);
    filter: blur(2px);
}

.board-games-hero .board-games-container {
    position: relative;
    z-index: 1;
}

.board-games-hero__content {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.board-games-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    margin-bottom: 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(52, 18, 99, .08);
    color: #DA721D;
    font-family: "Inter", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.board-games-hero h1 {
    margin: 0 0 18px;
    font-family: "Montserrat", sans-serif;
    font-size: clamp(2.7rem, 5vw, 4.4rem);
    line-height: 1.05;
    color: #341263;
}

.board-games-hero p {
    max-width: 680px;
    margin: 0 auto;
    font-family: "Inter", sans-serif;
    font-size: 17px;
    line-height: 1.7;
    color: #574b5f;
}

.board-games-hero__count {
    display: inline-block;
    margin-top: 26px;
    padding: 10px 17px;
    border-radius: 20px;
    background: #341263;
    color: #faf7f2;
    font-family: "Inter", sans-serif;
    font-weight: 700;
    box-shadow: 0 8px 22px rgba(52, 18, 99, .14);
}

.board-games-search {
    position: relative;
    z-index: 2;
    margin-top: 32px;
    padding-bottom: 44px;
}

.board-games-search__title {
    margin: 0 0 16px;
    color: #341263;
    font-family: "Montserrat", sans-serif;
    font-size: 24px;
}

.board-games-search__box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    background: #fff;
    border: 1px solid #e9e2dc;
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(52, 18, 99, .08);
}

.board-games-search__box .material-symbols-outlined {
    color: #DA721D;
    font-size: 24px;
}

.board-games-search__box input {
    width: 100%;
    padding: 12px 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #341263;
    font-family: "Inter", sans-serif;
    font-size: 16px;
}

.board-games-search__box input::placeholder {
    color: #8d8494;
}

.board-games-catalogue {
    padding-bottom: 96px;
}

.board-games-results {
    margin-bottom: 22px;
    font-family: "Inter", sans-serif;
    color: #665d6c;
}

.board-games-results p {
    margin: 0;
}

.board-games-results strong {
    color: #341263;
}

.board-games-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.board-game-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid #eee7e2;
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(52, 18, 99, .06);
    transition: transform .2s ease, box-shadow .2s ease;
}

.board-game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(52, 18, 99, .11);
}

.board-game-card__image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 235px;
    padding: 16px;
}

.board-game-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .25s ease;
}

.board-game-card:hover .board-game-card__image img {
    transform: scale(1.03);
}

.board-game-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 20px;
}

.board-game-card__category {
    margin-bottom: 8px;
    color: #DA721D;
    font-family: "Inter", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.board-game-card h2 {
    margin: 0 0 10px;
    font-family: "Montserrat", sans-serif;
    font-size: 20px;
    line-height: 1.25;
}

.board-game-card h2 a {
    color: #341263;
    text-decoration: none;
}

.board-game-card__description {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 18px;
    color: #665d6c;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    line-height: 1.55;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.board-game-card__meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-top: auto;
    margin-bottom: 16px;
    padding: 10px;
    background: #f7f1eb;
    border-radius: 12px;
}

.board-game-card__meta > span {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 0;
    color: #574b5f;
    font-family: "Inter", sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
}

.board-game-card__meta .material-symbols-outlined {
    color: #DA721D;
    font-size: 18px;
}

.board-game-card__button {
    display: block;
    padding: 11px 14px;
    border-radius: 10px;
    background: #341263;
    color: #faf7f2;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: opacity .2s ease, transform .2s ease;
}

.board-game-card__button:hover {
    opacity: .88;
    transform: translateY(-1px);
}

@media (max-width: 1050px) {
    .board-games-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    .board-games-container {
        width: min(100% - 32px, 1280px);
    }

    .board-games-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 540px) {
    .board-games-hero {
        padding: 48px 0 46px;
    }

    .board-games-grid {
        grid-template-columns: 1fr;
    }

    .board-game-card__image {
        height: 260px;
    }
}

/* Sélection aléatoire */
.board-games-featured {
    padding: 40px 0 80px;
}

.board-games-featured .board-games-container {
    padding-bottom: 32px;
    border-bottom: 1px solid #e5ddd6;
}

.board-games-featured__header {
    margin-bottom: 24px;
}

.board-games-featured__eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: #DA721D;
    font-family: "Inter", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.board-games-featured__header h2 {
    margin: 0 0 8px;
    color: #341263;
    font-family: "Montserrat", sans-serif;
    font-size: 24px;
}

.board-games-featured__header p {
    margin: 0;
    color: #665d6c;
    font-family: "Inter", sans-serif;
    font-size: 14px;
}

.board-games-featured__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.board-games-featured__grid .board-game-card {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    min-height: 230px;
}

.board-games-featured__grid .board-game-card__image {
    width: 180px;
    height: 100%;
    min-height: 230px;
    padding: 14px;
}

.board-games-featured__grid .board-game-card__body {
    min-width: 0;
    padding: 18px;
}

.board-games-featured__grid .board-game-card h2 {
    font-size: 18px;
}

.board-games-featured__grid .board-game-card__description {
    -webkit-line-clamp: 2;
}

@media (max-width: 950px) {
    .board-games-featured__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .board-games-featured__grid .board-game-card {
        display: flex;
        flex-direction: column;
    }

    .board-games-featured__grid .board-game-card__image {
        width: 100%;
        height: 220px;
        min-height: 0;
    }
}

.board-game-card {
    position: relative;
}

.board-game-card__overlay-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
}

.board-game-card__image,
.board-game-card__body {
    position: relative;
    z-index: 2;
    pointer-events: none;
}

.board-game-card__image,
.board-game-card__body a {
    pointer-events: auto;
}
