{{!-- Template partagé pour les scores bonus/malus d'un item par domaine --}}
<div class="scores-section">
  <div class="scores-header">
    <span>{{localize "CELESTOPOL.Item.scores"}}</span>
  </div>
  <div class="scores-grid">
    {{#each skills as |statSkills statId|}}
    <div class="scores-stat-col">
      <div class="scores-stat-name">{{localize (concat "CELESTOPOL.Stat." statId)}}</div>
      {{#each statSkills as |skill skillId|}}
      <div class="score-row">
        <span class="score-skill-name">{{localize skill.label}}</span>
        <input type="number" name="system.scores.{{statId}}.{{skillId}}.bonus"
               value="{{lookup (lookup (lookup ../../system.scores statId) skillId) 'bonus'}}"
               min="0" class="score-bonus" title="+bonus">
        <input type="number" name="system.scores.{{statId}}.{{skillId}}.malus"
               value="{{lookup (lookup (lookup ../../system.scores statId) skillId) 'malus'}}"
               min="0" class="score-malus" title="-malus">
      </div>
      {{/each}}
    </div>
    {{/each}}
  </div>
</div>
