<!-- Detail Modal -->
<div id="detailModal" class="modal-overlay">
    <div class="modal-content" style="max-width: 700px;">
        <div class="modal-header">
            <h2><i class="fas fa-trophy"></i> Détails du Résultat de Concours</h2>
            <button type="button" class="modal-close" onclick="closeDetailModal()">&times;</button>
        </div>
        <div class="modal-body">
            <div id="detailContent">
                <div class="loading active">
                    <div class="spinner"></div>
                    <p style="margin-top: 10px;">Chargement des détails...</p>
                </div>
            </div>
        </div>
        <div class="modal-footer">
            <button type="button" class="btn btn-secondary" onclick="closeDetailModal()">
                <i class="fas fa-times"></i> Fermer
            </button>
            <button type="button" class="btn btn-warning" id="editFromDetailBtn" onclick="editFromDetail()" style="display:none;">
                <i class="fas fa-edit"></i> Modifier
            </button>
        </div>
    </div>
</div>