<div class="mournblade-chat-result">
  {{!-- Header --}}
  <div class="chat-result-header">
    {{#if actorImg}}<img class="actor-icon" src="{{actorImg}}" alt="{{alias}}" />{{/if}}
    <div class="header-info">
      <h4 class="actor-name">{{alias}}</h4>
      <div class="action-title">
        {{#if itemImg}}<img src="{{itemImg}}" alt="{{itemName}}" style="width:16px;height:16px;border:none;vertical-align:middle;margin-right:4px;" />{{/if}}
        <i class="fas fa-star"></i> Enchantement : {{itemName}}
      </div>
    </div>
  </div>

  {{!-- Résultat principal --}}
  <div class="result-main">
    <div class="result-display">
      <div class="dice-result">
        <i class="fas fa-dice"></i>
        <span class="dice-value">{{diceResult}}</span>
      </div>
      <div class="total-result">
        <span class="total-label">Total</span>
        <span class="total-value">{{finalResult}}</span>
      </div>
      <div class="difficulty">
        <span class="difficulty-label">SD</span>
        <span class="difficulty-value">{{difficulte}}</span>
      </div>
    </div>

    <div class="result-badge-container">
      {{#if isHeroique}}
      <div class="result-badge heroique"><i class="fas fa-star"></i> HÉROÏQUE !</div>
      {{else if isDramatique}}
      <div class="result-badge dramatique"><i class="fas fa-skull"></i> DRAMATIQUE !</div>
      {{else if isSuccess}}
      <div class="result-badge success"><i class="fas fa-check"></i> Succès</div>
      {{else}}
      <div class="result-badge failure"><i class="fas fa-times"></i> Échec</div>
      {{/if}}
    </div>
  </div>

  {{!-- Détails --}}
  <div class="result-details">
    <div class="details-section">
      <div class="detail-row">
        <span class="detail-label">Points d'Âme investis :</span>
        <span class="detail-value">{{ptsAme}}</span>
      </div>
      <div class="detail-row">
        <span class="detail-label">Âme dépensée :</span>
        <span class="detail-value">{{ameDeduct}}</span>
      </div>
      <div class="detail-row">
        <span class="detail-label">Type :</span>
        <span class="detail-value">{{#if antiChaos}}Anti-Chaos (aura){{else}}Standard{{/if}}</span>
      </div>
      {{#if isSuccess}}{{#unless itemDestroyed}}
      <div class="detail-row">
        <span class="detail-label">Bonus conféré :</span>
        <span class="detail-value"><strong>+{{bonusFinal}}</strong></span>
      </div>
      {{/unless}}{{/if}}
      {{#if isHeroique}}{{#unless itemDestroyed}}
      <div class="detail-row">
        <span class="detail-label">Bonus conféré :</span>
        <span class="detail-value"><strong>+{{bonusFinal}}</strong></span>
      </div>
      {{/unless}}{{/if}}
    </div>
  </div>

  {{!-- Effets / narration --}}
  <div class="result-effects">
    <div class="effect-item {{#if isHeroique}}heroique{{else if isDramatique}}dramatique{{else if isSuccess}}success{{else}}failure{{/if}}">
      {{#if isHeroique}}<i class="fas fa-star"></i>
      {{else if isDramatique}}<i class="fas fa-skull"></i>
      {{else if isSuccess}}<i class="fas fa-check-circle"></i>
      {{else}}<i class="fas fa-times-circle"></i>{{/if}}
      {{enchantMessage}}
    </div>
    {{#if itemDestroyed}}
    <div class="effect-item dramatique">
      <i class="fas fa-fire"></i> <strong>L'objet a été détruit !</strong>
    </div>
    {{/if}}
  </div>

</div>
