/* Jauge IMC visuelle */
.imc-gauge-container {
  position: relative;
  margin: 2rem 0;
  padding: 2rem 0;
}

.imc-gauge {
  display: flex;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.imc-zone {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85em;
  font-weight: 600;
  color: #fff;
  text-align: center;
  line-height: 1.2;
  padding: 0.5rem;
  position: relative;
  transition: transform 0.2s;
}

.imc-zone:hover {
  transform: scaleY(1.05);
  z-index: 1;
}

.imc-underweight {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  flex: 0.925; /* 18.5 / 40 * 2 */
}

.imc-normal {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  flex: 1.3; /* (25 - 18.5) / 40 * 4 */
}

.imc-overweight {
  background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
  flex: 1; /* (30 - 25) / 40 * 4 */
}

.imc-obese {
  background: linear-gradient(135deg, #f87171 0%, #dc2626 100%);
  flex: 2; /* (40 - 30) / 40 * 4 */
}

/* Marqueur de position */
.imc-marker {
  position: absolute;
  top: 70px;
  transform: translateX(-50%);
  z-index: 10;
  transition: left 0.5s ease-out;
}

.imc-marker-arrow {
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 16px solid #8b5cf6;
  margin: 0 auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.imc-marker-label {
  margin-top: 0.5rem;
  background: #8b5cf6;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 1.1em;
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

/* Responsive */
@media (max-width: 640px) {
  .imc-zone {
    font-size: 0.7em;
    padding: 0.25rem;
  }
  
  .imc-gauge {
    height: 50px;
  }
  
  .imc-marker-label {
    font-size: 1em;
    padding: 0.4rem 0.8rem;
  }
  
  .imc-marker-arrow {
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 14px solid #8b5cf6;
  }
}
