.fta-tax-tree {
  max-width: 520px;
}

.fta-tax-tree__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fta-tax-tree__item--parent {
  margin: 0 0 12px 0;
}

.fta-tax-tree__parent-link {
  display: block;
  background: #374b2f;
  color: #fff !important;
  padding: 10px 13px;
  font-size: 14px;
  border-radius: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.fta-tax-tree__parent-link:hover {
  opacity: .9;
}

.fta-tax-tree__parent-link.fta-tax-tree__link--active {
  background: #5b745e;
  box-shadow: 0 2px 4px rgba(0,0,0,.15);
}

.fta-tax-tree__item--child > a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 10px;
  color: #374b2f !important;
  text-decoration: none;
  border-bottom: 1px solid rgba(0,0,0,.12);
  font-size: 15px;
  font-weight: 600;
}

.fta-tax-tree__item--child > a:hover {
  background: rgba(91,116,94,.08);
}

.fta-tax-tree__child-link.fta-tax-tree__link--active {
  background: rgba(91,116,94,.15);
  border-left: 3px solid #374b2f;
  padding-left: 7px;
  font-weight: 700;
}

.fta-tax-tree__list--level-1 .fta-tax-tree__child-link.fta-tax-tree__link--active {
  padding-left: 4px;
}

.fta-tax-tree__list--level-2 .fta-tax-tree__child-link.fta-tax-tree__link--active {
  padding-left: 15px;
}

.fta-tax-tree__count {
  opacity: .75;
  font-weight: 500;
}

.fta-tax-tree__indent {
  width: 14px;
  height: 1px;
  display: inline-block;
  opacity: 0; /* on gère l'indentation via padding sur les niveaux */
}

/* indentation par niveau */
.fta-tax-tree__list--level-1 .fta-tax-tree__item--child > a { padding-left: 7px; }
.fta-tax-tree__list--level-2 .fta-tax-tree__item--child > a { padding-left: 15px; }
.fta-tax-tree__list--level-2 .fta-tax-tree__item--child > a { 
  padding-left: 18px; 
  font-size: 14px;
  font-weight: 500;
  color: #4a6b4d !important;
}

/* Ajouter un indicateur visuel pour le niveau 3 */
.fta-tax-tree__list--level-2 .fta-tax-tree__item--child > a:before {
  content: "└";
  position: absolute;
  left: 4px;
  color: #5b745e;
  font-weight: normal;
}

.fta-tax-tree__list--level-2 .fta-tax-tree__item--child > a {
  position: relative;
}

.fta-academy-btn {
  display: block;
  margin-top: 16px;
  padding: 11px 16px;
  background: #5b745e;
  color: #fff !important;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: .03em;
  transition: background .2s;
}

.fta-academy-btn:hover {
  background: #374b2f;
}

/* Grille : sous-catégories (2e niveau) — shortcode [fta_subcategory_grid] */
.fta-cat-grid {
  --fta-cat-cols: 3;
  max-width: 100%;
  margin: 0 auto;
}

.fta-cat-grid__list {
  display: grid;
  grid-template-columns: repeat(var(--fta-cat-cols, 3), minmax(0, 1fr));
  gap: 16px 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.fta-cat-grid__item {
  margin: 0;
}

.fta-cat-grid__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: #374b2f !important;
  /* background: #fff; */
  border-radius: 10px;
  overflow: hidden;
  /* border: 1px solid rgba(55, 75, 47, 0.15); */
  /* box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06); */
  /* transition: box-shadow 0.2s, border-color 0.2s, transform 0.15s; */
}

.fta-cat-grid__link:hover {
  border-color: rgba(55, 75, 47, 0.35);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.fta-cat-grid__media {
  display: block;
  aspect-ratio: 4 / 3;
  background: #e8ede6;
  overflow: hidden;
}

.fta-cat-grid__media .fta-cat-grid__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  vertical-align: middle;
}

.fta-cat-grid__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 120px;
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(55, 75, 47, 0.35);
  background: linear-gradient(145deg, #e8ede6, #d4ddd0);
}

.fta-cat-grid__label {
  display: block;
  padding: 12px 12px 14px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
