/**
 * Catalogue public — page listing (filtres + grille), pas landing
 * Scope : .lf-courses-catalog
 */
.lf-courses-catalog {
  --lf-cat-accent: #a435f0;
  --lf-cat-accent-hover: #8710d8;
  --lf-cat-accent-dark: #7c3aed;
  --lf-cat-accent-soft: #faf5ff;
  --lf-cat-accent-border: #e9d5ff;
  --lf-cat-accent-muted: #f3e8ff;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: #1c1d1f;
  background: #f7f8fa;
  padding: 16px 0 48px;
}
.lf-courses-catalog > .container {
  max-width: 1280px;
}

/* ── En-tête panel catalogue OF (blanc, style LP) ── */
.lf-courses-catalog .lf-courses-header--panel {
  margin-bottom: 18px;
}
.lf-courses-catalog .lf-courses-breadcrumb {
  font-size: 12px;
  color: #6a6f73;
  margin-bottom: 10px;
}
.lf-courses-catalog .lf-courses-breadcrumb a {
  color: #6a6f73;
  text-decoration: none;
}
.lf-courses-catalog .lf-courses-breadcrumb a:hover {
  color: var(--lf-cat-accent);
  text-decoration: underline;
}
.lf-courses-catalog .lf-courses-breadcrumb span[aria-hidden] {
  margin: 0 6px;
  color: #d1d5db;
}
.lf-courses-catalog .lf-courses-header-panel {
  position: relative;
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 16px;
  padding: 20px 22px 16px;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}
.lf-courses-catalog .lf-courses-header-panel-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #a435f0 0%, #7c3aed 50%, #a435f0 100%);
}
.lf-courses-catalog .lf-courses-header-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 20px 28px;
  align-items: start;
}
.lf-courses-catalog .lf-courses-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--lf-cat-accent-soft);
  border: 1px solid var(--lf-cat-accent-border);
  color: var(--lf-cat-accent-dark);
  font-size: 10px;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.lf-courses-catalog .lf-courses-eyebrow-dot {
  width: 6px;
  height: 6px;
  background: var(--lf-cat-accent);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(164, 53, 240, 0.2);
  animation: lf-courses-pulse 2s infinite;
}
@keyframes lf-courses-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.65; }
}
.lf-courses-catalog .lf-courses-header-main h1 {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 900;
  color: #1c1d1f;
  margin: 0 0 6px;
  line-height: 1.2;
}
.lf-courses-catalog .lf-courses-lead {
  font-size: 14px;
  line-height: 1.55;
  color: #6a6f73;
  margin: 0 0 14px;
  max-width: 520px;
}
.lf-courses-catalog .lf-courses-wins {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.lf-courses-catalog .lf-courses-win {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 140px;
  min-width: 0;
  padding: 10px 12px;
  background: linear-gradient(135deg, #f9fafb 0%, #fff 100%);
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.lf-courses-catalog .lf-courses-win:hover {
  border-color: var(--lf-cat-accent-border);
  box-shadow: 0 4px 14px rgba(164, 53, 240, 0.08);
}
.lf-courses-catalog .lf-courses-win-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #a435f0, #7c3aed);
  color: #fff;
  font-size: 14px;
}
.lf-courses-catalog .lf-courses-win-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.lf-courses-catalog .lf-courses-win-text strong {
  font-size: 12px;
  font-weight: 800;
  color: #1c1d1f;
  line-height: 1.2;
}
.lf-courses-catalog .lf-courses-win-text span {
  font-size: 11px;
  color: #6a6f73;
  line-height: 1.2;
}

/* Panneau recherche + stats */
.lf-courses-catalog .lf-courses-search-panel {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
}
.lf-courses-catalog .lf-courses-search-panel-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 8px;
}
.lf-courses-catalog .lf-courses-search-panel-label i {
  color: var(--lf-cat-accent);
  font-size: 11px;
}
.lf-courses-catalog .lf-courses-search-inline {
  display: flex;
  gap: 6px;
}
.lf-courses-catalog .lf-courses-search-field {
  flex: 1;
}
.lf-courses-catalog .lf-courses-search-field input {
  width: 100%;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  background: #fff;
  color: #1c1d1f;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.lf-courses-catalog .lf-courses-search-field input:focus {
  outline: none;
  border-color: var(--lf-cat-accent);
  box-shadow: 0 0 0 3px rgba(164, 53, 240, 0.1);
}
.lf-courses-catalog .lf-courses-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border: none;
  background: linear-gradient(135deg, #a435f0, #7c3aed);
  color: #fff;
  font-size: 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 2px 10px rgba(164, 53, 240, 0.25);
}
.lf-courses-catalog .lf-courses-search-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(164, 53, 240, 0.35);
}
.lf-courses-catalog .lf-courses-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.lf-courses-catalog .lf-courses-mini-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 6px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  text-align: center;
}
.lf-courses-catalog .lf-courses-mini-stat--highlight {
  background: var(--lf-cat-accent-soft);
  border-color: var(--lf-cat-accent-border);
}
.lf-courses-catalog .lf-courses-mini-stat-val {
  font-size: 18px;
  font-weight: 900;
  color: #1c1d1f;
  line-height: 1;
}
.lf-courses-catalog .lf-courses-mini-stat--highlight .lf-courses-mini-stat-val {
  color: var(--lf-cat-accent-dark);
}
.lf-courses-catalog .lf-courses-mini-stat-lbl {
  font-size: 10px;
  font-weight: 700;
  color: #6a6f73;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Pied de panel */
.lf-courses-catalog .lf-courses-header-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed #e5e7eb;
}
.lf-courses-catalog .lf-courses-trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.lf-courses-catalog .lf-courses-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #4b5563;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 5px 12px;
}
.lf-courses-catalog .lf-courses-trust-pill i {
  color: #10b981;
  font-size: 12px;
}
.lf-courses-catalog .lf-courses-credits-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 999px;
  padding: 5px 12px;
}
.lf-courses-catalog .lf-courses-credits-pill--low {
  color: #c2410c;
  background: #fff7ed;
  border-color: #fed7aa;
}
.lf-courses-catalog .lf-courses-foot-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--lf-cat-accent-dark);
  text-decoration: none;
}
.lf-courses-catalog .lf-courses-foot-cta:hover {
  color: var(--lf-cat-accent);
  text-decoration: none;
}
.lf-courses-catalog .lf-courses-foot-cta i {
  font-size: 10px;
}

