<div class="tab equipement {{tab.cssClass}}" data-group="sheet" data-tab="equipement">

  {{!-- ── Armes ─────────────────────────────────────────────────────────── --}}
  <div class="equip-section">
    <div class="section-header">
      <i class="fas fa-khanda"></i>
      <span>{{localize "CELESTOPOL.Item.weapons"}}</span>
      {{#if isEditMode}}
        <a data-action="createWeapon" title="{{localize 'CELESTOPOL.Item.newWeapon'}}"><i class="fas fa-plus"></i></a>
      {{/if}}
    </div>
    {{#each weapons as |item|}}
    <div class="item-row weapon" data-item-id="{{item.id}}" data-item-uuid="{{item.uuid}}" data-drag="true">
      <img src="{{item.img}}" class="item-icon">
      <span class="item-name">{{item.name}}</span>
      <span class="item-tag type">{{#if (eq item.system.type "melee")}}{{localize "CELESTOPOL.Weapon.typeMelee"}}{{else}}{{localize "CELESTOPOL.Weapon.typeDistance"}}{{/if}}</span>
      <span class="item-tag dmg">{{localize "CELESTOPOL.Weapon.degats"}} {{item.system.degats}}</span>
      <div class="item-controls">
        <a data-action="edit" data-item-uuid="{{item.uuid}}"><i class="fas fa-edit"></i></a>
        {{#if ../isEditMode}}<a data-action="delete" data-item-uuid="{{item.uuid}}"><i class="fas fa-trash"></i></a>{{/if}}
      </div>
    </div>
    {{else}}
    <p class="equip-empty">{{localize "CELESTOPOL.Item.noWeapons"}}</p>
    {{/each}}
  </div>

  {{!-- ── Armures ───────────────────────────────────────────────────────── --}}
  <div class="equip-section">
    <div class="section-header">
      <i class="fas fa-shield-halved"></i>
      <span>{{localize "CELESTOPOL.Item.armures"}}</span>
      {{#if isEditMode}}
        <a data-action="createArmure" title="{{localize 'CELESTOPOL.Item.newArmure'}}"><i class="fas fa-plus"></i></a>
      {{/if}}
    </div>
    {{#each armures as |item|}}
    <div class="item-row armure" data-item-id="{{item.id}}" data-item-uuid="{{item.uuid}}" data-drag="true">
      <img src="{{item.img}}" class="item-icon">
      <span class="item-name">{{item.name}}</span>
      <span class="item-tag prot"><i class="fas fa-shield"></i> {{item.system.protection}}</span>
      {{#if item.system.malus}}<span class="item-tag malus">−{{item.system.malus}} {{localize "CELESTOPOL.Armure.malus"}}</span>{{/if}}
      <div class="item-controls">
        <a data-action="edit" data-item-uuid="{{item.uuid}}"><i class="fas fa-edit"></i></a>
        {{#if ../isEditMode}}<a data-action="delete" data-item-uuid="{{item.uuid}}"><i class="fas fa-trash"></i></a>{{/if}}
      </div>
    </div>
    {{else}}
    <p class="equip-empty">{{localize "CELESTOPOL.Item.noArmures"}}</p>
    {{/each}}
  </div>

  {{!-- ── Équipements ──────────────────────────────────────────────────── --}}
  <div class="equip-section">
    <div class="section-header">
      <i class="fas fa-briefcase"></i>
      <span>{{localize "CELESTOPOL.Item.equipments"}}</span>
      {{#if isEditMode}}
        <a data-action="createEquipment" title="{{localize 'CELESTOPOL.Item.newEquipment'}}"><i class="fas fa-plus"></i></a>
      {{/if}}
    </div>
    {{#each equipments as |item|}}
    <div class="item-row equipment" data-item-id="{{item.id}}" data-item-uuid="{{item.uuid}}" data-drag="true">
      <img src="{{item.img}}" class="item-icon">
      <span class="item-name">{{item.name}}</span>
      <div class="item-controls">
        <a data-action="edit" data-item-uuid="{{item.uuid}}"><i class="fas fa-edit"></i></a>
        {{#if ../isEditMode}}<a data-action="delete" data-item-uuid="{{item.uuid}}"><i class="fas fa-trash"></i></a>{{/if}}
      </div>
    </div>
    {{else}}
    <p class="equip-empty">{{localize "CELESTOPOL.Item.noEquipments"}}</p>
    {{/each}}
  </div>

</div>
