/* Badge réputation techniciens — cartes et fiches */
:root {
  --tech-rating-green-dark: var(--harvest-green-dark, #1b5e20);
  --tech-rating-green: var(--harvest-green, #198754);
  --tech-rating-gold: var(--harvest-gold, #c9a227);
  --tech-rating-gold-accent: #e8c547;
}

.tech-rating-badge {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.7rem;
  border-radius: 0.55rem;
  background: linear-gradient(135deg, rgba(25, 135, 84, 0.09) 0%, rgba(25, 135, 84, 0.03) 100%);
  border: 1px solid rgba(25, 135, 84, 0.18);
  box-shadow: 0 1px 3px rgba(25, 135, 84, 0.06);
}

.tech-rating-badge--premium {
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.16) 0%, rgba(25, 135, 84, 0.06) 100%);
  border-color: rgba(201, 162, 39, 0.42);
  box-shadow: 0 2px 6px rgba(201, 162, 39, 0.14);
}

.tech-rating-badge__pill {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 2.85rem;
  padding: 0.35rem 0.5rem;
  border-radius: 0.45rem;
  background: linear-gradient(160deg, var(--tech-rating-green-dark) 0%, var(--tech-rating-green) 100%);
  color: #fff;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(25, 135, 84, 0.28);
}

.tech-rating-badge--premium .tech-rating-badge__pill {
  background: linear-gradient(160deg, #1b5e20 0%, #2e7d32 55%, #198754 100%);
  border: 1px solid rgba(232, 197, 71, 0.55);
  box-shadow: 0 2px 8px rgba(201, 162, 39, 0.24);
}

.tech-rating-badge__score {
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
  line-height: 1;
}

.tech-rating-badge__body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.tech-rating-badge__detail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.72rem;
  line-height: 1.2;
  color: #495057;
}

.tech-rating-badge__detail strong {
  color: var(--tech-rating-green-dark);
  font-weight: 700;
}

.tech-rating-badge__count {
  color: #6c757d;
  font-weight: 500;
}

.tech-rating-badge__sep {
  color: rgba(25, 135, 84, 0.35);
  font-weight: 700;
}

/* Étoiles dans le badge */
.tech-rating-stars.agro-star-rating-display {
  font-size: 0.92rem;
  gap: 0.14rem;
  color: var(--tech-rating-gold);
  letter-spacing: 0.04em;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.06));
}

.tech-rating-badge--premium .tech-rating-stars.agro-star-rating-display {
  color: var(--tech-rating-gold-accent);
}

.tech-rating-stars--md.agro-star-rating-display {
  font-size: 1.15rem;
  gap: 0.18rem;
}

.tech-rating-stars--lg.agro-star-rating-display {
  font-size: 1.35rem;
  gap: 0.2rem;
}

/* Variante fiche profil */
.tech-rating-badge--profile {
  padding: 0.75rem 0.9rem;
  gap: 0.85rem;
  margin-bottom: 0.5rem;
}

.tech-rating-badge--profile .tech-rating-badge__pill {
  min-width: 3.25rem;
  padding: 0.45rem 0.6rem;
}

.tech-rating-badge--profile .tech-rating-badge__score {
  font-size: 1.1rem;
}

.tech-rating-badge--profile .tech-rating-badge__detail {
  font-size: 0.8rem;
}

/* Variante avis individuel */
.tech-rating-badge--review {
  display: inline-flex;
  padding: 0.25rem 0.45rem;
  gap: 0.35rem;
  margin-bottom: 0;
  border-radius: 999px;
  background: rgba(25, 135, 84, 0.07);
  border: 1px solid rgba(25, 135, 84, 0.12);
  box-shadow: none;
}

.tech-rating-badge--review .tech-rating-stars.agro-star-rating-display {
  font-size: 0.78rem;
}

.tech-rating-badge--review .tech-rating-badge__score-text {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--tech-rating-green-dark);
  white-space: nowrap;
}

/* Carte catalogue */
.tech-rating-badge--card {
  margin-bottom: 0.75rem;
}

@media (max-width: 575.98px) {
  .tech-rating-badge--card {
    padding: 0.5rem 0.6rem;
  }

  .tech-rating-badge__pill {
    min-width: 2.75rem;
    padding: 0.32rem 0.45rem;
  }

  .tech-rating-badge__score {
    font-size: 0.88rem;
  }

  .tech-rating-stars.agro-star-rating-display {
    font-size: 0.88rem;
  }
}
