﻿
.card-container {
    /*max-height: 78vh;  Définit une hauteur maximale basée sur la taille de l'écran */
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: auto; /* Affine la scrollbar sur Firefox */
    scrollbar-color: rgba(0, 0,255, 0.3); /* Personnalise la scrollbar */
    background-color: rgba(0, 0, 0);
    cursor: pointer;
}

.card-wrapper {
    position: relative;
    width: 120px;
    height: 180px;
    margin: 0 auto 3rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.item-card {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    width: 120px;
    height: 120px;
}

.item-card-background {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    height: 80%;
    transform: translate(-50%, -50%); /* Centre précisément l'image */
    object-fit: cover;
    z-index: 1;
}

.item-card-effect-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none; /* Empêche qu'il bloque les interactions */
}

.item-card-image {
    position: absolute; /* Superposition par-dessus le fond */
    top: 56px;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%,-50%);
    z-index: 3;
}

/* Style du label sous l’image */
.item-label-wrapper {
    position: relative;
    width: 100%;
    height: 60px;
    text-align: center;
    font-size: .7rem;
    padding: 0.5rem 0;
    background: rgba(0, 0, 0, 0.5); /* Ajoute un léger fond pour plus de lisibilité */
    color: white;
    z-index: 4; /* Plus haut que l’image */
}

.truncate-multiline {
    display: -webkit-box;
    max-width: 120px;
    -webkit-line-clamp: 3; /* Max 3 lignes */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal; /* Permet le retour à la ligne */
}

.zoom-image {
    opacity: 1; /* Assure l’affichage immédiat */
}

    .zoom-image:hover {
        transform: scale(1.1);
        filter: brightness(110%);
        opacity: 1;
        transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out, opacity 0.3s ease-in-out;
        will-change: transform, filter, opacity;
    }

.detail-image-container {
    position: relative; /* Définit un cadre pour les positions absolues */
    width: 100%;
    max-width: 250px; /* Ajuste la taille selon tes besoins */
}

    .detail-image-container img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%; /* Uniformise la taille des images */
        height: auto;
    }

    .detail-image-container > .card-bg {
        position: relative; /* L'image de fond doit être relative */
        z-index: 1; /* S'assure qu'elle reste sous les autres */
    }

    .detail-image-container > .card-character {
        z-index: 2; /* Superposée sur le fond */
    }

    .detail-image-container > .card-effect {
        z-index: 3; /* Effet visuel au-dessus */
    }

.detail-image-effect {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    width: 250px;
    height: 333px;
}

.detail-image-effect-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none; /* Empêche qu'il bloque les interactions */
}



