/* Liste formations */

.tf-brochure {
  background: var(--cbc-navy, #002855);
  color: #fff;
  padding: 1.15rem 0;
}
.tf-brochure-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.tf-brochure p {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
}
.tf-brochure a {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1.15rem;
  border: 1px solid #fff;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 0.9rem;
}
.tf-brochure a:hover {
  background: #fff;
  color: var(--cbc-navy, #002855) !important;
}

.tf-header {
  background: #fff;
  padding: 1.8rem 0 0.25rem;
}
.tf-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cbc-navy, #002855);
  margin-bottom: 0.35rem;
}
.tf-crumbs a {
  color: var(--cbc-navy, #002855) !important;
  text-decoration: none !important;
}
.tf-crumbs a:hover {
  color: var(--cbc-cyan, #0072ce) !important;
}
.tf-crumbs span:last-child {
  font-weight: 700;
}
.tf-header h1 {
  font-family: var(--cbc-sans, "Plus Jakarta Sans", sans-serif) !important;
  font-size: clamp(1.65rem, 3.2vw, 2.25rem) !important;
  font-weight: 600 !important;
  color: var(--cbc-navy, #002855) !important;
  letter-spacing: -0.02em;
  line-height: 1.2 !important;
  margin: 1.1rem 0 0 !important;
  max-width: 18ch;
}
.tf-header-lead {
  margin: 2rem 0 0;
  max-width: 42rem;
  color: var(--cbc-navy, #002855);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.65;
}

.tf-page {
  background: #fff;
  padding: 1rem 0 4.5rem;
}
.tf-layout {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  margin-top: 1.25rem;
}

.tf-filters {
  flex: 0 0 19rem;
  position: sticky;
  top: 1rem;
}
.tf-filters-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cbc-navy, #002855);
  margin: 0 0 0.85rem;
}
.tf-filter-search {
  position: relative;
  margin-bottom: 0.35rem;
}
.tf-filter-search input {
  width: 100%;
  height: 48px;
  border: 1px solid #c9c9c9;
  padding: 0 2.6rem 0 0.95rem;
  font-size: 0.92rem;
  color: var(--cbc-navy, #002855);
  font-family: inherit;
  border-radius: 0;
}
.tf-filter-search input::placeholder {
  font-style: italic;
  color: #7a8ea3;
}
.tf-filter-search input:focus {
  border-color: #0072ce;
  outline: 2px solid #0072ce;
}
.tf-filter-search button {
  position: absolute;
  right: 0;
  top: 0;
  width: 48px;
  height: 48px;
  border: 0;
  background: transparent;
  color: var(--cbc-navy, #002855);
  cursor: pointer;
}
.tf-filter {
  border-bottom: 1px solid rgba(0, 40, 85, 0.2);
}
.tf-filter > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  cursor: pointer;
  font-weight: 600;
  color: var(--cbc-navy, #002855);
  font-size: 0.98rem;
}
.tf-filter > summary::-webkit-details-marker {
  display: none;
}
.tf-filter > summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -6px;
  flex: 0 0 auto;
}
.tf-filter[open] > summary::after {
  transform: rotate(-135deg);
  margin-top: 4px;
}
.tf-filter-list {
  list-style: none;
  margin: 0 0 0.65rem;
  padding: 0;
}
.tf-filter-list a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0;
  color: var(--cbc-navy, #002855) !important;
  text-decoration: none !important;
  font-size: 0.92rem;
  line-height: 1.35;
  border-bottom: 1px solid rgba(0, 40, 85, 0.12);
}
.tf-filter-list a::before {
  content: "";
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: 3px;
  background: #fff;
}
.tf-filter-list a.is-active {
  font-weight: 700;
}
.tf-filter-list a.is-active::before {
  background: #fff;
  box-shadow: inset 0 0 0 2px #fff;
  background-image: linear-gradient(#002855, #002855);
  background-size: 7px 5px;
  background-repeat: no-repeat;
  background-position: center 3px;
  border-color: #002855;
}

.tf-main {
  flex: 1;
  min-width: 0;
}
.tf-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  margin-bottom: 1.35rem;
  flex-wrap: wrap;
}
.tf-count {
  margin-right: auto;
  font-size: 0.92rem;
  color: var(--cbc-muted-text, #3d5a73);
  font-weight: 600;
}
.tf-sort {
  height: 42px;
  border: 1px solid var(--cbc-navy, #002855);
  padding: 0 0.85rem;
  color: var(--cbc-navy, #002855);
  background: #fff;
  font-family: inherit;
  font-size: 0.88rem;
  border-radius: 0;
  text-transform: none;
}
.tf-sort:focus {
  outline: 2px solid #0072ce;
}

.tf-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem 1.15rem;
}
.tf-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none !important;
  color: inherit;
  background: #fff;
}
.tf-card-media {
  height: 200px;
  background: var(--cbc-muted, #f5f5f5);
  overflow: hidden;
}
.tf-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tf-card-info {
  background: #e1f6f7;
  padding: 2.9rem 1.45rem 1.8rem;
  min-height: 14.4rem;
}
.tf-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.1rem;
  margin-bottom: 1.5rem;
}
.tf-card-badge {
  display: inline-block;
  background: #002855;
  border: 1px solid #002855;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.45rem 0.5rem 0.35rem;
  line-height: 1;
}
.tf-card-badge--full {
  background: #ebebeb;
  border-color: #ebebeb;
  color: #002855;
}
.tf-card-info h2 {
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: var(--cbc-navy, #002855) !important;
  margin: 0 !important;
  line-height: 1.4 !important;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tf-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.6rem 1.45rem 2.4rem;
  box-shadow: 0 6px 6px rgba(0, 0, 0, 0.1);
  background: #fff;
}
.tf-card-duration {
  border: 1px solid #002855;
  color: #002855;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.55rem 0.55rem 0.3rem;
  width: fit-content;
  margin-bottom: 0.7rem;
}
.tf-card-desc {
  margin: 0 0 0.85rem;
  color: var(--cbc-navy, #002855);
  font-size: 0.92rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tf-card-more {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  color: #002855;
  font-weight: 700;
  font-size: 0.95rem;
}
.tf-card-more span {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.tf-card-price {
  font-weight: 700;
  color: #002855;
  font-size: 0.95rem;
  white-space: nowrap;
}

.tf-empty {
  padding: 2.5rem 1rem;
  color: var(--cbc-muted-text, #3d5a73);
}
.tf-empty a {
  color: var(--cbc-cyan, #0072ce) !important;
}

.tf-pager {
  margin-top: 2.5rem;
}
.tf-pager .pagination-wrap ul.pagination li a,
.tf-pager .pagination-wrap ul.pagination li span {
  box-shadow: none !important;
  backdrop-filter: none !important;
  border: 1px solid rgba(0, 40, 85, 0.2) !important;
  background: #fff !important;
  color: #002855 !important;
  min-width: 2.4rem;
  height: 2.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 !important;
  font-family: var(--cbc-sans, "Plus Jakarta Sans", sans-serif);
}
.tf-pager .pagination-wrap ul.pagination li.active a,
.tf-pager .pagination-wrap ul.pagination li a:hover {
  background: #002855 !important;
  border-color: #002855 !important;
  color: #fff !important;
}

.tf-advice {
  background: var(--cbc-navy, #002855);
  color: #fff;
  padding: 3.25rem 0;
}
.tf-advice-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.tf-advice h2 {
  font-family: var(--cbc-serif, "Source Serif 4", serif);
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
  font-weight: 600;
  color: #fff !important;
  margin: 0 0 0.45rem;
}
.tf-advice p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}
.tf-advice-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.9rem 1.35rem;
  border: 1px solid #fff;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 700;
}
.tf-advice-btn:hover {
  background: #fff;
  color: var(--cbc-navy, #002855) !important;
}

.tf-overlay {
  background: var(--cbc-navy-deep, #001c3d);
  color: #fff;
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  text-align: left;
}
.tf-overlay h2 {
  font-family: var(--cbc-serif, "Source Serif 4", serif);
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 600;
  color: #fff !important;
  margin: 0 0 0.75rem;
  max-width: 16ch;
}
.tf-overlay p {
  margin: 0 0 1.4rem;
  color: rgba(255, 255, 255, 0.78);
  max-width: 32rem;
}
.tf-overlay a {
  display: inline-flex;
  align-items: center;
  padding: 0.9rem 1.35rem;
  border: 1px solid #fff;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 700;
}
.tf-overlay a:hover {
  background: #fff;
  color: var(--cbc-navy, #002855) !important;
}

.tf-filters-toggle {
  display: none;
}

@media (min-width: 768px) {
  .tf-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1200px) {
  .tf-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 991px) {
  .tf-brochure {
    padding: 1.25rem 0;
  }
  .tf-brochure-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
  }
  .tf-brochure p {
    font-size: 0.96rem;
    line-height: 1.5;
  }
  .tf-header {
    padding-top: 1.25rem;
  }
  .tf-header h1 {
    max-width: none;
    font-size: 1.55rem !important;
    margin-top: 0.85rem !important;
  }
  .tf-header-lead {
    margin-top: 1.15rem;
    font-size: 0.95rem;
  }
  .tf-layout {
    flex-direction: column;
    gap: 1.35rem;
    margin-top: 1rem;
  }
  .tf-filters {
    flex: none;
    width: 100%;
    position: static;
  }
  .tf-filters-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    border: 1px solid #002855;
    background: #fff;
    color: #002855;
    padding: 0.95rem 1.05rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
  }
  .tf-filters.is-open .tf-filters-toggle {
    background: #002855;
    color: #fff;
  }
  .tf-filters-panel {
    display: none;
    padding-top: 0.85rem;
  }
  .tf-filters.is-open .tf-filters-panel {
    display: block;
  }
  .tf-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  .tf-count {
    margin-right: 0;
  }
  .tf-sort {
    width: 100%;
  }
  .tf-card-info {
    padding: 1.45rem 1.15rem 1.15rem;
    min-height: 0;
  }
  .tf-card-body {
    padding: 1.15rem 1.15rem 1.35rem;
  }
  .tf-card-media {
    height: 180px;
  }
  .tf-advice-inner,
  .tf-overlay {
    flex-direction: column;
    align-items: flex-start;
  }
}
