#resources-feed {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
	margin-top: 35px;
}
#resources-feed .rf-filter {
    /*width: 30%;*/
    width: 23%;
    min-height: 400px;
    border: 1px solid #DDDDDD;
    background-color: white;
    border-radius: 10px;
    padding: 15px;
}
#resources-feed .rf-filter .search-field-top {
    width: 100% !important;
    background-image: none;
    padding-left: 10px !important;
    padding-right: 10px !important;
    border-color: #DDDDDD !important;
    background-color: #F9FAFA !important;
}

#resources-feed .rf-list-container {
    /*width: calc(100% - 30% - 20px);*/
    width: calc(100% - 23% - 20px);    
}
#resources-feed .rf-container {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    gap: 18px;
    flex-wrap: wrap;
}

/* Style pour les non-abonnés : 4 vidéos par ligne */
@media screen and (min-width: 994px) {
#resources-feed .rf-container.not-subscribed > div,
#resources-feed .rf-container.not-subscribed > a {
 width: calc(25% - 15px);   /* 100 / 4 = 25% */
}
	}

/* Style pour les abonnés : 4 vidéos par ligne */
@media screen and (min-width: 994px) {
#resources-feed .rf-container.subscribed > div,
#resources-feed .rf-container.subscribed > a {
    width: calc(25% - 15px);   /* 100 / 4 = 25% */
}
		}

.rsr-skel {
    border-radius: 10px;
}
.rsr-skel .rsr-img {
    width: 100%;
    height: 160px;
    border-radius: 10px;
}
.rsr-skel .rsr-title {
    width: 50%;
    height: 16px;
    margin: 0;
    margin-top: 8px;
    border-radius: 30px;
}
.rsr-skel .rsr-excerpt {
    width: 100%;
    height: 12px;
    margin: 0;
    margin-top: 8px;
    border-radius: 30px;
}

.rsr-single {
    display: block;
    text-decoration: none;
    transition: .5s;
    color: black;
}
.rsr-single:hover {
    transform: translateY(-10px);
}
.rsr-single.is-serie {
    position: relative;
    z-index: 4;
}
.rsr-single.is-serie::after, .rsr-single.is-serie::before {
    position: absolute;
    left: 50%;
    height: 20px;
    border-radius: 10px;
    content: "";
    transform: translate(-50%);
}
.rsr-single.is-serie::after {
    width: 95%;
    top: -4px;
    background-color: #888888;
    z-index: -1;
}
.rsr-single.is-serie::before {
    width: 90%;
    top: -8px;
    background-color: #D9D9D9;
    z-index: -1;
}
.rsr-single .rsr-img {
    position: relative;
}
.rsr-single .rsr-img .rsr-badge {
    position: absolute;
    /* bottom: 10px; */
    /* left: 10px; */
    background-color: rgba(0, 0, 0, 0.8);
   	padding: 3px 12px;
    /* border-radius: 30px; */
    color: white;
	top: 50%;             /* Positionne le haut du badge au milieu vertical */
    left: 50%;            /* Positionne la gauche du badge au milieu horizontal */
    transform: translate(-50%, -50%); /* Décale le badge de -50% de sa propre largeur et hauteur */
    /* --- Fin Centrage --- */

    z-index: 1;           /* S'assure que le badge est au-dessus de l'image */
    text-align: center;   
    font-size: 9px;
    font-weight: 700;
}

.rsr-single .rsr-img img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    transition: .5s;
}
.rsr-single:hover .rsr-img img {
    box-shadow: 2px 2px 5px #00000033;
}
.rsr-single .rsr-title {
    font-size: 15px;
    margin: 0;
    margin-top: 8px;
    font-weight: 500;
    line-height: 20px;
}
.rsr-single .rsr-excerpt {
    font-size: 12px;
    margin: 0;
    margin-top: 8px;
    font-weight: 400;
    line-height: 14px;
}
.rsr-single .rsr-img { position: relative; }
.rsr-single .rsr-duration {
  position: absolute;
  bottom: 11px;
  right: 0px;
  padding: 6px 8px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(0,0,0,.8);
  color: #fff;
  border-radius: 4px;
  line-height: 1;
  pointer-events: none;
  z-index: 2;
}

.rsr-single .rsr-info {
    font-size: 12px;
    margin: 0;
    margin-top: 8px;
    font-weight: 400;
    line-height: 14px;
}
.rsr-info .rsr-duration {
    font-weight: 600;        /* met un peu en avant la durée */
    color: var(--jn-primary);/* vert RGNR */
}


.rsr-badge.reserved {
    background-color: #000;
    color: #fff;
    font-size: 12px;
    padding: 14px 3px;
    position: absolute;
    /* top: 10px; */
    left: 0px;
}

/* Filtre sur l'image pour les vidéos réservées */
.rsr-img img.reserved-image {
    filter: brightness(0.5); /* Assombrit l'image */
}

.rff-orderby {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}
.rff-orderby label, .rff-orderby select {
    border: none;
    padding: 0 !important;
    font-size: 14px;
    font-weight: 400;
    box-shadow: none !important;
    cursor: pointer;
}
.rff-orderby select {
    color: #2C6961;
}

.rf-filter .search-form {
    margin-bottom: 5px;
}

.rff-section {
    margin-bottom: 18px;
}
.rff-section h5 {
    font-size: 16px;
    font-weight: 500;
    line-height: 28px;
    margin: 0;
    margin-bottom: 5px;
}
.rff-section:has(.btn-more-content) .rff-section-body {
    max-height: 190px;
    overflow-y: hidden;
    transition: .3s;
}
.rff-section.expanded .rff-section-body {
    max-height: 280px;
    overflow-y: auto;
}
.rff-section .rff-section-actions {
    margin-top: 10px;
    width: 100%;
}



@media screen and (max-width: 993px) {
    /* Afficher 2 vidéos par ligne sur écrans moyens */
    #resources-feed .rf-container.subscribed > div,
    #resources-feed .rf-container.subscribed > a,
    #resources-feed .rf-container.not-subscribed > div,
    #resources-feed .rf-container.not-subscribed > a {
        width: calc(50% - 15px);
    }
}

@media screen and (max-width: 553px) {
    #resources-feed .rf-filter {
        width: 100%;
    }
    
    #resources-feed .rf-list-container {
        width: 100%;
    }

    #resources-feed .rf-container > div,
    #resources-feed .rf-container > a {
        width: 100%;
    }
}