@media (max-width: 991px) {
  .lf-courses-catalog .lf-courses-header-grid {
    grid-template-columns: 1fr;
  }
  .lf-courses-catalog .lf-courses-header-side {
    order: -1;
  }
}
@media (max-width: 767px) {
  .lf-courses-catalog .lf-courses-header-panel {
    padding: 16px 16px 14px;
  }
  .lf-courses-catalog .lf-courses-wins {
    flex-direction: column;
  }
  .lf-courses-catalog .lf-courses-win {
    flex: 1 1 auto;
  }
}

/* Legacy compact header */
.lf-courses-catalog .lf-courses-header--compact {
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e5e7eb;
}

/* Legacy header (fallback) */
.lf-courses-catalog .lf-courses-header:not(.lf-courses-header--lp) {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
}
.lf-courses-catalog .lf-courses-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
}
.lf-courses-catalog .lf-courses-header-text h1 {
  font-size: 22px;
  font-weight: 800;
  color: #1c1d1f;
  margin: 0 0 4px;
  line-height: 1.3;
}
.lf-courses-catalog .lf-courses-count {
  font-size: 13px;
  color: #6a6f73;
  margin: 0;
}
.lf-courses-catalog .lf-courses-count strong {
  color: #1c1d1f;
  font-weight: 700;
}
.lf-courses-catalog .lf-courses-count-sep {
  margin: 0 4px;
  color: #d1d5db;
}
.lf-courses-catalog .lf-courses-header:not(.lf-courses-header--lp) .lf-courses-search-inline {
  display: flex;
  gap: 8px;
  flex: 1;
  min-width: 260px;
  max-width: 420px;
}
.lf-courses-catalog .lf-courses-header:not(.lf-courses-header--lp) .lf-courses-search-field {
  position: relative;
  flex: 1;
}
.lf-courses-catalog .lf-courses-header:not(.lf-courses-header--lp) .lf-courses-search-field > i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 14px;
  pointer-events: none;
}
.lf-courses-catalog .lf-courses-header:not(.lf-courses-header--lp) .lf-courses-search-field input {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 9px 12px 9px 36px;
  font-size: 14px;
  background: #fff;
  color: #1c1d1f;
}
.lf-courses-catalog .lf-courses-header:not(.lf-courses-header--lp) .lf-courses-search-field input:focus {
  outline: none;
  border-color: #a435f0;
  box-shadow: 0 0 0 2px rgba(164, 53, 240, 0.15);
}
.lf-courses-catalog .lf-courses-header:not(.lf-courses-header--lp) .lf-courses-search-btn {
  border: none;
  background: #a435f0;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  padding: 9px 18px;
  border-radius: 8px;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s;
  width: auto;
  box-shadow: none;
}
.lf-courses-catalog .lf-courses-header:not(.lf-courses-header--lp) .lf-courses-search-btn:hover {
  background: #8710d8;
  transform: none;
  box-shadow: none;
}
.lf-courses-catalog .lf-courses-reset-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  background: #a435f0;
  color: #fff !important;
  border-radius: 8px;
  text-decoration: none !important;
}
.lf-courses-catalog .lf-courses-reset-btn:hover {
  background: #8710d8;
  color: #fff !important;
}
@media (max-width: 767px) {
  .lf-courses-catalog .lf-courses-header:not(.lf-courses-header--lp) .lf-courses-search-inline {
    max-width: 100%;
    width: 100%;
  }
}

