<script setup lang="ts">
// <!-- ld-v2 --> Tuile de stat de l'Observatoire — libellé, valeur, note.
// Chiffres proportionnels (pas de tabular à cette taille), encre = tokens texte.
defineProps<{ label: string; value: string; hint?: string }>()
</script>

<template>
  <!-- ld-v2 -->
  <div class="ostat">
    <p class="ostat__label">{{ label }}</p>
    <p class="ostat__value">{{ value }}</p>
    <p v-if="hint" class="ostat__hint">{{ hint }}</p>
  </div>
</template>

<style scoped>
.ostat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.875rem 1rem;
  border-radius: var(--r-icon);
  background: var(--mood-accent-soft);
  min-width: 0;
}
.ostat__label {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--mood-text-muted);
}
.ostat__value {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--mood-text);
  line-height: 1.15;
}
.ostat__hint { margin: 0; font-size: 0.75rem; color: var(--mood-text-muted); }
</style>
