/* --- LOADER ANIMÉ --- */
.lcf-spinner-wrapper {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: none; 
    justify-content: center;
    align-items: flex-start;
    padding-top: 100px;
    z-index: 10;
}

.lcf-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(230, 92, 0, 0.2); 
    border-left-color: #E65C00; 
    border-radius: 50%;
    animation: lcf-spin 1s linear infinite;
}

@keyframes lcf-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#lcf-course-grid {
    transition: opacity 0.3s ease;
}

/* --- VUE LISTE --- */
.course-grid.view-list {
  display: flex;
  flex-direction: column;
}

.course-grid.view-list .course-card {
  display: flex;
  flex-direction: row;
  max-width: 100%;
}

.course-grid.view-list .course-thumb {
  width: 250px;
  height: auto;
  border-right: 1.5px solid #DDDDDD;
}

.course-grid.view-list .course-body {
  flex: 1;
}

/* --- PAGINATION (Désactivée) --- */
.pg-btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f9f9f9;
}

/* Responsive vue liste */
@media (max-width: 768px) {
  .course-grid.view-list .course-card { flex-direction: column; }
  .course-grid.view-list .course-thumb { width: 100%; height: 180px; border-right: none; }
}