/* Grille principale : filtres + résultats */
.lf-courses-catalog .lf-courses-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 991px) {
  .lf-courses-catalog .lf-courses-layout {
    grid-template-columns: 1fr;
  }
}

/* Sidebar filtres */
.lf-courses-catalog .lf-courses-filters {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 96px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.lf-courses-catalog .lf-filter-form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: inherit;
}
.lf-courses-catalog .lf-filter-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px 12px;
  border-bottom: 1px solid #f3f4f6;
  flex-shrink: 0;
}
.lf-courses-catalog .lf-filter-panel-title {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: #1c1d1f;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.lf-courses-catalog .lf-filter-panel-title i {
  color: #7c3aed;
  font-size: 13px;
}
.lf-courses-catalog .lf-filter-reset {
  font-size: 11px;
  font-weight: 700;
  color: #7c3aed;
  text-decoration: none;
  white-space: nowrap;
}
.lf-courses-catalog .lf-filter-reset:hover {
  color: #5b21b6;
  text-decoration: underline;
}
.lf-courses-catalog .lf-filter-panel-body {
  padding: 12px 14px 16px;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
}
.lf-courses-catalog .lf-filter-block h3,
.lf-courses-catalog .lf-courses-filters h3 {
  font-size: 10px;
  font-weight: 800;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 10px;
}
.lf-courses-catalog .lf-filter-cat-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  margin-bottom: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fafafa;
}
.lf-courses-catalog .lf-filter-cat-search i {
  color: #9ca3af;
  font-size: 12px;
  flex-shrink: 0;
}
.lf-courses-catalog .lf-filter-cat-search input {
  border: 0;
  background: transparent;
  width: 100%;
  font-size: 12px;
  color: #374151;
  outline: none;
  padding: 0;
}
.lf-courses-catalog .lf-filter-cat-search input::placeholder {
  color: #9ca3af;
}
.lf-courses-catalog .lf-filter-cat-tree {
  max-height: min(52vh, 420px);
  overflow-y: auto;
  padding-right: 2px;
  margin-bottom: 4px;
}
.lf-courses-catalog .lf-filter-cat-tree::-webkit-scrollbar,
.lf-courses-catalog .lf-filter-panel-body::-webkit-scrollbar {
  width: 5px;
}
.lf-courses-catalog .lf-filter-cat-tree::-webkit-scrollbar-thumb,
.lf-courses-catalog .lf-filter-panel-body::-webkit-scrollbar-thumb {
  background: #5eead4;
  border-radius: 4px;
}
.lf-courses-catalog .lf-filter-cat-group {
  border: 1px solid #f3f4f6;
  border-radius: 8px;
  margin-bottom: 6px;
  background: #fcfcfd;
}
.lf-courses-catalog .lf-filter-cat-group[hidden],
.lf-courses-catalog .lf-filter-item[hidden] {
  display: none !important;
}
.lf-courses-catalog .lf-filter-cat-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  cursor: pointer;
  list-style: none;
  font-size: 12px;
  font-weight: 700;
  color: #374151;
  user-select: none;
}
.lf-courses-catalog .lf-filter-cat-summary::-webkit-details-marker {
  display: none;
}
.lf-courses-catalog .lf-filter-cat-summary::before {
  content: '';
  width: 6px;
  height: 6px;
  border-right: 2px solid #9ca3af;
  border-bottom: 2px solid #9ca3af;
  transform: rotate(-45deg);
  transition: transform 0.15s ease;
  flex-shrink: 0;
  margin-right: 2px;
}
.lf-courses-catalog .lf-filter-cat-group[open] > .lf-filter-cat-summary::before {
  transform: rotate(45deg);
}
.lf-courses-catalog .lf-filter-cat-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lf-courses-catalog .lf-filter-cat-body {
  padding: 2px 8px 8px;
  border-top: 1px solid #f3f4f6;
}
.lf-courses-catalog .lf-filter-sub-list {
  list-style: none;
  margin: 0;
  padding: 0 0 0 8px;
  border-left: 2px solid #ede9fe;
}
.lf-courses-catalog .lf-filter-item--all {
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f3f4f6;
}
.lf-courses-catalog .lf-filter-item--parent .lf-filter-label {
  font-weight: 600;
  color: #5b21b6;
}
.lf-courses-catalog .lf-filter-section {
  border-top: 1px solid #f3f4f6;
  margin-top: 8px;
  padding-top: 4px;
}
.lf-courses-catalog .lf-filter-section-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 2px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  color: #374151;
  list-style: none;
  user-select: none;
}
.lf-courses-catalog .lf-filter-section-summary::-webkit-details-marker {
  display: none;
}
.lf-courses-catalog .lf-filter-section-summary::after {
  content: '+';
  font-size: 14px;
  font-weight: 400;
  color: #9ca3af;
  line-height: 1;
}
.lf-courses-catalog .lf-filter-section[open] > .lf-filter-section-summary::after {
  content: '−';
}
.lf-courses-catalog .lf-filter-section-body {
  padding: 0 2px 10px;
}
.lf-courses-catalog .lf-filter-lang-list {
  max-height: 180px;
  overflow-y: auto;
}
.lf-courses-catalog .lf-courses-filters .form-check {
  margin-bottom: 6px;
  padding-left: 1.55em;
}
.lf-courses-catalog .lf-courses-filters .form-check:last-child {
  margin-bottom: 0;
}
.lf-courses-catalog .lf-courses-filters .form-check-input {
  border-color: #5eead4;
  cursor: pointer;
  margin-top: 0.2em;
}
.lf-courses-catalog .lf-courses-filters .form-check-input:checked {
  background-color: #7c3aed;
  border-color: #7c3aed;
}
.lf-courses-catalog .lf-courses-filters .form-check-label {
  cursor: pointer;
  font-size: 12px;
  color: #374151;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  line-height: 1.35;
}
.lf-courses-catalog .lf-filter-label {
  flex: 1 1 auto;
  min-width: 0;
}
.lf-courses-catalog .lf-filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 800;
  color: #5b21b6;
  background: #ecfdf5;
  border: 1px solid #e9d5ff;
  flex-shrink: 0;
}
.lf-courses-catalog .lf-filter-count--muted {
  color: #6b7280;
  background: #f3f4f6;
  border-color: #e5e7eb;
}
.lf-courses-catalog .lf-courses-filters .form-check-input:checked + .form-check-label .lf-filter-label {
  color: #5b21b6;
  font-weight: 700;
}
.lf-courses-catalog .lf-filter-rating-list .form-check {
  margin-bottom: 4px;
}
.lf-courses-catalog .lf-courses-filters .show-more {
  display: none;
}

