.private.not-enrolled {
   order: 10;
}
/* Garde le Members Only verrouillé visible */
.private:not-enrolled {
  order: 10;
}

/* ===== ESPACE MEMBRE LEARNYCLUB ===== */

@media screen and (min-width: 900px) {

  /* Conteneur qui contient cours + communautés */
  .tevello-scope div:has(> .courses-title):has(> .communities-title) {
    display: grid !important;
    grid-template-columns: 260px minmax(0, 1fr);
    grid-template-areas:
      "search search"
      "community-title course-title"
      "communities courses";
    column-gap: 40px;
    align-items: start;
  }

  /* Recherche */
  .tevello-scope .search-courses-communities {
    grid-area: search;
  }

  /* Titre communautés */
  .tevello-scope .communities-title {
    grid-area: community-title;
    font-size: 24px !important;
    line-height: 1.2 !important;
    margin-top: 20px !important;
    margin-bottom: 18px !important;
    text-align: left !important;
  }

  /* Communautés à gauche */
  .tevello-scope .communities {
    grid-area: communities;
    display: flex !important;
    flex-direction: column !important;
    gap: 18px !important;
    margin: 0 !important;
    width: 100% !important;
  }

  /* Réduction des cartes communautés */
  .tevello-scope .communities > * {
    width: 100% !important;
    max-width: 260px !important;
  }

  /* Images des communautés plus petites */
  .tevello-scope .communities img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
  }

  /* Titre des formations */
  .tevello-scope .courses-title {
    grid-area: course-title;
    margin-top: 20px !important;
  }

  /* Formations conservées dans la grande zone centrale */
  .tevello-scope .courses {
    grid-area: courses;
    width: 100% !important;
    margin: 0 !important;
  }
}