/* ==========================================
   RECHERCHE
========================================== */

.catalogue-recherche {
    margin-bottom: clamp(6px, 1.5vw, 10px);
}

.catalogue-recherche input {
    width: 100%;
    box-sizing: border-box;
    padding: clamp(8px, 1.2vw, 13px) clamp(10px, 1.5vw, 16px);
    border: 1px solid #ccc;
    border-radius: clamp(5px, 0.8vw, 8px);
    font-size: clamp(12px, 1vw, 16px);
    font-family: 'Bitter', serif;
}


/* ==========================================
   FILTRES
========================================== */

.catalogue-filtres {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(6px, 1.2vw, 12px);
}

.filtre {
    display: flex;
    flex-direction: column;
    gap: clamp(3px, 0.6vw, 6px);
    min-width: 0;
}

.filtre select {
    font-family: 'Bitter', serif;
    width: 100%;
    box-sizing: border-box;
    padding: clamp(7px, 1vw, 11px);
    border: 1px solid #ccc;
    border-radius: clamp(5px, 0.7vw, 7px);
    background: white;
    font-size: clamp(12px, 1vw, 16px);
}


/* ==========================================
   SECTIONS
========================================== */

.type-jeux {
    margin-bottom: clamp(18px, 3vw, 35px);
}

.titre-type {
    padding-bottom: clamp(5px, 0.8vw, 9px);
    margin-bottom: clamp(10px, 1.6vw, 18px);
    font-size: clamp(18px, 2vw, 28px);
}


/* ==========================================
   MOSAÏQUE
========================================== */

.grille-jeux {
    display: grid;
    grid-template-columns: repeat(
        auto-fill,
        minmax(min(100%, 250px), 1fr)
    );
    gap: clamp(8px, 1.5vw, 18px);
}

/* Téléphone */
@media screen and (max-width: 768px) {
    .grille-jeux {
        grid-template-columns: repeat(
            auto-fill,
            minmax(min(100%, 120px), 1fr)
        );
    }
}

/* ==========================================
   CARTE
========================================== */

.carte-jeu {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #ddd;
    border-radius: clamp(6px, 0.9vw, 9px);
    background: white;
	position: relative;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;

    transition:
        transform 0.2s,
        box-shadow 0.2s;
}

.carte-jeu:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.carte-jeu:visited {
    color: inherit;
}

/* ==========================================
   Bouton pour ajout selection
========================================== */

.small-bouton-wishlist {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;

    width: 38px;
    height: 38px;

    border: none;
    border-radius: 50%;

    background: #ffffff;
    color: #333;

    font-size: 25px;
    font-weight: bold;

    cursor: pointer;

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

    box-shadow: 0 2px 6px rgba(0,0,0,0.25);

    transition: 0.2s;
}



/* Jeu ajouté */

.bouton-wishlist.actif {
    background: #68B77C;
    color: #111;
}

/* Jeu non ajouté */

.bouton-wishlist:not(.actif) {
    background: white;
    color: #111;
}
/* ==========================================
   PHOTO
========================================== */

.photo-jeu {
    display: block;
    width: 100%;
    height: clamp(110px, 13vw, 155px);
    object-fit: contain;
    background: #f7f7f7;
}


/* ==========================================
   INFORMATIONS
========================================== */

.infos-jeu {
    padding: clamp(7px, 1.1vw, 11px);
    display: flex;
    flex-direction: column;
    gap: clamp(2px, 0.3vw, 4px);
    flex: 1;
    font-size: clamp(12px, 1vw, 14px);
    margin-block: clamp(3px, 0.4vw, 6px);
}

.titre-carte {
    font-size: clamp(15px, 1.5vw, 24px);
    text-align: center;
}

.description-carte {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
    font-size: clamp(11px, 0.9vw, 12px);
    color: #777;
    line-height: 1.4;
    min-height: calc(3 * 1.4em);
}

.types-carte {
}

.tarif-carte {

}



/* ==========================================
   RÉSULTATS
========================================== */

.nombre-resultats {
    margin: clamp(8px, 1.5vw, 15px) 0;
    font-weight: 600;
    font-size: clamp(12px, 1vw, 16px);
}

#aucunResultat {
    text-align: center;
    padding: clamp(15px, 3vw, 30px) clamp(6px, 1vw, 10px);
    color: #777;
    font-size: clamp(12px, 1vw, 16px);
}
