/* CSS Document */

.yls-filtres {
  display: flex;
  margin: 7px 0.5rem 0.5rem 0;
  column-gap: 10px;
  margin-left: auto;
  align-self: baseline;
}
.perso {
  align-self: center;
  color: #36406c;
  font-weight: 500;
}
#yls-region {
  background: #06508c;
    background-position-x: 0%;
    background-position-y: 0%;
    background-repeat: repeat;
    background-image: none;
}
#yls-categorie {
  background: #d7062a;
    background-position-x: 0%;
    background-position-y: 0%;
    background-repeat: repeat;
    background-image: none;
}
#yls-region, #yls-categorie {
  border: none;
  border-radius: 20px;
  color: #fff;
  font-weight: 700;
  font-family: Montserrat, sans-serif;
  width: 170px;
  margin: 5px 0;
  background-image: url("fleche.png") !important;
  background-repeat: no-repeat !important;
  background-position: 95% !important;
background-size: 13px;
  font-size: 14px;
  min-height: 19px !important;
}
.yls-users {
  max-width: 400px;
  margin-bottom: 0;
}
@media (min-width: 600px) {
 .yls-users-list {
  display: grid;
  grid-template-columns: 50% 50%;
	column-gap: 20px;
}
}

.yls-users-group__title {
  font-size: 15px;
  margin-bottom: 0;
}
.yls-user {
  font-size: 14px;
  margin-bottom: 0px !important;
	 display: flex;
  column-gap: 10px;
}
.yls-users-link{
	color: var(--color-link) !important;
  text-decoration: none;
	font-weight: 700 !important;
}
.petit, a.petit {
  font-size: 0.75em !important;
	color: #fff !important;
	flex: 1 !important;
}
.bt_rouge.petit {
  border: none !important;
  border-radius: 20px !important;
  color: #fff !important;
  font-weight: 700 !important;
  margin: 5px 15px !important;
  background-color: #d7062a !important;
  font-size: 13px !important;
  display: inline-block !important;
  padding: 0 9px !important;
}
.yls-user__avatar {
  border-radius: 50px;
  width: 40px;
  height: 40px;
  margin-right: 0;
}
.yls-post.buddyx-article {
  margin-bottom: 20px !important;
  padding: 0em !important;
  border-radius: 20px !important;
	overflow: auto;
}
.more-link {
  text-decoration: none;
  background: var(--color-secondary);
  padding: 0 10px;
  border-radius: 10px;
  color: #fff;
  transition: all 0.2s ease-in-out;
	display: block;
	width: fit-content;
	margin-top: 10px;
}
/* Par défaut : l'icône est cachée */
#mobile-user-toggle {
    display: none;
    cursor: pointer;
    font-size: 26px;
    padding: 0px;
}
.icon-user {
  background: #fff;
}
    /* Bouton fermer */
    #close_connexion {
        display: none;
    }

/********LOADER ************/

/* Loader cercle pulsant */
.yls-loader {
    width: 28px;
    height: 28px;
    margin: 10px auto;
    border: 3px solid #cc0000; /* couleur personnalisable */
    border-radius: 50%;
    animation: pulse 0.9s infinite ease-in-out;
}

/* ── Thumbnail inline dans la liste AJAX ─────────────────────────── */
.yls-post__layout {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.yls-post__thumbnail-link {
  flex-shrink: 0;
  display: block;
  width: 230px;
  height: 230px;
  overflow: hidden;
  border-radius: 20px 0 0 20px;
}

.yls-post__thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.yls-post__content {
  flex: 1;
  min-width: 0;
  padding: 1em;
}

@media (max-width: 600px) {
  .yls-post__layout {
    flex-direction: column;
  }

  .yls-post__thumbnail-link {
    width: 100%;
    height: 180px;
  }
}

@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 0.6;
    }
    50% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(0.8);
        opacity: 0.6;
    }
}

/* Centrage du loader */
.yls-users-loading {
    text-align: center;
    padding: 20px 0 50px 20px;
}
@media (max-width: 1000px) {
	.perso {
display: none;
}
	#mobile-user-toggle {
    display: block;
    width: 30px;
    height: 30px;
    align-self: anchor-center;
	border-radius: 50px;
    border: 1px #000 solid;
  }

    /* Bloc en overlay plein écran */
    #bloc_connexion {
        display: none;
        position: fixed;          /* au-dessus du contenu */
        bottom: 0;
        left: 0;
        width: 100vw;             /* occupe toute la largeur */
        height: auto;
        z-index: 99999;            /* au-dessus de tout */
        background: #06508c;
        padding: 20px;
        border-radius: 0;         /* pas d'arrondi */
        box-shadow: 0 4px 15px rgba(0,0,0,0.25);
        flex-direction: column;
        gap: 15px;
		max-width: 100%;
		margin-left: 0;
    }

    /* Bouton fermer */
    #close_connexion {
        position: absolute;
        top: 12px;
        right: 12px;
        background: none;
        border: none;
        font-size: 26px;
        cursor: pointer;
        padding: 5px;
        line-height: 1;
		color: #fff;
		        display: block;
    }

    #close_connexion:focus-visible {
        outline: 2px solid #000;
    }

    /* Liens */
    #bloc_connexion a {
        font-size: 20px;
        padding: 0 10px;
    }

    /* Quand ouvert */
    #bloc_connexion.open {
        display: flex !important;
    }
}
/* Classe visible quand ouvert */
#bloc_connexion.open {
    display: flex !important;
}

/* ── Pagination posts AJAX (style thème) ─────────────────────────── */
.yls-pagination-wrap {
  margin-top: 1.5rem;
}

.yls-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.yls-pagination__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.yls-page-btn {
  display: inline-block;
  text-align: center;
  min-width: 1.75em;
  padding: 10px 15px;
  margin-bottom: .5em;
  margin-right: 1em;
  background: var(--color-theme-white-box, #fff);
  box-shadow: inset 0 0 0 1px var(--global-border-color, #ddd);
  border: 1px solid var(--color-link, #06508c);
  border-radius: .285714rem;
  color: var(--color-link, #06508c);
  font-family: Montserrat, sans-serif;
  font-size: inherit;
  font-weight: 400;
  line-height: 1.5;
  text-decoration: none;
  text-shadow: none !important;
  text-transform: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.yls-page-btn:hover:not(.yls-page-btn--active) {
  color: var(--color-link-hover, #d7062a);
  border-color: var(--color-link-hover, #d7062a);
}

.yls-page-btn--active {
  color: var(--color-link-hover, #d7062a);
  border-color: var(--global-font-color, #333);
  cursor: default;
  pointer-events: none;
}

.yls-pagination__ellipsis {
  display: inline-block;
  padding: 10px 5px;
  margin-bottom: .5em;
  margin-right: 1em;
  color: var(--global-font-color, #555);
  font-size: inherit;
  line-height: 1.5;
}