/* ═══════════════════════════════════════
   BLOC SIGNES VITAUX + ŒIL ANIMÉ
   ═══════════════════════════════════════ */

.vitals-wrap {
  position: relative;
}

/* Eye container */
.vitals-eye {
  display: flex;
  justify-content: center;
  margin-bottom: 1.2rem;
  position: relative;
}

.vitals-eye-shape {
  width: 48px;
  height: 28px;
  border: 1.5px solid var(--teal-dim);
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  background: rgba(94,207,160,.03);
}

.vitals-eye-iris {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--teal);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px rgba(94,207,160,.4), 0 0 20px rgba(94,207,160,.15);
  animation: eyeScan 4s ease-in-out infinite;
}

.vitals-eye-pupil {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bg);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.vitals-eye-lid {
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 0;
  background: var(--card-h);
  border-radius: 50% 50% 0 0;
  animation: eyeBlink 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes eyeScan {
  0%, 100% { transform: translate(-50%, -50%) translateX(-6px); }
  50% { transform: translate(-50%, -50%) translateX(6px); }
}

@keyframes eyeBlink {
  0%, 100% { height: 0; }
  42% { height: 0; }
  44% { height: 100%; }
  46% { height: 0; }
  88% { height: 0; }
  90% { height: 100%; }
  92% { height: 0; }
}

/* Vitals gauges */
.vitals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}

.vitals-gauge {
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(9,14,13,.34);
  transition: border-color .4s ease, box-shadow .4s ease;
  position: relative;
  overflow: hidden;
}

.vitals-gauge.glow {
  border-color: rgba(94,207,160,.25);
  box-shadow: 0 0 12px rgba(94,207,160,.08);
}

.vitals-gauge.glow::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(94,207,160,.06) 0%, transparent 70%);
  pointer-events: none;
  animation: glowFade 1.2s ease-out forwards;
}

@keyframes glowFade {
  from { opacity: 1; }
  to { opacity: 0; }
}

.vitals-gauge-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.52rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cream3);
  margin-bottom: 0.4rem;
}

.vitals-gauge-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: 0.45rem;
  transition: color .3s ease;
}

.vitals-gauge-bar {
  height: 3px;
  border-radius: 2px;
  background: rgba(240,230,211,.06);
  overflow: hidden;
  position: relative;
}

.vitals-gauge-bar-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--teal-dim), var(--teal));
  transition: width 1s cubic-bezier(.4,0,.2,1);
  position: relative;
}

.vitals-gauge-bar-fill::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: 12px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(94,207,160,.5));
  border-radius: 0 2px 2px 0;
}

/* Subtitle under title */
.vitals-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.52rem;
  color: var(--teal-dim);
  letter-spacing: 0.06em;
  margin-bottom: 0.6rem;
  text-align: center;
}

/* Responsive */
@media (max-width: 640px) {
  .vitals-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.7rem;
  }
  .vitals-gauge-value {
    font-size: 0.92rem;
  }
}
