.tests-tree-widget {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.75rem 0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.tests-tree-title {
  color: #0f172a;
  font-size: 1.15rem;
  font-weight: 800;
  margin-top: 0;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tests-tree-intro {
  color: #475569;
  font-size: 0.92rem;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

/* Sections d'étapes */
.tests-tree-step {
  margin-bottom: 1.1rem;
}

.tests-tree-step-label {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  margin-bottom: 0.45rem;
}

.tests-tree-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.55rem;
}

.tests-tree-opt-btn {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease-in-out;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.tests-tree-opt-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}

.tests-tree-opt-btn.active {
  background: #eff6ff;
  border-color: #2563eb;
  color: #1e40af;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.tests-tree-opt-desc {
  font-size: 0.74rem;
  color: #64748b;
  font-weight: normal;
}

.tests-tree-opt-btn.active .tests-tree-opt-desc {
  color: #3b82f6;
}

/* Fil d'ariane dynamique */
.tests-tree-breadcrumb {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.65rem 0.9rem;
  margin: 1.1rem 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.83rem;
}

.tests-tree-crumb-item {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
  font-weight: 700;
  color: #1e293b;
}

.tests-tree-crumb-arrow {
  color: #94a3b8;
  font-weight: 800;
}

/* Carte de Résultat */
.tests-tree-result-card {
  background: #ffffff;
  border: 2px solid #2563eb;
  border-radius: 10px;
  padding: 1.2rem;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
}

.tests-tree-result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e2e8f0;
}

.tests-tree-test-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #1e40af;
  margin: 0;
}

.tests-tree-badge-family {
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.tests-tree-result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
}

.tests-tree-info-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 0.7rem 0.85rem;
}

.tests-tree-info-title {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.25rem;
}

.tests-tree-info-val {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
}
