.tj-title-hello {
  text-align: center;
  margin-bottom: 1.5rem;
}

.tj-title-hello h2 {
  font-weight: 700;
}

.tj-title-hello a {
  text-decoration: underline !important;
  color: var(--e-global-color-primary);
}

/* === FILTRES === */
.tj-filters-wrapper {
    margin-bottom: 2rem;
}

.tj-filters {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    padding: 1.5rem;
}

.tj-filter-group {
    /*flex: 1;
    min-width: 200px;*/
    text-align: center;
}

.tj-filter-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #333;
}

.tj-filter-select:focus {
    outline: none;
    border-color: var(--e-global-color-primary );
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.tj-filter-select[multiple] {
    min-height: 45px;
}

.tj-multiselect {
    position: relative;
}

/* Toggle select Safari */
button.tj-multiselect-toggle, .tj-filter-select {
    width: fit-content;
    padding: 10px 38px 10px 12px;
    border: none;
    color: inherit;
    font-weight: 700;
    font-family: "achemost", sans-serif;
    background: transparent;
    cursor: pointer;
    text-align: center;
    position: relative;
}

button.tj-multiselect-toggle:hover {
    background-color: transparent;
    color: inherit;
}

/* Flèche */
button.tj-multiselect-toggle::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    width: 6px;
    height: 6px;
    border-right: 2px solid #555;
    border-bottom: 2px solid #555;
    transform: translateY(-50%) rotate(45deg);
    transition: transform 0.2s ease;
}

/* Flèche ouverte */
.tj-multiselect.open .tj-multiselect-toggle::after {
    transform: translateY(-50%) rotate(-135deg);
}

.tj-multiselect-dropdown {
    display: none;
    position: absolute;
    z-index: 1000;
    width: 100%;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    max-height: 260px;
    overflow-y: auto;
    padding: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.tj-multiselect.open .tj-multiselect-dropdown {
    display: block;
}

.tj-multiselect-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 4px;
    cursor: pointer;
    border-radius: 4px;
}

.tj-multiselect-option:hover {
    background: #f5f5f5;
}

.tj-multiselect-option input {
    cursor: pointer;
}

/* === FILTRES ACTIFS === */
.tj-filters-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tj-active-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1rem;
    background: white;
}

.tj-results-count {
    color: #333;
    margin-right: 0.5rem;
}

.tj-active-filters-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tj-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    background: var(--e-global-color-primary);
    color: white;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.tj-remove-filter {
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.tj-remove-filter:hover {
    opacity: 1;
}

[type=button].tj-reset-filters-btn {
  background: var(--e-global-color-secondary);
  color: #fff;
  border: none;
  border-radius: 0.5em;
}

/* === LOADER === */
.tj-loader {
    text-align: center;
    padding: 3rem;
    font-size: 1.1rem;
    color: #666;
}

.tj-loader::after {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-left: 10px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--e-global-color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.tj-no-results,
.tj-error {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-size: 1.1rem;
}

.tj-error {
    color: #dc3545;
}

/* === GRILLE DE FORMATIONS === */
.tj-formations-grid {
  display: grid;
  gap: 24px;
}

/* 2 colonnes */
.tj-formations-grid.cols-2 {
  grid-template-columns: repeat(2, minmax(320px, 1fr));
}

/* 3 colonnes (rappel / référence) */
.tj-formations-grid.cols-3 {
  grid-template-columns: repeat(3, minmax(260px, 1fr));
}

/* 4 colonnes */
.tj-formations-grid.cols-4 {
  grid-template-columns: repeat(4, minmax(220px, 1fr));
}

/* 5 colonnes */
.tj-formations-grid.cols-5 {
  grid-template-columns: repeat(5, minmax(190px, 1fr));
}

.tj-formation-card {
  border: 1px solid #ddd;
  position: relative;
  overflow: hidden;
  background: #fff;
}

.tj-formation-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.tj-card-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tj-summary {
  height: 180px;
  display: flex;
  align-items: flex-end;
  position: relative;
}

.tj-card-inner .tj-summary, .tj-card-inner .tj-infos {
    padding: 20px 20px 10px;
}

.tj-bg-image {
  text-align: center;
  margin: 0 auto;
  position: absolute;
  bottom: 20%;
  opacity: 0.1;
  pointer-events: none;
}

.tj-formation-card:hover .tj-bg-image {
  filter: grayscale(100%) sepia(25%) hue-rotate(285deg) saturate(1400%) brightness(102%) contrast(98%);
  opacity: 0.13;
}

.tj-title {
  font-family: "Kumbh Sans", Sans-serif;
    font-size: 15px;
    font-weight: 300;
    line-height: 6px;
    text-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
    color: #2C292A;
  margin-bottom: 12px;
}

.tj-category {
  position: absolute;
  top: 12px;
  right: 12px;
  color: #fff;
  font-size: 11px;
  padding: 5px 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.tj-formation-card:hover {
  border-color: var(--e-global-color-primary);
}

.tj-infos {
    display: grid;
    align-content: start;
    align-items: initial;
    grid-auto-flow: row;
    grid-template-columns: repeat(1, 1fr);
    grid-template-rows: repeat(2, 1fr);
    justify-content: start;
    background-color: #F2F2F2;
    border-top: 1px solid rgb(218, 211, 211);
}

.tj-formation-card:hover .tj-infos {
  background-color: rgba(163, 141, 160, 0.13);
}

.tj-infos-top {
    display: flex;
    flex-direction: column;
    padding-block-end: 10px;
    padding-block-start: 10px;
    text-align: initial;
    font-size: 13px;
}

.tj-date {
    font-size: 10px;
    font-weight: 300;
    margin-bottom: 0;
}

.tj-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #2C292A;
  font-weight: 500;
  font-size: 1em;
  margin-top: 10px;
}

.tj-excerpt {
  margin-bottom: 0;
  line-height: 1.5;
}

.tj-status {
    background: #fff;
    padding: .5em 1em;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .tj-formations-grid.cols-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .tj-filters {
        flex-direction: column;
    }
    
    .tj-filter-group {
        min-width: 100%;
    }
    
    .tj-formations-grid.cols-3,
    .tj-formations-grid.cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tj-active-filters {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .tj-formations-grid.cols-2,
    .tj-formations-grid.cols-3,
    .tj-formations-grid.cols-4 {
        grid-template-columns: 1fr;
    }
}