/* --- CONTAINER SLIDER --- */
.slider-ouvrages {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 40px 5px;
}

.slider-ouvrages::-webkit-scrollbar {
    display: none;
}

/* --- CARD STYLE --- */
.ouvrage-card {
    flex: 0 0 calc(33.33% - 18px);
    background: #fff;
    border: 1px solid #FDC71C;
    border-radius: 12px;
    padding: 16px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* ----- ROW PRINCIPALE (image + contenu) ----- */
.ouvrage-card .flex:first-child {
    display: flex;
    gap: 16px;
}

/* IMAGE EXACTE EN MODE MINI */
.ouvrage-cover {
    width: 230px;
    height: 250px;
    border-radius: 10px;
    overflow: hidden;
    margin-top: -35px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

.ouvrage-cover img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
}

/* ----- TITRE + NOTES SUR UNE LIGNE ----- */
.ouvrage-title {
    font-size: 20px;
    font-weight: 700;
    width: 70%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
	margin:0px !important;
}

.ouvrage-title a {
    color: #000;
    text-decoration: none;
}

.ouvrage-title a:hover {
    text-decoration: underline;
}

.ouvrage-card .flex:first-child > div:last-child {
    width: 100%;
}

/* Alignement étoiles à droite */
.ouvrage-card .flex:first-child > div:last-child > .flex:nth-child(1) {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ----- INFOS AUTEUR / ILLUSTRATEUR ----- */
.ouvrage-card .border-b {
    margin: 9px 0;
    padding-bottom: 6px;
    font-size: 13px;
    border-color: rgba(0,0,0,0.15) !important;
}

.ouvrage-card .text-[13px],
.ouvrage-card small,
.ouvrage-card span,
.ouvrage-card p {
    font-size: 13px !important;
    line-height: 1.22rem !important;
}

/* Durée de lecture */
.ouvrage-card ul li img {
    width: 14px;
    height: 14px;
    margin-right: 4px;
}

/* Résumé compact */
.ouvrage-card p {
    margin-top: 5px;
	margin-bottom: 0;
    color: #444;
    font-size: 13px;
    max-height: 3.8rem;
    overflow: hidden;
}

/* ----- FOOTER ----- */
.ouvrage-card .flex.justify-between {
    margin-top: 10px;
    padding-top: 10px;
    font-size: 13px;
}

.ouvrage-card .flex.justify-between ul {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-imagine,
.ouvrage-card a.bg-\[\#FDC71C\] {
    background-color: #FDC71C;
    padding: 5px 14px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    color: white !important;
    white-space: nowrap;
}
.ouvrage-card .border-b{
border-bottom: 1px solid rgba(0,0,0,0.1);
	}
.btn-imagine:hover,
.ouvrage-card a.bg-\[\#FDC71C\]:hover {
    background-color: #e1b017;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .ouvrage-card {
        flex: 0 0 calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    .ouvrage-card {
        flex: 0 0 100%;
    }
    
    .slider-ouvrages {
        padding: 20px 5px;
        gap: 18px;
    }

    .ouvrage-cover {
        width: 120px;
        height: 160px;
        margin-top: -20px;
    }

    .ouvrage-title {
        width: 60%;
        white-space: normal;
    }
}

/**Avis*/
.yasr-custom-text-vv-before, .yasr-vv-stats-text-container, .yasr-already-voted-text{
	display:none !important;
}
.yasr-vv-second-row-container{
	float:right;
}
.btn-imagine, .ouvrage-card a.bg-\[\#FDC71C\]{
	float:right;
	padding: 10px 20px;
}


/**Like*/
/* Style du bouton favori */
.ouvrages-likes .simplefavorite-button {
    display: flex;
	color:red;
	font-size:18px;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

/* Lorsque favoris */
.simplefavorite-button.active {
    color: red;
}

/* L’icône standard du plugin */
.simplefavorite-button .simplefavorite-icon {
    font-size: 18px;
}

/* Le compteur */
.ouvrages-likes .count {
    font-weight: 600;
	font-size:18px;
}

.ouvrages-likes{
	float:left;
}