/* Toolbar résultats */
.lf-courses-catalog .lf-courses-toolbar {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.lf-courses-catalog .lf-courses-toolbar .list-card-control {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
}
.lf-courses-catalog .lf-courses-toolbar .list-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1.5px solid #e9d5ff;
  background: #faf5ff;
  color: #7c3aed;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.lf-courses-catalog .lf-courses-toolbar .list-btn:hover,
.lf-courses-catalog .lf-courses-toolbar .list-btn.active {
  background: linear-gradient(135deg, #a435f0, #7c3aed);
  color: #fff;
  border-color: transparent;
}
.lf-courses-catalog .lf-courses-toolbar .text-14px {
  font-size: 13px;
  color: #6a6f73;
  margin: 0;
}
.lf-courses-catalog .lf-courses-toolbar .select-control {
  border: 1.5px solid #e9d5ff;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  min-width: 180px;
}
.lf-courses-catalog .lf-courses-banner {
  font-size: 13px;
  background: #faf5ff;
  border: 1px solid #e9d5ff;
  color: #4c1d95;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 12px;
}
.lf-courses-catalog .lf-courses-banner--inline {
  margin-bottom: 12px;
}
.lf-courses-catalog .lf-courses-banner a {
  color: #7c3aed;
  font-weight: 600;
}

/* Grille catalogue — 3 formations par ligne (lg), 2 (md), 1 (mobile) */
.lf-courses-catalog .lf-courses-row,
.lf-courses-catalog .courses-card .row {
  --bs-gutter-x: 1.25rem;
  --bs-gutter-y: 1.25rem;
}
.lf-courses-catalog .lf-course-col {
  display: flex;
}
.lf-courses-catalog .lf-course-col > .courses-card-body {
  width: 100%;
}
.lf-courses-catalog .grid-view-body .courses-card-body,
.lf-courses-catalog .courses-list-view-body .courses-card-body {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none !important;
  color: inherit;
  transition: box-shadow 0.2s, border-color 0.2s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.lf-courses-catalog .grid-view-body .courses-card-body:hover,
.lf-courses-catalog .courses-list-view-body .courses-card-body:hover {
  border-color: #c4b5fd;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.lf-courses-catalog .grid-view-body .courses-card-image,
.lf-courses-catalog .courses-list-view-body .courses-card-image {
  position: relative;
  overflow: hidden;
  /* Aligné sur la fiche cours (.lfcd-preview) */
  aspect-ratio: 16 / 10;
  max-height: none;
  background: linear-gradient(135deg, #faf5ff, #e9d5ff);
}
.lf-courses-catalog .grid-view-body .courses-card-image img,
.lf-courses-catalog .courses-list-view-body .courses-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Annule l’ancien style liste pleine largeur du thème */
.lf-courses-catalog .courses-list-view-card {
  display: block;
}
.lf-courses-catalog .courses-list-view-card .courses-list-view-card-body {
  display: block;
  width: auto;
}
.lf-courses-catalog .courses-card-image-text {
  display: none !important;
}
.lf-courses-catalog .lf-course-card-level {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1e3a5f;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  flex-shrink: 0;
}
.lf-courses-catalog .courses-icon {
  top: 10px;
  right: 10px;
}
.lf-courses-catalog .courses-text {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 14px 16px 16px;
}
.lf-courses-catalog .lf-course-card-title,
.lf-courses-catalog .courses-text h5.lf-course-card-title {
  font-size: 14px;
  font-weight: 800;
  color: #1c1d1f;
  line-height: 1.35;
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lf-courses-catalog .lf-course-card-head-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-height: 22px;
  margin-bottom: 8px;
}
.lf-courses-catalog .lf-course-card-cat {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #a435f0;
  background: #ecfdf5;
  border: 1px solid #e9d5ff;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lf-courses-catalog .lf-course-card-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #6a6f73;
  margin-left: auto;
}
.lf-courses-catalog .lf-course-card-rating .fa-star.filled {
  color: #f59e0b;
  font-size: 10px;
}
.lf-courses-catalog .lf-course-card-rating strong {
  color: #1c1d1f;
  font-weight: 800;
}
.lf-courses-catalog .lf-course-card-rating-count {
  color: #9ca3af;
}
.lf-courses-catalog .lf-course-card-desc,
.lf-courses-catalog .courses-text .ellipsis-line-2.lf-course-card-desc {
  font-size: 12px;
  color: #6a6f73;
  line-height: 1.45;
  margin-bottom: 10px;
  flex: 1 1 auto;
}
.lf-courses-catalog .courses-price-border,
.lf-courses-catalog .lf-course-card-footer-wrap {
  border-top: 1px solid #f3f4f6;
  padding-top: 10px;
  margin-top: auto;
}
.lf-courses-catalog .courses-card-body .courses-text .courses-price,
.lf-courses-catalog .lf-course-card-footer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 8px;
  margin-top: 0 !important;
}
.lf-courses-catalog .lf-course-card-footer .lf-course-credits {
  width: 100%;
}
/* Crédits, durée & leçons — pastilles */
.lf-courses-catalog .lf-course-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  width: 100%;
  margin-left: 0;
}
.lf-courses-catalog .lf-course-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  border: 1px solid transparent;
}
.lf-courses-catalog .lf-course-meta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  flex-shrink: 0;
  font-size: 10px;
}
.lf-courses-catalog .lf-course-meta-label {
  letter-spacing: 0.01em;
}
.lf-courses-catalog .lf-course-meta-pill--duration {
  background: #eff6ff;
  color: #1e40af;
  border-color: #bfdbfe;
}
.lf-courses-catalog .lf-course-meta-pill--duration .lf-course-meta-icon {
  background: #dbeafe;
  color: #2563eb;
}
.lf-courses-catalog .lf-course-meta-pill--lessons {
  background: #faf5ff;
  color: #a435f0;
  border-color: #e9d5ff;
}
.lf-courses-catalog .lf-course-meta-pill--lessons .lf-course-meta-icon {
  background: #e9d5ff;
  color: #7c3aed;
}
.lf-courses-catalog .lf-course-meta-pill--credits {
  background: linear-gradient(135deg, #faf5ff 0%, #f5f3ff 100%);
  color: #5b21b6;
  border-color: #ddd6fe;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 12px;
  width: 100%;
  justify-content: flex-start;
  box-sizing: border-box;
}
.lf-courses-catalog .lf-course-meta-pill--credits .lf-course-meta-icon {
  background: #ede9fe;
  color: #d97706;
  width: 20px;
  height: 20px;
  font-size: 11px;
}
.lf-courses-catalog .lf-course-meta-pill--free {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 12px;
  width: 100%;
  justify-content: flex-start;
  box-sizing: border-box;
}
.lf-courses-catalog .lf-course-meta-pill--free .lf-course-meta-icon {
  background: #d1fae5;
  color: #059669;
}
.lf-courses-catalog .lf-course-meta-pill--duration,
.lf-courses-catalog .lf-course-meta-pill--lessons {
  flex: 1 1 calc(50% - 3px);
  min-width: 0;
  justify-content: flex-start;
  box-sizing: border-box;
}
.lf-courses-catalog .lf-course-meta-pill--duration .lf-course-meta-label,
.lf-courses-catalog .lf-course-meta-pill--lessons .lf-course-meta-label {
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 575px) {
  .lf-courses-catalog .lf-course-meta-pill--duration,
  .lf-courses-catalog .lf-course-meta-pill--lessons {
    flex: 1 1 100%;
  }
}
.lf-courses-catalog .courses-price-right {
  display: none;
}

/* Favoris carte catalogue */
.lf-courses-catalog .lf-course-favorite-wrap {
  z-index: 3;
}
.lf-courses-catalog .lf-course-favorite-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #9ca3af;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease;
}
.lf-courses-catalog .lf-course-favorite-wrap.red-heart .lf-course-favorite-btn,
.lf-courses-catalog .lf-course-favorite-btn:hover {
  color: #dc2626;
}
.lf-courses-catalog .lf-course-favorite-btn:focus {
  outline: 2px solid rgba(164, 53, 240, 0.35);
  outline-offset: 2px;
}

/* Pagination catalogue */
.lf-courses-catalog .lf-courses-pagination {
  margin-top: 20px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.lf-courses-catalog .lf-courses-pagination-info {
  margin: 0 0 12px;
  text-align: center;
  font-size: 12px;
  color: #6b7280;
}
.lf-courses-catalog .lf-courses-pagination-info strong {
  color: #1c1d1f;
  font-weight: 800;
}
.lf-courses-catalog .lf-courses-pagination-sep {
  margin: 0 4px;
  color: #d1d5db;
}
.lf-courses-catalog .lf-courses-pagination-nav,
.lf-courses-catalog .lf-courses-pagination .pagenation-items {
  display: flex;
  justify-content: center;
  padding-bottom: 0 !important;
  background: transparent !important;
}
.lf-courses-catalog .lf-pagination-list,
.lf-courses-catalog .pagenation-items .pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.lf-courses-catalog .pagenation-items .page-item {
  margin: 0;
}
.lf-courses-catalog .pagenation-items .page-item > a,
.lf-courses-catalog .pagenation-items .page-link {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 36px;
  height: 36px;
  padding: 0 11px !important;
  margin-right: 0 !important;
  border-radius: 9px !important;
  border: 1.5px solid #e9d5ff !important;
  color: #5b21b6 !important;
  background: #fff !important;
  font-weight: 600;
  font-size: 13px;
  line-height: 1;
  opacity: 1 !important;
  box-shadow: none !important;
  text-decoration: none;
}
.lf-courses-catalog .pagenation-items .lf-pag-edge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
}
.lf-courses-catalog .pagenation-items .lf-pag-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.lf-courses-catalog .pagenation-items .page-item:first-child .page-link,
.lf-courses-catalog .pagenation-items .page-item:last-child .page-link {
  border-radius: 9px !important;
  border: 1.5px solid #a7f3d0 !important;
  background: #faf5ff !important;
  color: #a435f0 !important;
  min-width: auto;
  padding: 0 12px !important;
}
.lf-courses-catalog .pagenation-items .page-item:not(.active) > a:hover,
.lf-courses-catalog .pagenation-items .page-item:not(.active) .page-link:hover {
  background: #ecfdf5 !important;
  border-color: #c4b5fd !important;
  color: #5b21b6 !important;
}
.lf-courses-catalog .pagenation-items .page-item.active .page-link,
.lf-courses-catalog .pagenation-items .page-item.active.disabled .page-link,
.lf-courses-catalog .pagenation-items .page-item.active.disabled > span {
  background: linear-gradient(135deg, #a435f0, #7c3aed) !important;
  border-color: #7c3aed !important;
  color: #fff !important;
  opacity: 1 !important;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(164, 53, 240, 0.28);
}
.lf-courses-catalog .pagenation-items .page-item.active.disabled:not(:has(.page-link)) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 11px;
  border-radius: 9px;
  background: linear-gradient(135deg, #a435f0, #7c3aed) !important;
  border: 1.5px solid #7c3aed !important;
  color: #fff !important;
  font-weight: 700;
  font-size: 13px;
}
.lf-courses-catalog .pagenation-items .page-item.disabled:not(.active) > a,
.lf-courses-catalog .pagenation-items .page-item.disabled:not(.active) .page-link {
  color: #9ca3af !important;
  background: #f9fafb !important;
  border-color: #e5e7eb !important;
  pointer-events: none;
}
.lf-courses-catalog .pagenation-items .page-item > a:focus,
.lf-courses-catalog .pagenation-items .page-link:focus {
  box-shadow: 0 0 0 3px rgba(164, 53, 240, 0.2) !important;
  outline: none;
}
@media (max-width: 575px) {
  .lf-courses-catalog .pagenation-items .lf-pag-edge span:not(.lf-pag-sr) {
    display: none;
  }
  .lf-courses-catalog .pagenation-items .page-item:first-child .page-link,
  .lf-courses-catalog .pagenation-items .page-item:last-child .page-link {
    min-width: 36px;
    padding: 0 10px !important;
  }
}

/* Vide */
.lf-courses-catalog .not-found {
  background: #fff;
  border: 1.5px dashed #e9d5ff;
  border-radius: 16px;
  padding: 48px 24px;
}
.lf-courses-catalog .not-found h5 {
  font-weight: 800;
  color: #1c1d1f;
}
.lf-courses-catalog .not-found p {
  color: #6a6f73;
}

/* Masquer ancien breadcrumb si présent */
.lf-courses-catalog ~ .learnify-header-banner,
section:has(.learnify-header-banner) {
  display: none;
}

/* C8-P2 — chips parcours */
.lf-courses-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  padding: 0 0 4px;
}
.lf-courses-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 7px 14px;
  text-decoration: none;
  transition: all 0.15s ease;
}
.lf-courses-chip i {
  font-size: 12px;
  color: #9ca3af;
}
.lf-courses-chip:hover {
  border-color: #c4b5fd;
  color: #6b21a8;
  background: #faf5ff;
  text-decoration: none;
}
.lf-courses-chip.is-active {
  background: #a435f0;
  border-color: #a435f0;
  color: #fff;
}
.lf-courses-chip.is-active i {
  color: rgba(255, 255, 255, 0.85);
}
.lf-courses-catalog .grid-view-body .courses-card-body {
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.lf-courses-catalog .grid-view-body .courses-card-body:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}
