﻿
/* =========================================================
   NAVIGATION ENTRE LES JEUX
========================================================= */

.description-navigation {
    display: grid;

    grid-template-columns: 150px minmax(0, 1fr) 150px;

    gap: 15px;

    align-items: start;

    margin-top: 20px;
}


/* Vignettes précédent / suivant */

.nav-game-thumb {
    display: block;

    width: 150px;

    padding: 6px;

    box-sizing: border-box;

    background: #fff;

    border: 1px solid #e2e8f0;

    border-radius: 12px;

    text-decoration: none;

    color: #334155;

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease;
}

.nav-game-thumb:hover {
    transform: translateY(-2px);

    border-color: #93c5fd;

    box-shadow: 0 5px 15px rgba(30, 64, 175, .12);
}

.nav-game-thumb img {
    display: block;

    width: 100%;
    height: auto;

    border-radius: 8px;
}

.nav-game-thumb span {
    display: block;

    padding: 7px 3px 4px;

    font-size: 12px;

    line-height: 1.25;

    font-weight: 700;
}


/* Alignement */

.nav-game-prev {
    text-align: left;
}

.nav-game-next {
    text-align: right;
}/* =========================================================
   PDF
========================================================= */

.game-pdfs {
    margin-top: 15px;
    padding: 18px;

    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;

    text-align: left;
}

.game-pdfs h2 {
    margin: 0 0 14px;

    font-size: 18px;
    color: #1e293b;
}


/* Liste des PDF */

.pdf-list {
    display: flex;
    flex-wrap: wrap;

    justify-content: center;

    gap: 10px;
}

/* Carte PDF */
.pdf-thumb {
    width: 90px;
    padding: 4px;

    box-sizing: border-box;

    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;

    text-decoration: none;
    color: #334155;

    overflow: hidden;
}

.pdf-thumb:hover {
    transform: translateY(-3px);

    border-color: #93c5fd;

    box-shadow: 0 5px 15px rgba(30, 64, 175, .12);
}


/* Image 100 × 140 */

.pdf-thumb img {
    display: block;

    width: 80px;
    height: 112px;

    object-fit: cover;

    border-radius: 5px;
}



/* Titre */

.pdf-title {
    display: block;

    width: 100%;

    margin-top: 5px;

    font-size: 10px;
    line-height: 1.15;

    font-weight: 700;

    text-align: center;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Télécharger */

.pdf-download {
    display: block;

    margin-top: 3px;

    font-size: 9px;
    line-height: 1.1;

    color: #0284c7;

    font-weight: 600;

    text-align: center;
}


/* =========================================================
   NAVIGATION MOBILE
========================================================= */

.mobile-exercise-navigation {
    display: none;
}

@media (max-width: 800px) {

   /* On cache les vignettes desktop */

    .description-navigation {
        display: block;
    }

    .description-navigation .nav-game-thumb {
        display: none;
    }


    /* Description */

    .game-description {
        width: 100%;
    }


    /* Boutons précédent / suivant */

    .mobile-exercise-navigation {
        display: grid;

        grid-template-columns: 1fr 1fr;

        gap: 10px;

        margin-top: 12px;
    }


    .exercise-nav-button {
        display: flex;

        align-items: center;
        justify-content: center;

        min-height: 42px;

        padding: 8px 10px;

        box-sizing: border-box;

        background: #f0f9ff;

        border: 1px solid #bae6fd;

        border-radius: 9px;

        color: #0369a1;

        font-size: 12px;

        font-weight: 700;

        text-decoration: none;

        text-align: center;

        transition:
            background .2s ease,
            transform .2s ease;
    }

    .exercise-nav-button:hover {
        background: #e0f2fe;

        transform: translateY(-1px);
    }
}
@media (max-width: 400px) {

    .mobile-exercise-navigation {
        grid-template-columns: 1fr;
    }

}


