/* Conteneur des cartes */
.psj-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start; /* Aligne les cartes au début de la ligne */
    flex-direction: row; /* Dispose les cartes horizontalement */
    margin: 0 -10px; /* Ajuste l'espacement entre les colonnes */
}

/* Style des cartes */
.psj-card {
    background-color: #ffffff; /* Fond blanc */
    border-radius: 4px;
    margin: 10px;
    box-sizing: border-box;
    width: calc(25% - 20px); /* 4 cartes par ligne moins les marges */
}

/* Image de la carte */
.psj-card img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 1/1;
}

/* Informations de la carte */
.psj-card-infos {
    padding: 15px;
}

/* Titre de l'œuvre */
.psj-card h3 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.2em;
}

/* Bouton pour voir l'œuvre */
.psj-view-button {
    text-transform: uppercase;
    font-weight: 500;
    font-size: 15px;
    width: 100%;
    display: inline-block;
    padding: 10px 15px;
    background-color: #FFF !important;
    color: var(--theme-palette-color-1) !important;
    border: solid 1px var(--theme-palette-color-1) !important;
    text-decoration: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s, border 0.3s;
    text-align: center;
}

/* Style général du bouton de vote */
.psj-vote-button {
    text-transform: uppercase;
    font-weight: 500;
    font-size: 15px;
    margin-top: 20px;
    width: 100%;
    display: inline-block;
    padding: 10px 15px;
    background-color: var(--theme-palette-color-1);
    color: #ffffff;
    text-decoration: none;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s, border 0.3s;
}

/* Bouton désactivé */
.psj-vote-button:disabled,
.psj-vote-button.disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    color: #666666;
    margin-top: 20px;
    width: 100%;
}

/* Bouton pour les œuvres déjà votées */
.psj-vote-button.voted {
    margin-top: 20px;
    background-color: #FFF;
    color: #28a745;
}

/* Optionnel : Changer le curseur pour les boutons votés */
.psj-vote-button.voted:hover {
    cursor: default;
}




@media (max-width: 768px) {
    .psj-cards {
        width:  100% !important ;
        padding: 0 10px !important;
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        margin: 0 !important;
    }
    .psj-card {
        min-width: 80vw !important; 
        margin: 1rem; /* facultatif, mais pour l'espacement */
    }
}







.psj-votes-number{
    text-align: center !important;
    margin: 20px !important;
}



















/* Conteneur du podium */
.psj-podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin: 40px 0;
}

/* Style des éléments du podium */
.psj-podium-item {
    text-align: center;
    margin: 0 10px;
    position: relative;
    background-color: #F9F9F9;
}



/* Positionnement du contenu */
.psj-podium-rank {
    font-size: 2em;
    margin-bottom: 10px;
}

.psj-podium-thumbnail {
    position: relative;
    z-index: 2;
}

.psj-podium-item h3 {
    margin: 10px 0 5px;
}

.psj-podium-votes {
    margin: 0;
}

/* Ajustement des images */
.psj-podium-thumbnail img {
    max-width: 200px;
    object-fit: cover;
    aspect-ratio: 1/1;
    object-fit: cover;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .psj-podium {
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        overflow-x: scroll;
        flex-wrap: nowrap;
    }
    .psj-podium-item {
        order: 0;
        margin: 20px;
        padding-bottom: 0;
    }
    .psj-podium-item::before {
        display: none;
    }
}
